[asterisk-bugs] [Asterisk 0016711]: [patch] CHANNEL function cannot set OSP token for outbound IAX calls.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 27 11:39:17 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16711 
====================================================================== 
Reported By:                homesick
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   16711
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 243479 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-01-27 01:34 CST
Last Modified:              2010-01-27 11:39 CST
====================================================================== 
Summary:                    [patch] CHANNEL function cannot set OSP token for
outbound IAX calls.
Description: 
In the call scenarios where the inbound channel is not IAX, CHANNEL
function cannot set OSP token for the outbound IAX channel. The reason is
the CHANNEL function for the inbound channel does not support "osptoken"
parameter.

The idea to fix this bug is to set an inherited channel variable,
_IAX2OSPTOKEN. The outbound IAX channel will use it to set OSP token. It is
similar to SIPADDHEADER for SIP channel.

The patch removes acf_channel_write function and adds getting OSP token
from IAX2OSPTOKEN variable.
====================================================================== 

---------------------------------------------------------------------- 
 (0117251) svnbot (reporter) - 2010-01-27 11:39
 https://issues.asterisk.org/view.php?id=16711#c117251 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 243484

_U  branches/1.6.1/
U   branches/1.6.1/channels/chan_iax2.c
U   branches/1.6.1/funcs/func_channel.c

------------------------------------------------------------------------
r243484 | russell | 2010-01-27 11:39:16 -0600 (Wed, 27 Jan 2010) | 20
lines

Merged revisions 243482 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r243482 | russell | 2010-01-27 11:32:07 -0600 (Wed, 27 Jan 2010) | 13
lines
  
  Fix the ability to specify an OSP token for an outbound IAX2 call.
  
  When this patch was originally submitted, the code allowed for the token
to be
  set via a channel variable.  I decided that a cleaner approach would be
to
  integrate it into the CHANNEL() function.  Unfortunately, that is not a
suitable
  approach.  It's not possible to get the value set on the channel soon
enough
  using that method.  So, go back to the simple channel variable method.
  
  (closes issue https://issues.asterisk.org/view.php?id=16711)
  Reported by: homesick
  Patches:
        iax-svn.diff uploaded by homesick (license 91)
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-27 11:39 svnbot         Checkin                                      
2010-01-27 11:39 svnbot         Note Added: 0117251                          
======================================================================




More information about the asterisk-bugs mailing list