[asterisk-users] dialplan logic based on caller ID

François Delawarde fdelawarde at wirelessmundi.com
Thu Feb 1 09:14:32 MST 2007


Hello!

Is there any easy way to use the caller ID "display info" 
(CALLERID(name) in Asterisk) in dialplan just as we could use the number in:

exten => _X./67803287, 1, <action>

I have a SIP GSM device, and when a call comes in, it passes me the 
caller ID like so:

-- Sip message Header:
From: "67803287" <sip:gsm at 192.168.10.1>;tag=...

-- Asterisk variables:
CALLERID(num) = gsm
CALLERID(name) = 67803287


I would like to make a logic based on the caller id, that would also 
work in the case of zap devices that set variables like:
CALLERID(num) = 67803287
CALLERID(name) = ""

Anyone has a clue (without having to complicate things too much)?

Thank you,
François.


More information about the asterisk-users mailing list