Hi,<div><br></div><div>I'm trying to force the use of a specific codec when originating a call from the command line.</div><div><br></div><div>This is my codecs config in vars.xml:</div><div><br></div><div><div> <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA,SPEEX,G729"/></div>
<div> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,SPEEX,G729"/></div></div><div><br></div><div><br></div><div>If I just originate a call:</div><div><br></div><div>originate {ignore_early_media}sofia/gateway/mygateway/444444 &bridge(user/1001)</div>
<div><br></div><div>I get the following SDP:</div><div><br></div><div><div> v=0</div><div> o=FreeSWITCH 1303727406 1303727407 IN IP4 127.0.0.1</div><div> s=FreeSWITCH</div><div> c=IN IP4 127.0.0.1</div><meta charset="utf-8"><div>
t=0 0</div><div> m=audio 17054 RTP/AVP 0 8 98 18 101 13</div><div> a=rtpmap:98 SPEEX/8000</div><div> a=rtpmap:101 telephone-event/8000</div><div> a=fmtp:101 0-16</div><div> a=ptime:20</div></div><div><br></div>
<div><br></div><div>If I originate a call with the absolute_codec_string variable set like this:</div><div><br></div><div>originate {ignore_early_media,absolute_codec_string='G729,PCMU'}sofia/gateway/<meta charset="utf-8">mygateway/<meta charset="utf-8">444444 &bridge(user/1001)</div>
<div><br></div><div>I get the following SDP:</div><div><br></div><div><div> v=0</div><div> o=FreeSWITCH 1303719860 1303719861 IN IP4 127.0.0.1</div><meta charset="utf-8"><div> s=FreeSWITCH</div><div> c=IN IP4 127.0.0.1</div>
<meta charset="utf-8"><div> t=0 0</div><div> m=audio 24894 RTP/AVP 0 101 13</div><div> a=rtpmap:101 telephone-event/8000</div><div> a=fmtp:101 0-16</div><div> a=ptime:20</div></div><div><br></div><div><br></div>
<div>And it doesn't matter the value I give to the absolute_codec_string, I will get the same SDP, except if I specify SPEEX, then I'll get the same SDP as the one above. Am I missing something, or is this the way it's supposed to work?</div>
<div><br></div><div>I also tried with the codec_string variable, and I get the same results.</div><div><br></div><div>I'm using the following version from the git repository: head-git-244fd68 2011-03-21 14-27-57 -0400</div>
<div><br></div><div><br></div><div>Thanks for your help,</div><div><br></div><div><br></div><div>Nicolas</div><meta charset="utf-8">