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
  

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

Reply via email to