Thanks for the {}.

 

That does set to cid value: Set("SIP/SIP_Provider-00000008", 
"{CALLERID(number)=4164445555") in new stack


But right after when I do (to see current caller ID value):

 

exten => s,n,NoOp(${CALLERID(number)} 

 

I get: NoOp("SIP/SIP_Provider-00000008", "4167778888") in new stack

 

I see my number 416-777-8888 and not the called number 416-444-5555 as the 
caller ID. This is starnge. Seems like variable ${CALLERID(number) is different 
from ${CALLERID(number)} which essentially the same.

 

-Bruce


 
> From: [email protected]
> Date: Thu, 11 Mar 2010 16:29:03 -0500
> CC: [email protected]
> To: [email protected]
> Subject: Re: [on-asterisk] Spool call file and variable setting - Dialplan 
> Gurus
> 
> exten => s,1,Set(${CALLERID(number)=$cid)
> 
> should be
> 
> exten => s,1,Set(${CALLERID(number)=${cid})
> 
> 
> ---
> 
> Andre Courchesne - Consultant
> 
> http://www.net-forces.com
> 
> MSN: [email protected]
> 
> Skype: VoipForces
> 
> 
> 
> L'information contenue dans le présent document est la propriété de Andre 
> Courchesne. Et est divulguée en toute confidentialité. Cette information ne 
> doit pas être utilisée, divulguée à d'autres personnes ou reproduite sans le 
> consentement écrit explicite de Andre Courchesne.
> 
> The information contained in this document is confidential and property of 
> Andre Courchesne. It shall not be used, disclosed to others or reproduced 
> without the express written consent of Andre Courchesne.
> 
> 
> 
> 
> 
> On 2010-03-11, at 4:12 PM, Bruce N wrote:
> 
> > 
> > Hi Guys,
> > 
> > 
> > 
> > What is the proper format for dialplan to set Caller ID when using spool 
> > outgoing call feature of Asterisk 1.6. 
> > 
> > 
> > 
> > This is my call file:
> > 
> > Channel: SIP/SIP_Provider/4164445555
> > CallerID: "My Number" <4167778888>
> > MaxRetries: 1
> > RetryTime: 10
> > WaitTime: 45
> > Context: hello-world
> > Extension: s
> > Priority: 1
> > Set: cid=4164445555
> > Archive: Yes
> > 
> > 
> > 
> > This is my context:
> > 
> > [hello-world]
> > exten => s,1,Set(${CALLERID(number)=$cid)
> > exten => s,n,Answer
> > 
> > exten => s,n,NoOp(${CALLERID(number))
> > exten => s,n,Playback(hello-world)
> > 
> > 
> > 
> > I want the hello-world context to see the call as coming into this context 
> > as 4164445555 since I passed the $cid variable but it doesn't happen. What 
> > is the proper format to this dialplan?
> > 
> > 
> > 
> > Thanks,
> > 
> > Bruce
> > 
> > _________________________________________________________________
> > Live connected with Messenger on your phone
> > http://go.microsoft.com/?linkid=9712958
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          
_________________________________________________________________
Take your contacts everywhere
http://go.microsoft.com/?linkid=9712959

Reply via email to