<p dir="ltr">I know you can do this easyly with opensips </p>
<div class="gmail_quote">22 авг. 2015 г. 16:10 пользователь &quot;bhavik patel&quot; &lt;<a href="mailto:bhavikpatel14388@gmail.com">bhavikpatel14388@gmail.com</a>&gt; написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello Everyone,<br><br>I want to change ptime configuration. Will anyone  assist me to change ptime value 20 to 40 for codec PCMU,PCMA ?<br><br></div>FLow : <b>SIP-PHONE---Ptime(20)--&gt;FS server (Need to change Ptime to 40) ----------&gt;To Provider</b><br><div><br></div><div>NOTE : If I send 40 Ptime From SIP-PHONE then Call quality is Good but for this i need to change all phones&#39; ptime and I don&#39;t want to change it manually.So I need to change this From FS Side.<br></div><div><br>Currently I can see below log in freeswitch logs :<br><br>m=audio 8000 RTP/AVP 98 97 8 0 3 101<br>a=rtpmap:98 speex/16000<br>a=rtpmap:97 speex/8000<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:3 GSM/8000<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br>a=ptime:20<br>Dialplan: sofia/default/<a href="mailto:4602534812@192.168.1.26" target="_blank">4602534812@192.168.1.26</a> Action bridge(sofia/gateway/localgateway/001***)<br><br>m=audio 24716 RTP/AVP 8 101 13<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-16<br>a=ptime:20<br>a=sendrecv<br><br>I tried different solutions for this issue but no luck.<br><br>1. Add below line before Bridge Channel<br>  set(absolute_codec_string=PCMU@8000@40i,PCMA@8000@40i)<br> <br>2. Add below line before Bridge Channel<br> set(absolute_codec_string=PCMU at 8000@40i,PCMA at 8000@40i)<br> <br>3.Change below parameter in SIP profile<br>   1.outbound-codec-prefs=PCMU,PCMA to outbound-codec-prefs=PCMU@8000@@40i,PCMU@16000@@40i,PCMU@32000@@40i,PCMA@8000@40i,PCMA@16000@40i,PCMA@32000@40i<br>   <br>   2.outbound-codec-prefs=PCMU,PCMA,rtp-autofix-timing=false<br>   <br>   3.outbound-codec-prefs=PCMU,PCMA,absolute_codec_string=PCMU at 40i,PCMA at 40i,rtp-autofix-timing=false<br><br>   4.outbound-codec-prefs=PCMU at40i,PCMA at 40i<br>   <br>   5.outbound-codec-prefs=PCMU at 8000h@40i,PCMA at 8000h@40i,inbound-late-negotiation=false<br><br>   6.outbound-codec-prefs=G729,PCMU,PCMA,inbound-late-negotiation=false<br><br><br>Please point me where i am doing wrong.<br clear="all"><br><br>-- <br><div>Thanks,<br>Bhavik Patel<br><br></div>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div>