[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 Nov 20 17:01:03 CST 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:                   Functions/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-410 
Regression:                 No 
Reviewboard Link:            
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-11-20 17:01 CST
====================================================================== 
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.
====================================================================== 

---------------------------------------------------------------------- 
 (0114086) klaus3000 (reporter) - 2009-11-20 17:01
 https://issues.asterisk.org/view.php?id=15552#c114086 
---------------------------------------------------------------------- 
Please not! The function is a generic to fetch any content type from body
(or multipart body) - not only SDP. 

In fact, probably the function is most used to fetch other content types
from the body. For example we use it to get and process the PIDF-LO out of
the INVITE - this is for example necessary for processing of the emergency
calls (see IETF's ECRIT architecture for more details)

Thus, please do not rename it to something the function is not used for.
The function is used to fetch a certain content type out of the BODY of SIP
INVITEs. As the function is only useful for SIP channels, and by no means
limited to SDP, I suggest to use the name SIP_BODY. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-20 17:01 klaus3000      Note Added: 0114086                          
======================================================================




More information about the asterisk-bugs mailing list