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.
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.