On Sun, 28 Nov 2004, Brian West wrote: > ; make sure ring is set to default > exten => s,n,NoOp(${ALERT_INFO}) > exten => s,n,NoOp(${_ALERT_INFO}) > exten => s,n,SetVar(ALERT_INFO=Bellcore-r3) > exten => s,n,SetVar(_ALERT_INFO=Bellcore-r3) > exten => s,n,NoOp(${ALERT_INFO}) > exten => s,n,NoOp(${_ALERT_INFO}) > > Its very helpful if you actually set them to something. The existence of > the variable isn't enough.
What the original poster said was that even though he set the variables to nothing the observed effect was as if they still were set. And what you are saying is that it is not enough to assign an empty value to the variable to undo the effect of having set the ALERT_INFO? Fair enough. If my unserstanding is correct perhaps someone can add a note to the wiki? It is not totally obvious. Peter > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:asterisk-users- > > [EMAIL PROTECTED] On Behalf Of Trevor Peirce > > Sent: Sunday, November 28, 2004 4:36 AM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: [Asterisk-Users] SetVar ALERT_INFO > > > > Hello, > > > > I've got my dialplan configured to do a double ring when a customer > > service call comes in, and a normal ring when an extension is dialed > > directly. When a customer service call is transferred, I want to ring > > to revert back to normal. > > > > In the local extension macro, I have the following > > > > > > ; make sure ring is set to default > > exten => s,n,NoOp(${ALERT_INFO}) > > exten => s,n,NoOp(${_ALERT_INFO}) > > exten => s,n,SetVar(ALERT_INFO=) > > exten => s,n,SetVar(_ALERT_INFO=) > > exten => s,n,NoOp(${ALERT_INFO}) > > exten => s,n,NoOp(${_ALERT_INFO}) > > > > When a call is transferred, here's what I see on the console > > > > -- Executing NoOp("Zap/1-1", "Bellcore-r3") in new stack > > -- Executing NoOp("Zap/1-1", "") in new stack > > -- Executing SetVar("Zap/1-1", "ALERT_INFO=") in new stack > > -- Executing SetVar("Zap/1-1", "_ALERT_INFO=") in new stack > > -- Executing NoOp("Zap/1-1", "") in new stack > > -- Executing NoOp("Zap/1-1", "") in new stack > > > > It appears as though both ALERT_INFO and _ALERT_INFO are not set. This > > isn't the case, however, because the party receiving the transferred > > call still hears the double ring. > > > > Now, I'm not sure if this is design or bug. I think I saw mention of > > the _ doing something special but I'm not sure where and see no mention > > of it in the wiki under SetVar. > > > > Pointers would be appreciated. > > > > Thanks, > > Trevor Peirce > > _______________________________________________ > > Asterisk-Users mailing list > > [EMAIL PROTECTED] > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > Peter -- Peter Svensson ! Pgp key available by finger, fingerprint: <[EMAIL PROTECTED]> ! 8A E9 20 98 C1 FF 43 E3 07 FD B9 0A 80 72 70 AF ------------------------------------------------------------------------ Remember, Luke, your source will be with you... always... _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users