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?


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.

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…

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.

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.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.