osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: Re: Enabling VAD/CNG context based - msg#00389

List: voip.wengophone.devel

Date: Prev Next Index Thread: Prev Next Index
Cantemir Mihu wrote:

Hello,

is it possible to enable VAD/CNG only if CNG was negotiated between both parties? If yes, how?
When I test it now, if I enable VAD/CNG on one side and call another who does not support this feature, the first side has VAD enabled and does not send voice packets, which on the other side appears very annoying. The first side should disable VAD if CNG payload was not negotiated.

Thanks for your help.

Normally phApi tries to negotiatie the CNG payload... take a look in ph_call_retreive_payloads....
but frankly this is note very well tested....

Vadim


--
----
Best regards / Mit freundlichen Grüssen
Cantemir Mihu

------------------------------------------------------------------------

_______________________________________________
Wengophone-devel mailing list
Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx
http://dev.openwengo.com/mailman/listinfo/wengophone-devel



Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Simple call API

jérémie HUYGHE wrote: hi all, I'm always working on my little application wich has for goal to simply call someone, without graphical code... So, I compiled Global.lib Exosip.lib Osip.lib Ortp.lib netlib.lib and several codecs like speex.lib, ilbc.lib,gsm.lib, etc.. Now, I'd like to realise a simple main() to call somone... What I think I need, and I should to is: Configure Phconfig struct call Phinit() call phaddauthinfo call PhaddVline (I don't really well understand what is a Vline, if someone can telle me brievouisly...i'm lost with the cid concept) call phlineplacecall You can take a look on wifo/miniua/minua.c for simple command line softphone application example. Vline is a Virtual Phone Line, which specifiies coordinates of your SIP provider (server, and proxy) and a name you use to regsiter with the provider... cid is callId.... You can place several simultaneous calls, cid discrimnates between them. Vadim ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com _______________________________________________ Wengophone-devel mailing list Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Next Message by Date: click to view message preview

Re: Enabling VAD/CNG context based

Hello,this is what I did to enable VAD only if the CNG payload was negotiated:in ph_call_media_start() I changed     if (phcfg.vad & 0x80000000)to if ((phcfg.vad & 0x80000000) && ca->cng)Additional, in ph_call_retrieve_payloads() I changedca->cng = !eXosip_retrieve_negotiated_specific_payload(ca->did, PH_MEDIA_CN_PT_STR, strlen(PH_MEDIA_CN_PT_STR)); toca->cng = (eXosip_retrieve_negotiated_specific_payload(ca->did, PH_MEDIA_CN_PT_STR, strlen(PH_MEDIA_CN_PT_STR)) != -1);But this should work either way. What I noticed about CNG, is that in the function ph_generate_comfort_noice(), ret = audio_stream_get_out_space(stream, &used); always returns -19952 and thus exits with "IOCTL error" and it does not generate a CNG noise.What could be the cause and solution of this? On 3/29/06, Vadim Lebedev <vadim-bTOqz09H78DQT0dZR+AlfA@xxxxxxxxxxxxxxxx> wrote: Cantemir Mihu wrote: > Hello,>> is it possible to enable VAD/CNG only if CNG was negotiated between> both parties? If yes, how?> When I test it now, if I enable VAD/CNG on one side and call another> who does not support this feature, the first side has VAD enabled and > does not send voice packets, which on the other side appears very> annoying. The first side should disable VAD if CNG payload was not> negotiated.>> Thanks for your help.>Normally phApi tries to negotiatie the CNG payload...  take a look in ph_call_retreive_payloads....but frankly this is note very well tested....Vadim> --> ----> Best regards / Mit freundlichen Grüssen> Cantemir Mihu>>------------------------------------------------------------------------ >>_______________________________________________>Wengophone-devel mailing list> Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx> http://dev.openwengo.com/mailman/listinfo/wengophone-devel>-- ----Best regards / Mit freundlichen GrüssenCantemir Mihu _______________________________________________ Wengophone-devel mailing list Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Previous Message by Thread: click to view message preview

Enabling VAD/CNG context based

Hello,is it possible to enable VAD/CNG only if CNG was negotiated between both parties? If yes, how?When I test it now, if I enable VAD/CNG on one side and call another who does not support this feature, the first side has VAD enabled and does not send voice packets, which on the other side appears very annoying. The first side should disable VAD if CNG payload was not negotiated. Thanks for your help.-- ----Best regards / Mit freundlichen GrüssenCantemir Mihu _______________________________________________ Wengophone-devel mailing list Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Next Message by Thread: click to view message preview

Re: Enabling VAD/CNG context based

Hello,this is what I did to enable VAD only if the CNG payload was negotiated:in ph_call_media_start() I changed     if (phcfg.vad & 0x80000000)to if ((phcfg.vad & 0x80000000) && ca->cng)Additional, in ph_call_retrieve_payloads() I changedca->cng = !eXosip_retrieve_negotiated_specific_payload(ca->did, PH_MEDIA_CN_PT_STR, strlen(PH_MEDIA_CN_PT_STR)); toca->cng = (eXosip_retrieve_negotiated_specific_payload(ca->did, PH_MEDIA_CN_PT_STR, strlen(PH_MEDIA_CN_PT_STR)) != -1);But this should work either way. What I noticed about CNG, is that in the function ph_generate_comfort_noice(), ret = audio_stream_get_out_space(stream, &used); always returns -19952 and thus exits with "IOCTL error" and it does not generate a CNG noise.What could be the cause and solution of this? On 3/29/06, Vadim Lebedev <vadim-bTOqz09H78DQT0dZR+AlfA@xxxxxxxxxxxxxxxx> wrote: Cantemir Mihu wrote: > Hello,>> is it possible to enable VAD/CNG only if CNG was negotiated between> both parties? If yes, how?> When I test it now, if I enable VAD/CNG on one side and call another> who does not support this feature, the first side has VAD enabled and > does not send voice packets, which on the other side appears very> annoying. The first side should disable VAD if CNG payload was not> negotiated.>> Thanks for your help.>Normally phApi tries to negotiatie the CNG payload...  take a look in ph_call_retreive_payloads....but frankly this is note very well tested....Vadim> --> ----> Best regards / Mit freundlichen Grüssen> Cantemir Mihu>>------------------------------------------------------------------------ >>_______________________________________________>Wengophone-devel mailing list> Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx> http://dev.openwengo.com/mailman/listinfo/wengophone-devel>-- ----Best regards / Mit freundlichen GrüssenCantemir Mihu _______________________________________________ Wengophone-devel mailing list Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx http://dev.openwengo.com/mailman/listinfo/wengophone-devel
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by