[Asterisk-Users] GoToIf Regular Expression

Adam Robins arobins at PharmaCentra.com
Fri Nov 11 15:02:24 MST 2005


I am trying to test whether a callerid number is a valid ten digit
number.  I'm a total novice with regular expressions.
I've tried:

exten => s,n,GotoIf($[${CALLERIDNUM} : \d{10,10}]?label)

But CLI gives an error.  Can someone please show me what the correct
syntax would be to do this?

Thanks,
Adam

The contents of this email message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply email and delete this message and its attachments, if any.





More information about the asterisk-users mailing list