Module: kamailio
Branch: master
Commit: 5bccf99bbcaec9fc6742a6e303623a0e790459b8
URL:
https://github.com/kamailio/kamailio/commit/5bccf99bbcaec9fc6742a6e303623a0…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-01-10T23:24:29+01:00
sdpops: rename new function get_sdp_address_family to sdp_get_address_family()
---
Modified: src/modules/sdpops/doc/sdpops_admin.xml
Modified: src/modules/sdpops/sdpops_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5bccf99bbcaec9fc6742a6e303623a0…
Patch:
https://github.com/kamailio/kamailio/commit/5bccf99bbcaec9fc6742a6e303623a0…
---
diff --git a/src/modules/sdpops/doc/sdpops_admin.xml
b/src/modules/sdpops/doc/sdpops_admin.xml
index 91374eb489..6cd8a68f69 100644
--- a/src/modules/sdpops/doc/sdpops_admin.xml
+++ b/src/modules/sdpops/doc/sdpops_admin.xml
@@ -573,21 +573,21 @@ if(sdp_get_line_startswith("$avp(mline)", "m="))
{
</programlisting>
</example>
</section>
- <section id="sdpops.f.get_sdp_address_family">
+ <section id="sdpops.f.sdp_get_address_family">
<title>
- <function moreinfo="none">get_sdp_address_family()</function>
+ <function moreinfo="none">sdp_get_address_family()</function>
</title>
<para>
it helps to get IP address family at c line from sdp body.
it returns -1 on error , 4 for IP4 and 6 for IP6
</para>
<example>
- <title><function>get_sdp_address_family</function>usage</title>
+ <title><function>sdp_get_address_family</function>usage</title>
<programlisting format="linespecific">
...
if(is_method("INVITE") && has_body("application/sdp")){
- $avp(af) = get_sdp_address_family();
+ $avp(af) = sdp_get_address_family();
xlog("L_INFO","ADDRESS FAMILY OF SDP C line $avp(af) ");
}
...
diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c
index 6c692c338c..11d8d69c2a 100644
--- a/src/modules/sdpops/sdpops_mod.c
+++ b/src/modules/sdpops/sdpops_mod.c
@@ -65,7 +65,7 @@ static int w_sdp_get_line_startswith(sip_msg_t* msg, char *foo, char
*bar);
static int sdp_get_sess_version(sip_msg_t* msg, str* sess_version, int*
sess_version_num);
static int sdp_set_sess_version(sip_msg_t* msg, str* sess_version, int*
sess_version_num);
-static int w_get_sdp_address_family(sip_msg_t* msg);
+static int w_sdp_get_address_family(sip_msg_t* msg);
static int pv_get_sdp(sip_msg_t *msg, pv_param_t *param,
pv_value_t *res);
@@ -126,7 +126,7 @@ static cmd_export_t cmds[] = {
0, 0, 0, ANY_ROUTE},
{"sdp_get_line_startswith", (cmd_function)w_sdp_get_line_startswith,
2, fixup_none_spve, 0, ANY_ROUTE},
- {"get_sdp_address_family", (cmd_function)w_get_sdp_address_family,
+ {"sdp_get_address_family", (cmd_function)w_sdp_get_address_family,
0, 0, 0, ANY_ROUTE},
{"bind_sdpops", (cmd_function)bind_sdpops,
1, 0, 0, 0},
@@ -1004,7 +1004,7 @@ it helps to extract IP adress family at c line from sdp
6 for IP6
*/
-static int w_get_sdp_address_family(sip_msg_t *msg){
+static int w_sdp_get_address_family(sip_msg_t *msg){
sdp_session_cell_t* session;
int sdp_session_num;