How to disable video

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kchitiz,

Now I understand your advice :)

But why don't we #define  PJMEDIA_HAS_VIDEO to 0? I tried, but it builds
fail, any overcome will be highly appreciated


On Wed, Jan 30, 2013 at 5:54 PM, Khoa Pham <onmyway133 at gmail.com> wrote:

> HI Kchitiz,
>
> I follow your advice and set opt->flag &=
> ~PJSUA_CALL_INCLUDE_DISABLED_MEDIA; in pjsua_call_setting_default() but I
> still can make video call, the SDP offer contains m line for video
>
>
> On Wed, Jan 30, 2013 at 4:49 PM, Kchitiz Saxena <kchitiz.saxena at gmail.com>wrote:
>
>> Yes, it is set by default, thats why I suggested to unset it. Please note
>> '~' before the PJSUA_CALL_INCLUDE_DISABLED_MEDIA .
>>
>>
>> On Wed, Jan 30, 2013 at 2:12 PM, Khoa Pham <onmyway133 at gmail.com> wrote:
>>
>>> Hi Gaurav, I'm building pjsip on Windows with VS2008 :(
>>>
>>> @Kchitiz I see PJSUA_CALL_INCLUDE_DISABLED_MEDIA is set by default
>>> (pjsua_call_settings_default), but I still can make video call. I'm using
>>> microSIP
>>>
>>>
>>> On Wed, Jan 30, 2013 at 3:10 PM, Gaurav Srivastava <
>>> gaurav.srivastava2 at agnity.com> wrote:
>>>
>>>>              Hi Khoa,
>>>>
>>>>
>>>>
>>>>             [Pardon for the name misspell first]
>>>>
>>>>             if u r compiling it on linux
>>>>
>>>>
>>>>
>>>>             Just untar the pjsip package
>>>>
>>>>             cd to the  directory which created after untar the package.
>>>>
>>>>             Then simply run
>>>>
>>>>
>>>>
>>>>             ./configure ?disable-video;make;make dep;make install
>>>>
>>>>
>>>>
>>>>             Regards,
>>>>
>>>>             Gaurav
>>>>
>>>> -----Original Message-----
>>>> *From:* pjsip [mailto:pjsip-bounces at lists.pjsip.org] *On Behalf Of *Khoa
>>>> Pham
>>>> *Sent:* Wednesday, January 30, 2013 1:16 PM
>>>>
>>>> *To:* pjsip list
>>>> *Subject:* Re: [pjsip] How to disable video
>>>>
>>>>
>>>>
>>>> Hi Gaurav, thanks for the prompt reply
>>>>
>>>>
>>>>
>>>> 1. How to do /configure, make, ... ?
>>>>
>>>> 2. Have you set PJMEDIA_HAS_VIDEO to 0, I think the authors wants us
>>>> to set that
>>>>
>>>>
>>>>
>>>> On Wed, Jan 30, 2013 at 2:41 PM, Gaurav Srivastava <
>>>> gaurav.srivastava2 at agnity.com> wrote:
>>>>
>>>> Yes something like this only.
>>>> As Khoya mentioned ,They want to use PJSIP 2.0 but no video.
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Dan
>>>> Arrhenius
>>>> Sent: Wednesday, January 30, 2013 1:06 PM
>>>> To: pjsip list
>>>> Subject: Re: How to disable video
>>>>
>>>> Didn't you mean:
>>>>
>>>> ./configure --disable-video
>>>>
>>>> Regards,
>>>> Dan
>>>>
>>>> On Wed, 2013-01-30 at 13:01 +0530, Gaurav Srivastava wrote:
>>>> >             Do these following things.
>>>> >
>>>> >
>>>> >
>>>> > /configure
>>>> >
>>>> >
>>>> >
>>>> >             make
>>>> >
>>>> >
>>>> >
>>>> >             make dep
>>>> >
>>>> >
>>>> >
>>>> >             make install
>>>> >
>>>> >
>>>> >
>>>> >             This will disable the Video support completely from PJSIP
>>>> > do let me know in case u find any linking error again.
>>>> >
>>>> >
>>>> >
>>>> >             Thanks and Regards,
>>>> >
>>>> >             Gaurav
>>>> >
>>>> >
>>>> >
>>>> > -----Original Message-----
>>>> > From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Khoa
>>>> > Pham
>>>> > Sent: Wednesday, January 30, 2013 12:33 PM
>>>> > To: pjsip list
>>>> > Subject: Re: How to disable video
>>>> >
>>>> >
>>>> >
>>>> > 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
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > 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
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>> _______________________________________________
>>> 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
>



-- 
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/5d0fe90c/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux