Hi guys,
Sorry if this is a really basic question, but I'm fairly new to Asterisk and am
self-teaching so please go easy on me :)
Basically what I am trying to do is match 2 patterns in a conditional GotoIf.
The first condition is that the callerid(num) must end in '13'
The second condition is that the first two digits of callerid(num) must be one
of 66,77,88 or 99
eg. 9913 would match, but 9013 would not. 6613 would match, but 6612 would not.
What I have written come up with is below, but I just wanted to see if I was
going about this the right way, and that this expression would actually work...
exten => B,n,GotoIf($["${CALLERID(num):-2}" = "13"] & $["${CALLERID(num):0:2}"
= [5-9][5-9])?change_context)
Any advice/suggestions/flames welcome :)
Cheers
Calum
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not
the
intended recipient, you are notified that use or dissemination of this
communication is
strictly prohibited by Commonwealth law. If you have received this transmission
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232
3209 and
DELETE the message.
Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users