|
Re: Enabling VAD/CNG context based: msg#00390voip.wengophone.devel
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 changed ca->cng = !eXosip_retrieve_negotiated_specific_payload(ca->did, PH_MEDIA_CN_PT_STR, strlen(PH_MEDIA_CN_PT_STR)); to ca->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: -- ---- Best regards / Mit freundlichen Grüssen Cantemir Mihu _______________________________________________ Wengophone-devel mailing list Wengophone-devel-ZwoEplunGu1JKUZHOYzk1kEOCMrvLtNR@xxxxxxxxxxxxxxxx http://dev.openwengo.com/mailman/listinfo/wengophone-devel |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Enabling VAD/CNG context based: 00390, Vadim Lebedev |
|---|---|
| Next by Date: | Re: Enabling VAD/CNG context based: 00390, Vadim Lebedev |
| Previous by Thread: | Re: Enabling VAD/CNG context basedi: 00390, Vadim Lebedev |
| Next by Thread: | Re: Enabling VAD/CNG context based: 00390, Vadim Lebedev |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |