[Asterisk-Users] Matching '*'
Peter Fern
pete at keypoint.com.au
Mon Feb 27 23:50:36 MST 2006
Use of '_.' is discouraged. In this case, '_[*X].' should work I think
Douglas Garstang wrote:
> I'm trying to find a way in extensions.conf to match ANYTHING dialled,
> including characters such as *.
> The following works for numbers...
>
> exten => _X.,1,AGI(script)
>
> but doesn't catch when someone dialls * first. I tried this:
>
> exten => _.,1,AGI(script)
>
> which catches when someone dials say, *123 for example, but after the
> AGI script terminates, Asterisk executes it again with the 'h'
> extension. So then I tried...
>
> exten => _.,1,AGI(script)
> exten => _.,2,Hangup()
>
> which doesn't work. So, what exten regex can I use that would catch
> anything dialled, or how can I stop Asterisk from executing the AGI
> script a second time when I use "_."?
>
> Thanks,
> Doug.
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>Asterisk-Users mailing list
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
More information about the asterisk-users
mailing list