[asterisk-bugs] [Asterisk 0016654]: Possible problem with IAXVAR

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 21 13:09:00 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16654 
====================================================================== 
Reported By:                mtryfoss
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16654
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.1.13 
JIRA:                       SWP-777 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-20 03:16 CST
Last Modified:              2010-01-21 13:09 CST
====================================================================== 
Summary:                    Possible problem with IAXVAR
Description: 
A call comes in one a server. IAXVAR(call_id) is set on the IAX-channel.
Then a dial(Local/..) is done.

When trying to read out IAXVAR(call_id) on the local channel I only get
this:
<Local/115 at transcontext_220-4c7b;2>AGI Rx << GET VARIABLE IAXVAR(call_id)
<Local/115 at transcontext_220-4c7b;2>AGI Tx >> 200 result=1
(ÿÿÿÿ0010|343.6)

It was initially set this way (on the same server):
<IAX2/pbx7-5666>AGI Rx << SET VARIABLE "IAXVAR(call_id)"
"pbx3_1263978343.6"
<IAX2/pbx7-5666>AGI Tx >> 200 result=1

The value I get when I read the variable seems to be a mix of the last 5
on the iaxvar ("343.6") and the last 4 of the previously read variable
(0010): 
<Local/115 at transcontext_220-4c7b;2>AGI Rx << GET VARIABLE origcallerid
<Local/115 at transcontext_220-4c7b;2>AGI Tx >> 200 result=1 (38600010)

I don't know if this should be possible, but it would be nice if it was.
Anyway, the IAXVAR function should return empty or so if not.

====================================================================== 

---------------------------------------------------------------------- 
 (0117037) mtryfoss (reporter) - 2010-01-21 13:09
 https://issues.asterisk.org/view.php?id=16654#c117037 
---------------------------------------------------------------------- 
I've tried a lot now, but I can't reproduce the issue with crazy y's with
other code than some internal that I can't publish. Sorry for this.


However, this config will show that the IAX-variables is not kept through
an assisted transfer (I wrote blind transfer earlier, but that was wrong).
It's a stripped down version of my other code, not requiring any databases
and several AGI scripts.

[iaxvar_test]

exten => s,1,answer
exten => s,n,set(TRANSFER_CONTEXT=iaxvar_transfer)
exten => s,n,set(IAXVAR(test)=test123)
exten => s,n,dial(Local/my_number at outgoing/n,,t)

[iaxvar_transfer]

exten => 111,1,noop(${IAXVAR(test)})
exten => 111,n,wait(10)

I you call in to iaxvar_test and then do a blind transfer to '111' the
variable will containt the correct information.
But if you do an assisted transfer the variable will be blank.

All IAX and local channels should inherit the IAXVAR's ? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-21 13:09 mtryfoss       Note Added: 0117037                          
======================================================================




More information about the asterisk-bugs mailing list