the entire sdp is available as a variable (route the call to the info app to see the variables)
so if you have inbound-late-negotiation set to true on the sip profile
then you can use a regex or a script to set absolute_codec string before you answer.


On Thu, Feb 12, 2009 at 8:06 AM, ivdreg ivdreg <ivdreg@gmail.com> wrote:
Hi all,

Can I ask 2 questions about codec negotiation:

1. Is it possible Freeswitch to work negotiate codecs between two phones as it is described below.
INVITE from A with some codecs in SDP ---> Freeswitch rewrites codec preference according absolute_codec_string but exclude all codecs not offered by A ----> INVITE to B with rewrited SDP.

example:
from A SDP:PCMA,PCMU,SPEEX  ----> absolute_codec_string=G722,
PCMU,PCMA,GSM  ----> to B SDP: PCMU,PCMA

2. Can I get codec list in INVITE with mod_perl for example or via xml_curl without processing SDP variable (switch_r_sdp). It will be useful to be in format that absolute_codec_string variable takes.

Thanks

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400