[Asterisk-Users] Changing caller id on transfer

Matt Riddell [NZ] matt.riddell at sineapps.com
Thu Mar 2 13:54:33 MST 2006


Cosmin Prund wrote:
> As usual, this is most likely a easy question, but here it goes any way:
> 
> How can I change the caller id on a transferred call so the called party
> knows the call has been transferred from a colleague and it's not coming
> directly from our outside lines?
> 
> The story goes like this:
> 1) Client calls. All phones ring.
> 2) Someone picks up the phone.
> 3) The phone gets transferred to someone.
> 4) The person that gets the transferred call sees the original caller id and
> doesn't know the call has been transferred. I'd like the person that gets
> the transfer to see the caller id with a digit prefix. Ex: Original
> caller-id: 0269123456; Caller id if the call has been transferred:
> 1*0269123456
> 
> I know I can use SetCallerId(1*${CALLERIDNUM}) but how do I know I'm doing a
> transfer and not calling someone?

You could do transfers for a number starting with 8 or whatever

So instead of transferring to 101 (the user's extension), you could
transfer to 8101.  Then:

exten => _8XXX,1,SetCallerId(1*${CALLERIDNUM})
exten => _8XXX,2,Goto(extensions,${EXTEN:1},1)

Please not that the SetCallerID has been deprecated and should be
replaced in versions >1.2 with:

Set(CALLERID(number)=1*${CALLERIDNUM})

-- 
Cheers,

Matt Riddell
_______________________________________________

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)



More information about the asterisk-users mailing list