[asterisk-users] Calling '**1' through Asterisk

Henrik Østergaard Madsen Henrik at Ostergaard.net
Mon Jun 2 00:24:47 CDT 2008


Argh - you are perfectly right. I have been too far away from the
dialplan for too long ;-)

Thanks for the help!

/Henrik

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

>>





More information about the asterisk-users mailing list