MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_sdp_message

Function get_sdp_message

modules/mediaproxy/mediaproxy.c:683–693  ·  view source on GitHub ↗

Get the SDP message from SIP message and check it's Content-Type Return values: 1 - success -1 - error in getting body or invalid content type -2 - empty message

Source from the content-addressed store, hash-verified

681// -1 - error in getting body or invalid content type
682// -2 - empty message
683static int
684get_sdp_message(struct sip_msg *msg, str *sdp)
685{
686 if (get_body(msg, sdp)!=0 || sdp->len==0)
687 return -2;
688
689 if (!check_content_type(msg))
690 return -1;
691
692 return 1;
693}
694
695
696// Return a str containing the line separator used in the SDP body

Callers 1

use_media_proxyFunction · 0.85

Calls 2

get_bodyFunction · 0.85
check_content_typeFunction · 0.70

Tested by

no test coverage detected