Asterisk utterly confused over 2 IAX trunks?
Posted on 2006-04-29
Well, after 6-hours and no luck, figured it was time to turn here. This in on asterisk@home 1.2.6. The problem is pretty simple. As you’ll observe below, I have two trunks from the same provider. Ones my regular number and the other an 888 toll free number.
The problem is, now that I’ve added the 888 trunk, Asterisk “WILL NOT” stop processing after hitting the first context. It continues onto the 888 context, which results in ALL inbound calls claiming to originate from the 888 number. This appears in both the CLI and the log files. In other words, call the 3125551212 number and all you see is IAX2/8885551212 scrolling down the CLI. I should only be seeing this IF I call my 888 number.
So what’re really happening? Have a look at this small snippet showing the first 2 lines of the inbound process. In this case, I called the 312 number:
-- Executing Set("IAX2/8885551212", "FROM_DID=3125551212") in new stack
-- Executing Set("IAX2/8885551212", "FAX_RX=disabled") in new stack
-- A million more lines with IAX2/8885551212 showing as the dialed number...
So Wtf? If 3125551212 was dialed, then what’s 8885551212 doing in here? It seems Asterisk is utterly confused.
Here’s my Iax.conf:
What we need is some way to tell Asterisk to HALT processing once we’ve found a *Match* Does anyone know how to do this? I know how to do it Perl or even Procmail, but this?
I've tried endless experments with placing the above in different order --even placing the 888 number in an #include of its own, but no luck.
Any insight would be greatly appreciated,