[asterisk-users] Prompting for number when CID number not sent?

Jared Smith jsmith at digium.com
Mon Oct 22 09:14:41 CDT 2007


On Sun, 2007-10-21 at 17:22 +0200, Vincent wrote:
> ;here, rewrite CID name by looking up CID # in database
> ;put CID name + number in variables
> ;exten => _[1-4],n,SetVar(cid=${callerid})
> ;send e-mail with CID name + number and link to WAV file to people in
> charge of selected software 

Instead of ${callerid} here (which probably isn't working for you
anyway), you probably want to use the CALLERID dialplan function to
retrieve the CallerID number, like this:

exten => _[1-4],n,Set(cid=${CALLERID(num)})


-- 
Jared Smith
Community Relations Manager
Digium, Inc.




More information about the asterisk-users mailing list