[Asterisk-Users] RE: Q: Can I over-ride the value of ${CALLERIDNAME} ?

asterisk at draughon.org asterisk at draughon.org
Sat Jan 29 11:53:11 MST 2005


Folks,

	Many thanks to Howard Lowndes who helped solve this problem; I ended
up using SetCallerID() instead of SetCIDName() as Howard suggested. Although
SetCIDName() changed the value correctly, desk set CID displays displayed
either "unavailable" or "out of area" on incoming calls from my cell phone.
Here's what I ended up with:

...
exten => s/3125882300,1,SetCallerID("ROB CELL" <${CALLERIDNUM}>)
exten => s/3125882300,2,Goto(100,1)

exten => 100,1,Macro(exten_vm,Zap/1)
...

					Cheers,

					Rob

> -----Original Message-----
> Date: Fri, 28 Jan 2005 17:29:17 +1100
> From: Howard Lowndes <lannet at lannet.com.au>
> Subject: Re: [Asterisk-Users] Q: Can I over-ride the value of
> 	${CALLERIDNAME} ?
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> 	<asterisk-users at lists.digium.com>
> Message-ID: <1106893755.1271.30.camel at lan-255-17.lan.lannet.com.au>
> Content-Type: text/plain
> 
> On Fri, 2005-01-28 at 17:12, asterisk at draughon.org wrote:
> > Folks,
> > 
> > 	I'd like to change the value of ${CALLERIDNAME} for 
> incoming PSTN
> > calls from certain numbers, but haven't found a way that 
> works. The goal is
> > to provide more informative names on my phones' caller ID 
> displays--e.g., I
> > would prefer to display "ROB CELL" instead of "CELLULAR 
> CALL" when I call
> > home from my cell phone.
> > 
> > 	This is what I tried in the context which handles inbound PSTN
> > calls:
> > 
> > ...
> > exten => s/3125882300,1,SetVar(CALLERIDNAME="ROB CELL")
> 
> SetCIDName("ROB CELL")
> 
> > exten => s/3125882300,2,Goto(100,1)
> > 
> > exten => 100,1,Macro(exten_vm,Zap/1)
> > ...
> > 
> > The "exten_vm" macro context handles calls to extensions 
> equipped with voice
> > mail.
> > 
> > 	When I make a call from my cell phone, the telephone 
> caller ID unit
> > shows "CELLULAR CALL" instead of "ROB CELL".
> > 
> > 	Does anyone have any ideas?
> > 
> > 					Cheers,
> > 
> > 					Rob
> > 
> -- 
> Howard.
> LANNet Computing Associates;
> Your Linux people <http://www.lannetlinux.com>
 




More information about the asterisk-users mailing list