Browse code

sdpops: rename new function get_sdp_address_family to sdp_get_address_family()

Henning Westerholt authored on 10/01/2019 22:24:29
Showing 2 changed files
... ...
@@ -573,21 +573,21 @@ if(sdp_get_line_startswith("$avp(mline)", "m=")) {
573 573
 </programlisting>
574 574
 		</example>
575 575
 	</section>
576
-	<section id="sdpops.f.get_sdp_address_family">
576
+	<section id="sdpops.f.sdp_get_address_family">
577 577
 			<title>
578
-		<function moreinfo="none">get_sdp_address_family()</function>
578
+		<function moreinfo="none">sdp_get_address_family()</function>
579 579
 			</title>
580 580
 			<para>
581 581
 			it helps to get IP address family at c line from sdp body.
582 582
 			it returns -1 on error , 4 for IP4 and 6 for IP6
583 583
 			</para>
584 584
 		<example>
585
-		<title><function>get_sdp_address_family</function>usage</title>
585
+		<title><function>sdp_get_address_family</function>usage</title>
586 586
 		<programlisting format="linespecific">
587 587
 	...
588 588
 	if(is_method("INVITE") && has_body("application/sdp")){
589 589
 
590
-		$avp(af) = get_sdp_address_family();
590
+		$avp(af) = sdp_get_address_family();
591 591
 		xlog("L_INFO","ADDRESS FAMILY OF SDP C line $avp(af) ");
592 592
 	}
593 593
 	...
... ...
@@ -65,7 +65,7 @@ static int w_sdp_get_line_startswith(sip_msg_t* msg, char *foo, char *bar);
65 65
 
66 66
 static int sdp_get_sess_version(sip_msg_t* msg, str* sess_version, int* sess_version_num);
67 67
 static int sdp_set_sess_version(sip_msg_t* msg, str* sess_version, int* sess_version_num);
68
-static int w_get_sdp_address_family(sip_msg_t* msg);
68
+static int w_sdp_get_address_family(sip_msg_t* msg);
69 69
 
70 70
 static int pv_get_sdp(sip_msg_t *msg, pv_param_t *param,
71 71
 		pv_value_t *res);
... ...
@@ -126,7 +126,7 @@ static cmd_export_t cmds[] = {
126 126
 		0, 0,  0, ANY_ROUTE},
127 127
 	{"sdp_get_line_startswith", (cmd_function)w_sdp_get_line_startswith,
128 128
 		2, fixup_none_spve,  0, ANY_ROUTE},
129
-	{"get_sdp_address_family", (cmd_function)w_get_sdp_address_family,
129
+	{"sdp_get_address_family", (cmd_function)w_sdp_get_address_family,
130 130
 			0, 0,  0, ANY_ROUTE},
131 131
 	{"bind_sdpops",                (cmd_function)bind_sdpops,
132 132
 		1, 0, 0, 0},
... ...
@@ -1004,7 +1004,7 @@ it helps to extract IP adress family at c line  from sdp
1004 1004
 			6 for  IP6
1005 1005
 
1006 1006
 */
1007
-static int w_get_sdp_address_family(sip_msg_t *msg){
1007
+static int w_sdp_get_address_family(sip_msg_t *msg){
1008 1008
 
1009 1009
 	sdp_session_cell_t* session;
1010 1010
 	int sdp_session_num;