[Asterisk-Users] CALLERIDNAME/CALLERIDNUM Deprecation

Mark Hulber asterisk-admin at hulber.com
Wed Jan 18 18:55:21 MST 2006


I have an incoming call on one channel coming into asterisk, and I'm 
forwarding the call using Dial on several other channels such as to 
reach a cell phone and work.  I don't want the caller ID that has been 
assigned to the outbound SIP or IAX account to show up on the cell phone 
but the callerid of the original incoming caller.

MARK.

Kevin P. Fleming wrote:
> Mark Hulber wrote:
>
>> exten => s,n,Set(CALLERID(name)=${CALLERIDNAME})
>
> This could never have accomplished anything, since those two 
> references affect the exact same variable internally.
>
>> because I want the outgoing callerid that I forward to not be the 
>> normal callerid of the local extension but I want to forward the 
>> incoming callerid.  Now that CALLERIDNAME is deprecated, how do I 
>> differentiate between the CALLERID on the incoming channel and the 
>> callerid set on the outgoing channel?  The deprecation advice seems 
>> to suggest that I change my set statement to:
>>
>> exten => s,n,Set(CALLERID(name)=CALLERID(name))
>
> You'll have to more clearly define what you want to accomplish; 
> normally, the Dial() application sets the CLID/CNAM info on the 
> outgoing channel based on what is present on the channel placing the 
> call.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list