IAX2 trunk: No such context/extension

I have created an IAX2 trunk between 2 systems, A200 (10.0.30.200) and A201 (10.0.30.201). The trunk is online on both sides, but when I call from A200 to A201 (my only use case for this trunk, so I can’t test A201 to A200), I get “No such context/extension” with a cause code of 3. The phone ringing just hears “all circuits are busy now”. I have looked this up online, and I have tried using peer/user configurations, register strings and using secrets but I have either not been able to get those to work or I get the same error message.

Configuration for A200:

[201-IAXpeer]
host=10.0.30.201
type=friend
qualify=yes
context=from-internal
trunk=yes
requirecalltoken=no

Configuration for A201:

(requirecalltoken=no is set in general)

[200-IAXpeer]
host=10.0.30.200
type=friend
context=from-internal
qualify=yes
trunk=yes

[200fpbx]
type=user
context=from-internal

How do I go about fixing this issue?

For that error you need to provide the part of extensions.conf that should have matched, and the Dial string used to originate the call.

Does ‘core set debug 99,’ core set verbose 99, and ‘iax2 set debug on’ yield any clues on either host?

Sorry about this, I’m very new to asterisk. I’m using the boilerplate to connect to NPSTN. Here its [from-internal] on A201 (the machine I am trying to make calls to)
[from-internal]
exten => 6,1,Answer()
same => n,Goto(dt,s,1)

Do I need to add anything here to get the extensions to dial?

The dialstring used in AS200 to reach AS201 (which is working) is 7|[XXXXXXX]

This is not a valid Asterisk dialstring, as it does not contain a technology.

Guessing that you mean “IAX2/” followed by a 7, an optionally a further seven digits, you need an extension using the pattern “_7.” on the receiving end, or more accurately, ones both 7, and “_7XXXXXXX”, to only match the exact lengths.

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