[asterisk-users] blacklist/V* - using wildcard
Doug Lytle
support at drdos.info
Sat Apr 6 13:38:06 CDT 2013
Joseph wrote:
> exten => s,4,GotoIf($["${CALLERIDNUM}" = "V4*"]?blacklisted,s,1
I don't believe so, you'd have to assign a variable to the first 2
characters and test that variable for V4. i.e.
exten => s,1,Set(goaway=${CALLERID(number):0:2})
exten => s,n,GotoIf($["${goaway}" = "V4" ]?blacklisted,s,1)
exten => s,n,continue on with your normal processing
[blacklisted]
exten => s,1,Set(CDR(userfield)=Blacklisted)
exten => s,n,Zapateller(answer)
exten => s,n,Hangup(2)
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
More information about the asterisk-users
mailing list