Prechádzať zdrojové kódy

misc/examples: add a space between comma and quote

Дилян Палаузов 2 rokov pred
rodič
commit
ab9bfb58f4
58 zmenil súbory, kde vykonal 281 pridanie a 281 odobranie
  1. 16 16
      misc/examples/ims/icscf/kamailio.cfg
  2. 13 13
      misc/examples/ims/pcscf/kamailio.cfg
  3. 9 9
      misc/examples/ims/pcscf/route/mo.cfg
  4. 6 6
      misc/examples/ims/pcscf/route/mt.cfg
  5. 3 3
      misc/examples/ims/pcscf/route/register.cfg
  6. 70 70
      misc/examples/ims/scscf/kamailio.cfg
  7. 1 1
      misc/examples/kamailio/acc-mysql.cfg
  8. 1 1
      misc/examples/kamailio/acc.cfg
  9. 1 1
      misc/examples/kamailio/fork.cfg
  10. 2 2
      misc/examples/kamailio/msilo.cfg
  11. 3 3
      misc/examples/kamailio/nathelper.cfg
  12. 2 2
      misc/examples/kamailio/pstn.cfg
  13. 1 1
      misc/examples/kamailio/replicate.cfg
  14. 1 1
      misc/examples/kamailio/serial_183.cfg
  15. 4 4
      misc/examples/kemi/kamailio-basic-kemi-jsdt.js
  16. 4 4
      misc/examples/kemi/kamailio-basic-kemi-lua.lua
  17. 5 5
      misc/examples/kemi/kamailio-basic-kemi-native.cfg
  18. 4 4
      misc/examples/kemi/kamailio-basic-kemi-python.py
  19. 4 4
      misc/examples/kemi/kamailio-basic-kemi-python3s.py
  20. 3 3
      misc/examples/kemi/kamailio-basic-kemi-ruby.rb
  21. 4 4
      misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
  22. 1 1
      misc/examples/mixed/acc.cfg
  23. 1 1
      misc/examples/mixed/dbtext.cfg
  24. 4 4
      misc/examples/mixed/kamailio-minimal-anycast.cfg
  25. 4 4
      misc/examples/mixed/kamailio-minimal-proxy.cfg
  26. 4 4
      misc/examples/mixed/msilo.cfg
  27. 1 1
      misc/examples/mixed/nathelper.cfg
  28. 1 1
      misc/examples/mixed/onr.cfg
  29. 2 2
      misc/examples/mixed/pstn.cfg
  30. 1 1
      misc/examples/mixed/replicate.cfg
  31. 1 1
      misc/examples/mixed/serial_183.cfg
  32. 8 8
      misc/examples/mixed/voicemail.cfg
  33. 1 1
      misc/examples/mixed/welcome.cfg
  34. 1 1
      misc/examples/obsoleted/backup.cfg
  35. 1 1
      misc/examples/obsoleted/bat.cfg
  36. 2 2
      misc/examples/obsoleted/blb.cfg
  37. 19 19
      misc/examples/obsoleted/imgw.cfg
  38. 1 1
      misc/examples/obsoleted/mobile66.cfg
  39. 1 1
      misc/examples/obsoleted/register.cfg
  40. 3 3
      misc/examples/obsoleted/secondary.cfg
  41. 1 1
      misc/examples/obsoleted/sms.cfg
  42. 9 9
      misc/examples/obsoleted/smsgw.cfg
  43. 3 3
      misc/examples/obsoleted/test.cfg
  44. 1 1
      misc/examples/obsoleted/tmtest.cfg
  45. 2 2
      misc/examples/obsoleted/to_fox.cfg
  46. 11 11
      misc/examples/obsoleted/use_jabs.cfg
  47. 2 2
      misc/examples/outbound/edge.cfg
  48. 2 2
      misc/examples/outbound/edge_websocket.cfg
  49. 3 3
      misc/examples/outbound/registrar.cfg
  50. 5 5
      misc/examples/pkg/kamailio-basic.cfg
  51. 5 5
      misc/examples/pkg/kamailio-oob.cfg
  52. 1 1
      misc/examples/pkg/sip-router-basic.cfg
  53. 3 3
      misc/examples/pkg/sip-router-oob.cfg
  54. 3 3
      misc/examples/pkg/sipcapture.cfg
  55. 4 4
      misc/examples/presence/full-no-failover.cfg
  56. 1 1
      misc/examples/presence/no-db.cfg
  57. 9 9
      misc/examples/webrtc/kamailio-default-websocket.cfg
  58. 2 2
      misc/scripts/serconf.sh

+ 16 - 16
misc/examples/ims/icscf/kamailio.cfg

@@ -155,14 +155,14 @@ modparam("jsonrpcs", "pretty_format", 1)
 modparam("rr", "enable_full_lr", 1)
 modparam("rr", "enable_full_lr", 1)
 
 
 # -- cdp params --
 # -- cdp params --
-modparam("cdp","config_file","/etc/kamailio_icscf/icscf.xml")
+modparam("cdp", "config_file", "/etc/kamailio_icscf/icscf.xml")
 
 
 # ----- icscf params -----
 # ----- icscf params -----
 # Comment the following line to enable realm routing
 # Comment the following line to enable realm routing
 #!ifdef CXDX_FORCED_PEER
 #!ifdef CXDX_FORCED_PEER
 modparam("ims_icscf", "cxdx_forced_peer", CXDX_FORCED_PEER)
 modparam("ims_icscf", "cxdx_forced_peer", CXDX_FORCED_PEER)
 #!endif
 #!endif
-modparam("ims_icscf","cxdx_dest_realm", NETWORKNAME)
+modparam("ims_icscf", "cxdx_dest_realm", NETWORKNAME)
 
 
 # DB-URL, where information about S-CSCF-Server can be found:
 # DB-URL, where information about S-CSCF-Server can be found:
 #!ifdef DB_URL2
 #!ifdef DB_URL2
@@ -173,11 +173,11 @@ modparam("ims_icscf", "db_url", DB_URL)
 
 
 #!ifdef PEERING
 #!ifdef PEERING
 # Route which is executed, in case HSS returned "User-Unknown" on LIR request
 # Route which is executed, in case HSS returned "User-Unknown" on LIR request
-modparam("ims_icscf","route_lir_user_unknown", "lir_term_user_unknown")
+modparam("ims_icscf", "route_lir_user_unknown", "lir_term_user_unknown")
 #!endif
 #!endif
 #!ifdef FALLBACK_AUTH
 #!ifdef FALLBACK_AUTH
 # Route which is executed, in case HSS returned "User-Unknown" on UAR request
 # Route which is executed, in case HSS returned "User-Unknown" on UAR request
-modparam("ims_icscf","route_uar_user_unknown", "uar_term_user_unknown")
+modparam("ims_icscf", "route_uar_user_unknown", "uar_term_user_unknown")
 #!endif
 #!endif
 
 
 #!ifdef WITH_TLS
 #!ifdef WITH_TLS
@@ -255,7 +255,7 @@ route{
 		# Shouldn't get here unless missconfigured (add more methods as initial) or
 		# Shouldn't get here unless missconfigured (add more methods as initial) or
 		# somebody is routing unknown messages
 		# somebody is routing unknown messages
 		append_to_reply("Allow: INVITE,SUBSCRIBE,MESSAGE,INFO,PUBLISH,CANCEL\r\n");
 		append_to_reply("Allow: INVITE,SUBSCRIBE,MESSAGE,INFO,PUBLISH,CANCEL\r\n");
-		send_reply("406","Initial Request Method not allowed at the I-CSCF");
+		send_reply("406", "Initial Request Method not allowed at the I-CSCF");
 		break;
 		break;
 	}
 	}
 }
 }
@@ -279,7 +279,7 @@ route[REQINIT] {
 	setflag(FLT_CAPTURE);
 	setflag(FLT_CAPTURE);
 #!endif
 #!endif
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 	if(!sanity_check("1511", "7")) {
 	if(!sanity_check("1511", "7")) {
@@ -351,7 +351,7 @@ route[register]
 		t_on_reply("register_reply");
 		t_on_reply("register_reply");
 		t_on_failure("register_failure");
 		t_on_failure("register_failure");
 		if (!t_relay()) {
 		if (!t_relay()) {
-			send_reply("500","Error forwarding towards S-CSCF");
+			send_reply("500", "Error forwarding towards S-CSCF");
 		}
 		}
        } else {
        } else {
 		#no S-CSCF list therefore must do UAR
 		#no S-CSCF list therefore must do UAR
@@ -359,7 +359,7 @@ route[register]
 		I_scscf_drop();
 		I_scscf_drop();
 		# Do an asynchronous UAR:
 		# Do an asynchronous UAR:
 		#0=REG/DEREG; 1=REG+Capabilities
 		#0=REG/DEREG; 1=REG+Capabilities
-                if (!I_perform_user_authorization_request("REG_UAR_REPLY","0")) {
+                if (!I_perform_user_authorization_request("REG_UAR_REPLY", "0")) {
 			send_reply("500", "Error in Request");
 			send_reply("500", "Error in Request");
 		}
 		}
 	}
 	}
@@ -426,7 +426,7 @@ failure_route[register_failure]
 			t_on_reply("register_reply");
 			t_on_reply("register_reply");
 			t_on_failure("register_failure");
 			t_on_failure("register_failure");
 			if (!t_relay()) {
 			if (!t_relay()) {
-				t_reply("500","Error forwarding towards next S-CSCF");
+				t_reply("500", "Error forwarding towards next S-CSCF");
 				break;
 				break;
 			}
 			}
 			break;
 			break;
@@ -461,7 +461,7 @@ route[LIR_REPLY] {
 			t_on_reply("initial_request_reply");
 			t_on_reply("initial_request_reply");
 			t_on_failure("initial_request_failure");
 			t_on_failure("initial_request_failure");
 			if (!t_relay()) {
 			if (!t_relay()) {
-				t_reply("500","Error forwarding towards S-CSCF");
+				t_reply("500", "Error forwarding towards S-CSCF");
 				break;
 				break;
 			}
 			}
 			break;
 			break;
@@ -503,7 +503,7 @@ failure_route[initial_request_failure]
 			t_on_reply("initial_request_reply");
 			t_on_reply("initial_request_reply");
 			t_on_failure("initial_request_failure");
 			t_on_failure("initial_request_failure");
 			if (!t_relay()) {
 			if (!t_relay()) {
-				t_reply("500","Error forwarding towards next S-CSCF");
+				t_reply("500", "Error forwarding towards next S-CSCF");
 				break;
 				break;
 			}
 			}
 			break;
 			break;
@@ -537,25 +537,25 @@ route[lir_term_user_unknown]
 			t_on_reply("initial_request_reply");
 			t_on_reply("initial_request_reply");
 			t_on_failure("initial_request_failure");
 			t_on_failure("initial_request_failure");
 			if (!t_relay()) {
 			if (!t_relay()) {
-				t_reply("500","Error forwarding to external domain");
+				t_reply("500", "Error forwarding to external domain");
 				exit;
 				exit;
 			};
 			};
 			exit;
 			exit;
 		} else {
 		} else {
-			t_reply("604","Does not exist anywhere - HSS User Unknown");
+			t_reply("604", "Does not exist anywhere - HSS User Unknown");
 			exit;
 			exit;
 		};
 		};
 	} else {
 	} else {
 		# we received a request for our domain (non-tel), but HSS said "User Unknown"
 		# we received a request for our domain (non-tel), but HSS said "User Unknown"
 		if ($rd != NETWORKNAME) { 
 		if ($rd != NETWORKNAME) { 
-			t_reply("604","Does not exist anywhere - HSS User Unknown");
+			t_reply("604", "Does not exist anywhere - HSS User Unknown");
 			exit;
 			exit;
 		} else {
 		} else {
 			# try to forward non-tel request to other domain
 			# try to forward non-tel request to other domain
 			t_on_reply("Initial_Request_reply");
 			t_on_reply("Initial_Request_reply");
 			t_on_failure("Initial_Request_failure");
 			t_on_failure("Initial_Request_failure");
 			if (!t_relay()) {
 			if (!t_relay()) {
-				t_reply("500","Error forwarding to external domain");
+				t_reply("500", "Error forwarding to external domain");
 				exit;
 				exit;
 			};
 			};
 			exit;
 			exit;
@@ -621,7 +621,7 @@ route[uar_term_user_unknown]
 	t_on_reply("register_reply");
 	t_on_reply("register_reply");
 	t_on_failure("register_failure");
 	t_on_failure("register_failure");
 	if (!t_relay()) {
 	if (!t_relay()) {
-		t_reply("500","Error forwarding towards S-CSCF");
+		t_reply("500", "Error forwarding towards S-CSCF");
 		break;
 		break;
 	}
 	}
 	break;	
 	break;	

+ 13 - 13
misc/examples/ims/pcscf/kamailio.cfg

@@ -274,12 +274,12 @@ modparam("htable", "htable", "a=>size=8;autoexpire=20")
 modparam("htable", "htable", "natping=>size=8;autoexpire=600000;")
 modparam("htable", "htable", "natping=>size=8;autoexpire=600000;")
 modparam("htable", "htable", "natpingfail=>size=8;autoexpire=600000;")
 modparam("htable", "htable", "natpingfail=>size=8;autoexpire=600000;")
 #!ifdef DB_URL2
 #!ifdef DB_URL2
-modparam("sqlops","sqlcon","pcscf=>cluster://cluster1")
+modparam("sqlops", "sqlcon", "pcscf=>cluster://cluster1")
 #!else
 #!else
-modparam("sqlops","sqlcon", SQLOPS_DBURL)
+modparam("sqlops", "sqlcon", SQLOPS_DBURL)
 #!endif
 #!endif
 
 
-modparam("uac","restore_mode","none")
+modparam("uac", "restore_mode", "none")
 
 
 # ----------------- Settings for RTimer ---------------
 # ----------------- Settings for RTimer ---------------
 # time interval set to 10 seconds
 # time interval set to 10 seconds
@@ -379,7 +379,7 @@ modparam("ims_ipsec_pcscf", "ipsec_server_port", IPSEC_SERVER_PORT)
 
 
 #!ifdef WITH_RX
 #!ifdef WITH_RX
 # -- CDP params --
 # -- CDP params --
-modparam("cdp","config_file","/etc/kamailio_pcscf/pcscf.xml")
+modparam("cdp", "config_file", "/etc/kamailio_pcscf/pcscf.xml")
 # -- diameter_rx params --
 # -- diameter_rx params --
 modparam("ims_qos", "rx_dest_realm", "NETWORKNAME")
 modparam("ims_qos", "rx_dest_realm", "NETWORKNAME")
 #!endif
 #!endif
@@ -474,11 +474,11 @@ route {
 	t_check_trans();
 	t_check_trans();
 
 
 	if (is_method("UPDATE")) {
 	if (is_method("UPDATE")) {
-		send_reply("403","Forbidden - Target refresh outside dialog not allowed");
+		send_reply("403", "Forbidden - Target refresh outside dialog not allowed");
 		break;
 		break;
 	}
 	}
 	if (is_method("BYE|PRACK")) {
 	if (is_method("BYE|PRACK")) {
-		send_reply("403","Forbidden - Originating subsequent requests outside dialog not allowed");
+		send_reply("403", "Forbidden - Originating subsequent requests outside dialog not allowed");
 		break;
 		break;
 	}
 	}
 
 
@@ -682,14 +682,14 @@ route[REQINIT] {
 			exit;
 			exit;
 		}
 		}
 		if (!pike_check_req()) {
 		if (!pike_check_req()) {
-			xlog("L_ALERT","ALERT: pike blocking $rm from $fu (IP:$si:$sp, $ua)\n");
+			xlog("L_ALERT", "ALERT: pike blocking $rm from $fu (IP:$si:$sp, $ua)\n");
 			xlog("Blocking traffic from $si\n");
 			xlog("Blocking traffic from $si\n");
 			$sht(ipban=>$si) = 1;
 			$sht(ipban=>$si) = 1;
 			exit;
 			exit;
 		}
 		}
 	}
 	}
         if ((uri == myself) && is_method("INVITE|REGISTER")) {
         if ((uri == myself) && is_method("INVITE|REGISTER")) {
-                xlog("L_ALERT","ALERT: Request to myself: $ru from $fu (IP:$si:$sp, $ua), Blocking\n");
+                xlog("L_ALERT", "ALERT: Request to myself: $ru from $fu (IP:$si:$sp, $ua), Blocking\n");
 		xlog("Blocking traffic from $si\n");
 		xlog("Blocking traffic from $si\n");
                 $sht(ipban=>$si) = 1;
                 $sht(ipban=>$si) = 1;
                 exit;
                 exit;
@@ -697,7 +697,7 @@ route[REQINIT] {
 #!endif
 #!endif
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -771,7 +771,7 @@ route[WITHINDLG] {
 					exit;
 					exit;
 				}
 				}
 			}
 			}
-			sl_send_reply("404","Not here");
+			sl_send_reply("404", "Not here");
 		}
 		}
 		exit;
 		exit;
 	}
 	}
@@ -789,7 +789,7 @@ failure_route[SBC_failure] {
 			else
 			else
 				$sht(failedauth=>$si) = 1;
 				$sht(failedauth=>$si) = 1;
 			if ($sht(failedauth=>$si) > 10) {
 			if ($sht(failedauth=>$si) > 10) {
-				xlog("L_ALERT","ALERT: blocking $rm from $fu (IP:$si:$sp), more than 5 failed auth requests!\n");
+				xlog("L_ALERT", "ALERT: blocking $rm from $fu (IP:$si:$sp), more than 5 failed auth requests!\n");
 				xlog("Blocking traffic from $si\n");
 				xlog("Blocking traffic from $si\n");
 				$sht(ipban=>$si) = 1;
 				$sht(ipban=>$si) = 1;
 			}
 			}
@@ -819,10 +819,10 @@ route[NOTIFY]
 {
 {
 	xlog("L_DBG", "IMS: INSIDE NOTIFY\n");
 	xlog("L_DBG", "IMS: INSIDE NOTIFY\n");
 	if (reginfo_handle_notify("location")) {
 	if (reginfo_handle_notify("location")) {
-		send_reply("200","OK - P-CSCF processed notification");
+		send_reply("200", "OK - P-CSCF processed notification");
 		break;
 		break;
 	} else {
 	} else {
-		t_reply("500","Error encountered while processing notification");
+		t_reply("500", "Error encountered while processing notification");
 		break;
 		break;
 	}
 	}
 }
 }

+ 9 - 9
misc/examples/ims/pcscf/route/mo.cfg

@@ -9,7 +9,7 @@ route[MO]
 	# Process route headers, if any:
 	# Process route headers, if any:
 	loose_route();
 	loose_route();
 	if (!pcscf_is_registered("location")) {
 	if (!pcscf_is_registered("location")) {
-		send_reply("403","Forbidden - You must register first with a S-CSCF");
+		send_reply("403", "Forbidden - You must register first with a S-CSCF");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -32,7 +32,7 @@ route[MO]
 
 
 	if (!pcscf_follows_service_routes("location")){
 	if (!pcscf_follows_service_routes("location")){
 		#Variant 1 - deny access to the network
 		#Variant 1 - deny access to the network
-		#send_reply("400","Bad Request - Not following indicated service routes");
+		#send_reply("400", "Bad Request - Not following indicated service routes");
 		#break;
 		#break;
 
 
 		#Variant 2 - enforce routes and let the dialog continue
 		#Variant 2 - enforce routes and let the dialog continue
@@ -110,12 +110,12 @@ onreply_route[MO_reply] {
                 	drop();
                 	drop();
 	        }
 	        }
 
 
-		xlog("L_DBG","Diameter: Orig authorizing media via Rx\n");	
+		xlog("L_DBG", "Diameter: Orig authorizing media via Rx\n");
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 
 
-		$var(aarret) = Rx_AAR("MO_aar_reply","orig","",-1);
+		$var(aarret) = Rx_AAR("MO_aar_reply", "orig", "", -1);
                 xlog("L_DBG", "AAR return code is $var(aarret)\n");
                 xlog("L_DBG", "AAR return code is $var(aarret)\n");
 
 
 		switch ($var(aarret)) {
 		switch ($var(aarret)) {
@@ -145,7 +145,7 @@ route[MO_aar_reply]
         #this is async so to know status we have to check the reply avp
         #this is async so to know status we have to check the reply avp
 	switch ($avp(s:aar_return_code)) {
 	switch ($avp(s:aar_return_code)) {
 		case 1:
 		case 1:
-			xlog("L_DBG", "Diameter: Orig AAR success on media authorization\n"); 
+			xlog("L_DBG", "Diameter: Orig AAR success on media authorization\n");
 			break;
 			break;
 		default:
 		default:
 			xlog("L_ERR", "IMS: AAR failed Orig\n");
 			xlog("L_ERR", "IMS: AAR failed Orig\n");
@@ -153,7 +153,7 @@ route[MO_aar_reply]
 	                xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
 	                xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
 	                xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
 	                xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
 			#comment this if you want to allow even if Rx fails
 			#comment this if you want to allow even if Rx fails
-	                if(dlg_get("$avp(CALLID_CUSTOM_AVP)","$avp(FTAG_CUSTOM_AVP)","$avp(TTAG_CUSTOM_AVP)")){
+	                if(dlg_get("$avp(CALLID_CUSTOM_AVP)", "$avp(FTAG_CUSTOM_AVP)", "$avp(TTAG_CUSTOM_AVP)")){
                         	dlg_terminate("all", "Sorry no QoS available");
                         	dlg_terminate("all", "Sorry no QoS available");
                        		exit;
                        		exit;
                		}
                		}
@@ -183,12 +183,12 @@ onreply_route[MO_indialog_reply] {
         	}
         	}
 
 
       		xlog("L_DBG", "IMS: ORIG_SUBSEQUENT reply. This is a 200 OK to a re-INVITE\n");
       		xlog("L_DBG", "IMS: ORIG_SUBSEQUENT reply. This is a 200 OK to a re-INVITE\n");
-		xlog("L_DBG","Diameter: Orig authorizing media via Rx\n");      
+		xlog("L_DBG", "Diameter: Orig authorizing media via Rx\n");
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 
 
-		$var(aarret) = Rx_AAR("MO_indialog_aar_reply","orig","",-1);
+		$var(aarret) = Rx_AAR("MO_indialog_aar_reply", "orig", "", -1);
 		xlog("L_DBG", "AAR return code is $var(aarret)\n");
 		xlog("L_DBG", "AAR return code is $var(aarret)\n");
 
 
 		switch ($var(aarret)) {
 		switch ($var(aarret)) {
@@ -226,7 +226,7 @@ route[MO_indialog_aar_reply]
                         xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
 			#comment this if you want to allow even if Rx fails
 			#comment this if you want to allow even if Rx fails
-                        if(dlg_get("$avp(CALLID_CUSTOM_AVP)","$avp(FTAG_CUSTOM_AVP)","$avp(TTAG_CUSTOM_AVP)")){
+                        if(dlg_get("$avp(CALLID_CUSTOM_AVP)", "$avp(FTAG_CUSTOM_AVP)", "$avp(TTAG_CUSTOM_AVP)")){
                                 dlg_terminate("all", "Sorry no QoS available");
                                 dlg_terminate("all", "Sorry no QoS available");
                                 exit;
                                 exit;
                         }
                         }

+ 6 - 6
misc/examples/ims/pcscf/route/mt.cfg

@@ -25,12 +25,12 @@ onreply_route[MT_reply] {
        		         drop();
        		         drop();
        		}
        		}
 
 
-		xlog("L_DBG","Diameter: Term authorizing media via Rx\n");	
+		xlog("L_DBG", "Diameter: Term authorizing media via Rx\n");
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 
 
-		$var(aarret) = Rx_AAR("MT_aar_reply","term","",-1);
+		$var(aarret) = Rx_AAR("MT_aar_reply", "term", "", -1);
 		xlog("L_DBG", "AAR return code is $var(aarret)\n");
 		xlog("L_DBG", "AAR return code is $var(aarret)\n");
 
 
 		 switch ($var(aarret)) {
 		 switch ($var(aarret)) {
@@ -70,7 +70,7 @@ route[MT_aar_reply]
                         xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
                         #comment this if you want to allow even if Rx fails
                         #comment this if you want to allow even if Rx fails
-                        if(dlg_get("$avp(CALLID_CUSTOM_AVP)","$avp(FTAG_CUSTOM_AVP)","$avp(TTAG_CUSTOM_AVP)")){
+                        if(dlg_get("$avp(CALLID_CUSTOM_AVP)", "$avp(FTAG_CUSTOM_AVP)", "$avp(TTAG_CUSTOM_AVP)")){
                                 dlg_terminate("all", "Sorry no QoS available");
                                 dlg_terminate("all", "Sorry no QoS available");
                                 exit;
                                 exit;
                         }
                         }
@@ -99,12 +99,12 @@ onreply_route[MT_indialog_reply] {
 		}
 		}
 
 
 		xlog("L_DBG", "IMS: TERM_SUBSEQUENT reply. This is a 200 OK to a re-INVITE\n");
 		xlog("L_DBG", "IMS: TERM_SUBSEQUENT reply. This is a 200 OK to a re-INVITE\n");
-		xlog("L_DBG","Diameter: Term authorizing media via Rx\n");      
+		xlog("L_DBG", "Diameter: Term authorizing media via Rx\n");
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(FTAG_CUSTOM_AVP)=$ft;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(TTAG_CUSTOM_AVP)=$tt;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 		$avp(CALLID_CUSTOM_AVP)=$ci;
 
 
-		$var(aarret) = Rx_AAR("MT_indialog_aar_reply","term","",-1);
+		$var(aarret) = Rx_AAR("MT_indialog_aar_reply", "term", "", -1);
 		xlog("L_DBG", "AAR return code is $var(aarret)\n");
 		xlog("L_DBG", "AAR return code is $var(aarret)\n");
 
 
 		switch ($var(aarret)) {
 		switch ($var(aarret)) {
@@ -142,7 +142,7 @@ route[MT_indialog_aar_reply]
                         xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
                         xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)");
                         #comment this if you want to allow even if Rx fails
                         #comment this if you want to allow even if Rx fails
-                        if(dlg_get("$avp(CALLID_CUSTOM_AVP)","$avp(FTAG_CUSTOM_AVP)","$avp(TTAG_CUSTOM_AVP)")){
+                        if(dlg_get("$avp(CALLID_CUSTOM_AVP)", "$avp(FTAG_CUSTOM_AVP)", "$avp(TTAG_CUSTOM_AVP)")){
                                 dlg_terminate("all", "Sorry no QoS available");
                                 dlg_terminate("all", "Sorry no QoS available");
                                 exit;
                                 exit;
                         }
                         }

+ 3 - 3
misc/examples/ims/pcscf/route/register.cfg

@@ -25,7 +25,7 @@ route[REGISTER] {
 		$ru = "sip:"+$rU+"@"+$rd;
 		$ru = "sip:"+$rU+"@"+$rd;
 
 
 #!ifdef WITH_RX	
 #!ifdef WITH_RX	
-	xlog("L_DBG","Subscribing to signalling bearer status\n");
+	xlog("L_DBG", "Subscribing to signalling bearer status\n");
 
 
 	Rx_AAR_Register("REG_AAR_REPLY", "location");
 	Rx_AAR_Register("REG_AAR_REPLY", "location");
 	switch ($retcode) {
 	switch ($retcode) {
@@ -187,7 +187,7 @@ failure_route[REGISTER_failure]
 		else
 		else
 			$sht(failedauth=>$si) = 1;
 			$sht(failedauth=>$si) = 1;
 		if ($sht(failedauth=>$si) > 10) {
 		if ($sht(failedauth=>$si) > 10) {
-			xlog("L_ALERT","ALERT: blocking $rm from $fu (IP:$si:$sp), more than 5 failed auth requests!\n");
+			xlog("L_ALERT", "ALERT: blocking $rm from $fu (IP:$si:$sp), more than 5 failed auth requests!\n");
 			xlog("Blocking traffic from $si\n");
 			xlog("Blocking traffic from $si\n");
 			$sht(ipban=>$si) = 1;
 			$sht(ipban=>$si) = 1;
 		}
 		}
@@ -195,7 +195,7 @@ failure_route[REGISTER_failure]
 	}
 	}
 #!endif
 #!endif
 	if (t_check_status("408")) {
 	if (t_check_status("408")) {
-		send_reply("504","Server Time-Out");
+		send_reply("504", "Server Time-Out");
 		update_stat("register_failed", "+1");
 		update_stat("register_failed", "+1");
 		exit;
 		exit;
 	}
 	}

+ 70 - 70
misc/examples/ims/scscf/kamailio.cfg

@@ -235,7 +235,7 @@ modparam("ims_registrar_scscf", "subscription_min_expires", 3700)
 modparam("ims_registrar_scscf", "subscription_max_expires", 605800)
 modparam("ims_registrar_scscf", "subscription_max_expires", 605800)
 
 
 # -- CDP params --
 # -- CDP params --
-modparam("cdp","config_file","/etc/kamailio_scscf/scscf.xml")
+modparam("cdp", "config_file", "/etc/kamailio_scscf/scscf.xml")
 
 
 # -- ims_dialog params --
 # -- ims_dialog params --
 modparam("ims_dialog", "dlg_flag", FLT_DIALOG)
 modparam("ims_dialog", "dlg_flag", FLT_DIALOG)
@@ -275,7 +275,7 @@ modparam("ims_auth", "cxdx_dest_realm", NETWORKNAME)
 modparam("ims_auth", "av_check_only_impu", 1)
 modparam("ims_auth", "av_check_only_impu", 1)
 
 
 #modparam("ims_auth", "auth_data_timeout", 5)
 #modparam("ims_auth", "auth_data_timeout", 5)
-modparam("ims_auth","auth_used_vector_timeout", 300)
+modparam("ims_auth", "auth_used_vector_timeout", 300)
 
 
 # -- ims_registrar_scscf params --
 # -- ims_registrar_scscf params --
 #!ifdef WITH_DEBUG
 #!ifdef WITH_DEBUG
@@ -289,7 +289,7 @@ modparam("ims_registrar_scscf", "max_expires",  604800)
 #!endif
 #!endif
 modparam("ims_registrar_scscf", "use_path", 1)
 modparam("ims_registrar_scscf", "use_path", 1)
 modparam("ims_registrar_scscf", "support_wildcardPSI",1)
 modparam("ims_registrar_scscf", "support_wildcardPSI",1)
-modparam("ims_registrar_scscf", "user_data_xsd","/etc/kamailio_scscf/CxDataType_Rel7.xsd")
+modparam("ims_registrar_scscf", "user_data_xsd", "/etc/kamailio_scscf/CxDataType_Rel7.xsd")
 modparam("ims_registrar_scscf", "scscf_name", URI)
 modparam("ims_registrar_scscf", "scscf_name", URI)
 modparam("ims_registrar_scscf", "scscf_name", URI)
 modparam("ims_registrar_scscf", "scscf_name", URI)
 modparam("ims_registrar_scscf", "cxdx_dest_realm", NETWORKNAME)
 modparam("ims_registrar_scscf", "cxdx_dest_realm", NETWORKNAME)
@@ -330,14 +330,14 @@ modparam("ims_charging", "ro_forced_peer", RO_FORCED_PEER);
 modparam("ims_charging", "destination_host", RO_DESTINATION);
 modparam("ims_charging", "destination_host", RO_DESTINATION);
 modparam("ims_charging", "destination_realm", NETWORKNAME);
 modparam("ims_charging", "destination_realm", NETWORKNAME);
 
 
-modparam("ims_charging","service_context_id_root", RO_ROOT);
-modparam("ims_charging","service_context_id_ext", RO_EXT);
-modparam("ims_charging","service_context_id_mnc", RO_MNC);
-modparam("ims_charging","service_context_id_mcc", RO_MCC);
-modparam("ims_charging","service_context_id_release", RO_RELEASE);
+modparam("ims_charging", "service_context_id_root", RO_ROOT);
+modparam("ims_charging", "service_context_id_ext", RO_EXT);
+modparam("ims_charging", "service_context_id_mnc", RO_MNC);
+modparam("ims_charging", "service_context_id_mcc", RO_MCC);
+modparam("ims_charging", "service_context_id_release", RO_RELEASE);
 
 
-modparam("ims_charging","interim_update_credits",30);
-modparam("ims_charging","timer_buffer",5);
+modparam("ims_charging", "interim_update_credits",30);
+modparam("ims_charging", "timer_buffer",5);
 #!endif
 #!endif
 
 
 # ----- enum params -----
 # ----- enum params -----
@@ -438,7 +438,7 @@ route {
                                 exit;
                                 exit;
 		        }
 		        }
 		} else {
 		} else {
-			sl_send_reply("403","Forbidden - Domain not served");
+			sl_send_reply("403", "Forbidden - Domain not served");
 			exit();
 			exit();
 		}
 		}
 		route(term);
 		route(term);
@@ -448,7 +448,7 @@ route {
 
 
 route[UNREG_SAR_REPLY]
 route[UNREG_SAR_REPLY]
 {
 {
-        xlog("L_DBG","saa_return code is $avp(s:saa_return_code)\n");
+        xlog("L_DBG", "saa_return code is $avp(s:saa_return_code)\n");
         switch ($avp(s:saa_return_code)){
         switch ($avp(s:saa_return_code)){
             case 1: #success
             case 1: #success
                     xlog("L_DBG", "SAR success - will route message\n");
                     xlog("L_DBG", "SAR success - will route message\n");
@@ -487,7 +487,7 @@ route[REQINIT] {
 #!endif
 #!endif
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -526,7 +526,7 @@ route[PUBLISH]
 {
 {
 	if (!t_newtran()) {
 	if (!t_newtran()) {
 		#absorb retransmissions
 		#absorb retransmissions
-		sl_reply("500","Could not create transaction");
+		sl_reply("500", "Could not create transaction");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -538,14 +538,14 @@ route[PUBLISH]
 				break;
 				break;
 			case -1: #failure
 			case -1: #failure
 				xlog("L_ERR", "Publish reg failure - sending 500 Error now\n");
 				xlog("L_ERR", "Publish reg failure - sending 500 Error now\n");
-				t_reply("500","Server Error publishing subscription");
+				t_reply("500", "Server Error publishing subscription");
 				break;
 				break;
 			default:
 			default:
 				xlog("L_ERR", "Unknown return code from publish reg event alue is [$var(ret)]\n");
 				xlog("L_ERR", "Unknown return code from publish reg event alue is [$var(ret)]\n");
 				break;
 				break;
 		}
 		}
 	} else {
 	} else {
-		t_reply("403","Forbidden to PUBLISH");
+		t_reply("403", "Forbidden to PUBLISH");
 		exit;
 		exit;
 	}
 	}
 }
 }
@@ -557,7 +557,7 @@ route[SUBSCRIBE]
 {
 {
         if (!t_newtran()) {    
         if (!t_newtran()) {    
                 #absorb retransmissions
                 #absorb retransmissions
-                sl_reply("500","Could not create transaction");
+                sl_reply("500", "Could not create transaction");
                 exit;
                 exit;
         }
         }
 
 
@@ -569,7 +569,7 @@ route[SUBSCRIBE]
                         exit;
                         exit;
                 }
                 }
                 if (!can_subscribe_to_reg("location")){
                 if (!can_subscribe_to_reg("location")){
-                        t_reply("403","Forbidden to SUBSCRIBE");
+                        t_reply("403", "Forbidden to SUBSCRIBE");
                         exit;
                         exit;
                 }
                 }
         }else{
         }else{
@@ -583,7 +583,7 @@ route[SUBSCRIBE]
 		        break;
 		        break;
 		case -1: #failure
 		case -1: #failure
 		        xlog("L_ERR", "Subscribe to reg failure - sending 500 Error now\n");
 		        xlog("L_ERR", "Subscribe to reg failure - sending 500 Error now\n");
-		        t_reply("500","Server Error saving subscription");
+		        t_reply("500", "Server Error saving subscription");
 		        break;
 		        break;
 		case -2: #error
 		case -2: #error
 		        xlog("L_ERR", "Subscribe to reg error sending notify - 200 OK so subscription already sent\n");
 		        xlog("L_ERR", "Subscribe to reg error sending notify - 200 OK so subscription already sent\n");
@@ -597,7 +597,7 @@ route[SUBSCRIBE]
 route[SUBSCRIBE_UNREG_SAR_REPLY]
 route[SUBSCRIBE_UNREG_SAR_REPLY]
 {
 {
         
         
-        xlog("L_DBG","saa_return code is $avp(s:saa_return_code)\n");
+        xlog("L_DBG", "saa_return code is $avp(s:saa_return_code)\n");
         switch ($avp(s:saa_return_code)){
         switch ($avp(s:saa_return_code)){
                 case 1: #success
                 case 1: #success
                         xlog("L_DBG", "SAR success - will process subscribe\n");
                         xlog("L_DBG", "SAR success - will process subscribe\n");
@@ -609,7 +609,7 @@ route[SUBSCRIBE_UNREG_SAR_REPLY]
                                         break;
                                         break;
                                 case -1: #failure
                                 case -1: #failure
                                         xlog("L_ERR", "Subscribe to reg failure - sending 500 Error now\n");
                                         xlog("L_ERR", "Subscribe to reg failure - sending 500 Error now\n");
-                                        t_reply("500","Server Error saving subscription");
+                                        t_reply("500", "Server Error saving subscription");
                                         break;
                                         break;
                                 case -2: #error
                                 case -2: #error
                                         xlog("L_ERR", "Subscribe to reg error sending notify - 200 OK so subscription already sent\n");
                                         xlog("L_ERR", "Subscribe to reg error sending notify - 200 OK so subscription already sent\n");
@@ -619,21 +619,21 @@ route[SUBSCRIBE_UNREG_SAR_REPLY]
                                         break;
                                         break;
                                 }
                                 }
                         }else{
                         }else{
-                                t_reply("403","Forbidden to SUBSCRIBE");
+                                t_reply("403", "Forbidden to SUBSCRIBE");
                                 exit;
                                 exit;
                         }
                         }
                         break;
                         break;
                 case -1: #failure
                 case -1: #failure
                         xlog("L_ERR", "SAR failure - Sending 403 Forbidden\n");
                         xlog("L_ERR", "SAR failure - Sending 403 Forbidden\n");
-                        t_reply("403","Forbidden to SUBSCRIBE");
+                        t_reply("403", "Forbidden to SUBSCRIBE");
                         break;
                         break;
                 case -2: #error
                 case -2: #error
                         xlog("L_ERR", "SAR error - Sending 403 Forbidden\n");
                         xlog("L_ERR", "SAR error - Sending 403 Forbidden\n");
-                        t_reply("403","Forbidden to SUBSCRIBE");
+                        t_reply("403", "Forbidden to SUBSCRIBE");
                         break;
                         break;
                 default:
                 default:
                         xlog("L_ERR", "Unknown return code from SAR, value is [$avp(s:saa_return_code)] - sending 403 Forbidden\n");
                         xlog("L_ERR", "Unknown return code from SAR, value is [$avp(s:saa_return_code)] - sending 403 Forbidden\n");
-                        t_reply("403","Forbidden to SUBSCRIBE");
+                        t_reply("403", "Forbidden to SUBSCRIBE");
                         break;
                         break;
         }
         }
         exit;
         exit;
@@ -695,7 +695,7 @@ route[REGISTER] {
                         exit;
                         exit;
                 } else {
                 } else {
                         #user has not been authenticated. Lets send a challenge via 401 Unauthorized
                         #user has not been authenticated. Lets send a challenge via 401 Unauthorized
-                        xlog("L_DBG","About to challenge! auth_ims\n");
+                        xlog("L_DBG", "About to challenge! auth_ims\n");
                         ims_www_challenge("REG_MAR_REPLY", "$td", "$var(alg)");
                         ims_www_challenge("REG_MAR_REPLY", "$td", "$var(alg)");
                         exit;
                         exit;
                 }
                 }
@@ -704,11 +704,11 @@ route[REGISTER] {
 		# We need to check if this user is registered or not
 		# We need to check if this user is registered or not
 		if (!impu_registered("location")) {
 		if (!impu_registered("location")) {
 			xlog("L_ERR", "Not REGISTERED\n");
 			xlog("L_ERR", "Not REGISTERED\n");
-			save("PRE_REG_SAR_REPLY","location");
+			save("PRE_REG_SAR_REPLY", "location");
                         exit;
                         exit;
 		} else {
 		} else {
-			isc_match_filter_reg("1","location");
-                        save("REG_SAR_REPLY","location");
+			isc_match_filter_reg("1", "location");
+                        save("REG_SAR_REPLY", "location");
                         exit;
                         exit;
 		}
 		}
 	}
 	}
@@ -717,7 +717,7 @@ route[REGISTER] {
 route[REG_MAR_REPLY]
 route[REG_MAR_REPLY]
 {
 {
      #this is async so to know status we have to check the reply avp
      #this is async so to know status we have to check the reply avp
-     xlog("L_DBG","maa_return code is $avp(s:maa_return_code)\n");   
+     xlog("L_DBG", "maa_return code is $avp(s:maa_return_code)\n");
 
 
      switch ($avp(s:maa_return_code)){
      switch ($avp(s:maa_return_code)){
              case 1: #success
              case 1: #success
@@ -740,13 +740,13 @@ route[REG_MAR_REPLY]
 
 
 route[PRE_REG_SAR_REPLY]
 route[PRE_REG_SAR_REPLY]
 {
 {
-    xlog("L_DBG","saa_return code is $avp(s:saa_return_code)\n");
+    xlog("L_DBG", "saa_return code is $avp(s:saa_return_code)\n");
         #this is async so to know status we have to check the reply avp
         #this is async so to know status we have to check the reply avp
-    xlog("L_DBG","saa_return code (for scscf_save on register) is $avp(s:saa_return_code)\n");
+    xlog("L_DBG", "saa_return code (for scscf_save on register) is $avp(s:saa_return_code)\n");
     switch ($avp(s:saa_return_code)){
     switch ($avp(s:saa_return_code)){
             case 1: #success
             case 1: #success
                    xlog("L_DBG", "SAR success - 200 response sent from module\n");
                    xlog("L_DBG", "SAR success - 200 response sent from module\n");
-                    isc_match_filter_reg("0","location");
+                    isc_match_filter_reg("0", "location");
                     exit;
                     exit;
             case -1: #failure
             case -1: #failure
                     xlog("L_ERR", "SAR failure - error response sent from module\n");
                     xlog("L_ERR", "SAR failure - error response sent from module\n");
@@ -763,9 +763,9 @@ route[PRE_REG_SAR_REPLY]
 
 
 route[REG_SAR_REPLY]
 route[REG_SAR_REPLY]
 {
 {
-    xlog("L_DBG","saa_return code is $avp(s:saa_return_code)\n");
+    xlog("L_DBG", "saa_return code is $avp(s:saa_return_code)\n");
     #this is async so to know status we have to check the reply avp
     #this is async so to know status we have to check the reply avp
-    xlog("L_DBG","saa_return code (for scscf_save on register) is $avp(s:saa_return_code)\n");
+    xlog("L_DBG", "saa_return code (for scscf_save on register) is $avp(s:saa_return_code)\n");
     switch ($avp(s:saa_return_code)){
     switch ($avp(s:saa_return_code)){
             case 1: #success
             case 1: #success
                    xlog("L_DBG", "SAR success - 200 response sent from module\n");
                    xlog("L_DBG", "SAR success - 200 response sent from module\n");
@@ -803,12 +803,12 @@ route[apply_privacy]
 ######################################################################
 ######################################################################
 route[orig]
 route[orig]
 {
 {
-	xlog("L_DBG","Enter orig route\n");
+	xlog("L_DBG", "Enter orig route\n");
 	set_dlg_profile("orig");
 	set_dlg_profile("orig");
 
 
 	# we MAYBE need something like this to check if a user is barred
 	# we MAYBE need something like this to check if a user is barred
 	# if (S_originating_barred()){
 	# if (S_originating_barred()){
-		# sl_send_reply("403","Forbidden - Originating Public Identity barred");
+		# sl_send_reply("403", "Forbidden - Originating Public Identity barred");
 		# exit;
 		# exit;
 	# }
 	# }
 
 
@@ -835,14 +835,14 @@ route[orig]
 #!ifdef WITH_RO
 #!ifdef WITH_RO
 	# before we allow call - lets check credit
 	# before we allow call - lets check credit
 	if (is_method("INVITE")) {
 	if (is_method("INVITE")) {
-		xlog("L_DBG","Sending initial CCR Request for call\n");
+		xlog("L_DBG", "Sending initial CCR Request for call\n");
 		$var(cc_ret) = Ro_CCR("CHARGING_CCR_ORIG_REPLY", "orig", 30, "0", "0");
 		$var(cc_ret) = Ro_CCR("CHARGING_CCR_ORIG_REPLY", "orig", 30, "0", "0");
 		if ($var(cc_ret) < 0) {
 		if ($var(cc_ret) < 0) {
-			xlog("L_ERR","CCR Request failure\n");
-			sl_send_reply("402","Payment required");
+			xlog("L_ERR", "CCR Request failure\n");
+			sl_send_reply("402", "Payment required");
 			exit;
 			exit;
 		}
 		}
-		xlog("L_DBG","CCR Request success\n");    
+		xlog("L_DBG", "CCR Request success\n");
 		exit;
 		exit;
 	}
 	}
 #!endif
 #!endif
@@ -863,7 +863,7 @@ route[FINAL_ORIG]
 
 
 route[CHARGING_CCR_ORIG_REPLY]
 route[CHARGING_CCR_ORIG_REPLY]
 {
 {
-        xlog("L_DBG","cca_return code is $avp(s:cca_return_code)\n");
+        xlog("L_DBG", "cca_return code is $avp(s:cca_return_code)\n");
 
 
         switch ($avp(s:cca_return_code)){
         switch ($avp(s:cca_return_code)){
             case 1: #success
             case 1: #success
@@ -886,7 +886,7 @@ route[CHARGING_CCR_ORIG_REPLY]
 				send_reply("486", "Line limit exceeded");
 				send_reply("486", "Line limit exceeded");
 		                break;
 		                break;
 			default:
 			default:
-				send_reply("402","Payment required ($avp(s:cca_result_code))");
+				send_reply("402", "Payment required ($avp(s:cca_result_code))");
 		                break;
 		                break;
 		}
 		}
             case -2: #error
             case -2: #error
@@ -907,7 +907,7 @@ route[CHARGING_CCR_ORIG_REPLY]
 ######################################################################
 ######################################################################
 onreply_route[orig_reply]
 onreply_route[orig_reply]
 {
 {
-	xlog("L_DBG","Orig reply\n");
+	xlog("L_DBG", "Orig reply\n");
 
 
 	route(apply_privacy);
 	route(apply_privacy);
 	break;
 	break;
@@ -918,7 +918,7 @@ onreply_route[orig_reply]
 ######################################################################
 ######################################################################
 route[orig_subsequent]
 route[orig_subsequent]
 {
 {
-	xlog("L_DBG","Orig_Subsequent\n");
+	xlog("L_DBG", "Orig_Subsequent\n");
 	
 	
 	if (!is_method("ACK")) {
 	if (!is_method("ACK")) {
 		t_on_reply("orig_subsequent_reply");
 		t_on_reply("orig_subsequent_reply");
@@ -931,7 +931,7 @@ route[orig_subsequent]
 ######################################################################
 ######################################################################
 onreply_route[orig_subsequent_reply]
 onreply_route[orig_subsequent_reply]
 {
 {
-	xlog("L_DBG","Orig_Subsequent_reply\n");
+	xlog("L_DBG", "Orig_Subsequent_reply\n");
 	route(apply_privacy);
 	route(apply_privacy);
 	break;
 	break;
 }
 }
@@ -941,12 +941,12 @@ onreply_route[orig_subsequent_reply]
 ######################################################################
 ######################################################################
 failure_route[isc_orig_failure]
 failure_route[isc_orig_failure]
 {
 {
-	xlog("L_DBG","ISC_Orig_failure\n");     
+	xlog("L_DBG", "ISC_Orig_failure\n");
 
 
 	if (t_check_status("(408)|(5..)")){
 	if (t_check_status("(408)|(5..)")){
 		t_on_failure("isc_orig_failure");   
 		t_on_failure("isc_orig_failure");   
-		if (isc_match_filter("orig","location")){
-			xlog("L_DBG","ISC_Orig_failure - msg was fwded to AS\n");
+		if (isc_match_filter("orig", "location")){
+			xlog("L_DBG", "ISC_Orig_failure - msg was fwded to AS\n");
 			exit;
 			exit;
 		}
 		}
 
 
@@ -966,13 +966,13 @@ failure_route[isc_orig_failure]
 ######################################################################
 ######################################################################
 route[term]
 route[term]
 {
 {
-	xlog("L_DBG","Term\n");
+	xlog("L_DBG", "Term\n");
 
 
 	set_dlg_profile("term");
 	set_dlg_profile("term");
 
 
 	#we need something like this to check if a user is barred
 	#we need something like this to check if a user is barred
 	# if (S_terminating_barred()){
 	# if (S_terminating_barred()){
-		# sl_send_reply("404","Not Found - Terminating user barred");
+		# sl_send_reply("404", "Not Found - Terminating user barred");
 		# exit;
 		# exit;
 	# }
 	# }
 
 
@@ -983,23 +983,23 @@ route[term]
 	}
 	}
 
 
 	# check if dialog saved as fwded to AS
 	# check if dialog saved as fwded to AS
-	if (isc_match_filter("term","location")){
+	if (isc_match_filter("term", "location")){
 		t_on_failure("isc_term_failure");
 		t_on_failure("isc_term_failure");
-		xlog("L_DBG","Term - msg was fwded to AS\n");
+		xlog("L_DBG", "Term - msg was fwded to AS\n");
 		exit;
 		exit;
 	}
 	}
 
 
 #!ifdef WITH_RO_TERM
 #!ifdef WITH_RO_TERM
 	# before we allow call - lets check credit
 	# before we allow call - lets check credit
 	if (is_method("INVITE")) {
 	if (is_method("INVITE")) {
-		xlog("L_DBG","Sending initial CCR Request for call\n");
+		xlog("L_DBG", "Sending initial CCR Request for call\n");
 		$var(cc_ret) = Ro_CCR("CHARGING_CCR_TERM_REPLY", "term", 30, "0", "0");
 		$var(cc_ret) = Ro_CCR("CHARGING_CCR_TERM_REPLY", "term", 30, "0", "0");
 		if ($var(cc_ret) < 0) {
 		if ($var(cc_ret) < 0) {
-			xlog("L_ERR","CCR Request failure\n");
-			sl_send_reply("402","Payment required");
+			xlog("L_ERR", "CCR Request failure\n");
+			sl_send_reply("402", "Payment required");
 			exit;
 			exit;
 		}
 		}
-		xlog("L_DBG","CCR Request success\n");    
+		xlog("L_DBG", "CCR Request success\n");
 		exit;
 		exit;
 	}
 	}
 #!endif
 #!endif
@@ -1013,7 +1013,7 @@ route[FINAL_TERM] {
 				sl_reply_error();
 				sl_reply_error();
 				exit;
 				exit;
 			}                              
 			}                              
-			t_reply("404","Not Found - destination user not found on this S-CSCF");
+			t_reply("404", "Not Found - destination user not found on this S-CSCF");
 			exit;
 			exit;
 		}
 		}
 	} else {
 	} else {
@@ -1022,7 +1022,7 @@ route[FINAL_TERM] {
 			sl_reply_error();
 			sl_reply_error();
 			exit;
 			exit;
 		}                              
 		}                              
-		t_reply("404","Not Found - destination user not found on this S-CSCF");
+		t_reply("404", "Not Found - destination user not found on this S-CSCF");
 		exit;
 		exit;
 	}
 	}
 	route(apply_privacy);
 	route(apply_privacy);
@@ -1033,7 +1033,7 @@ route[FINAL_TERM] {
 
 
 route[CHARGING_CCR_TERM_REPLY]
 route[CHARGING_CCR_TERM_REPLY]
 {
 {
-        xlog("L_DBG","cca_return code is $avp(s:cca_return_code)\n");
+        xlog("L_DBG", "cca_return code is $avp(s:cca_return_code)\n");
 
 
         switch ($avp(s:cca_return_code)){
         switch ($avp(s:cca_return_code)){
             case 1: #success
             case 1: #success
@@ -1056,7 +1056,7 @@ route[CHARGING_CCR_TERM_REPLY]
 				send_reply("486", "Line limit exceeded");
 				send_reply("486", "Line limit exceeded");
 		                break;
 		                break;
 			default:
 			default:
-				send_reply("402","Payment required ($avp(s:cca_result_code))");
+				send_reply("402", "Payment required ($avp(s:cca_result_code))");
 		                break;
 		                break;
 		}
 		}
             case -2: #error
             case -2: #error
@@ -1077,22 +1077,22 @@ route[CHARGING_CCR_TERM_REPLY]
 ######################################################################
 ######################################################################
 failure_route[isc_term_failure]
 failure_route[isc_term_failure]
 {
 {
-	xlog("L_DBG","ISC_term_failure\n");
+	xlog("L_DBG", "ISC_term_failure\n");
 
 
 	if (t_check_status("(408)|(5..)")){
 	if (t_check_status("(408)|(5..)")){
 		t_on_failure("isc_term_failure");       
 		t_on_failure("isc_term_failure");       
-		if (isc_match_filter("term","location")){
-			xlog("L_DBG","Term - msg was fwded to AS\n");    
+		if (isc_match_filter("term", "location")){
+			xlog("L_DBG", "Term - msg was fwded to AS\n");
 			exit;
 			exit;
 		}
 		}
 
 
 		if (lookup("location")) {
 		if (lookup("location")) {
 			if (uri==myself) {
 			if (uri==myself) {
-				t_reply("404","Not Found - destination user not found on this S-CSCF");
+				t_reply("404", "Not Found - destination user not found on this S-CSCF");
 				exit;
 				exit;
 			}
 			}
 		} else {
 		} else {
-			t_reply("404","Not Found - destination user not found on this S-CSCF");
+			t_reply("404", "Not Found - destination user not found on this S-CSCF");
 			exit;
 			exit;
 		}
 		}
 		t_relay();
 		t_relay();
@@ -1104,7 +1104,7 @@ failure_route[isc_term_failure]
 ######################################################################
 ######################################################################
 route[term_subsequent]
 route[term_subsequent]
 {
 {
-	xlog("L_DBG","term_subsequent\n");
+	xlog("L_DBG", "term_subsequent\n");
 	route(apply_privacy);
 	route(apply_privacy);
 	t_relay();
 	t_relay();
 }
 }
@@ -1119,7 +1119,7 @@ route[PSTN_handling]
 	# $fu:           sip:[email protected]
 	# $fu:           sip:[email protected]
 	# becomes $ru:   sip:[email protected];user=phone
 	# becomes $ru:   sip:[email protected];user=phone
 	if (!tel2sip("$ru", "$fd", "$ru"))
 	if (!tel2sip("$ru", "$fd", "$ru"))
-		xlog("L_WARN","Failed to convert $ru to a sip:-URI - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n\n");
+		xlog("L_WARN", "Failed to convert $ru to a sip:-URI - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n\n");
 
 
 	if ($rU =~ "\+[0-9]+") {
 	if ($rU =~ "\+[0-9]+") {
 		# Now let's check, if the number can be found in ENUM:
 		# Now let's check, if the number can be found in ENUM:
@@ -1157,7 +1157,7 @@ route[PSTN]
 
 
 	if ($var(has_trf) == 0) {
 	if ($var(has_trf) == 0) {
 		if (!ds_select_domain("1", "4")) {
 		if (!ds_select_domain("1", "4")) {
-			xlog("L_WARN","No PSTN-Gateways available - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n\n");
+			xlog("L_WARN", "No PSTN-Gateways available - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n\n");
 			send_reply("503", "Service not available");
 			send_reply("503", "Service not available");
 			exit;
 			exit;
 		}
 		}
@@ -1183,7 +1183,7 @@ failure_route[TRF_failure] {
 	if (t_branch_timeout() || t_check_status("[5-6]..")) {
 	if (t_branch_timeout() || t_check_status("[5-6]..")) {
 		$du = $null;
 		$du = $null;
 		if (!ds_select_domain("1", "4")) {
 		if (!ds_select_domain("1", "4")) {
-			xlog("L_WARN","No PSTN-Gateways available - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n\n");
+			xlog("L_WARN", "No PSTN-Gateways available - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n\n");
 			send_reply("503", "Service not available");
 			send_reply("503", "Service not available");
 			exit;
 			exit;
 		}
 		}

+ 1 - 1
misc/examples/kamailio/acc-mysql.cfg

@@ -148,7 +148,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	};
 	};
 
 

+ 1 - 1
misc/examples/kamailio/acc.cfg

@@ -35,7 +35,7 @@ route{
 	# filter too old messages
 	# filter too old messages
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	};
 	};
 	if (msg:len >=  2048 ) {
 	if (msg:len >=  2048 ) {

+ 1 - 1
misc/examples/kamailio/fork.cfg

@@ -51,7 +51,7 @@ route{
 failure_route[1] {
 failure_route[1] {
 	# forwarding failed -- try again at another destination 
 	# forwarding failed -- try again at another destination 
 	append_branch("sip:[email protected]");
 	append_branch("sip:[email protected]");
-	log(1,"first redirection\n");
+	log(1, "first redirection\n");
 	# if this alternative destination fails too, proceed to reply_route[2] 
 	# if this alternative destination fails too, proceed to reply_route[2] 
 	t_on_failure("2");
 	t_on_failure("2");
 	t_relay();
 	t_relay();

+ 2 - 2
misc/examples/kamailio/msilo.cfg

@@ -50,7 +50,7 @@ modparam("tm", "wt_timer", 10 )
 route{
 route{
 	if ( !mf_process_maxfwd_header("10") )
 	if ( !mf_process_maxfwd_header("10") )
 	{
 	{
-		sl_send_reply("483","To Many Hops");
+		sl_send_reply("483", "To Many Hops");
 		exit;
 		exit;
 	};
 	};
 
 
@@ -131,7 +131,7 @@ failure_route[1] {
 		exit;
 		exit;
 	};
 	};
 	
 	
-	log(1,"MSILO: the downstream UA does not support MESSAGE requests ...\n");
+	log(1, "MSILO: the downstream UA does not support MESSAGE requests ...\n");
 	# we have changed the R-URI with the contact address -- ignore it now
 	# we have changed the R-URI with the contact address -- ignore it now
 	if (m_store("$avp(i:11)"))
 	if (m_store("$avp(i:11)"))
 	{
 	{

+ 3 - 3
misc/examples/kamailio/nathelper.cfg

@@ -88,8 +88,8 @@ modparam("usrloc", "db_mode",   0)
 modparam("rr", "enable_full_lr", 1)
 modparam("rr", "enable_full_lr", 1)
 
 
 # !! Nathelper
 # !! Nathelper
-modparam("usrloc","nat_bflag",6)
-modparam("nathelper","sipping_bflag",8)
+modparam("usrloc", "nat_bflag", 6)
+modparam("nathelper", "sipping_bflag", 8)
 modparam("nathelper", "ping_nated_only", 1)   # Ping only clients behind NAT
 modparam("nathelper", "ping_nated_only", 1)   # Ping only clients behind NAT
 
 
 # -------------------------  request routing logic -------------------
 # -------------------------  request routing logic -------------------
@@ -101,7 +101,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	};
 	};
 	if (msg:len >=  2048 ) {
 	if (msg:len >=  2048 ) {

+ 2 - 2
misc/examples/kamailio/pstn.cfg

@@ -23,7 +23,7 @@ loadmodule "uri.so"
 
 
 # ----------------- setting module-specific parameters ---------------
 # ----------------- setting module-specific parameters ---------------
 
 
-modparam("auth_db", "db_url","mysql://kamailio:kamailiorw@localhost/kamailio")
+modparam("auth_db", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")
 modparam("auth_db", "calculate_ha1", yes)
 modparam("auth_db", "calculate_ha1", yes)
 modparam("auth_db", "password_column", "password")
 modparam("auth_db", "password_column", "password")
 
 
@@ -44,7 +44,7 @@ route{
 	# filter too old messages
 	# filter too old messages
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	};
 	};
 	if (msg:len >=  2048 ) {
 	if (msg:len >=  2048 ) {

+ 1 - 1
misc/examples/kamailio/replicate.cfg

@@ -39,7 +39,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwars==0, or excessively long requests
 	# max_forwars==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	};
 	};
 	if (msg:len >=  2048 ) {
 	if (msg:len >=  2048 ) {

+ 1 - 1
misc/examples/kamailio/serial_183.cfg

@@ -26,7 +26,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	};
 	};
 	if (msg:len >=  2048 ) {
 	if (msg:len >=  2048 ) {

+ 4 - 4
misc/examples/kemi/kamailio-basic-kemi-jsdt.js

@@ -17,7 +17,7 @@ var FLB_NATSIPPING=7
 // equivalent of request_route{}
 // equivalent of request_route{}
 function ksr_request_route()
 function ksr_request_route()
 {
 {
-	// KSR.sl.sl_send_reply(100,"Intelligent trying");
+	// KSR.sl.sl_send_reply(100, "Intelligent trying");
 	// KSR.info("===== request - from kamailio javascript script\n");
 	// KSR.info("===== request - from kamailio javascript script\n");
 
 
 	// per request initial checks
 	// per request initial checks
@@ -142,14 +142,14 @@ function ksr_route_reqinit()
 	}
 	}
 
 
 	if (KSR.maxfwd.process_maxfwd(10) < 0) {
 	if (KSR.maxfwd.process_maxfwd(10) < 0) {
-		KSR.sl.sl_send_reply(483,"Too Many Hops");
+		KSR.sl.sl_send_reply(483, "Too Many Hops");
 		KSR.x.exit();
 		KSR.x.exit();
 	}
 	}
 
 
 	if (KSR.is_OPTIONS()
 	if (KSR.is_OPTIONS()
 			&& KSR.is_myself_ruri()
 			&& KSR.is_myself_ruri()
 			&& KSR.corex.has_ruri_user() < 0) {
 			&& KSR.corex.has_ruri_user() < 0) {
-		KSR.sl.sl_send_reply(200,"Keepalive");
+		KSR.sl.sl_send_reply(200, "Keepalive");
 		KSR.x.exit();
 		KSR.x.exit();
 	}
 	}
 
 
@@ -265,7 +265,7 @@ function ksr_route_auth()
 	// a local destination, otherwise deny, not an open relay here
 	// a local destination, otherwise deny, not an open relay here
 	if ((!KSR.is_myself_furi())
 	if ((!KSR.is_myself_furi())
 			&& (!KSR.is_myself_ruri())) {
 			&& (!KSR.is_myself_ruri())) {
-		KSR.sl.sl_send_reply(403,"Not relaying");
+		KSR.sl.sl_send_reply(403, "Not relaying");
 		KSR.x.exit();
 		KSR.x.exit();
 	}
 	}
 
 

+ 4 - 4
misc/examples/kemi/kamailio-basic-kemi-lua.lua

@@ -120,7 +120,7 @@ function ksr_request_route()
 
 
 	if KSR.corex.has_ruri_user() < 0 then
 	if KSR.corex.has_ruri_user() < 0 then
 		-- request with no Username in RURI
 		-- request with no Username in RURI
-		KSR.sl.sl_send_reply(484,"Address Incomplete");
+		KSR.sl.sl_send_reply(484, "Address Incomplete");
 		return 1;
 		return 1;
 	end
 	end
 
 
@@ -190,14 +190,14 @@ function ksr_route_reqinit()
 	end
 	end
 
 
 	if KSR.maxfwd.process_maxfwd(10) < 0 then
 	if KSR.maxfwd.process_maxfwd(10) < 0 then
-		KSR.sl.sl_send_reply(483,"Too Many Hops");
+		KSR.sl.sl_send_reply(483, "Too Many Hops");
 		KSR.x.exit();
 		KSR.x.exit();
 	end
 	end
 
 
 	if KSR.is_OPTIONS()
 	if KSR.is_OPTIONS()
 			and KSR.is_myself_ruri()
 			and KSR.is_myself_ruri()
 			and KSR.corex.has_ruri_user() < 0 then
 			and KSR.corex.has_ruri_user() < 0 then
-		KSR.sl.sl_send_reply(200,"Keepalive");
+		KSR.sl.sl_send_reply(200, "Keepalive");
 		KSR.x.exit();
 		KSR.x.exit();
 	end
 	end
 
 
@@ -314,7 +314,7 @@ function ksr_route_auth()
 	-- a local destination, otherwise deny, not an open relay here
 	-- a local destination, otherwise deny, not an open relay here
 	if (not KSR.is_myself_furi())
 	if (not KSR.is_myself_furi())
 			and (not KSR.is_myself_ruri()) then
 			and (not KSR.is_myself_ruri()) then
-		KSR.sl.sl_send_reply(403,"Not relaying");
+		KSR.sl.sl_send_reply(403, "Not relaying");
 		KSR.x.exit();
 		KSR.x.exit();
 	end
 	end
 
 

+ 5 - 5
misc/examples/kemi/kamailio-basic-kemi-native.cfg

@@ -58,7 +58,7 @@ request_route {
 
 
 	if ($rU==$null) {
 	if ($rU==$null) {
 		# request with no Username in RURI
 		# request with no Username in RURI
-		sl_send_reply("484","Address Incomplete");
+		sl_send_reply("484", "Address Incomplete");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -105,7 +105,7 @@ route[REQINIT] {
 			exit;
 			exit;
 		}
 		}
 		if (!pike_check_req()) {
 		if (!pike_check_req()) {
-			xlog("L_ALERT","ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
+			xlog("L_ALERT", "ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
 			$sht(ipban=>$si) = 1;
 			$sht(ipban=>$si) = 1;
 			exit;
 			exit;
 		}
 		}
@@ -118,12 +118,12 @@ route[REQINIT] {
 	}
 	}
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
-		sl_send_reply("200","Keepalive");
+		sl_send_reply("200", "Keepalive");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -238,7 +238,7 @@ route[AUTH] {
 	# if caller is not local subscriber, then check if it calls
 	# if caller is not local subscriber, then check if it calls
 	# a local destination, otherwise deny, not an open relay here
 	# a local destination, otherwise deny, not an open relay here
 	if (from_uri!=myself && uri!=myself) {
 	if (from_uri!=myself && uri!=myself) {
-		sl_send_reply("403","Not relaying");
+		sl_send_reply("403", "Not relaying");
 		exit;
 		exit;
 	}
 	}
 
 

+ 4 - 4
misc/examples/kemi/kamailio-basic-kemi-python.py

@@ -106,7 +106,7 @@ class kamailio:
 
 
         if KSR.corex.has_ruri_user() < 0 :
         if KSR.corex.has_ruri_user() < 0 :
             # request with no Username in RURI
             # request with no Username in RURI
-            KSR.sl.sl_send_reply(484,"Address Incomplete")
+            KSR.sl.sl_send_reply(484, "Address Incomplete")
             return 1
             return 1
 
 
 
 
@@ -163,13 +163,13 @@ class kamailio:
                 return -255
                 return -255
 
 
         if KSR.maxfwd.process_maxfwd(10) < 0 :
         if KSR.maxfwd.process_maxfwd(10) < 0 :
-            KSR.sl.sl_send_reply(483,"Too Many Hops")
+            KSR.sl.sl_send_reply(483, "Too Many Hops")
             return -255
             return -255
 
 
         if (KSR.is_OPTIONS()
         if (KSR.is_OPTIONS()
                 and KSR.is_myself_ruri()
                 and KSR.is_myself_ruri()
                 and KSR.corex.has_ruri_user() < 0) :
                 and KSR.corex.has_ruri_user() < 0) :
-            KSR.sl.sl_send_reply(200,"Keepalive")
+            KSR.sl.sl_send_reply(200, "Keepalive")
             return -255
             return -255
 
 
         if KSR.sanity.sanity_check(17895, 7)<0 :
         if KSR.sanity.sanity_check(17895, 7)<0 :
@@ -276,7 +276,7 @@ class kamailio:
         # if caller is not local subscriber, then check if it calls
         # if caller is not local subscriber, then check if it calls
         # a local destination, otherwise deny, not an open relay here
         # a local destination, otherwise deny, not an open relay here
         if (not KSR.is_myself_furi()) and (not KSR.is_myself_ruri()) :
         if (not KSR.is_myself_furi()) and (not KSR.is_myself_ruri()) :
-            KSR.sl.sl_send_reply(403,"Not relaying")
+            KSR.sl.sl_send_reply(403, "Not relaying")
             return -255
             return -255
 
 
         return 1
         return 1

+ 4 - 4
misc/examples/kemi/kamailio-basic-kemi-python3s.py

@@ -87,7 +87,7 @@ def ksr_request_route():
 
 
     if KSR.corex.has_ruri_user() < 0 :
     if KSR.corex.has_ruri_user() < 0 :
         # request with no Username in RURI
         # request with no Username in RURI
-        KSR.sl.sl_send_reply(484,"Address Incomplete")
+        KSR.sl.sl_send_reply(484, "Address Incomplete")
         return 1
         return 1
 
 
 
 
@@ -151,13 +151,13 @@ def ksr_route_reqinit():
             return -255
             return -255
 
 
     if KSR.maxfwd.process_maxfwd(10) < 0 :
     if KSR.maxfwd.process_maxfwd(10) < 0 :
-        KSR.sl.sl_send_reply(483,"Too Many Hops")
+        KSR.sl.sl_send_reply(483, "Too Many Hops")
         return -255
         return -255
 
 
     if (KSR.is_OPTIONS()
     if (KSR.is_OPTIONS()
             and KSR.is_myself_ruri()
             and KSR.is_myself_ruri()
             and KSR.corex.has_ruri_user() < 0) :
             and KSR.corex.has_ruri_user() < 0) :
-        KSR.sl.sl_send_reply(200,"Keepalive")
+        KSR.sl.sl_send_reply(200, "Keepalive")
         return -255
         return -255
 
 
     if KSR.sanity.sanity_check(17895, 7)<0 :
     if KSR.sanity.sanity_check(17895, 7)<0 :
@@ -264,7 +264,7 @@ def ksr_route_auth():
     # if caller is not local subscriber, then check if it calls
     # if caller is not local subscriber, then check if it calls
     # a local destination, otherwise deny, not an open relay here
     # a local destination, otherwise deny, not an open relay here
     if (not KSR.is_myself_furi()) and (not KSR.is_myself_ruri()) :
     if (not KSR.is_myself_furi()) and (not KSR.is_myself_ruri()) :
-        KSR.sl.sl_send_reply(403,"Not relaying")
+        KSR.sl.sl_send_reply(403, "Not relaying")
         return -255
         return -255
 
 
     return 1
     return 1

+ 3 - 3
misc/examples/kemi/kamailio-basic-kemi-ruby.rb

@@ -61,7 +61,7 @@ def ksr_request_route()
 
 
   if KSR::COREX.has_ruri_user() < 0 then
   if KSR::COREX.has_ruri_user() < 0 then
     # request with no Username in RURI
     # request with no Username in RURI
-    KSR::SL.sl_send_reply(484,"Address Incomplete");
+    KSR::SL.sl_send_reply(484, "Address Incomplete");
     return;
     return;
   end
   end
 
 
@@ -130,7 +130,7 @@ def ksr_route_reqinit()
   end
   end
 
 
   if KSR::MAXFWD.process_maxfwd(10) < 0 then
   if KSR::MAXFWD.process_maxfwd(10) < 0 then
-    KSR::SL.sl_send_reply(483,"Too Many Hops");
+    KSR::SL.sl_send_reply(483, "Too Many Hops");
     exit
     exit
   end
   end
 
 
@@ -195,7 +195,7 @@ def ksr_route_auth()
 	# if caller is not local subscriber, then check if it calls
 	# if caller is not local subscriber, then check if it calls
 	# a local destination, otherwise deny, not an open relay here
 	# a local destination, otherwise deny, not an open relay here
 	if !KSR.is_myself_furi() && !KSR.is_myself_ruri() then
 	if !KSR.is_myself_furi() && !KSR.is_myself_ruri() then
-		KSR::SL.sl_send_reply(403,"Not relaying")
+		KSR::SL.sl_send_reply(403, "Not relaying")
 		exit
 		exit
   end
   end
 
 

+ 4 - 4
misc/examples/kemi/kamailio-basic-kemi-sqlang.sq

@@ -20,7 +20,7 @@ local FLAGS = {
 // equivalent of request_route{}
 // equivalent of request_route{}
 function ksr_request_route()
 function ksr_request_route()
 {
 {
-	// KSR.sl.sl_send_reply(100,"Intelligent trying");
+	// KSR.sl.sl_send_reply(100, "Intelligent trying");
 	// KSR.info("===== request - from kamailio SQLang script\n");
 	// KSR.info("===== request - from kamailio SQLang script\n");
 
 
 	// per request initial checks
 	// per request initial checks
@@ -145,14 +145,14 @@ function ksr_route_reqinit()
 	}
 	}
 
 
 	if (KSR.maxfwd.process_maxfwd(10) < 0) {
 	if (KSR.maxfwd.process_maxfwd(10) < 0) {
-		KSR.sl.sl_send_reply(483,"Too Many Hops");
+		KSR.sl.sl_send_reply(483, "Too Many Hops");
 		KSR.x.exit();
 		KSR.x.exit();
 	}
 	}
 
 
 	if (KSR.is_OPTIONS()
 	if (KSR.is_OPTIONS()
 			&& KSR.is_myself_ruri()
 			&& KSR.is_myself_ruri()
 			&& KSR.corex.has_ruri_user() < 0) {
 			&& KSR.corex.has_ruri_user() < 0) {
-		KSR.sl.sl_send_reply(200,"Keepalive");
+		KSR.sl.sl_send_reply(200, "Keepalive");
 		KSR.x.exit();
 		KSR.x.exit();
 	}
 	}
 
 
@@ -268,7 +268,7 @@ function ksr_route_auth()
 	// a local destination, otherwise deny, not an open relay here
 	// a local destination, otherwise deny, not an open relay here
 	if ((!KSR.is_myself_furi())
 	if ((!KSR.is_myself_furi())
 			&& (!KSR.is_myself_ruri())) {
 			&& (!KSR.is_myself_ruri())) {
-		KSR.sl.sl_send_reply(403,"Not relaying");
+		KSR.sl.sl_send_reply(403, "Not relaying");
 		KSR.x.exit();
 		KSR.x.exit();
 	}
 	}
 
 

+ 1 - 1
misc/examples/mixed/acc.cfg

@@ -32,7 +32,7 @@ route{
 	# filter too old messages
 	# filter too old messages
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {

+ 1 - 1
misc/examples/mixed/dbtext.cfg

@@ -71,7 +71,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {

+ 4 - 4
misc/examples/mixed/kamailio-minimal-anycast.cfg

@@ -201,7 +201,7 @@ request_route {
 
 
 	if ($rU==$null) {
 	if ($rU==$null) {
 		# request with no Username in RURI
 		# request with no Username in RURI
-		sl_send_reply("484","Address Incomplete");
+		sl_send_reply("484", "Address Incomplete");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -251,12 +251,12 @@ route[REQINIT] {
 	}
 	}
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
-		sl_send_reply("200","Keepalive");
+		sl_send_reply("200", "Keepalive");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -296,7 +296,7 @@ route[WITHINDLG] {
 			exit;
 			exit;
 		}
 		}
 	}
 	}
-	sl_send_reply("404","Not here");
+	sl_send_reply("404", "Not here");
 	exit;
 	exit;
 }
 }
 
 

+ 4 - 4
misc/examples/mixed/kamailio-minimal-proxy.cfg

@@ -175,7 +175,7 @@ request_route {
 
 
 	if ($rU==$null) {
 	if ($rU==$null) {
 		# request with no Username in RURI
 		# request with no Username in RURI
-		sl_send_reply("484","Address Incomplete");
+		sl_send_reply("484", "Address Incomplete");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -215,12 +215,12 @@ route[REQINIT] {
 	}
 	}
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
-		sl_send_reply("200","Keepalive");
+		sl_send_reply("200", "Keepalive");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -260,7 +260,7 @@ route[WITHINDLG] {
 			exit;
 			exit;
 		}
 		}
 	}
 	}
-	sl_send_reply("404","Not here");
+	sl_send_reply("404", "Not here");
 	exit;
 	exit;
 }
 }
 
 

+ 4 - 4
misc/examples/mixed/msilo.cfg

@@ -37,8 +37,8 @@ modparam("usrloc", "db_mode", 0)
 
 
 # -- msilo params --
 # -- msilo params --
 
 
-modparam("msilo","db_url","mysql://user:[email protected]/msilo")
-modparam("msilo","registrar","sip:[email protected]")
+modparam("msilo", "db_url", "mysql://user:[email protected]/msilo")
+modparam("msilo", "registrar", "sip:[email protected]")
 
 
 # -- tm params --
 # -- tm params --
 
 
@@ -50,7 +50,7 @@ modparam("tm", "wt_timer", 10 )
 route{
 route{
 	if ( !mf_process_maxfwd_header("10") )
 	if ( !mf_process_maxfwd_header("10") )
 	{
 	{
-		sl_send_reply("483","To Many Hops");
+		sl_send_reply("483", "To Many Hops");
 		drop();
 		drop();
 	};
 	};
 
 
@@ -126,7 +126,7 @@ failure_route[1] {
     	break;
     	break;
 	};
 	};
 	
 	
-	log(1,"MSILO: the downstream UA does not support MESSAGE requests ...\n");
+	log(1, "MSILO: the downstream UA does not support MESSAGE requests ...\n");
 	# we have changed the R-URI with the contact address -- ignore it now
 	# we have changed the R-URI with the contact address -- ignore it now
 	if (m_store("1"))
 	if (m_store("1"))
 	{
 	{

+ 1 - 1
misc/examples/mixed/nathelper.cfg

@@ -94,7 +94,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (msg:len >=  max_len ) {
 	if (msg:len >=  max_len ) {

+ 1 - 1
misc/examples/mixed/onr.cfg

@@ -47,7 +47,7 @@ route{
 failure_route[1] {
 failure_route[1] {
 	# forwarding failed -- try again at another destination 
 	# forwarding failed -- try again at another destination 
 	append_branch("sip:[email protected]");
 	append_branch("sip:[email protected]");
-	log(1,"first redirection\n");
+	log(1, "first redirection\n");
 	# if this alternative destination fails too, proceed to reply_route[2] 
 	# if this alternative destination fails too, proceed to reply_route[2] 
 	t_on_failure("2");
 	t_on_failure("2");
 	t_relay();
 	t_relay();

+ 2 - 2
misc/examples/mixed/pstn.cfg

@@ -20,7 +20,7 @@ loadmodule "modules/uri/uri.so"
 
 
 # ----------------- setting module-specific parameters ---------------
 # ----------------- setting module-specific parameters ---------------
 
 
-modparam("auth_db", "db_url","mysql://ser:heslo@localhost/ser")
+modparam("auth_db", "db_url", "mysql://ser:heslo@localhost/ser")
 modparam("auth_db", "calculate_ha1", yes)
 modparam("auth_db", "calculate_ha1", yes)
 modparam("auth_db", "password_column", "password")
 modparam("auth_db", "password_column", "password")
 
 
@@ -41,7 +41,7 @@ route{
 	# filter too old messages
 	# filter too old messages
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {

+ 1 - 1
misc/examples/mixed/replicate.cfg

@@ -36,7 +36,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwars==0, or excessively long requests
 	# max_forwars==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {

+ 1 - 1
misc/examples/mixed/serial_183.cfg

@@ -23,7 +23,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {

+ 8 - 8
misc/examples/mixed/voicemail.cfg

@@ -31,7 +31,7 @@ loadmodule "/home/srouter/sip_router/modules/vm/vm.so"
 	    
 	    
 # ----------------- setting module-specific parameters ---------------
 # ----------------- setting module-specific parameters ---------------
 
 
-modparam("vm", "db_url","mysql://ser:heslo@dbhost/ser")
+modparam("vm", "db_url", "mysql://ser:heslo@dbhost/ser")
 
 
 # -------------------------  request routing logic -------------------
 # -------------------------  request routing logic -------------------
 
 
@@ -43,7 +43,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwars==0, or excessively long requests
 	# max_forwars==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {
@@ -63,23 +63,23 @@ route{
 
 
 		if (!t_newtran()) {
 		if (!t_newtran()) {
 			log("could not create new transaction\n");
 			log("could not create new transaction\n");
-			sl_send_reply("500","could not create new transaction");
+			sl_send_reply("500", "could not create new transaction");
 			break;
 			break;
 		};
 		};
 
 
-		t_reply("100","Trying -- just wait a minute !");
+		t_reply("100", "Trying -- just wait a minute !");
 		if(method=="INVITE"){
 		if(method=="INVITE"){
 			log("**************** vm start - begin ******************\n");
 			log("**************** vm start - begin ******************\n");
-			if(!vm("/tmp/am_fifo","voicemail")){
+			if(!vm("/tmp/am_fifo", "voicemail")){
 				log("could not contact the answer machine\n");
 				log("could not contact the answer machine\n");
-				t_reply("500","could not contact the answer machine");
+				t_reply("500", "could not contact the answer machine");
 			};
 			};
 			log("**************** vm start - end ******************\n");
 			log("**************** vm start - end ******************\n");
 		} else if(method=="BYE"){
 		} else if(method=="BYE"){
 			log("**************** vm end - begin ******************\n");
 			log("**************** vm end - begin ******************\n");
-			if(!vm("/tmp/am_fifo","bye")){
+			if(!vm("/tmp/am_fifo", "bye")){
 				log("could not contact the answer machine\n");
 				log("could not contact the answer machine\n");
-				t_reply("500","could not contact the answer machine");
+				t_reply("500", "could not contact the answer machine");
 			};
 			};
 			log("**************** vm end - end ******************\n");
 			log("**************** vm end - end ******************\n");
 		};
 		};

+ 1 - 1
misc/examples/mixed/welcome.cfg

@@ -48,7 +48,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {

+ 1 - 1
misc/examples/obsoleted/backup.cfg

@@ -112,7 +112,7 @@ route{
 	log("LOG: Checking maxfwd\n");
 	log("LOG: Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 
 

+ 1 - 1
misc/examples/obsoleted/bat.cfg

@@ -68,7 +68,7 @@ route{
         log("Checking maxfwd\n");
         log("Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("Too many hops\n");
 		log("Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 
 

+ 2 - 2
misc/examples/obsoleted/blb.cfg

@@ -59,7 +59,7 @@ route{
     log("LOG: Checking maxfwd\n");
     log("LOG: Checking maxfwd\n");
     if (!mf_process_maxfwd_header("0")) {
     if (!mf_process_maxfwd_header("0")) {
         log("LOG: Too many hops\n");
         log("LOG: Too many hops\n");
-        sl_send_reply("483","Too Many Hops");
+        sl_send_reply("483", "Too Many Hops");
         break;
         break;
     };
     };
 
 
@@ -87,7 +87,7 @@ route{
 #	t_relay();
 #	t_relay();
 
 
 
 
-#	t_relay_to("iptel.org","5060");
+#	t_relay_to("iptel.org", "5060");
 #	forward( uri:host, uri:port );
 #	forward( uri:host, uri:port );
 #	strip(9);
 #	strip(9);
 #	t_relay_to( "localhost", "9" );
 #	t_relay_to( "localhost", "9" );

+ 19 - 19
misc/examples/obsoleted/imgw.cfg

@@ -32,12 +32,12 @@ loadmodule "../sip_router/modules/jabber/jabber.so"
 # ----------------- setting module-specific parameters ---------------
 # ----------------- setting module-specific parameters ---------------
 
 
 # -- sms params --
 # -- sms params --
-modparam("sms","modems","Falcom [d=/dev/ttyS0;b=9600;p=9254;m=new;l=10;r=2]")
-modparam("sms","networks","D1[c=491710765000;m=10]")
-modparam("sms","links","Falcom[D1]")
-modparam("sms","domain","iptel.org")
-modparam("sms","max_sms_parts",3)
-modparam("sms","use_contact",1)
+modparam("sms", "modems", "Falcom [d=/dev/ttyS0;b=9600;p=9254;m=new;l=10;r=2]")
+modparam("sms", "networks", "D1[c=491710765000;m=10]")
+modparam("sms", "links", "Falcom[D1]")
+modparam("sms", "domain", "iptel.org")
+modparam("sms", "max_sms_parts", 3)
+modparam("sms", "use_contact", 1)
 
 
 # -- tm params --
 # -- tm params --
 modparam("tm", "fr_timer", 10 )
 modparam("tm", "fr_timer", 10 )
@@ -45,13 +45,13 @@ modparam("tm", "fr_inv_timer", 10 )
 modparam("tm", "wt_timer", 10 )
 modparam("tm", "wt_timer", 10 )
 
 
 # -- jabber params --
 # -- jabber params --
-modparam("jabber","db_url","sql://s2jgw:[email protected]/sip_jab")
-modparam("jabber","jaddress","bat.iptel.org")
-modparam("jabber","jport",5222)
-modparam("jabber","workers",2)
-modparam("jabber","max_jobs",10)
-modparam("jabber","delay_time",15)
-modparam("jabber","cache_time",1800)
+modparam("jabber", "db_url", "sql://s2jgw:[email protected]/sip_jab")
+modparam("jabber", "jaddress", "bat.iptel.org")
+modparam("jabber", "jport", 5222)
+modparam("jabber", "workers", 2)
+modparam("jabber", "max_jobs", 10)
+modparam("jabber", "delay_time", 15)
+modparam("jabber", "cache_time", 1800)
 
 
 
 
 # -------------------------  request routing logic -------------------
 # -------------------------  request routing logic -------------------
@@ -64,7 +64,7 @@ route{
 	log("LOG: Checking maxfwd\n");
 	log("LOG: Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 
 
@@ -87,13 +87,13 @@ route{
 				log("MESSAGE received -> sending as JABBER\n");
 				log("MESSAGE received -> sending as JABBER\n");
 				if (jab_send_message())
 				if (jab_send_message())
 				{
 				{
-					sl_send_reply("202","Accepted");
+					sl_send_reply("202", "Accepted");
 				}else{
 				}else{
-					sl_send_reply("502","Bad gateway");
+					sl_send_reply("502", "Bad gateway");
 				};
 				};
 			}else{
 			}else{
 				log("NON_Message request received for JABBER gateway->dropt!\n");
 				log("NON_Message request received for JABBER gateway->dropt!\n");
-				sl_send_reply("501","Not implemented");
+				sl_send_reply("501", "Not implemented");
 			};
 			};
 			# transaction conclude it -- junk it now (it will
 			# transaction conclude it -- junk it now (it will
 			# stay there until WAIT timer hits)
 			# stay there until WAIT timer hits)
@@ -112,14 +112,14 @@ route{
 		!( uri=~"iptel.org" | uri=~"195\.37\.77\.100" ))
 		!( uri=~"iptel.org" | uri=~"195\.37\.77\.100" ))
 		{
 		{
 			log("SER:Forbidden request: wrong src_ip or req_uri\n");
 			log("SER:Forbidden request: wrong src_ip or req_uri\n");
-			sl_send_reply("403","Forbidden");
+			sl_send_reply("403", "Forbidden");
 			break;
 			break;
 		};
 		};
 
 
 		#accept only MESSAGE requests
 		#accept only MESSAGE requests
 		if (!method=="MESSAGE")
 		if (!method=="MESSAGE")
 		{
 		{
-			sl_send_reply("501","Not Implemented");
+			sl_send_reply("501", "Not Implemented");
 			break;
 			break;
 		};
 		};
 
 

+ 1 - 1
misc/examples/obsoleted/mobile66.cfg

@@ -44,7 +44,7 @@ route{
 	log("LOG: Checking maxfwd\n");
 	log("LOG: Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	
 	

+ 1 - 1
misc/examples/obsoleted/register.cfg

@@ -42,7 +42,7 @@ route{
 	log("LOG: Checking maxfwd\n");
 	log("LOG: Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 
 

+ 3 - 3
misc/examples/obsoleted/secondary.cfg

@@ -61,7 +61,7 @@ route{
         log("Checking maxfwd\n");
         log("Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("Too many hops\n");
 		log("Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 
 
@@ -204,12 +204,12 @@ route{
        			}else{
        			}else{
            			if ( cpl_is_response_reject() ) {
            			if ( cpl_is_response_reject() ) {
 						log("SER: reject");
 						log("SER: reject");
-               			sl_send_reply("603","I am not available!");
+               			sl_send_reply("603", "I am not available!");
                			break;
                			break;
            			}else if ( cpl_is_response_redirect() ) {
            			}else if ( cpl_is_response_redirect() ) {
                			log("SER : redirect\n");
                			log("SER : redirect\n");
                			cpl_update_contact();
                			cpl_update_contact();
-               			sl_send_reply("302","Moved temporarily");
+               			sl_send_reply("302", "Moved temporarily");
                			break;
                			break;
            			};
            			};
        			};
        			};

+ 1 - 1
misc/examples/obsoleted/sms.cfg

@@ -53,7 +53,7 @@ route{
 #    log("LOG: Checking maxfwd\n");
 #    log("LOG: Checking maxfwd\n");
 #    if (!mf_process_maxfwd_header("0")) {
 #    if (!mf_process_maxfwd_header("0")) {
 #        log("LOG: Too many hops\n");
 #        log("LOG: Too many hops\n");
-#        sl_send_reply("483","Too Many Hops");
+#        sl_send_reply("483", "Too Many Hops");
 #        break;
 #        break;
 #    };
 #    };
 
 

+ 9 - 9
misc/examples/obsoleted/smsgw.cfg

@@ -33,12 +33,12 @@ loadmodule "../sip_router/modules/sms/sms.so"
 # ----------------- setting module-specific parameters ---------------
 # ----------------- setting module-specific parameters ---------------
 
 
 # -- sms params --
 # -- sms params --
-modparam("sms","modems","Falcom [d=/dev/ttyS0;b=9600;p=9254;m=new;l=10;r=2]")
-modparam("sms","networks","D1[c=491710765000;m=10]")
-modparam("sms","links","Falcom[D1]")
-modparam("sms","domain","iptel.org")
-modparam("sms","max_sms_parts",3)
-modparam("sms","use_contact",1)
+modparam("sms", "modems", "Falcom [d=/dev/ttyS0;b=9600;p=9254;m=new;l=10;r=2]")
+modparam("sms", "networks", "D1[c=491710765000;m=10]")
+modparam("sms", "links", "Falcom[D1]")
+modparam("sms", "domain", "iptel.org")
+modparam("sms", "max_sms_parts", 3)
+modparam("sms", "use_contact", 1)
 
 
 
 
 # -- tm params --
 # -- tm params --
@@ -62,7 +62,7 @@ route{
 	log("LOG: Checking maxfwd\n");
 	log("LOG: Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	
 	
@@ -71,14 +71,14 @@ route{
 	!( uri=~"iptel.org" | uri=~"195\.37\.77\.100" ))
 	!( uri=~"iptel.org" | uri=~"195\.37\.77\.100" ))
 	{
 	{
 		log("SER:Forbidden request: wrong src_ip or req_uri\n");
 		log("SER:Forbidden request: wrong src_ip or req_uri\n");
-		sl_send_reply("403","Forbidden");
+		sl_send_reply("403", "Forbidden");
 		break;
 		break;
 	};
 	};
 
 
 	#accept only MESSAGE requests
 	#accept only MESSAGE requests
 	if (!method=="MESSAGE")
 	if (!method=="MESSAGE")
 	{
 	{
-		sl_send_reply("501","Not Implemented");
+		sl_send_reply("501", "Not Implemented");
 		break;
 		break;
 	};
 	};
 
 

+ 3 - 3
misc/examples/obsoleted/test.cfg

@@ -102,7 +102,7 @@ route{
 	log("Checking maxfwd\n");
 	log("Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("Too many hops\n");
 		log("Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 
 
@@ -187,12 +187,12 @@ route{
 		}else{
 		}else{
    			if ( cpl_is_response_reject() ) {
    			if ( cpl_is_response_reject() ) {
 				log("SER: reject");
 				log("SER: reject");
-       			sl_send_reply("603","I am not available!");
+       			sl_send_reply("603", "I am not available!");
        			break;
        			break;
    			}else if ( cpl_is_response_redirect() ) {
    			}else if ( cpl_is_response_redirect() ) {
        			log("SER : redirect\n");
        			log("SER : redirect\n");
        			cpl_update_contact();
        			cpl_update_contact();
-       			sl_send_reply("302","Moved temporarily");
+       			sl_send_reply("302", "Moved temporarily");
        			break;
        			break;
    			};
    			};
 		};
 		};

+ 1 - 1
misc/examples/obsoleted/tmtest.cfg

@@ -80,7 +80,7 @@ route{
 	log("LOG: Checking maxfwd\n");
 	log("LOG: Checking maxfwd\n");
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 
 

+ 2 - 2
misc/examples/obsoleted/to_fox.cfg

@@ -59,7 +59,7 @@ route{
     log("LOG: Checking maxfwd\n");
     log("LOG: Checking maxfwd\n");
     if (!mf_process_maxfwd_header("0")) {
     if (!mf_process_maxfwd_header("0")) {
         log("LOG: Too many hops\n");
         log("LOG: Too many hops\n");
-        sl_send_reply("483","Too Many Hops");
+        sl_send_reply("483", "Too Many Hops");
         break;
         break;
     };
     };
 
 
@@ -86,7 +86,7 @@ route{
 #	t_relay();
 #	t_relay();
 
 
 
 
-#	t_relay_to("iptel.org","5060");
+#	t_relay_to("iptel.org", "5060");
 #	forward( uri:host, uri:port );
 #	forward( uri:host, uri:port );
 #	strip(9);
 #	strip(9);
 #	t_relay_to( "localhost", "9" );
 #	t_relay_to( "localhost", "9" );

+ 11 - 11
misc/examples/obsoleted/use_jabs.cfg

@@ -36,21 +36,21 @@ loadmodule "modules/jabber/jabber.so"
 #loadmodule "modules/cpl/cpl.so"
 #loadmodule "modules/cpl/cpl.so"
 #loadmodule "modules/pike/pike.so"
 #loadmodule "modules/pike/pike.so"
 
 
-modparam("jabber","contact","sip:bat.iptel.org:5080")
-modparam("jabber","db_url","sql://s2jgw:[email protected]/sip_jab")
-modparam("jabber","jaddress","bat.iptel.org")
-modparam("jabber","jport",5222)
-modparam("jabber","workers",2)
-modparam("jabber","max_jobs",10)
+modparam("jabber", "contact", "sip:bat.iptel.org:5080")
+modparam("jabber", "db_url", "sql://s2jgw:[email protected]/sip_jab")
+modparam("jabber", "jaddress", "bat.iptel.org")
+modparam("jabber", "jport", 5222)
+modparam("jabber", "workers", 2)
+modparam("jabber", "max_jobs", 10)
 
 
-#modparam("pike","timeout",30)
+#modparam("pike", "timeout", 30)
 
 
 route{
 route{
 	sl_filter_ACK();
 	sl_filter_ACK();
 
 
 	if ( !mf_process_maxfwd_header("10") )
 	if ( !mf_process_maxfwd_header("10") )
 	{
 	{
-		sl_send_reply("483","To Many Hops");
+		sl_send_reply("483", "To Many Hops");
 		drop();
 		drop();
 	};
 	};
 
 
@@ -63,13 +63,13 @@ route{
 			log("MESSAGE received -> sending as JABBER\n");
 			log("MESSAGE received -> sending as JABBER\n");
 			if (jab_send_message())
 			if (jab_send_message())
 			{
 			{
-				sl_send_reply("202","Accepted");
+				sl_send_reply("202", "Accepted");
 			}else{
 			}else{
-				sl_send_reply("502","Bad gateway");
+				sl_send_reply("502", "Bad gateway");
 			};
 			};
 		}else{
 		}else{
 			log("NON_Message request received for JABBER gateway->dropt!\n");
 			log("NON_Message request received for JABBER gateway->dropt!\n");
-			sl_send_reply("501","Not implemented");
+			sl_send_reply("501", "Not implemented");
 		};
 		};
 		break;
 		break;
 	};
 	};

+ 2 - 2
misc/examples/outbound/edge.cfg

@@ -114,7 +114,7 @@ route[RELAY] {
 
 
 route[REQINIT] {
 route[REQINIT] {
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -141,7 +141,7 @@ route[WITHINDLG] {
 						exit;
 						exit;
 					}
 					}
 				}
 				}
-				sl_send_reply("404","Not Found");
+				sl_send_reply("404", "Not Found");
 			}
 			}
 		} else {
 		} else {
 			if (is_method("NOTIFY")) {
 			if (is_method("NOTIFY")) {

+ 2 - 2
misc/examples/outbound/edge_websocket.cfg

@@ -172,7 +172,7 @@ route[RELAY] {
 
 
 route[REQINIT] {
 route[REQINIT] {
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -199,7 +199,7 @@ route[WITHINDLG] {
 						exit;
 						exit;
 					}
 					}
 				}
 				}
-				sl_send_reply("404","Not Found");
+				sl_send_reply("404", "Not Found");
 			}
 			}
 		} else {
 		} else {
 			if (is_method("NOTIFY")) {
 			if (is_method("NOTIFY")) {

+ 3 - 3
misc/examples/outbound/registrar.cfg

@@ -78,7 +78,7 @@ request_route {
 
 
 	if ($rU==$null) {
 	if ($rU==$null) {
 		xlog("L_INFO", "Address Incomplete\n");
 		xlog("L_INFO", "Address Incomplete\n");
-		send_reply("484","Address Incomplete");
+		send_reply("484", "Address Incomplete");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -97,7 +97,7 @@ route[RELAY] {
 route[REQINIT] {
 route[REQINIT] {
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		xlog("L_INFO", "Too Many Hops\n");
 		xlog("L_INFO", "Too Many Hops\n");
-		send_reply("483","Too Many Hops");
+		send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -125,7 +125,7 @@ route[WITHINDLG] {
 				}
 				}
 			}
 			}
 			xlog("L_INFO", "Not Found");
 			xlog("L_INFO", "Not Found");
-			send_reply("404","Not Found");
+			send_reply("404", "Not Found");
 		}
 		}
 		exit;
 		exit;
 	}
 	}

+ 5 - 5
misc/examples/pkg/kamailio-basic.cfg

@@ -364,7 +364,7 @@ request_route {
 
 
 	if ($rU==$null) {
 	if ($rU==$null) {
 		# request with no Username in RURI
 		# request with no Username in RURI
-		sl_send_reply("484","Address Incomplete");
+		sl_send_reply("484", "Address Incomplete");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -405,7 +405,7 @@ route[REQINIT] {
 			exit;
 			exit;
 		}
 		}
 		if (!pike_check_req()) {
 		if (!pike_check_req()) {
-			xlog("L_ALERT","ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
+			xlog("L_ALERT", "ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
 			$sht(ipban=>$si) = 1;
 			$sht(ipban=>$si) = 1;
 			exit;
 			exit;
 		}
 		}
@@ -417,12 +417,12 @@ route[REQINIT] {
 #!endif
 #!endif
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
-		sl_send_reply("200","Keepalive");
+		sl_send_reply("200", "Keepalive");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -537,7 +537,7 @@ route[AUTH] {
 	# if caller is not local subscriber, then check if it calls
 	# if caller is not local subscriber, then check if it calls
 	# a local destination, otherwise deny, not an open relay here
 	# a local destination, otherwise deny, not an open relay here
 	if (from_uri!=myself && uri!=myself) {
 	if (from_uri!=myself && uri!=myself) {
-		sl_send_reply("403","Not relaying");
+		sl_send_reply("403", "Not relaying");
 		exit;
 		exit;
 	}
 	}
 
 

+ 5 - 5
misc/examples/pkg/kamailio-oob.cfg

@@ -601,7 +601,7 @@ route[REQINIT] {
 			exit;
 			exit;
 		}
 		}
 		if (!pike_check_req()) {
 		if (!pike_check_req()) {
-			xlog("L_ALERT","ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
+			xlog("L_ALERT", "ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
 			$sht(ipban=>$si) = 1;
 			$sht(ipban=>$si) = 1;
 			exit;
 			exit;
 		}
 		}
@@ -613,12 +613,12 @@ route[REQINIT] {
 #!endif
 #!endif
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
-		sl_send_reply("200","Keepalive");
+		sl_send_reply("200", "Keepalive");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -781,7 +781,7 @@ route[AUTH] {
 	# if caller is not local subscriber, then check if it calls
 	# if caller is not local subscriber, then check if it calls
 	# a local destination, otherwise deny, not an open relay here
 	# a local destination, otherwise deny, not an open relay here
 	if (from_uri!=myself && uri!=myself) {
 	if (from_uri!=myself && uri!=myself) {
-		sl_send_reply("403","Not relaying");
+		sl_send_reply("403", "Not relaying");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -958,7 +958,7 @@ failure_route[MANAGE_FAILURE] {
 #!ifdef WITH_BLOCK3XX
 #!ifdef WITH_BLOCK3XX
 	# block call redirect based on 3xx replies.
 	# block call redirect based on 3xx replies.
 	if (t_check_status("3[0-9][0-9]")) {
 	if (t_check_status("3[0-9][0-9]")) {
-		t_reply("404","Not found");
+		t_reply("404", "Not found");
 		exit;
 		exit;
 	}
 	}
 #!endif
 #!endif

+ 1 - 1
misc/examples/pkg/sip-router-basic.cfg

@@ -129,7 +129,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_reply("483","Too Many Hops");
+		sl_reply("483", "Too Many Hops");
 		break;
 		break;
 	}
 	}
 	if (msg:len >=  4096 ) {
 	if (msg:len >=  4096 ) {

+ 3 - 3
misc/examples/pkg/sip-router-oob.cfg

@@ -395,7 +395,7 @@ modparam("usrloc", "db_mode", 1)
 # Don't delete expired records from database on a per-contact basis -- that
 # Don't delete expired records from database on a per-contact basis -- that
 # results in bulky DB operations and can lead to synchronization issues
 # results in bulky DB operations and can lead to synchronization issues
 # in server farm when for a time a server doesn't obtain re-reregistrations
 # in server farm when for a time a server doesn't obtain re-reregistrations
-modparam("usrloc","db_skip_delete",1)
+modparam("usrloc", "db_skip_delete", 1)
 
 
 
 
 # -- registrar --
 # -- registrar --
@@ -716,7 +716,7 @@ route[INIT]
 {
 {
 	# Messages with a Max-Forwards header of zero.
 	# Messages with a Max-Forwards header of zero.
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_reply("483","Too Many Hops");
+		sl_reply("483", "Too Many Hops");
 		drop;
 		drop;
 	}
 	}
 
 
@@ -1202,7 +1202,7 @@ route[REGISTRAR]
 		#DEBCONF-REPL_SEND_ADDR-END
 		#DEBCONF-REPL_SEND_ADDR-END
 		# Put the UID in the Request-URI so that it doesn't have to
 		# Put the UID in the Request-URI so that it doesn't have to
 		# be looked up in the database by all multicast receivers.
 		# be looked up in the database by all multicast receivers.
-		attr2uri("$tu.uid","user");
+		attr2uri("$tu.uid", "user");
 		forward_udp(224.0.1.75,5060);
 		forward_udp(224.0.1.75,5060);
 	}
 	}
 #DEBCONF-REPLICATION2-START
 #DEBCONF-REPLICATION2-START

+ 3 - 3
misc/examples/pkg/sipcapture.cfg

@@ -98,8 +98,8 @@ modparam("xhttp", "url_match", "^/api/v1/stat")
 modparam("rtimer", "timer", "name=ta;interval=60;mode=1;")
 modparam("rtimer", "timer", "name=ta;interval=60;mode=1;")
 modparam("rtimer", "exec", "timer=ta;route=TIMER_STATS")
 modparam("rtimer", "exec", "timer=ta;route=TIMER_STATS")
 
 
-modparam("sqlops","sqlcon","cb=>mysql://HOMER_DB_USER:[email protected]/homer_statistic")
-modparam("sqlops","sqlcon","wc=>mysql://HOMER_DB_USER:[email protected]/homer_data")
+modparam("sqlops", "sqlcon", "cb=>mysql://HOMER_DB_USER:[email protected]/homer_statistic")
+modparam("sqlops", "sqlcon", "wc=>mysql://HOMER_DB_USER:[email protected]/homer_data")
 
 
 # ----- mi_fifo params -----
 # ----- mi_fifo params -----
 
 
@@ -878,7 +878,7 @@ event_route[xhttp:request] {
                 #Json is our body
                 #Json is our body
                 $var(json) = $rb;
                 $var(json) = $rb;
                 jansson_get("type", $var(json), "$var(n)");
                 jansson_get("type", $var(json), "$var(n)");
-                xlog("L_WARN","Type is $var(n)");
+                xlog("L_WARN", "Type is $var(n)");
                 if($var(n) == "rtp_stat") {
                 if($var(n) == "rtp_stat") {
                          $var(i) = 0;
                          $var(i) = 0;
                          $(avp(x)[0]) = 'interval';
                          $(avp(x)[0]) = 'interval';

+ 4 - 4
misc/examples/presence/full-no-failover.cfg

@@ -53,9 +53,9 @@ loadmodule "/usr/lib/ser/modules/msilo.so"
 
 
 # ----------------- setting module-specific parameters ---------------
 # ----------------- setting module-specific parameters ---------------
 
 
-# modparam("msilo","registrar","sip:[email protected]")
-modparam("msilo","use_contact",0)
-modparam("msilo","expire_time",7200)
+# modparam("msilo", "registrar", "sip:[email protected]")
+modparam("msilo", "use_contact", 0)
+modparam("msilo", "expire_time", 7200)
 
 
 # -- usrloc params --
 # -- usrloc params --
 
 
@@ -142,7 +142,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (msg:len >=  max_len ) {
 	if (msg:len >=  max_len ) {

+ 1 - 1
misc/examples/presence/no-db.cfg

@@ -89,7 +89,7 @@ route{
 	# initial sanity checks -- messages with
 	# initial sanity checks -- messages with
 	# max_forwards==0, or excessively long requests
 	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (msg:len >=  max_len ) {
 	if (msg:len >=  max_len ) {

+ 9 - 9
misc/examples/webrtc/kamailio-default-websocket.cfg

@@ -532,7 +532,7 @@ request_route {
 
 
 	if ($rU==$null) {
 	if ($rU==$null) {
 		# request with no Username in RURI
 		# request with no Username in RURI
-		sl_send_reply("484","Address Incomplete");
+		sl_send_reply("484", "Address Incomplete");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -577,7 +577,7 @@ route[REQINIT] {
 			exit;
 			exit;
 		}
 		}
 		if (!pike_check_req()) {
 		if (!pike_check_req()) {
-			xlog("L_ALERT","ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
+			xlog("L_ALERT", "ALERT: pike blocking $rm from $fu (IP:$si:$sp)\n");
 			$sht(ipban=>$si) = 1;
 			$sht(ipban=>$si) = 1;
 			exit;
 			exit;
 		}
 		}
@@ -590,12 +590,12 @@ route[REQINIT] {
 	}
 	}
 
 
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
-		sl_send_reply("483","Too Many Hops");
+		sl_send_reply("483", "Too Many Hops");
 		exit;
 		exit;
 	}
 	}
 
 
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
 	if(is_method("OPTIONS") && uri==myself && $rU==$null) {
-		sl_send_reply("200","Keepalive");
+		sl_send_reply("200", "Keepalive");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -644,7 +644,7 @@ route[WITHINDLG] {
 			exit;
 			exit;
 		}
 		}
 	}
 	}
-	sl_send_reply("404","Not here");
+	sl_send_reply("404", "Not here");
 	exit;
 	exit;
 }
 }
 
 
@@ -768,7 +768,7 @@ route[AUTH] {
 	# if caller is not local subscriber, then check if it calls
 	# if caller is not local subscriber, then check if it calls
 	# a local destination, otherwise deny, not an open relay here
 	# a local destination, otherwise deny, not an open relay here
 	if (from_uri!=myself && uri!=myself) {
 	if (from_uri!=myself && uri!=myself) {
-		sl_send_reply("403","Not relaying");
+		sl_send_reply("403", "Not relaying");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -776,7 +776,7 @@ route[AUTH] {
 
 
 	# authentication not enabled - do not relay at all to foreign networks
 	# authentication not enabled - do not relay at all to foreign networks
 	if(uri!=myself) {
 	if(uri!=myself) {
-		sl_send_reply("403","Not relaying");
+		sl_send_reply("403", "Not relaying");
 		exit;
 		exit;
 	}
 	}
 
 
@@ -969,7 +969,7 @@ failure_route[MANAGE_FAILURE] {
 #!ifdef WITH_BLOCK3XX
 #!ifdef WITH_BLOCK3XX
 	# block call redirect based on 3xx replies.
 	# block call redirect based on 3xx replies.
 	if (t_check_status("3[0-9][0-9]")) {
 	if (t_check_status("3[0-9][0-9]")) {
-		t_reply("404","Not found");
+		t_reply("404", "Not found");
 		exit;
 		exit;
 	}
 	}
 #!endif
 #!endif
@@ -977,7 +977,7 @@ failure_route[MANAGE_FAILURE] {
 #!ifdef WITH_BLOCK401407
 #!ifdef WITH_BLOCK401407
 	# block call redirect based on 401, 407 replies.
 	# block call redirect based on 401, 407 replies.
 	if (t_check_status("401|407")) {
 	if (t_check_status("401|407")) {
-		t_reply("404","Not found");
+		t_reply("404", "Not found");
 		exit;
 		exit;
 	}
 	}
 #!endif
 #!endif

+ 2 - 2
misc/scripts/serconf.sh

@@ -274,7 +274,7 @@ route{
 	# filter too old messages
 	# filter too old messages
 	if (!mf_process_maxfwd_header("10")) {
 	if (!mf_process_maxfwd_header("10")) {
 		log("LOG: Too many hops\n");
 		log("LOG: Too many hops\n");
-		sl_send_reply("483","Alas Too Many Hops");
+		sl_send_reply("483", "Alas Too Many Hops");
 		break;
 		break;
 	};
 	};
 	if (len_gt( max_len )) {
 	if (len_gt( max_len )) {
@@ -523,7 +523,7 @@ route[3] {
 
 
 	append_hf("P-hint: GATEWAY\r\n");
 	append_hf("P-hint: GATEWAY\r\n");
 	# use UDP to guarantee well-known sender port (TCP ephemeral)
 	# use UDP to guarantee well-known sender port (TCP ephemeral)
-	t_relay_to_udp("$SER_GWIP","5060");
+	t_relay_to_udp("$SER_GWIP", "5060");
 }
 }