[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
Thu Sep 3 14:43:36 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-03 14:43 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0110175) oej (manager) - 2009-09-03 14:43
 https://issues.asterisk.org/view.php?id=15552#c110175 
---------------------------------------------------------------------- 
The only reliable packet to get information out of within the dialplan is
the latest INVITE message, where there's only a SDP body.

We can't possibly support getting information from any message sent during
a call, since there's no dialplan execution and no events, you will likely
miss whatever you want to grab. If you want to control SIP in that detail,
you propably will have to do it in a SIP proxy that handles every
transaction separately. Asterisk is not built that way.

I think integrating this will promise much more that we can or even want
to promise. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-03 14:43 oej            Note Added: 0110175                          
======================================================================




More information about the asterisk-bugs mailing list