[asterisk-bugs] [Asterisk 0016403]: [patch] New option setvarout which sets channel variable for outbound channels to a peer

Asterisk Bug Tracker noreply at bugs.digium.com
Wed May 19 03:46:10 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16403 
====================================================================== 
Reported By:                fhackenberger
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16403
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                       SWP-1503 
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/441/ 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 233389 
Request Review:              
====================================================================== 
Date Submitted:             2009-12-07 04:46 CST
Last Modified:              2010-05-19 03:46 CDT
====================================================================== 
Summary:                    [patch] New option setvarout which sets channel
variable for outbound channels to a peer
Description: 
The setvar option in sip.conf sets channel variables for inbound channels
(calls from a peer to *), but not for outbound channels (calls to a peer).
This patch adds support for a new option "setvarout" which adds that
capability.

Usecase:
The automon feature writes the recording to a file which contains the
channel name. It is currently not possible to reliably parse the name of
the peer from the channel. Setting the channel variable
TOUCH_MONITOR_PREFIX before executing the Dial(...,10,wW) app does not
work, because you cannot discriminate whether the caller or the callee hit
the record button. Using setvarout it is possible to have a easily parsable
automon file, by setting the TOUCH_MONITOR_PREFIX to the name of the peer
for inbound and outbound channels.
====================================================================== 

---------------------------------------------------------------------- 
 (0122122) fhackenberger (reporter) - 2010-05-19 03:46
 https://issues.asterisk.org/view.php?id=16403#c122122 
---------------------------------------------------------------------- 
As far as I can remember, you can't solve the use case with a 'Set' in the
dialplan, because you need different values for TOUCH_MONITOR_PREFIX in the
two legs of the call. Otherwise you cannot differentiate a recording which
was initiated by the caller from a recoding initiated by the callee. A
differentiation is useful if you e-mail the recordings.

Still confusing, or did that clear it up? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-19 03:46 fhackenberger  Note Added: 0122122                          
======================================================================




More information about the asterisk-bugs mailing list