[asterisk-bugs] [Asterisk 0015552]: [patch] SIP_BODY function to get a body part of a SIP message

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Sep 4 04:20:13 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15552 
====================================================================== 
Reported By:                khw
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15552
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 206090 
Request Review:              
====================================================================== 
Date Submitted:             2009-07-22 05:10 CDT
Last Modified:              2009-09-04 04:20 CDT
====================================================================== 
Summary:                    [patch] SIP_BODY function to get a body part of a
SIP message
Description: 
this patch adds the function SIP_BODY for chan_sip to get a body part by
its Content-Type. Therefore, the existing find_sdp() is generalized to
find_content() and find_sdp() calls find_content() with the parameter
"application/sdp". 

usage example: ${SIP_BODY(application/pidf+xml)} to get a PIDF document
from the SIP body.
====================================================================== 

---------------------------------------------------------------------- 
 (0110221) khw (reporter) - 2009-09-04 04:20
 https://issues.asterisk.org/view.php?id=15552#c110221 
---------------------------------------------------------------------- 
The SIP INVITE may contain a multipart body and not only SDP. Look at the
sample provided in
http://tools.ietf.org/html/draft-ietf-sipcore-location-conveyance-01#section-5.1
which shows that SDP and location information are included in the body of a
SIP INVITE. I think it could be interesting (not only for emergency calls)
to use the location of the caller provided in the INVITE in the dialplan. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-04 04:20 khw            Note Added: 0110221                          
======================================================================




More information about the asterisk-bugs mailing list