[Home]

Summary:ASTERISK-03588: SetVar directive not functioning in callfiles
Reporter:zim (zim)Labels:
Date Opened:2005-02-25 12:53:52.000-0600Date Closed:2008-01-15 15:26:09.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:It appears that the SetVar directive for call files is not functioning in CVS-HEAD-02/25/05-13:44:29. It works in Asterisk CVS-v1-0-02/22/05-10:52:48.

****** ADDITIONAL INFORMATION ******

I'm using CVS-HEAD-02/25/05-13:44:29

The following context:
[BUG]
exten => s,1,Answer
exten => s,2,System(/bin/echo "VAR = ${VAR}" >> /var/spool/asterisk/test.log)
exten => s,3,Hangup

and the following call file:
Channel: SIP/19085551000@GATEWAY
Callerid: 19085551001
MaxRetries: 0
Context: BUG
Extension: s
Priority: 1
SetVar: VAR=myVariable

results in a /var/spool/asterisk/test.log of:
VAR =

whenever the file is placed into the outgoing spool directory.

while the same context and call file used in CVS-v1-0-02/22/05-10:52:48 results in the following log:
VAR = myVariable
Comments:By: Mark Spencer (markster) 2005-02-25 22:07:41.000-0600

Fixed in CVS head.

By: Digium Subversion (svnbot) 2008-01-15 15:26:09.000-0600

Repository: asterisk
Revision: 5083

U   trunk/apps/app_dial.c
U   trunk/pbx.c

------------------------------------------------------------------------
r5083 | markster | 2008-01-15 15:26:09 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix SetVar (bug ASTERISK-3588) and g + transfer (ASTERISK-3570)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5083