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:[EMAIL PROTECTED]>;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.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to