[asterisk-bugs] [Asterisk 0014592]: [patch] export the SIP peer username of the transferer

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 3 17:03:29 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14592 
====================================================================== 
Reported By:                klaus3000
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14592
Category:                   Channels/chan_sip/NewFeature
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-03 09:42 CST
Last Modified:              2009-03-03 17:03 CST
====================================================================== 
Summary:                    [patch] export the SIP peer username of the
transferer
Description: 
Hi!

When a blind transfer is initiated from a SIP, often the name of the
transferer is needed (e.g. billing, applying restrictions ...). Currently
there is a variable called SIPTRANSFER_REFERER which contains the value of
the Refered-By header - but this variable is not trustworthy, as the SIP
client can put anything into this variable.

Attached patch adds the variables SIPTRANSFERER_PEERNAME and
SIPTRANSFERER_USERNAME which contain the respective SIP username (peer or
user)
====================================================================== 

---------------------------------------------------------------------- 
 (0101153) klaus3000 (reporter) - 2009-03-03 17:03
 http://bugs.digium.com/view.php?id=14592#c101153 
---------------------------------------------------------------------- 
In general: no

Further question: using SIP_HEADER in the TRANSFER_CONTEXT - which message
does it use? REFER or initial INVITE ?

In case of REFER it may happen (only in certain scenarios) that the
username can also be found in the From header - but then the whole From
header must be parsed which is for sure not trivial, and you never now if
the From header contains the username at all.

So, why taking the approach parsing a header manually? The authoritative,
100 % correct information is in the sip_pvt structure of the transferer. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-03 17:03 klaus3000      Note Added: 0101153                          
======================================================================




More information about the asterisk-bugs mailing list