I am trying to SetCallerID to a variable I have defined. This obviously is wrong. It actually sets the caller ID to $NEWCALLERID. I have search through the examples on wiki but wasn't able to find something similar to see what I was doing wrong. Could someone tell me the correct way to SetCallerID to a defined variable? exten => 2125551212,5,SetCallerID({$NEWCALLERID}) exten => 2125551212,6,Noop(${CALLERID}) Actually shows $NEWCALLERID instead of the contents of $NEWCALLERID. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050310/d12a8c6c/attachment.htm
I see the problem, sorry for the post The $ in the wrong position. wrong exten => 7403134175,5,SetCallerID({$NEWCALLERID}) right exten => 7403134175,5,SetCallerID(${NEWCALLERID}) -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Steven Frazier Sent: Thursday, March 10, 2005 10:23 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] SetCallerID({$NEWCALLERID}) I am trying to SetCallerID to a variable I have defined. This obviously is wrong. It actually sets the caller ID to $NEWCALLERID. I have search through the examples on wiki but wasn't able to find something similar to see what I was doing wrong. Could someone tell me the correct way to SetCallerID to a defined variable? exten => 2125551212,5,SetCallerID({$NEWCALLERID}) exten => 2125551212,6,Noop(${CALLERID}) Actually shows $NEWCALLERID instead of the contents of $NEWCALLERID.
SetCallerID({$NEWCALLERID})should use ${NEWCALLERID} NOTE: $ come before { Foong -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Steven Frazier Sent: Friday, March 11, 2005 11:23 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] SetCallerID({$NEWCALLERID}) I am trying to SetCallerID to a variable I have defined. This obviously is wrong. It actually sets the caller ID to $NEWCALLERID. I have search through the examples on wiki but wasn't able to find something similar to see what I was doing wrong. Could someone tell me the correct way to SetCallerID to a defined variable? exten => 2125551212,5,SetCallerID({$NEWCALLERID}) exten => 2125551212,6,Noop(${CALLERID}) Actually shows $NEWCALLERID instead of the contents of $NEWCALLERID. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050310/2f80184a/attachment.htm
--- Steven Frazier <lists@futuresync.com> wrote:> I am trying to SetCallerID to a variable I have > defined. This obviously is > wrong. It actually sets the caller ID to > $NEWCALLERID. I have search > through the examples on wiki but wasn't able to find > something similar to > see what I was doing wrong. Could someone tell me > the correct way to > SetCallerID to a defined variable? > > exten => 2125551212,5,SetCallerID({$NEWCALLERID})--- snipped the rest --- Off-hand, not having actually tested this, I'd guess that you have the $ in the wrong place. Move it one character to the left. Cheers, Maya __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/