[asterisk-users] Calling '**1' through Asterisk
Rob Hillis
rob at hillis.dyndns.org
Sun Jun 1 18:50:36 CDT 2008
Not a bug at all. "." as a pattern match means "1 or more digits" - so
your pattern match means ** followed by a digit between 0 and 9,
followed by one or more digits. Removing the "." means that you then
match **, followed by a digit between 0 and 9.
If you want to match ** followed by a digit between 1 and 9, followed by
zero or more digits, the use the extension pattern "_**X!". X matches
any digit from 0-9, so your pattern match is unnecessary. ! matches
zero or more digits.
Henrik Ostergaard Madsen wrote:
> I have now upgraded to the latest Asterisk 1.4.20.1 and add-ons 1.4.6 without any luck - so I
> started dismantling my dialplan.
>
> It seems that the incoming catch:
> exten => _**[1234567890].,1,NoOp(Incoming call to a quickdial number ${EXTEN})
> does NOT work with **1 - in stead of printing some debug, it just closes the channel without
> any warning, error or the like.. But it does work with **11!
>
> Changing it to
> exten => _**[1234567890],1,NoOp(Incoming call to a quickdial number ${EXTEN})
> makes it work (with **1 etc - not **11)
>
> - so I have made it do what I want, even as I still think it is a bug..
>
> /Henrik
>
> _______________________________________________
> -- 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
>
> !DSPAM:4843121e67795358292934!
>
>
>
More information about the asterisk-users
mailing list