Is there a way to adjust or disable maxptime?


We have a client with Freepbx with Asterisk 13.22.0 installed.

Their TELCO insist that we have to adjust maxptime value to 20 or to a multitude of 20, instead of the default 150. If we cannot they want us to completely disable maxptime.

Is there a way to adjust maxptime or disable it?


(Joshua C. Colp) #2

There’s no built in mechanism in either chan_sip or chan_pjsip to disable the setting of maxptime. Doing so would require code modification to remove it.

(Dave Burgess) #3

Not to split hairs, but isn’t there a way to set it on the PJ-SIP side in the *_custom.conf file? I vaguely remember this coming up and someone figuring out a [some_context] (+) section to fix it…

(Joshua C. Colp) #4

I suppose it is possible that the use of “allow=ulaw:20” may force the max packet size down to 20… but I haven’t tested it so don’t know if it would for sure.


Ok, I’ll try that and get back to you.

(Dave Burgess) #6

There’s a discussion involving @jcolp from four years ago that describes the same question. There are a couple of suggestions made in there, but the thread just stops with a report of success or failure.