Change codec priorities on incoming call

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

 



Hi all,

I am working on an iPhone app based on pjsip, more specificly on pjsua. 
I would like to be able to force the use of different codecs depending 
on the type of connectivity the device has at the moment of making a 
call or receiving a call (EDGE/WiFi). For making a call it works - I 
call pjsua_codec_set_priority() just before making the call and pjsip 
uses the single codec that I enable. I would like to do the same when 
receiving a call. However I don't seem to find the right place to call 
pjsua_codec_set_priority() in the incoming call setup sequence. It seems 
that pjsip uses the previously defined codec instead. Is there an early 
enough point (callback, state), where I can set the codec preference so 
that it is picked up when negotiating the codecs for the incoming call? 
If yes, which is it?

Thanks in advance
Alex



[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