Since upgrading my test system to Asterisk 16.17.0, I’ve had an issue twice now where chan_pjsip seems to stop processing some calls. The first time this happened, a particular endpoint couldn’t make outgoing calls, and I noticed a bunch of identical dead air call attempts were stacked up in “pjsip show channels” so I just restarted Asterisk and things started working again. Now, after several days of things working fine, this same endpoint can’t receive incoming calls.
With this endpoint that currently can’t receive calls, there are two scenarios happening. In the first scenario, when someone calls one of my DIDs, I see an INVITE come in through the Asterisk console and there is no acknowledgement sent back from chan_pjsip at all. The provider sends a few more invites before giving up (the CSeq remains the same on all invites).
The other scenario is that the provider sends me an INVITE and chan_pjsip sends back Trying, but doesn’t do anything else. Dial never gets executed (which is the first thing the dialplan should do for a call coming into this extension). Eventually my provider sends me a few CANCELs and PJSIP never sends an OK.
I’ve placed a few test calls over approximately a ten minute span, and these two scenarios continue to happen. I haven’t restarted Asterisk or PJSIP because this problem isn’t hurting anyone at the moment, but I will have to restart by the end of the day.
Does anyone know why this might be happening and what I might be able to do? I set this system up for testing and I definitely can’t switch my production system to 16 unless I can figure out how to resolve this.