[asterisk-users] How to handle "+" prefix
Adrian Marsh
Adrian.Marsh at ubiquisys.com
Thu Aug 30 09:42:08 CDT 2007
Thanks James, worked a treat.
Is there a way of using variables within the dialplan, eg:
[globals]
SOMEVAR=0179344
[local]
exten => _${SOMEVAR}.,1,NoOp(Dialled own number)
I'm looking to catch our own PSTN numbers outbound should someone use the full PSTN number rather than the local extension number. Ideally I need to capture the international combinations too:
SOMEVAR=+44179344
And
SOMEVAR=0044179344
Is there regexp * in Asterisk ? :
exten => _.${SOMEVAR}.,1,NoOp(Dialled own number)
Adrian Marsh
More information about the asterisk-users
mailing list