<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation" class="">https://freeswitch.org/confluence/display/FREESWITCH/Codec+Negotiation</a><div class=""><br class=""><div style=""><blockquote type="cite" class=""><div class="">On Mar 31, 2016, at 10:31 AM, amani mansour &lt;<a href="mailto:amani.mansour2@gmail.com" class="">amani.mansour2@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">sir i will call a FS(extension 600) from my sip phone(extension 423) &nbsp;i used a gateway &nbsp;when the call is ringing i will hear a short msg ,<div class="">this msg &nbsp;is a pcap file &nbsp;,when i changed it to wav file automatically in freeswitch it has &nbsp;changed to the first codec selected in my soft phone :</div><div class=""><br class=""></div><div class="">my pcap file has us codec g711</div><div class="">my phoner lite i have selected 1/opus 2/ g711A 3./.........</div><div class="gmail_extra"><br class=""><div class="gmail_quote">but when i play this wav &nbsp;i have in tshark this line:</div><div class="gmail_quote"><div class="gmail_quote">8533 960.577294 &nbsp;192.168.3.5 -&gt; 192.168.3.1 &nbsp;RTP 109 PT=opus, SSRC=0x57A054EC, Seq=2363, Time=424320</div><div class=""><br class=""></div><div class="">my dialplan/default.xml:</div><div class="">&lt;extension name="600"&gt;<br class=""></div><div class=""><div class="">&nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field="caller_id_number" expression="^(10[01][0-9]|1500|423|400|1011)$"&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="continue_on_fail=true"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="ring_ready"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="ringback=${us-ring}"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="transfer_ringback=$${hold_music}"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="ignore_early_media=false"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="hangup_after_bridge=true"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" &nbsp;data="[leg_timeout=20,absolute_codec_string=PCMA ]sofia/gateway/gateway_to_600/600"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="answer"/&gt;</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; &nbsp; &lt;/condition&gt;</div><div class="">&nbsp;&nbsp;&lt;/extension&gt;</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; &nbsp;&lt;extension name="600"&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field="destination_number" expression="^(600)$"&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application="export" data="nolocal:codec_string=PCMA"/&gt;&nbsp;<br class=""></div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="answer"/&gt;</div></div><div class=""><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application="info"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="sleep" data="1000"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="playback" data="/home/amani/projet/PFE/gg711.pcap.0xd2bd4e3e.wav"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;</div><div class="">&lt;/extension&gt;</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">i have us tcpdump :</div><div class=""><div class="">14:59:31.659246 IP 192.168.3.1.sip &gt; 192.168.3.5.sip: SIP: INVITE <a href="mailto:sip%3A600@192.168.3.5" class="">sip:600@192.168.3.5</a> SIP/2.0</div><div class="">14:59:31.659773 IP 192.168.3.5.sip &gt; 192.168.3.1.sip: SIP: SIP/2.0 100 Trying</div><div class="">14:59:31.661679 IP 192.168.3.5.sip &gt; 192.168.3.1.sip: SIP: SIP/2.0 407 Proxy Authentication Required</div><div class="">14:59:31.662289 IP 192.168.3.1.sip &gt; 192.168.3.5.sip: SIP: ACK <a href="mailto:sip%3A600@192.168.3.5" class="">sip:600@192.168.3.5</a> SIP/2.0</div><div class="">14:59:31.662726 IP 192.168.3.1.sip &gt; 192.168.3.5.sip: SIP: INVITE <a href="mailto:sip%3A600@192.168.3.5" class="">sip:600@192.168.3.5</a> SIP/2.0</div><div class="">14:59:31.663177 IP 192.168.3.5.sip &gt; 192.168.3.1.sip: SIP: SIP/2.0 100 Trying</div><div class="">14:59:38.508070 IP 192.168.3.5.sip &gt; 192.168.3.1.35200: Flags [.], ack 2002, win 789, length 0</div><div class="">14:59:38.508188 IP 192.168.3.1.35200 &gt; 192.168.3.5.sip: Flags [.], ack 2260, win 253, length 0</div><div class="">14:59:41.823972 IP 192.168.3.5.sip &gt; 192.168.3.1.sip: SIP: SIP/2.0 180 Ringing</div><div class="">14:59:52.073381 IP 192.168.3.5.sip &gt; 192.168.3.1.sip: SIP: SIP/2.0 183 Session Progress</div><div class="">15:00:02.027890 IP 192.168.3.5.sip &gt; 192.168.3.1.sip: SIP: SIP/2.0 200 OK</div><div class="">15:00:02.028681 IP 192.168.3.1.sip &gt; 192.168.3.5.sip: SIP: ACK <a href="sip:600@192.168.3.5:5060;transport=udp" class="">sip:600@192.168.3.5:5060;transport=udp</a> SIP/2.0</div><div class="">15:00:02.034884 IP 192.168.3.5.sip &gt; 192.168.3.1.sip: SIP: BYE <a href="http://sip:423@192.168.3.1:5060/" class="">sip:423@192.168.3.1:5060</a> SIP/2.0</div><div class="">15:00:02.035367 IP 192.168.3.1.sip &gt; 192.168.3.5.sip: SIP: SIP/2.0 200 OK</div></div><div class=""><br class=""></div><div class="">my supervisor tel me that when i change the file to .wav &nbsp;nrmally FS code and decode the file using unknown codec</div><div class="">can you help me &nbsp;please sir ???</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">best regards&nbsp;</div><div class=""><br class=""></div><div class="">amani&nbsp;</div></div></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>