[asterisk-users] Strange dialplan matching issue

Stephen Davies stephen.l.davies at gmail.com
Wed Feb 11 22:57:54 CST 2009


Hi,

As others have mentioned, the 'n' is a pattern char.

I have a system that uses similar tricks to yours.  What I did about
this issue was to change the pattern match chars to be upper case
only.  Drop me a line if you want the patch.

Regards,
Steve

On 2/12/09, Chris Bagnall <lists at minotaur.cc> wrote:
> Greetings list,
>
> Wondering if anyone has come across this strange dialplan pattern matching
> issue before:
>
> I have a context defined as follows (the plus simply implies it follows on
> from an existing context in another #include - which, yes, has been included
> first):
> [privatedundi](+)
> exten => _hilton-2XX,1,Goto(hilton,${EXTEN:7},1)
>
> When dialling hilton-202 from another box via IAX2, I get:
> NOTICE[3727]: chan_iax2.c:8085 socket_process: Rejected connect attempt from
> <ip masked>, request 'hilton-202 at privatedundi' does not exist
>
> Changing the context to read as follows solves the problem immediately:
> [privatedundi](+)
> exten => hilton-201,1,Goto(hilton,${EXTEN:7},1)
> exten => hilton-202,1,Goto(hilton,${EXTEN:7},1)
> exten => hilton-203,1,Goto(hilton,${EXTEN:7},1)
>
> Dialling hilton-202 now works every time.
>
> The *really* strange thing is that I have a number of similar pattern
> matches, and all the others work fine, it's just this one that doesn't.
>
> The box in question is running 1.4.22, but I have had a similar issue in the
> past with a 1.2 box, so it does not appear to be version specific.
>
> Any thoughts?
>
> TIA.
>
> Regards,
>
> Chris
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>

-- 
Sent from my mobile device



More information about the asterisk-users mailing list