I am experiencing a strange issue. my inbound routes are working however 1 out of every 5 call fails. My did routes to an internal extension. on the fail calls I see the error
[2023-04-13 20:46:49] NOTICE[C-00000090]: chan_sip.c:26602 handle_request_invite: Call from '184.108.40.206 ’ (220.127.116.11:5060) to extension ‘+16023627646’ rejected because extension not found in context ‘from-trunk-sip-18.104.22.168’.
Scheduling destruction of SIP dialog ‘968ebe[email protected]’ in 32000 ms (Method: INVITE)strong text
Twilio sends calls from various IP addresses (load balancing, failover, etc.); see
The call sent from 22.214.171.124 succeeded but the one sent from 126.96.36.199 failed.
Normally, using a pjsip trunk, you would set Match (Permit) to 188.8.131.52/30 so calls from any of the four addresses would be recognized as belonging to the trunk.
However, you’re running an old system with Asterisk 13, when pjsip was not yet mature, so the trunk was set up with chan_sip. Is it feasible to upgrade to a system running at least Asterisk 16?
If not (you’re stuck with chan_sip), you could set up four trunks with different host= parameters, but otherwise identical including context=from-trunk.
ok completed the upgrade were do ia put the parameters 184.108.40.206/30 on the new pjsipturnk?
In pjsip Settings → Advanced for the trunk, you should see an entry
If that doesn’t appear, perhaps your version of Core is out of date.
ok upgraded to 16…I now have pjsip trunks, but I dont know how to configure it. I try creating a tunks and it did not work. pehaps I am not putting the values in the correct location
SIP Server Port should be left blank, or set to 5060. After changing that, report whether you can register. If you can but can’t call, try setting From Domain to the same value you have in SIP Server.
still no go i get an intercept from astirisk “All circuits are busy” If I disabel it and re-enable to old on it works. I know is something simple that I must be missing.
If registration ok, try setting From User to the same value as you have in Username. If no luck, paste a log including pjsip logger.
If registration falls, paste log of an attempt.
This error is everything you need to know. Show us that +16023627646 actually exists in this custom context you’re use
from-trunk-sip-220.127.116.11 because that’s the problem. Also why is all this chan_sip but I see chan_pjsip settings below?
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.