<div dir="ltr">Hi, <div><br></div><div>You can find it in sofia.conf.xml <div><br></div><div>For ngrep, you need to have ngrep installed in your system </div><div><br></div><div>try &quot;yum install ngrep&quot; if you are using CentOS/RedHat and &quot;apt-get install ngrep&quot; if Ubuntu</div>

<div><br></div><div>Yes, you need to make a call, as you want to know which codecs are being carried from leg A to FS and FS to Log B</div><div><br></div><div><div dir="ltr">Regards,<br>Zohair Raza<div><br></div><div><br>

</div></div>
<br><br><div class="gmail_quote">On Thu, Dec 22, 2011 at 3:02 PM, Sherif Omran <span dir="ltr">&lt;<a href="mailto:sherifomran2000@yahoo.com">sherifomran2000@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hi Zohair,<br><br>In which file should i put this parameter  <br>&lt;param name=&quot;inbound-late-negotiation&quot; value=&quot;true&quot;/&gt;<br>

<pre>How does this command work<div class="im"><br><span>ngrep</span><span> -q -Wbyline &#39;&#39; port 5060 and host x.x.x.x</span></div></pre><div><br>Should i make a call and during the call type it?<br><br>kind regards,<br>

Sherif<br></div><pre><br></pre><br>--- On <b>Thu, 12/22/11, Zohair Raza <i>&lt;<a href="mailto:engineerzuhairraza@gmail.com" target="_blank">engineerzuhairraza@gmail.com</a>&gt;</i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">

<br>From: Zohair Raza &lt;<a href="mailto:engineerzuhairraza@gmail.com" target="_blank">engineerzuhairraza@gmail.com</a>&gt;<br>Subject: Re: [Freeswitch-users] how is codec selected<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

Date: Thursday, December 22, 2011, 9:00 AM<div><div class="h5"><br><br><div><div dir="ltr"><div>Hi, </div><div><br></div><div>You can set codec for a phone from dialplan using <span style="background-color:rgb(255,255,255);line-height:1.1em">absolute_codec_string parameter as stated in codec negotiation link.</span></div>



<div><span style="line-height:15px"><br></span></div><div><div>Trans-coding issues in case of G729 or G723 can be handled as: <a rel="nofollow" href="http://wiki.freeswitch.org/wiki/Sofia#sip_renegotiate_codec_on_reinvite" target="_blank">http://wiki.freeswitch.org/wiki/Sofia#sip_renegotiate_codec_on_reinvite</a></div>



<br></div><div><span style="line-height:15px">See </span><a rel="nofollow" href="http://wiki.freeswitch.org/wiki/Channel_Variables#Codec_Related" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#Codec_Related</a> for codec related variables.</div>



<div><br></div><div>Also, there is a configuration in internal and external profiles to define a list of codec in each profile which can be set in global configuration</div><div><a rel="nofollow" href="http://wiki.freeswitch.org/wiki/Config_external.xml" target="_blank">http://wiki.freeswitch.org/wiki/Config_external.xml</a>
</div><div><br></div><div><pre style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47,111,171);border-right-color:rgb(47,111,171);border-bottom-color:rgb(47,111,171);border-left-color:rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em;font-size:10px">

&lt;param name=&quot;codec-prefs&quot; value=&quot;$${outbound_codec_prefs}&quot;/&gt;</pre></div><div><br></div><div>you can see SIP dialogues on each phone IP to verify which codec are being offered </div><div><br></div>



<span>ngrep</span><span> -q -Wbyline &#39;&#39; port 5060 and host x.x.x.x</span><div><br></div><div> <br clear="all"><div dir="ltr">Regards,<br>Zohair Raza<div><br></div><div><div><br></div></div>
</div>
<div>On Thu, Dec 22, 2011 at 2:54 AM, Nandy Dagondon <span dir="ltr">&lt;<a rel="nofollow" href="http://mc/compose?to=gcd@i.ph" target="_blank">gcd@i.ph</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



it&#39;s found here:<br><a rel="nofollow" href="http://wiki.freeswitch.org/wiki/Codec_negotiation" target="_blank">http://wiki.freeswitch.org/wiki/Codec_negotiation</a><br clear="all"><br>hope this answers your question.<br>

<br><div>

<div><div>
On Thu, Dec 22, 2011 at 5:25 AM, Sherif Omran <span dir="ltr">&lt;<a rel="nofollow" href="http://mc/compose?to=sherifomran2000@yahoo.com" target="_blank">sherifomran2000@yahoo.com</a>&gt;</span> wrote:<br></div></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div>
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">hello ,<br><br>does anybody know how to set up the codec selection negotiation list in freeswitch? How can you know which codec has been selected for such a call and which codecs are offered from telephone A and B.<br>




<br>I am using log 7<br><br><br>thank you in advance<br><br>k.regards<br><font color="#888888">Sherif<br></font></td></tr></tbody></table><br></div></div>_________________________________________________________________________<br>




Professional FreeSWITCH Consulting Services:<br>
<a rel="nofollow" href="http://mc/compose?to=consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a rel="nofollow" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a rel="nofollow" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a rel="nofollow" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a rel="nofollow" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a rel="nofollow" href="http://mc/compose?to=consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a rel="nofollow" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a rel="nofollow" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a rel="nofollow" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a rel="nofollow" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>
</div><br></div></div>-----Inline Attachment Follows-----<div class="im"><br><br><div>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="http://mc/compose?to=consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>

<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>

<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>

<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>

</div></div></blockquote></td></tr></tbody></table><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>