<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 <<a href="mailto:amani.mansour2@gmail.com" class="">amani.mansour2@gmail.com</a>> 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) i used a gateway when the call is ringing i will hear a short msg ,<div class="">this msg is a pcap file ,when i changed it to wav file automatically in freeswitch it has 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 i have in tshark this line:</div><div class="gmail_quote"><div class="gmail_quote">8533 960.577294 192.168.3.5 -> 192.168.3.1 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=""><extension name="600"><br class=""></div><div class=""><div class=""> <condition field="caller_id_number" expression="^(10[01][0-9]|1500|423|400|1011)$"></div><div class=""> <action application="set" data="continue_on_fail=true"/></div><div class=""> <action application="ring_ready"/></div><div class=""> <action application="set" data="ringback=${us-ring}"/></div><div class=""> <action application="set" data="transfer_ringback=$${hold_music}"/></div><div class=""> <action application="set" data="ignore_early_media=false"/></div><div class=""> <action application="set" data="hangup_after_bridge=true"/></div><div class=""> <action application="bridge" data="[leg_timeout=20,absolute_codec_string=PCMA ]sofia/gateway/gateway_to_600/600"/></div><div class=""> <action application="answer"/></div><div class=""><br class=""></div><div class=""> </condition></div><div class=""> </extension></div><div class=""><br class=""></div><div class=""> <extension name="600"></div><div class=""> <condition field="destination_number" expression="^(600)$"></div><div class=""> <action application="export" data="nolocal:codec_string=PCMA"/> <br class=""></div><div class=""> <action application="answer"/></div></div><div class=""><div class=""> <action application="info"/></div><div class=""> <action application="sleep" data="1000"/></div><div class=""> <action application="playback" data="/home/amani/projet/PFE/gg711.pcap.0xd2bd4e3e.wav"/></div><div class=""> </condition></div><div class=""></extension></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 > 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 > 192.168.3.1.sip: SIP: SIP/2.0 100 Trying</div><div class="">14:59:31.661679 IP 192.168.3.5.sip > 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 > 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 > 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 > 192.168.3.1.sip: SIP: SIP/2.0 100 Trying</div><div class="">14:59:38.508070 IP 192.168.3.5.sip > 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 > 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 > 192.168.3.1.sip: SIP: SIP/2.0 180 Ringing</div><div class="">14:59:52.073381 IP 192.168.3.5.sip > 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 > 192.168.3.1.sip: SIP: SIP/2.0 200 OK</div><div class="">15:00:02.028681 IP 192.168.3.1.sip > 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 > 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 > 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 nrmally FS code and decode the file using unknown codec</div><div class="">can you help me please sir ???</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">best regards </div><div class=""><br class=""></div><div class="">amani </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>