[asterisk-users] Pattern Matching

Brent Davidson brent at texascountrytitle.com
Tue Dec 23 11:47:08 CST 2008


On my asterisk system, if an incoming call only has a number for the 
caller ID and no name, the system is using the channel name as in the 
Callerid Name field.  I would like to use some sort of pattern match 
test to test for the presence of "Zap/" in the ${CALLERID(name)} 
variable and if it is present, replace it with "Unknown".  I'm using the 
ael format for my dialplan and have been looking for a way to do this, 
but haven't found anything yet.  Is there a way to do this inside the 
dialplan or do I have to pass it out to an AGI script?



More information about the asterisk-users mailing list