[asterisk-bugs] [Asterisk 0015015]: [patch] Patch that makes app_dial set channel variable DIVERTED_BY on 302 response

Asterisk Bug Tracker noreply at bugs.digium.com
Fri May 1 17:31:16 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=15015 
====================================================================== 
Reported By:                _brent_
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15015
Category:                   Applications/app_dial
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-01 15:59 CDT
Last Modified:              2009-05-01 17:31 CDT
====================================================================== 
Summary:                    [patch] Patch that makes app_dial set channel
variable DIVERTED_BY on 302 response
Description: 
I needed to know what username initiated a forward for authentication and
accounting purposes. This patch makes app_dial set the channel variable
${DIVERTED_BY} on the *new* channel (the result of the forward). The
variable can then be referenced in the dial plan and queried by AGI.

The variable is in the format tech/name. For example, if the SIP extension
1001 forwards the call, ${DIVERTED_BY} will be set to 'SIP/1001' (without
the quotes).
====================================================================== 

---------------------------------------------------------------------- 
 (0104046) _brent_ (reporter) - 2009-05-01 17:31
 http://bugs.digium.com/view.php?id=15015#c104046 
---------------------------------------------------------------------- 
The second patch doesn't change the functionality, but is a little more
clear in that it's taking the name from the *original* channel, not the
winning channel. The first patch can be deleted, please. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-01 17:31 _brent_        Note Added: 0104046                          
======================================================================




More information about the asterisk-bugs mailing list