|
@@ -1323,6 +1323,26 @@ static int w_sdp_with_transport_like(sip_msg_t* msg, char* transport, char *bar)
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+static int ki_sdp_with_transport(sip_msg_t* msg, str* transport)
|
|
|
|
+{
|
|
|
|
+ if(sdp_with_transport(msg, transport, 0)<=0)
|
|
|
|
+ return -1;
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+static int ki_sdp_with_transport_like(sip_msg_t* msg, str* transport)
|
|
|
|
+{
|
|
|
|
+ if(sdp_with_transport(msg, transport, 1)<=0)
|
|
|
|
+ return -1;
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @brief remove streams matching the m=media port 'transport'
|
|
* @brief remove streams matching the m=media port 'transport'
|
|
* @return -1 - error; 0 - not found; >=1 - found
|
|
* @return -1 - error; 0 - not found; >=1 - found
|
|
@@ -2230,6 +2250,16 @@ static sr_kemi_t sr_kemi_sdpops_exports[] = {
|
|
{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
|
|
{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
|
|
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
},
|
|
},
|
|
|
|
+ { str_init("sdpops"), str_init("sdp_with_transport"),
|
|
|
|
+ SR_KEMIP_INT, ki_sdp_with_transport,
|
|
|
|
+ { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
|
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
|
+ },
|
|
|
|
+ { str_init("sdpops"), str_init("sdp_with_transport_like"),
|
|
|
|
+ SR_KEMIP_INT, ki_sdp_with_transport_like,
|
|
|
|
+ { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
|
|
|
|
+ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
|
|
|
|
+ },
|
|
{ str_init("sdpops"), str_init("sdp_get_line_startswith"),
|
|
{ str_init("sdpops"), str_init("sdp_get_line_startswith"),
|
|
SR_KEMIP_INT, ki_sdp_get_line_startswith,
|
|
SR_KEMIP_INT, ki_sdp_get_line_startswith,
|
|
{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
|
|
{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
|