Matching spaces in CNAM (caller id name)?

zchrs
Joined: Tue 05 of Nov, 2013

Re: Matching spaces in CNAM (caller id name)?

Posted:Thu 07 of Nov, 2013 (21:18 UTC)
Actually it still does not work.
If anyone can give a hint as to how to match a name like "TOLL FREE" I will much appreciate it.

-C
zchrs
Joined: Tue 05 of Nov, 2013

Matching spaces in CNAM (caller id name)?

Posted:Tue 05 of Nov, 2013 (23:02 UTC)
HI all,
I'm very glad Asterisk 1.8 can now match on caller ID *name* however I have not been able to figure out how to match names with spaces in them - in extensions.ael, which I use exclusively.

I get a lot of callers from different numbers where the caller id name is something like 'TOLL FREE' or 'NORTH CAROLINA' - I want to send these to a telemarketer challenge (enter some numbers to proove you're human).

Any ideas?

I've tried things like this:

switch ("${CALLERID(name)}") { // tried with & without quotes
case TOLL FREE: goto tmtrap|s|begin; // syntax error
case "TOLL FREE": goto tmtrap|s|begin; // syntax error
case TOLL\ FREE: goto tmtrap|s|begin; // doesn't work
case TOLL_FREE: goto tmtrap|s|begin; // doesnt' work
}

Thanks!
-C