[Asterisk-Users] add 0 (zero) to incoming callerID - how?

Michiel van Baak michiel at vanbaak.info
Wed Sep 21 22:20:24 MST 2005


On 16:46, Thu 22 Sep 05, Matt Riddell wrote:
> Michiel van Baak wrote:
> > On 02:57, Thu 22 Sep 05, Matt Riddell wrote:
> >>Tomasz Chmielewski wrote:
> >>
> >>>How can I manipulate the incoming callerID number (and add 0 before it)?
> >>
> >>exten => s,1,Answer()
> >>exten => s,2,SetCIDNum(0${CALLERIDNUM})
> >>exten => s,3,...
> > 
> > 
> > And when using CVS head this will become:
> > exten => s,1,Set(CALLERID(number)=0${CALLERIDNUM})
> > exten => s,2,.........
> 
> Now, which do you think looks nicest?  The newest and greatest?
> 
> Hmmmm....
> 
> -- 
> Cheers,
> 
> Matt Riddell

I love the new syntax.
In the stable you have:
SetCallerID
SetCIDNum
SetCIDName

compare that to:
Set(CALLERID(number)=0123456789)
Set(CALLERID(name)=My name)

;)
-- 
Michiel van Baak
http://michiel.vanbaak.info
michiel at vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Why is it drug addicts and computer afficionados are both called users?"




More information about the asterisk-users mailing list