We have a client with Freepbx 14.0.13.26 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.
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.
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.