asterisk@draughon.org
2005-Jan-27 23:12 UTC
[Asterisk-Users] Q: Can I over-ride the value of ${CALLERIDNAME} ?
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") 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 Lowndes
2005-Jan-27 23:29 UTC
[Asterisk-Users] Q: Can I over-ride the value of ${CALLERIDNAME} ?
On Fri, 2005-01-28 at 17:12, asterisk@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 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
asterisk@draughon.org
2005-Jan-29 11:53 UTC
[Asterisk-Users] RE: Q: Can I over-ride the value of ${CALLERIDNAME} ?
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@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@lists.digium.com> > Message-ID: <1106893755.1271.30.camel@lan-255-17.lan.lannet.com.au> > Content-Type: text/plain > > On Fri, 2005-01-28 at 17:12, asterisk@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>