Hi Kchitiz, This way the offer SDP will contains m line for video, but with port set to 0, right ? I don't want to enable video at all. Have you #define PJMEDIA_HAS_VIDEO 0 ? On Wed, Jan 30, 2013 at 12:17 PM, Kchitiz Saxena <kchitiz.saxena at gmail.com>wrote: > I hope you are referring to m line for video with port set to 0. If you > want to disable that then do this before you call pjsua_call_make_call(): > > callSettings.flag &= ~PJSUA_CALL_INCLUDE_DISABLED_MEDIA; > > Thanks > Kchitiz > > On Tue, Jan 29, 2013 at 9:51 PM, Khoa Pham <onmyway133 at gmail.com> wrote: > >> Hi, I'm using pjsip 2.0 which supports video. >> >> Now I want to disable it. First, I set some define in pjlib/config_site.h >> >> #define PJMEDIA_HAS_VIDEO 0 >> #define PJMEDIA_HAS_FFMPEG 0 >> #define PJMEDIA_VIDEO_DEV_HAS_SDL 0 >> #define PJMEDIA_VIDEO_DEV_HAS_DSHOW 0 >> >> Which has many LNK error when build. >> >> Secondly, I set pjsua_call_settings->vid_cnt = 0 >> in pjsua_call_setting_default(). This builds successfully, but I see SIP >> INVITE message stills contains m line for video >> >> How to disable video ? >> >> -- >> Khoa Pham >> HCMC University of Science >> Faculty of Information Technology >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -- Khoa Pham HCMC University of Science Faculty of Information Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130130/52c43862/attachment-0001.html>