prefixkit Ask an engineerAsk Support RU

Error reference · Asterisk

Asterisk: Call from 'trunk' (UDP:203.0.113.5:5060) to extension '74951234567' rejected because…

Call from 'trunk' (UDP:203.0.113.5:5060) to extension '74951234567' rejected because extension not found in context 'from-trunk'.

What it means

The call reached Asterisk and was matched to an endpoint, but the dialplan context of that endpoint has no extension for the dialled number.

Why it happens

  • The provider sends the number in another format: with +, with 8, without the country code, or your SIP login instead of the DID.
  • The endpoint points to a context that does not exist or is spelled differently.
  • Pattern without an underscore (_X. vs X.).

How to fix it

  1. Look at the number in the message and add an extension for exactly that format, or a catch-all _X. / _+X. in that context.
  2. Check context= of the endpoint (pjsip show endpoint trunk) and dialplan show from-trunk.
  3. Test patterns in the dialplan tester before reloading.

Useful tools

Dialplan pattern tester · Number normalizer

Other Asterisk errors

Idea?