[Freeswitch-users] Change ptime value

bhavik patel bhavikpatel14388 at gmail.com
Sat Aug 22 14:09:16 MSD 2015


Hello Everyone,

I want to change ptime configuration. Will anyone  assist me to change
ptime value 20 to 40 for codec PCMU,PCMA ?

FLow : *SIP-PHONE---Ptime(20)-->FS server (Need to change Ptime to 40)
---------->To Provider*

NOTE : If I send 40 Ptime From SIP-PHONE then Call quality is Good but for
this i need to change all phones' ptime and I don't want to change it
manually.So I need to change this From FS Side.

Currently I can see below log in freeswitch logs :

m=audio 8000 RTP/AVP 98 97 8 0 3 101
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
Dialplan: sofia/default/4602534812 at 192.168.1.26 Action
bridge(sofia/gateway/localgateway/001***)

m=audio 24716 RTP/AVP 8 101 13
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

I tried different solutions for this issue but no luck.

1. Add below line before Bridge Channel
  set(absolute_codec_string=PCMU at 8000@40i,PCMA at 8000@40i)

2. Add below line before Bridge Channel
 set(absolute_codec_string=PCMU at 8000 at 40i,PCMA at 8000 at 40i)

3.Change below parameter in SIP profile
   1.outbound-codec-prefs=PCMU,PCMA to outbound-codec-prefs=PCMU at 8000
@@40i,PCMU at 16000@@40i,PCMU at 32000@@40i,PCMA at 8000@40i,PCMA at 16000
@40i,PCMA at 32000@40i

   2.outbound-codec-prefs=PCMU,PCMA,rtp-autofix-timing=false

   3.outbound-codec-prefs=PCMU,PCMA,absolute_codec_string=PCMU at 40i,PCMA
at 40i,rtp-autofix-timing=false

   4.outbound-codec-prefs=PCMU at40i,PCMA at 40i

   5.outbound-codec-prefs=PCMU at 8000h at 40i,PCMA at 8000h at 40i
,inbound-late-negotiation=false

   6.outbound-codec-prefs=G729,PCMU,PCMA,inbound-late-negotiation=false


Please point me where i am doing wrong.


-- 
Thanks,
Bhavik Patel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150822/8abd944d/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list