[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 Sep 18 09:22:26 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/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:                     closed
Target Version:             1.6.x Version Tracker
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-05-01 15:59 CDT
Last Modified:              2009-09-18 09:22 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).
====================================================================== 

---------------------------------------------------------------------- 
 (0110978) lmadsen (administrator) - 2009-09-18 09:22
 https://issues.asterisk.org/view.php?id=15015#c110978 
---------------------------------------------------------------------- 
I'm closing this issue per mmichelson as he stated the func_redirecting
function will have the necessary information to perform this very same
functionality! It is in trunk, and since this is only a candidate for trunk
(and thus duplicate functionality) I'm going to close it.

Thanks for the patch though! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-18 09:22 lmadsen        Note Added: 0110978                          
2009-09-18 09:22 lmadsen        Status                   confirmed => closed 
2009-09-18 09:22 lmadsen        Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list