From e1bd0e67db7a12984416d8bd2954fe206f477393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Fri, 9 Dec 2022 21:24:43 +0200 Subject: [PATCH] misc/examples: add a space between comma and quote --- misc/examples/ims/icscf/kamailio.cfg | 32 ++-- misc/examples/ims/pcscf/kamailio.cfg | 26 ++-- misc/examples/ims/pcscf/route/mo.cfg | 18 +-- misc/examples/ims/pcscf/route/mt.cfg | 12 +- misc/examples/ims/pcscf/route/register.cfg | 6 +- misc/examples/ims/scscf/kamailio.cfg | 140 +++++++++--------- misc/examples/kamailio/acc-mysql.cfg | 2 +- misc/examples/kamailio/acc.cfg | 2 +- misc/examples/kamailio/fork.cfg | 2 +- misc/examples/kamailio/msilo.cfg | 4 +- misc/examples/kamailio/nathelper.cfg | 6 +- misc/examples/kamailio/pstn.cfg | 4 +- misc/examples/kamailio/replicate.cfg | 2 +- misc/examples/kamailio/serial_183.cfg | 2 +- .../examples/kemi/kamailio-basic-kemi-jsdt.js | 8 +- .../examples/kemi/kamailio-basic-kemi-lua.lua | 8 +- .../kemi/kamailio-basic-kemi-native.cfg | 10 +- .../kemi/kamailio-basic-kemi-python.py | 8 +- .../kemi/kamailio-basic-kemi-python3s.py | 8 +- .../examples/kemi/kamailio-basic-kemi-ruby.rb | 6 +- .../kemi/kamailio-basic-kemi-sqlang.sq | 8 +- misc/examples/mixed/acc.cfg | 2 +- misc/examples/mixed/dbtext.cfg | 2 +- .../mixed/kamailio-minimal-anycast.cfg | 8 +- .../examples/mixed/kamailio-minimal-proxy.cfg | 8 +- misc/examples/mixed/msilo.cfg | 8 +- misc/examples/mixed/nathelper.cfg | 2 +- misc/examples/mixed/onr.cfg | 2 +- misc/examples/mixed/pstn.cfg | 4 +- misc/examples/mixed/replicate.cfg | 2 +- misc/examples/mixed/serial_183.cfg | 2 +- misc/examples/mixed/voicemail.cfg | 16 +- misc/examples/mixed/welcome.cfg | 2 +- misc/examples/obsoleted/backup.cfg | 2 +- misc/examples/obsoleted/bat.cfg | 2 +- misc/examples/obsoleted/blb.cfg | 4 +- misc/examples/obsoleted/imgw.cfg | 38 ++--- misc/examples/obsoleted/mobile66.cfg | 2 +- misc/examples/obsoleted/register.cfg | 2 +- misc/examples/obsoleted/secondary.cfg | 6 +- misc/examples/obsoleted/sms.cfg | 2 +- misc/examples/obsoleted/smsgw.cfg | 18 +-- misc/examples/obsoleted/test.cfg | 6 +- misc/examples/obsoleted/tmtest.cfg | 2 +- misc/examples/obsoleted/to_fox.cfg | 4 +- misc/examples/obsoleted/use_jabs.cfg | 22 +-- misc/examples/outbound/edge.cfg | 4 +- misc/examples/outbound/edge_websocket.cfg | 4 +- misc/examples/outbound/registrar.cfg | 6 +- misc/examples/pkg/kamailio-basic.cfg | 10 +- misc/examples/pkg/kamailio-oob.cfg | 10 +- misc/examples/pkg/sip-router-basic.cfg | 2 +- misc/examples/pkg/sip-router-oob.cfg | 6 +- misc/examples/pkg/sipcapture.cfg | 6 +- misc/examples/presence/full-no-failover.cfg | 8 +- misc/examples/presence/no-db.cfg | 2 +- .../webrtc/kamailio-default-websocket.cfg | 18 +-- misc/scripts/serconf.sh | 4 +- 58 files changed, 281 insertions(+), 281 deletions(-) diff --git a/misc/examples/ims/icscf/kamailio.cfg b/misc/examples/ims/icscf/kamailio.cfg index aa5d8d743c0..5bbfc22f5b0 100644 --- a/misc/examples/ims/icscf/kamailio.cfg +++ b/misc/examples/ims/icscf/kamailio.cfg @@ -155,14 +155,14 @@ modparam("jsonrpcs", "pretty_format", 1) modparam("rr", "enable_full_lr", 1) # -- cdp params -- -modparam("cdp","config_file","/etc/kamailio_icscf/icscf.xml") +modparam("cdp", "config_file", "/etc/kamailio_icscf/icscf.xml") # ----- icscf params ----- # Comment the following line to enable realm routing #!ifdef CXDX_FORCED_PEER modparam("ims_icscf", "cxdx_forced_peer", CXDX_FORCED_PEER) #!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: #!ifdef DB_URL2 @@ -173,11 +173,11 @@ modparam("ims_icscf", "db_url", DB_URL) #!ifdef PEERING # 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 #!ifdef FALLBACK_AUTH # 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 #!ifdef WITH_TLS @@ -255,7 +255,7 @@ route{ # Shouldn't get here unless missconfigured (add more methods as initial) or # somebody is routing unknown messages 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; } } @@ -279,7 +279,7 @@ route[REQINIT] { setflag(FLT_CAPTURE); #!endif if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } if(!sanity_check("1511", "7")) { @@ -351,7 +351,7 @@ route[register] t_on_reply("register_reply"); t_on_failure("register_failure"); if (!t_relay()) { - send_reply("500","Error forwarding towards S-CSCF"); + send_reply("500", "Error forwarding towards S-CSCF"); } } else { #no S-CSCF list therefore must do UAR @@ -359,7 +359,7 @@ route[register] I_scscf_drop(); # Do an asynchronous UAR: #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"); } } @@ -426,7 +426,7 @@ failure_route[register_failure] t_on_reply("register_reply"); t_on_failure("register_failure"); if (!t_relay()) { - t_reply("500","Error forwarding towards next S-CSCF"); + t_reply("500", "Error forwarding towards next S-CSCF"); break; } break; @@ -461,7 +461,7 @@ route[LIR_REPLY] { t_on_reply("initial_request_reply"); t_on_failure("initial_request_failure"); if (!t_relay()) { - t_reply("500","Error forwarding towards S-CSCF"); + t_reply("500", "Error forwarding towards S-CSCF"); break; } break; @@ -503,7 +503,7 @@ failure_route[initial_request_failure] t_on_reply("initial_request_reply"); t_on_failure("initial_request_failure"); if (!t_relay()) { - t_reply("500","Error forwarding towards next S-CSCF"); + t_reply("500", "Error forwarding towards next S-CSCF"); break; } break; @@ -537,25 +537,25 @@ route[lir_term_user_unknown] t_on_reply("initial_request_reply"); t_on_failure("initial_request_failure"); if (!t_relay()) { - t_reply("500","Error forwarding to external domain"); + t_reply("500", "Error forwarding to external domain"); exit; }; exit; } else { - t_reply("604","Does not exist anywhere - HSS User Unknown"); + t_reply("604", "Does not exist anywhere - HSS User Unknown"); exit; }; } else { # we received a request for our domain (non-tel), but HSS said "User Unknown" if ($rd != NETWORKNAME) { - t_reply("604","Does not exist anywhere - HSS User Unknown"); + t_reply("604", "Does not exist anywhere - HSS User Unknown"); exit; } else { # try to forward non-tel request to other domain t_on_reply("Initial_Request_reply"); t_on_failure("Initial_Request_failure"); if (!t_relay()) { - t_reply("500","Error forwarding to external domain"); + t_reply("500", "Error forwarding to external domain"); exit; }; exit; @@ -621,7 +621,7 @@ route[uar_term_user_unknown] t_on_reply("register_reply"); t_on_failure("register_failure"); if (!t_relay()) { - t_reply("500","Error forwarding towards S-CSCF"); + t_reply("500", "Error forwarding towards S-CSCF"); break; } break; diff --git a/misc/examples/ims/pcscf/kamailio.cfg b/misc/examples/ims/pcscf/kamailio.cfg index 21fc98e80a4..921d8e19193 100644 --- a/misc/examples/ims/pcscf/kamailio.cfg +++ b/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", "natpingfail=>size=8;autoexpire=600000;") #!ifdef DB_URL2 -modparam("sqlops","sqlcon","pcscf=>cluster://cluster1") +modparam("sqlops", "sqlcon", "pcscf=>cluster://cluster1") #!else -modparam("sqlops","sqlcon", SQLOPS_DBURL) +modparam("sqlops", "sqlcon", SQLOPS_DBURL) #!endif -modparam("uac","restore_mode","none") +modparam("uac", "restore_mode", "none") # ----------------- Settings for RTimer --------------- # time interval set to 10 seconds @@ -379,7 +379,7 @@ modparam("ims_ipsec_pcscf", "ipsec_server_port", IPSEC_SERVER_PORT) #!ifdef WITH_RX # -- CDP params -- -modparam("cdp","config_file","/etc/kamailio_pcscf/pcscf.xml") +modparam("cdp", "config_file", "/etc/kamailio_pcscf/pcscf.xml") # -- diameter_rx params -- modparam("ims_qos", "rx_dest_realm", "NETWORKNAME") #!endif @@ -474,11 +474,11 @@ route { t_check_trans(); 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; } 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; } @@ -682,14 +682,14 @@ route[REQINIT] { exit; } 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"); $sht(ipban=>$si) = 1; exit; } } 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"); $sht(ipban=>$si) = 1; exit; @@ -697,7 +697,7 @@ route[REQINIT] { #!endif if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } @@ -771,7 +771,7 @@ route[WITHINDLG] { exit; } } - sl_send_reply("404","Not here"); + sl_send_reply("404", "Not here"); } exit; } @@ -789,7 +789,7 @@ failure_route[SBC_failure] { else $sht(failedauth=>$si) = 1; 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"); $sht(ipban=>$si) = 1; } @@ -819,10 +819,10 @@ route[NOTIFY] { xlog("L_DBG", "IMS: INSIDE NOTIFY\n"); if (reginfo_handle_notify("location")) { - send_reply("200","OK - P-CSCF processed notification"); + send_reply("200", "OK - P-CSCF processed notification"); break; } else { - t_reply("500","Error encountered while processing notification"); + t_reply("500", "Error encountered while processing notification"); break; } } diff --git a/misc/examples/ims/pcscf/route/mo.cfg b/misc/examples/ims/pcscf/route/mo.cfg index e1922495718..fdd3ac2eafb 100644 --- a/misc/examples/ims/pcscf/route/mo.cfg +++ b/misc/examples/ims/pcscf/route/mo.cfg @@ -9,7 +9,7 @@ route[MO] # Process route headers, if any: loose_route(); 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; } @@ -32,7 +32,7 @@ route[MO] if (!pcscf_follows_service_routes("location")){ #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; #Variant 2 - enforce routes and let the dialog continue @@ -110,12 +110,12 @@ onreply_route[MO_reply] { 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(TTAG_CUSTOM_AVP)=$tt; $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"); 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 switch ($avp(s:aar_return_code)) { 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; default: 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: callid: "+ "$avp(CALLID_CUSTOM_AVP)"); #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"); 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","Diameter: Orig authorizing media via Rx\n"); + xlog("L_DBG", "Diameter: Orig authorizing media via Rx\n"); $avp(FTAG_CUSTOM_AVP)=$ft; $avp(TTAG_CUSTOM_AVP)=$tt; $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"); 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: callid: "+ "$avp(CALLID_CUSTOM_AVP)"); #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"); exit; } diff --git a/misc/examples/ims/pcscf/route/mt.cfg b/misc/examples/ims/pcscf/route/mt.cfg index eab2c7c37e7..39cfd120c71 100644 --- a/misc/examples/ims/pcscf/route/mt.cfg +++ b/misc/examples/ims/pcscf/route/mt.cfg @@ -25,12 +25,12 @@ onreply_route[MT_reply] { 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(TTAG_CUSTOM_AVP)=$tt; $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"); switch ($var(aarret)) { @@ -70,7 +70,7 @@ route[MT_aar_reply] xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)"); xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)"); #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"); 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","Diameter: Term authorizing media via Rx\n"); + xlog("L_DBG", "Diameter: Term authorizing media via Rx\n"); $avp(FTAG_CUSTOM_AVP)=$ft; $avp(TTAG_CUSTOM_AVP)=$tt; $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"); 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: callid: "+ "$avp(CALLID_CUSTOM_AVP)"); #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"); exit; } diff --git a/misc/examples/ims/pcscf/route/register.cfg b/misc/examples/ims/pcscf/route/register.cfg index e90b7fa300b..06447c3ee9e 100644 --- a/misc/examples/ims/pcscf/route/register.cfg +++ b/misc/examples/ims/pcscf/route/register.cfg @@ -25,7 +25,7 @@ route[REGISTER] { $ru = "sip:"+$rU+"@"+$rd; #!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"); switch ($retcode) { @@ -187,7 +187,7 @@ failure_route[REGISTER_failure] else $sht(failedauth=>$si) = 1; 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"); $sht(ipban=>$si) = 1; } @@ -195,7 +195,7 @@ failure_route[REGISTER_failure] } #!endif if (t_check_status("408")) { - send_reply("504","Server Time-Out"); + send_reply("504", "Server Time-Out"); update_stat("register_failed", "+1"); exit; } diff --git a/misc/examples/ims/scscf/kamailio.cfg b/misc/examples/ims/scscf/kamailio.cfg index da6e97242a6..0f3244443e2 100644 --- a/misc/examples/ims/scscf/kamailio.cfg +++ b/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) # -- CDP params -- -modparam("cdp","config_file","/etc/kamailio_scscf/scscf.xml") +modparam("cdp", "config_file", "/etc/kamailio_scscf/scscf.xml") # -- ims_dialog params -- 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", "auth_data_timeout", 5) -modparam("ims_auth","auth_used_vector_timeout", 300) +modparam("ims_auth", "auth_used_vector_timeout", 300) # -- ims_registrar_scscf params -- #!ifdef WITH_DEBUG @@ -289,7 +289,7 @@ modparam("ims_registrar_scscf", "max_expires", 604800) #!endif modparam("ims_registrar_scscf", "use_path", 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", "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_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 # ----- enum params ----- @@ -438,7 +438,7 @@ route { exit; } } else { - sl_send_reply("403","Forbidden - Domain not served"); + sl_send_reply("403", "Forbidden - Domain not served"); exit(); } route(term); @@ -448,7 +448,7 @@ route { 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)){ case 1: #success xlog("L_DBG", "SAR success - will route message\n"); @@ -487,7 +487,7 @@ route[REQINIT] { #!endif if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } @@ -526,7 +526,7 @@ route[PUBLISH] { if (!t_newtran()) { #absorb retransmissions - sl_reply("500","Could not create transaction"); + sl_reply("500", "Could not create transaction"); exit; } @@ -538,14 +538,14 @@ route[PUBLISH] break; case -1: #failure 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; default: xlog("L_ERR", "Unknown return code from publish reg event alue is [$var(ret)]\n"); break; } } else { - t_reply("403","Forbidden to PUBLISH"); + t_reply("403", "Forbidden to PUBLISH"); exit; } } @@ -557,7 +557,7 @@ route[SUBSCRIBE] { if (!t_newtran()) { #absorb retransmissions - sl_reply("500","Could not create transaction"); + sl_reply("500", "Could not create transaction"); exit; } @@ -569,7 +569,7 @@ route[SUBSCRIBE] exit; } if (!can_subscribe_to_reg("location")){ - t_reply("403","Forbidden to SUBSCRIBE"); + t_reply("403", "Forbidden to SUBSCRIBE"); exit; } }else{ @@ -583,7 +583,7 @@ route[SUBSCRIBE] break; case -1: #failure 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; case -2: #error 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] { - 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)){ case 1: #success xlog("L_DBG", "SAR success - will process subscribe\n"); @@ -609,7 +609,7 @@ route[SUBSCRIBE_UNREG_SAR_REPLY] break; case -1: #failure 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; case -2: #error 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; } }else{ - t_reply("403","Forbidden to SUBSCRIBE"); + t_reply("403", "Forbidden to SUBSCRIBE"); exit; } break; case -1: #failure xlog("L_ERR", "SAR failure - Sending 403 Forbidden\n"); - t_reply("403","Forbidden to SUBSCRIBE"); + t_reply("403", "Forbidden to SUBSCRIBE"); break; case -2: #error xlog("L_ERR", "SAR error - Sending 403 Forbidden\n"); - t_reply("403","Forbidden to SUBSCRIBE"); + t_reply("403", "Forbidden to SUBSCRIBE"); break; default: 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; } exit; @@ -695,7 +695,7 @@ route[REGISTER] { exit; } else { #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)"); exit; } @@ -704,11 +704,11 @@ route[REGISTER] { # We need to check if this user is registered or not if (!impu_registered("location")) { xlog("L_ERR", "Not REGISTERED\n"); - save("PRE_REG_SAR_REPLY","location"); + save("PRE_REG_SAR_REPLY", "location"); exit; } else { - isc_match_filter_reg("1","location"); - save("REG_SAR_REPLY","location"); + isc_match_filter_reg("1", "location"); + save("REG_SAR_REPLY", "location"); exit; } } @@ -717,7 +717,7 @@ route[REGISTER] { route[REG_MAR_REPLY] { #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)){ case 1: #success @@ -740,13 +740,13 @@ route[REG_MAR_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 - 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)){ case 1: #success xlog("L_DBG", "SAR success - 200 response sent from module\n"); - isc_match_filter_reg("0","location"); + isc_match_filter_reg("0", "location"); exit; case -1: #failure xlog("L_ERR", "SAR failure - error response sent from module\n"); @@ -763,9 +763,9 @@ route[PRE_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 - 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)){ case 1: #success xlog("L_DBG", "SAR success - 200 response sent from module\n"); @@ -803,12 +803,12 @@ route[apply_privacy] ###################################################################### route[orig] { - xlog("L_DBG","Enter orig route\n"); + xlog("L_DBG", "Enter orig route\n"); set_dlg_profile("orig"); # we MAYBE need something like this to check if a user is barred # if (S_originating_barred()){ - # sl_send_reply("403","Forbidden - Originating Public Identity barred"); + # sl_send_reply("403", "Forbidden - Originating Public Identity barred"); # exit; # } @@ -835,14 +835,14 @@ route[orig] #!ifdef WITH_RO # before we allow call - lets check credit 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"); 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; } - xlog("L_DBG","CCR Request success\n"); + xlog("L_DBG", "CCR Request success\n"); exit; } #!endif @@ -863,7 +863,7 @@ route[FINAL_ORIG] 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)){ case 1: #success @@ -886,7 +886,7 @@ route[CHARGING_CCR_ORIG_REPLY] send_reply("486", "Line limit exceeded"); break; default: - send_reply("402","Payment required ($avp(s:cca_result_code))"); + send_reply("402", "Payment required ($avp(s:cca_result_code))"); break; } case -2: #error @@ -907,7 +907,7 @@ route[CHARGING_CCR_ORIG_REPLY] ###################################################################### onreply_route[orig_reply] { - xlog("L_DBG","Orig reply\n"); + xlog("L_DBG", "Orig reply\n"); route(apply_privacy); break; @@ -918,7 +918,7 @@ onreply_route[orig_reply] ###################################################################### route[orig_subsequent] { - xlog("L_DBG","Orig_Subsequent\n"); + xlog("L_DBG", "Orig_Subsequent\n"); if (!is_method("ACK")) { t_on_reply("orig_subsequent_reply"); @@ -931,7 +931,7 @@ route[orig_subsequent] ###################################################################### onreply_route[orig_subsequent_reply] { - xlog("L_DBG","Orig_Subsequent_reply\n"); + xlog("L_DBG", "Orig_Subsequent_reply\n"); route(apply_privacy); break; } @@ -941,12 +941,12 @@ onreply_route[orig_subsequent_reply] ###################################################################### 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..)")){ 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; } @@ -966,13 +966,13 @@ failure_route[isc_orig_failure] ###################################################################### route[term] { - xlog("L_DBG","Term\n"); + xlog("L_DBG", "Term\n"); set_dlg_profile("term"); #we need something like this to check if a user is barred # if (S_terminating_barred()){ - # sl_send_reply("404","Not Found - Terminating user barred"); + # sl_send_reply("404", "Not Found - Terminating user barred"); # exit; # } @@ -983,23 +983,23 @@ route[term] } # 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"); - xlog("L_DBG","Term - msg was fwded to AS\n"); + xlog("L_DBG", "Term - msg was fwded to AS\n"); exit; } #!ifdef WITH_RO_TERM # before we allow call - lets check credit 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"); 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; } - xlog("L_DBG","CCR Request success\n"); + xlog("L_DBG", "CCR Request success\n"); exit; } #!endif @@ -1013,7 +1013,7 @@ route[FINAL_TERM] { sl_reply_error(); 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; } } else { @@ -1022,7 +1022,7 @@ route[FINAL_TERM] { sl_reply_error(); 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; } route(apply_privacy); @@ -1033,7 +1033,7 @@ route[FINAL_TERM] { 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)){ case 1: #success @@ -1056,7 +1056,7 @@ route[CHARGING_CCR_TERM_REPLY] send_reply("486", "Line limit exceeded"); break; default: - send_reply("402","Payment required ($avp(s:cca_result_code))"); + send_reply("402", "Payment required ($avp(s:cca_result_code))"); break; } case -2: #error @@ -1077,22 +1077,22 @@ route[CHARGING_CCR_TERM_REPLY] ###################################################################### 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..)")){ 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; } if (lookup("location")) { 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; } } 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; } t_relay(); @@ -1104,7 +1104,7 @@ failure_route[isc_term_failure] ###################################################################### route[term_subsequent] { - xlog("L_DBG","term_subsequent\n"); + xlog("L_DBG", "term_subsequent\n"); route(apply_privacy); t_relay(); } @@ -1119,7 +1119,7 @@ route[PSTN_handling] # $fu: sip:test@foo.com # becomes $ru: sip:+34999888777@foo.com;user=phone 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]+") { # Now let's check, if the number can be found in ENUM: @@ -1157,7 +1157,7 @@ route[PSTN] if ($var(has_trf) == 0) { 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"); exit; } @@ -1183,7 +1183,7 @@ failure_route[TRF_failure] { if (t_branch_timeout() || t_check_status("[5-6]..")) { $du = $null; 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"); exit; } diff --git a/misc/examples/kamailio/acc-mysql.cfg b/misc/examples/kamailio/acc-mysql.cfg index fa187ddf49f..21e861d574e 100644 --- a/misc/examples/kamailio/acc-mysql.cfg +++ b/misc/examples/kamailio/acc-mysql.cfg @@ -148,7 +148,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; }; diff --git a/misc/examples/kamailio/acc.cfg b/misc/examples/kamailio/acc.cfg index 90a6244568e..bca66a40cff 100644 --- a/misc/examples/kamailio/acc.cfg +++ b/misc/examples/kamailio/acc.cfg @@ -35,7 +35,7 @@ route{ # filter too old messages if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; }; if (msg:len >= 2048 ) { diff --git a/misc/examples/kamailio/fork.cfg b/misc/examples/kamailio/fork.cfg index 887981f900a..98e537350c2 100644 --- a/misc/examples/kamailio/fork.cfg +++ b/misc/examples/kamailio/fork.cfg @@ -51,7 +51,7 @@ route{ failure_route[1] { # forwarding failed -- try again at another destination append_branch("sip:nonsense@kamailio.org"); - log(1,"first redirection\n"); + log(1, "first redirection\n"); # if this alternative destination fails too, proceed to reply_route[2] t_on_failure("2"); t_relay(); diff --git a/misc/examples/kamailio/msilo.cfg b/misc/examples/kamailio/msilo.cfg index 2a02fbfaf24..759b2719688 100644 --- a/misc/examples/kamailio/msilo.cfg +++ b/misc/examples/kamailio/msilo.cfg @@ -50,7 +50,7 @@ modparam("tm", "wt_timer", 10 ) route{ if ( !mf_process_maxfwd_header("10") ) { - sl_send_reply("483","To Many Hops"); + sl_send_reply("483", "To Many Hops"); exit; }; @@ -131,7 +131,7 @@ failure_route[1] { 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 if (m_store("$avp(i:11)")) { diff --git a/misc/examples/kamailio/nathelper.cfg b/misc/examples/kamailio/nathelper.cfg index 56c0caec4d2..f1b9fae7563 100644 --- a/misc/examples/kamailio/nathelper.cfg +++ b/misc/examples/kamailio/nathelper.cfg @@ -88,8 +88,8 @@ modparam("usrloc", "db_mode", 0) modparam("rr", "enable_full_lr", 1) # !! 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 # ------------------------- request routing logic ------------------- @@ -101,7 +101,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; }; if (msg:len >= 2048 ) { diff --git a/misc/examples/kamailio/pstn.cfg b/misc/examples/kamailio/pstn.cfg index e13524cc230..2a63f1d6b78 100644 --- a/misc/examples/kamailio/pstn.cfg +++ b/misc/examples/kamailio/pstn.cfg @@ -23,7 +23,7 @@ loadmodule "uri.so" # ----------------- 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", "password_column", "password") @@ -44,7 +44,7 @@ route{ # filter too old messages if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; }; if (msg:len >= 2048 ) { diff --git a/misc/examples/kamailio/replicate.cfg b/misc/examples/kamailio/replicate.cfg index e310d2e1076..384046190a6 100644 --- a/misc/examples/kamailio/replicate.cfg +++ b/misc/examples/kamailio/replicate.cfg @@ -39,7 +39,7 @@ route{ # initial sanity checks -- messages with # max_forwars==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; }; if (msg:len >= 2048 ) { diff --git a/misc/examples/kamailio/serial_183.cfg b/misc/examples/kamailio/serial_183.cfg index eb34cef33ad..c707fc6cad0 100644 --- a/misc/examples/kamailio/serial_183.cfg +++ b/misc/examples/kamailio/serial_183.cfg @@ -26,7 +26,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; }; if (msg:len >= 2048 ) { diff --git a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js index ed1e523be5c..a3ef8772b07 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js +++ b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js @@ -17,7 +17,7 @@ var FLB_NATSIPPING=7 // equivalent of 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"); // per request initial checks @@ -142,14 +142,14 @@ function ksr_route_reqinit() } 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(); } if (KSR.is_OPTIONS() && KSR.is_myself_ruri() && KSR.corex.has_ruri_user() < 0) { - KSR.sl.sl_send_reply(200,"Keepalive"); + KSR.sl.sl_send_reply(200, "Keepalive"); KSR.x.exit(); } @@ -265,7 +265,7 @@ function ksr_route_auth() // a local destination, otherwise deny, not an open relay here if ((!KSR.is_myself_furi()) && (!KSR.is_myself_ruri())) { - KSR.sl.sl_send_reply(403,"Not relaying"); + KSR.sl.sl_send_reply(403, "Not relaying"); KSR.x.exit(); } diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua b/misc/examples/kemi/kamailio-basic-kemi-lua.lua index 7b1476efb14..92706a5e3f9 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua +++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua @@ -120,7 +120,7 @@ function ksr_request_route() if KSR.corex.has_ruri_user() < 0 then -- request with no Username in RURI - KSR.sl.sl_send_reply(484,"Address Incomplete"); + KSR.sl.sl_send_reply(484, "Address Incomplete"); return 1; end @@ -190,14 +190,14 @@ function ksr_route_reqinit() end 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(); end if KSR.is_OPTIONS() and KSR.is_myself_ruri() 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(); end @@ -314,7 +314,7 @@ function ksr_route_auth() -- a local destination, otherwise deny, not an open relay here if (not KSR.is_myself_furi()) 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(); end diff --git a/misc/examples/kemi/kamailio-basic-kemi-native.cfg b/misc/examples/kemi/kamailio-basic-kemi-native.cfg index 984c45b8774..690587c4582 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-native.cfg +++ b/misc/examples/kemi/kamailio-basic-kemi-native.cfg @@ -58,7 +58,7 @@ request_route { if ($rU==$null) { # request with no Username in RURI - sl_send_reply("484","Address Incomplete"); + sl_send_reply("484", "Address Incomplete"); exit; } @@ -105,7 +105,7 @@ route[REQINIT] { exit; } 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; exit; } @@ -118,12 +118,12 @@ route[REQINIT] { } if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } if(is_method("OPTIONS") && uri==myself && $rU==$null) { - sl_send_reply("200","Keepalive"); + sl_send_reply("200", "Keepalive"); exit; } @@ -238,7 +238,7 @@ route[AUTH] { # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { - sl_send_reply("403","Not relaying"); + sl_send_reply("403", "Not relaying"); exit; } diff --git a/misc/examples/kemi/kamailio-basic-kemi-python.py b/misc/examples/kemi/kamailio-basic-kemi-python.py index f62f3925944..f4f07714fde 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-python.py +++ b/misc/examples/kemi/kamailio-basic-kemi-python.py @@ -106,7 +106,7 @@ def ksr_request_route(self, msg): if KSR.corex.has_ruri_user() < 0 : # request with no Username in RURI - KSR.sl.sl_send_reply(484,"Address Incomplete") + KSR.sl.sl_send_reply(484, "Address Incomplete") return 1 @@ -163,13 +163,13 @@ def ksr_route_reqinit(self, msg): return -255 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 if (KSR.is_OPTIONS() and KSR.is_myself_ruri() and KSR.corex.has_ruri_user() < 0) : - KSR.sl.sl_send_reply(200,"Keepalive") + KSR.sl.sl_send_reply(200, "Keepalive") return -255 if KSR.sanity.sanity_check(17895, 7)<0 : @@ -276,7 +276,7 @@ def ksr_route_auth(self, msg): # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here 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 1 diff --git a/misc/examples/kemi/kamailio-basic-kemi-python3s.py b/misc/examples/kemi/kamailio-basic-kemi-python3s.py index 00715149dbe..51965cee321 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-python3s.py +++ b/misc/examples/kemi/kamailio-basic-kemi-python3s.py @@ -87,7 +87,7 @@ def ksr_request_route(): if KSR.corex.has_ruri_user() < 0 : # request with no Username in RURI - KSR.sl.sl_send_reply(484,"Address Incomplete") + KSR.sl.sl_send_reply(484, "Address Incomplete") return 1 @@ -151,13 +151,13 @@ def ksr_route_reqinit(): return -255 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 if (KSR.is_OPTIONS() and KSR.is_myself_ruri() and KSR.corex.has_ruri_user() < 0) : - KSR.sl.sl_send_reply(200,"Keepalive") + KSR.sl.sl_send_reply(200, "Keepalive") return -255 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 # a local destination, otherwise deny, not an open relay here 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 1 diff --git a/misc/examples/kemi/kamailio-basic-kemi-ruby.rb b/misc/examples/kemi/kamailio-basic-kemi-ruby.rb index 30bb7423325..43d83105c65 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-ruby.rb +++ b/misc/examples/kemi/kamailio-basic-kemi-ruby.rb @@ -61,7 +61,7 @@ def ksr_request_route() if KSR::COREX.has_ruri_user() < 0 then # request with no Username in RURI - KSR::SL.sl_send_reply(484,"Address Incomplete"); + KSR::SL.sl_send_reply(484, "Address Incomplete"); return; end @@ -130,7 +130,7 @@ def ksr_route_reqinit() end 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 end @@ -195,7 +195,7 @@ def ksr_route_auth() # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here 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 end diff --git a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq index 38672aa8175..ce5fa987535 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq +++ b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq @@ -20,7 +20,7 @@ local FLAGS = { // equivalent of 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"); // per request initial checks @@ -145,14 +145,14 @@ function ksr_route_reqinit() } 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(); } if (KSR.is_OPTIONS() && KSR.is_myself_ruri() && KSR.corex.has_ruri_user() < 0) { - KSR.sl.sl_send_reply(200,"Keepalive"); + KSR.sl.sl_send_reply(200, "Keepalive"); KSR.x.exit(); } @@ -268,7 +268,7 @@ function ksr_route_auth() // a local destination, otherwise deny, not an open relay here if ((!KSR.is_myself_furi()) && (!KSR.is_myself_ruri())) { - KSR.sl.sl_send_reply(403,"Not relaying"); + KSR.sl.sl_send_reply(403, "Not relaying"); KSR.x.exit(); } diff --git a/misc/examples/mixed/acc.cfg b/misc/examples/mixed/acc.cfg index f05765fb943..b5a189b6b4d 100644 --- a/misc/examples/mixed/acc.cfg +++ b/misc/examples/mixed/acc.cfg @@ -32,7 +32,7 @@ route{ # filter too old messages if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (len_gt( max_len )) { diff --git a/misc/examples/mixed/dbtext.cfg b/misc/examples/mixed/dbtext.cfg index 73bc09f8892..3d04ad83047 100644 --- a/misc/examples/mixed/dbtext.cfg +++ b/misc/examples/mixed/dbtext.cfg @@ -71,7 +71,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (len_gt( max_len )) { diff --git a/misc/examples/mixed/kamailio-minimal-anycast.cfg b/misc/examples/mixed/kamailio-minimal-anycast.cfg index b61d4f6618f..dec13f50988 100644 --- a/misc/examples/mixed/kamailio-minimal-anycast.cfg +++ b/misc/examples/mixed/kamailio-minimal-anycast.cfg @@ -201,7 +201,7 @@ request_route { if ($rU==$null) { # request with no Username in RURI - sl_send_reply("484","Address Incomplete"); + sl_send_reply("484", "Address Incomplete"); exit; } @@ -251,12 +251,12 @@ route[REQINIT] { } if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } if(is_method("OPTIONS") && uri==myself && $rU==$null) { - sl_send_reply("200","Keepalive"); + sl_send_reply("200", "Keepalive"); exit; } @@ -296,7 +296,7 @@ route[WITHINDLG] { exit; } } - sl_send_reply("404","Not here"); + sl_send_reply("404", "Not here"); exit; } diff --git a/misc/examples/mixed/kamailio-minimal-proxy.cfg b/misc/examples/mixed/kamailio-minimal-proxy.cfg index 78cbb0bdc94..7ca5b798fc9 100644 --- a/misc/examples/mixed/kamailio-minimal-proxy.cfg +++ b/misc/examples/mixed/kamailio-minimal-proxy.cfg @@ -175,7 +175,7 @@ request_route { if ($rU==$null) { # request with no Username in RURI - sl_send_reply("484","Address Incomplete"); + sl_send_reply("484", "Address Incomplete"); exit; } @@ -215,12 +215,12 @@ route[REQINIT] { } if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } if(is_method("OPTIONS") && uri==myself && $rU==$null) { - sl_send_reply("200","Keepalive"); + sl_send_reply("200", "Keepalive"); exit; } @@ -260,7 +260,7 @@ route[WITHINDLG] { exit; } } - sl_send_reply("404","Not here"); + sl_send_reply("404", "Not here"); exit; } diff --git a/misc/examples/mixed/msilo.cfg b/misc/examples/mixed/msilo.cfg index 5a5660ec679..533d8fb8626 100644 --- a/misc/examples/mixed/msilo.cfg +++ b/misc/examples/mixed/msilo.cfg @@ -37,8 +37,8 @@ modparam("usrloc", "db_mode", 0) # -- msilo params -- -modparam("msilo","db_url","mysql://user:xxx@127.0.0.1/msilo") -modparam("msilo","registrar","sip:registrar@mydomain.com") +modparam("msilo", "db_url", "mysql://user:xxx@127.0.0.1/msilo") +modparam("msilo", "registrar", "sip:registrar@mydomain.com") # -- tm params -- @@ -50,7 +50,7 @@ modparam("tm", "wt_timer", 10 ) route{ if ( !mf_process_maxfwd_header("10") ) { - sl_send_reply("483","To Many Hops"); + sl_send_reply("483", "To Many Hops"); drop(); }; @@ -126,7 +126,7 @@ failure_route[1] { 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 if (m_store("1")) { diff --git a/misc/examples/mixed/nathelper.cfg b/misc/examples/mixed/nathelper.cfg index 4179effab45..7df50d25cde 100644 --- a/misc/examples/mixed/nathelper.cfg +++ b/misc/examples/mixed/nathelper.cfg @@ -94,7 +94,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (msg:len >= max_len ) { diff --git a/misc/examples/mixed/onr.cfg b/misc/examples/mixed/onr.cfg index fa5c90d0d23..2af311d5b83 100644 --- a/misc/examples/mixed/onr.cfg +++ b/misc/examples/mixed/onr.cfg @@ -47,7 +47,7 @@ route{ failure_route[1] { # forwarding failed -- try again at another destination append_branch("sip:nonsense@iptel.org"); - log(1,"first redirection\n"); + log(1, "first redirection\n"); # if this alternative destination fails too, proceed to reply_route[2] t_on_failure("2"); t_relay(); diff --git a/misc/examples/mixed/pstn.cfg b/misc/examples/mixed/pstn.cfg index 61a5f8269b9..f3b74890d12 100644 --- a/misc/examples/mixed/pstn.cfg +++ b/misc/examples/mixed/pstn.cfg @@ -20,7 +20,7 @@ loadmodule "modules/uri/uri.so" # ----------------- 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", "password_column", "password") @@ -41,7 +41,7 @@ route{ # filter too old messages if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (len_gt( max_len )) { diff --git a/misc/examples/mixed/replicate.cfg b/misc/examples/mixed/replicate.cfg index 7983320ebd4..e54276e48b2 100644 --- a/misc/examples/mixed/replicate.cfg +++ b/misc/examples/mixed/replicate.cfg @@ -36,7 +36,7 @@ route{ # initial sanity checks -- messages with # max_forwars==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (len_gt( max_len )) { diff --git a/misc/examples/mixed/serial_183.cfg b/misc/examples/mixed/serial_183.cfg index 02b0bc36720..b08a61abe08 100644 --- a/misc/examples/mixed/serial_183.cfg +++ b/misc/examples/mixed/serial_183.cfg @@ -23,7 +23,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (len_gt( max_len )) { diff --git a/misc/examples/mixed/voicemail.cfg b/misc/examples/mixed/voicemail.cfg index 43efb371dc8..8ccbc36ab11 100644 --- a/misc/examples/mixed/voicemail.cfg +++ b/misc/examples/mixed/voicemail.cfg @@ -31,7 +31,7 @@ loadmodule "/home/srouter/sip_router/modules/vm/vm.so" # ----------------- 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 ------------------- @@ -43,7 +43,7 @@ route{ # initial sanity checks -- messages with # max_forwars==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (len_gt( max_len )) { @@ -63,23 +63,23 @@ route{ if (!t_newtran()) { 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; }; - t_reply("100","Trying -- just wait a minute !"); + t_reply("100", "Trying -- just wait a minute !"); if(method=="INVITE"){ 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"); - t_reply("500","could not contact the answer machine"); + t_reply("500", "could not contact the answer machine"); }; log("**************** vm start - end ******************\n"); } else if(method=="BYE"){ 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"); - t_reply("500","could not contact the answer machine"); + t_reply("500", "could not contact the answer machine"); }; log("**************** vm end - end ******************\n"); }; diff --git a/misc/examples/mixed/welcome.cfg b/misc/examples/mixed/welcome.cfg index 4bde0ae71be..01632237ca8 100644 --- a/misc/examples/mixed/welcome.cfg +++ b/misc/examples/mixed/welcome.cfg @@ -48,7 +48,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (len_gt( max_len )) { diff --git a/misc/examples/obsoleted/backup.cfg b/misc/examples/obsoleted/backup.cfg index e2c54c5f8ac..23eee18f8a9 100644 --- a/misc/examples/obsoleted/backup.cfg +++ b/misc/examples/obsoleted/backup.cfg @@ -112,7 +112,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; diff --git a/misc/examples/obsoleted/bat.cfg b/misc/examples/obsoleted/bat.cfg index fa5d432a7e7..c0345a264b2 100644 --- a/misc/examples/obsoleted/bat.cfg +++ b/misc/examples/obsoleted/bat.cfg @@ -68,7 +68,7 @@ route{ log("Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; diff --git a/misc/examples/obsoleted/blb.cfg b/misc/examples/obsoleted/blb.cfg index b34da67e36a..15c2a57a683 100644 --- a/misc/examples/obsoleted/blb.cfg +++ b/misc/examples/obsoleted/blb.cfg @@ -59,7 +59,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("0")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; @@ -87,7 +87,7 @@ route{ # t_relay(); -# t_relay_to("iptel.org","5060"); +# t_relay_to("iptel.org", "5060"); # forward( uri:host, uri:port ); # strip(9); # t_relay_to( "localhost", "9" ); diff --git a/misc/examples/obsoleted/imgw.cfg b/misc/examples/obsoleted/imgw.cfg index 78004edb88a..92db9ebc100 100644 --- a/misc/examples/obsoleted/imgw.cfg +++ b/misc/examples/obsoleted/imgw.cfg @@ -32,12 +32,12 @@ loadmodule "../sip_router/modules/jabber/jabber.so" # ----------------- setting module-specific parameters --------------- # -- 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 -- modparam("tm", "fr_timer", 10 ) @@ -45,13 +45,13 @@ modparam("tm", "fr_inv_timer", 10 ) modparam("tm", "wt_timer", 10 ) # -- jabber params -- -modparam("jabber","db_url","sql://s2jgw:47s2jgw11@127.0.0.1/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:47s2jgw11@127.0.0.1/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 ------------------- @@ -64,7 +64,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; @@ -87,13 +87,13 @@ route{ log("MESSAGE received -> sending as JABBER\n"); if (jab_send_message()) { - sl_send_reply("202","Accepted"); + sl_send_reply("202", "Accepted"); }else{ - sl_send_reply("502","Bad gateway"); + sl_send_reply("502", "Bad gateway"); }; }else{ 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 # stay there until WAIT timer hits) @@ -112,14 +112,14 @@ route{ !( uri=~"iptel.org" | uri=~"195\.37\.77\.100" )) { log("SER:Forbidden request: wrong src_ip or req_uri\n"); - sl_send_reply("403","Forbidden"); + sl_send_reply("403", "Forbidden"); break; }; #accept only MESSAGE requests if (!method=="MESSAGE") { - sl_send_reply("501","Not Implemented"); + sl_send_reply("501", "Not Implemented"); break; }; diff --git a/misc/examples/obsoleted/mobile66.cfg b/misc/examples/obsoleted/mobile66.cfg index 5356d3a703f..185b15d7343 100644 --- a/misc/examples/obsoleted/mobile66.cfg +++ b/misc/examples/obsoleted/mobile66.cfg @@ -44,7 +44,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; diff --git a/misc/examples/obsoleted/register.cfg b/misc/examples/obsoleted/register.cfg index 6a345febde6..26a4802238a 100644 --- a/misc/examples/obsoleted/register.cfg +++ b/misc/examples/obsoleted/register.cfg @@ -42,7 +42,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; diff --git a/misc/examples/obsoleted/secondary.cfg b/misc/examples/obsoleted/secondary.cfg index a63b3dd82f5..97736af06a9 100644 --- a/misc/examples/obsoleted/secondary.cfg +++ b/misc/examples/obsoleted/secondary.cfg @@ -61,7 +61,7 @@ route{ log("Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; @@ -204,12 +204,12 @@ route{ }else{ if ( cpl_is_response_reject() ) { log("SER: reject"); - sl_send_reply("603","I am not available!"); + sl_send_reply("603", "I am not available!"); break; }else if ( cpl_is_response_redirect() ) { log("SER : redirect\n"); cpl_update_contact(); - sl_send_reply("302","Moved temporarily"); + sl_send_reply("302", "Moved temporarily"); break; }; }; diff --git a/misc/examples/obsoleted/sms.cfg b/misc/examples/obsoleted/sms.cfg index 59402cc869d..abe6dc83a5a 100644 --- a/misc/examples/obsoleted/sms.cfg +++ b/misc/examples/obsoleted/sms.cfg @@ -53,7 +53,7 @@ route{ # log("LOG: Checking maxfwd\n"); # if (!mf_process_maxfwd_header("0")) { # log("LOG: Too many hops\n"); -# sl_send_reply("483","Too Many Hops"); +# sl_send_reply("483", "Too Many Hops"); # break; # }; diff --git a/misc/examples/obsoleted/smsgw.cfg b/misc/examples/obsoleted/smsgw.cfg index 01b9868554d..619d111691d 100644 --- a/misc/examples/obsoleted/smsgw.cfg +++ b/misc/examples/obsoleted/smsgw.cfg @@ -33,12 +33,12 @@ loadmodule "../sip_router/modules/sms/sms.so" # ----------------- setting module-specific parameters --------------- # -- 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 -- @@ -62,7 +62,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; @@ -71,14 +71,14 @@ route{ !( uri=~"iptel.org" | uri=~"195\.37\.77\.100" )) { log("SER:Forbidden request: wrong src_ip or req_uri\n"); - sl_send_reply("403","Forbidden"); + sl_send_reply("403", "Forbidden"); break; }; #accept only MESSAGE requests if (!method=="MESSAGE") { - sl_send_reply("501","Not Implemented"); + sl_send_reply("501", "Not Implemented"); break; }; diff --git a/misc/examples/obsoleted/test.cfg b/misc/examples/obsoleted/test.cfg index b35c9b243b3..2b9023ff041 100644 --- a/misc/examples/obsoleted/test.cfg +++ b/misc/examples/obsoleted/test.cfg @@ -102,7 +102,7 @@ route{ log("Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; @@ -187,12 +187,12 @@ route{ }else{ if ( cpl_is_response_reject() ) { log("SER: reject"); - sl_send_reply("603","I am not available!"); + sl_send_reply("603", "I am not available!"); break; }else if ( cpl_is_response_redirect() ) { log("SER : redirect\n"); cpl_update_contact(); - sl_send_reply("302","Moved temporarily"); + sl_send_reply("302", "Moved temporarily"); break; }; }; diff --git a/misc/examples/obsoleted/tmtest.cfg b/misc/examples/obsoleted/tmtest.cfg index a9e388edc45..107dfe10cad 100644 --- a/misc/examples/obsoleted/tmtest.cfg +++ b/misc/examples/obsoleted/tmtest.cfg @@ -80,7 +80,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; diff --git a/misc/examples/obsoleted/to_fox.cfg b/misc/examples/obsoleted/to_fox.cfg index db4005380dd..96cce74fb4f 100644 --- a/misc/examples/obsoleted/to_fox.cfg +++ b/misc/examples/obsoleted/to_fox.cfg @@ -59,7 +59,7 @@ route{ log("LOG: Checking maxfwd\n"); if (!mf_process_maxfwd_header("0")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; @@ -86,7 +86,7 @@ route{ # t_relay(); -# t_relay_to("iptel.org","5060"); +# t_relay_to("iptel.org", "5060"); # forward( uri:host, uri:port ); # strip(9); # t_relay_to( "localhost", "9" ); diff --git a/misc/examples/obsoleted/use_jabs.cfg b/misc/examples/obsoleted/use_jabs.cfg index 70d5d9044ab..e617f64fe3e 100644 --- a/misc/examples/obsoleted/use_jabs.cfg +++ b/misc/examples/obsoleted/use_jabs.cfg @@ -36,21 +36,21 @@ loadmodule "modules/jabber/jabber.so" #loadmodule "modules/cpl/cpl.so" #loadmodule "modules/pike/pike.so" -modparam("jabber","contact","sip:bat.iptel.org:5080") -modparam("jabber","db_url","sql://s2jgw:47s2jgw11@127.0.0.1/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:47s2jgw11@127.0.0.1/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{ sl_filter_ACK(); if ( !mf_process_maxfwd_header("10") ) { - sl_send_reply("483","To Many Hops"); + sl_send_reply("483", "To Many Hops"); drop(); }; @@ -63,13 +63,13 @@ route{ log("MESSAGE received -> sending as JABBER\n"); if (jab_send_message()) { - sl_send_reply("202","Accepted"); + sl_send_reply("202", "Accepted"); }else{ - sl_send_reply("502","Bad gateway"); + sl_send_reply("502", "Bad gateway"); }; }else{ log("NON_Message request received for JABBER gateway->dropt!\n"); - sl_send_reply("501","Not implemented"); + sl_send_reply("501", "Not implemented"); }; break; }; diff --git a/misc/examples/outbound/edge.cfg b/misc/examples/outbound/edge.cfg index 2bdf93b77c2..28f5f8d05d9 100644 --- a/misc/examples/outbound/edge.cfg +++ b/misc/examples/outbound/edge.cfg @@ -114,7 +114,7 @@ route[RELAY] { route[REQINIT] { if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } @@ -141,7 +141,7 @@ route[WITHINDLG] { exit; } } - sl_send_reply("404","Not Found"); + sl_send_reply("404", "Not Found"); } } else { if (is_method("NOTIFY")) { diff --git a/misc/examples/outbound/edge_websocket.cfg b/misc/examples/outbound/edge_websocket.cfg index 843ec204b54..5618b27eae9 100644 --- a/misc/examples/outbound/edge_websocket.cfg +++ b/misc/examples/outbound/edge_websocket.cfg @@ -172,7 +172,7 @@ route[RELAY] { route[REQINIT] { if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } @@ -199,7 +199,7 @@ route[WITHINDLG] { exit; } } - sl_send_reply("404","Not Found"); + sl_send_reply("404", "Not Found"); } } else { if (is_method("NOTIFY")) { diff --git a/misc/examples/outbound/registrar.cfg b/misc/examples/outbound/registrar.cfg index db920fa6318..70b79df0fb8 100644 --- a/misc/examples/outbound/registrar.cfg +++ b/misc/examples/outbound/registrar.cfg @@ -78,7 +78,7 @@ request_route { if ($rU==$null) { xlog("L_INFO", "Address Incomplete\n"); - send_reply("484","Address Incomplete"); + send_reply("484", "Address Incomplete"); exit; } @@ -97,7 +97,7 @@ route[RELAY] { route[REQINIT] { if (!mf_process_maxfwd_header("10")) { xlog("L_INFO", "Too Many Hops\n"); - send_reply("483","Too Many Hops"); + send_reply("483", "Too Many Hops"); exit; } @@ -125,7 +125,7 @@ route[WITHINDLG] { } } xlog("L_INFO", "Not Found"); - send_reply("404","Not Found"); + send_reply("404", "Not Found"); } exit; } diff --git a/misc/examples/pkg/kamailio-basic.cfg b/misc/examples/pkg/kamailio-basic.cfg index 1cb5791fbbc..6041ce06195 100644 --- a/misc/examples/pkg/kamailio-basic.cfg +++ b/misc/examples/pkg/kamailio-basic.cfg @@ -364,7 +364,7 @@ request_route { if ($rU==$null) { # request with no Username in RURI - sl_send_reply("484","Address Incomplete"); + sl_send_reply("484", "Address Incomplete"); exit; } @@ -405,7 +405,7 @@ route[REQINIT] { exit; } 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; exit; } @@ -417,12 +417,12 @@ route[REQINIT] { #!endif if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } if(is_method("OPTIONS") && uri==myself && $rU==$null) { - sl_send_reply("200","Keepalive"); + sl_send_reply("200", "Keepalive"); exit; } @@ -537,7 +537,7 @@ route[AUTH] { # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { - sl_send_reply("403","Not relaying"); + sl_send_reply("403", "Not relaying"); exit; } diff --git a/misc/examples/pkg/kamailio-oob.cfg b/misc/examples/pkg/kamailio-oob.cfg index f4a7cd6d77f..c9ddec4c910 100644 --- a/misc/examples/pkg/kamailio-oob.cfg +++ b/misc/examples/pkg/kamailio-oob.cfg @@ -601,7 +601,7 @@ route[REQINIT] { exit; } 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; exit; } @@ -613,12 +613,12 @@ route[REQINIT] { #!endif if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } if(is_method("OPTIONS") && uri==myself && $rU==$null) { - sl_send_reply("200","Keepalive"); + sl_send_reply("200", "Keepalive"); exit; } @@ -781,7 +781,7 @@ route[AUTH] { # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { - sl_send_reply("403","Not relaying"); + sl_send_reply("403", "Not relaying"); exit; } @@ -958,7 +958,7 @@ failure_route[MANAGE_FAILURE] { #!ifdef WITH_BLOCK3XX # block call redirect based on 3xx replies. if (t_check_status("3[0-9][0-9]")) { - t_reply("404","Not found"); + t_reply("404", "Not found"); exit; } #!endif diff --git a/misc/examples/pkg/sip-router-basic.cfg b/misc/examples/pkg/sip-router-basic.cfg index b2a02b9c4bd..2cc29c05958 100644 --- a/misc/examples/pkg/sip-router-basic.cfg +++ b/misc/examples/pkg/sip-router-basic.cfg @@ -129,7 +129,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_reply("483","Too Many Hops"); + sl_reply("483", "Too Many Hops"); break; } if (msg:len >= 4096 ) { diff --git a/misc/examples/pkg/sip-router-oob.cfg b/misc/examples/pkg/sip-router-oob.cfg index 34ee2104807..99d6c975e1e 100644 --- a/misc/examples/pkg/sip-router-oob.cfg +++ b/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 # 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 -modparam("usrloc","db_skip_delete",1) +modparam("usrloc", "db_skip_delete", 1) # -- registrar -- @@ -716,7 +716,7 @@ route[INIT] { # Messages with a Max-Forwards header of zero. if (!mf_process_maxfwd_header("10")) { - sl_reply("483","Too Many Hops"); + sl_reply("483", "Too Many Hops"); drop; } @@ -1202,7 +1202,7 @@ route[REGISTRAR] #DEBCONF-REPL_SEND_ADDR-END # Put the UID in the Request-URI so that it doesn't have to # 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); } #DEBCONF-REPLICATION2-START diff --git a/misc/examples/pkg/sipcapture.cfg b/misc/examples/pkg/sipcapture.cfg index 0003e532331..8463166c31e 100644 --- a/misc/examples/pkg/sipcapture.cfg +++ b/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", "exec", "timer=ta;route=TIMER_STATS") -modparam("sqlops","sqlcon","cb=>mysql://HOMER_DB_USER:HOMER_DB_PASSWORD@127.0.0.1/homer_statistic") -modparam("sqlops","sqlcon","wc=>mysql://HOMER_DB_USER:HOMER_DB_PASSWORD@127.0.0.1/homer_data") +modparam("sqlops", "sqlcon", "cb=>mysql://HOMER_DB_USER:HOMER_DB_PASSWORD@127.0.0.1/homer_statistic") +modparam("sqlops", "sqlcon", "wc=>mysql://HOMER_DB_USER:HOMER_DB_PASSWORD@127.0.0.1/homer_data") # ----- mi_fifo params ----- @@ -878,7 +878,7 @@ event_route[xhttp:request] { #Json is our body $var(json) = $rb; 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") { $var(i) = 0; $(avp(x)[0]) = 'interval'; diff --git a/misc/examples/presence/full-no-failover.cfg b/misc/examples/presence/full-no-failover.cfg index ae8592830b2..0653e605703 100644 --- a/misc/examples/presence/full-no-failover.cfg +++ b/misc/examples/presence/full-no-failover.cfg @@ -53,9 +53,9 @@ loadmodule "/usr/lib/ser/modules/msilo.so" # ----------------- setting module-specific parameters --------------- -# modparam("msilo","registrar","sip:registrar@test-domain.com") -modparam("msilo","use_contact",0) -modparam("msilo","expire_time",7200) +# modparam("msilo", "registrar", "sip:registrar@test-domain.com") +modparam("msilo", "use_contact", 0) +modparam("msilo", "expire_time", 7200) # -- usrloc params -- @@ -142,7 +142,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (msg:len >= max_len ) { diff --git a/misc/examples/presence/no-db.cfg b/misc/examples/presence/no-db.cfg index 1b70460c2b1..c3e6aa8b494 100644 --- a/misc/examples/presence/no-db.cfg +++ b/misc/examples/presence/no-db.cfg @@ -89,7 +89,7 @@ route{ # initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); break; }; if (msg:len >= max_len ) { diff --git a/misc/examples/webrtc/kamailio-default-websocket.cfg b/misc/examples/webrtc/kamailio-default-websocket.cfg index d7e8cced32a..d4dba4d9dcb 100644 --- a/misc/examples/webrtc/kamailio-default-websocket.cfg +++ b/misc/examples/webrtc/kamailio-default-websocket.cfg @@ -532,7 +532,7 @@ request_route { if ($rU==$null) { # request with no Username in RURI - sl_send_reply("484","Address Incomplete"); + sl_send_reply("484", "Address Incomplete"); exit; } @@ -577,7 +577,7 @@ route[REQINIT] { exit; } 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; exit; } @@ -590,12 +590,12 @@ route[REQINIT] { } if (!mf_process_maxfwd_header("10")) { - sl_send_reply("483","Too Many Hops"); + sl_send_reply("483", "Too Many Hops"); exit; } if(is_method("OPTIONS") && uri==myself && $rU==$null) { - sl_send_reply("200","Keepalive"); + sl_send_reply("200", "Keepalive"); exit; } @@ -644,7 +644,7 @@ route[WITHINDLG] { exit; } } - sl_send_reply("404","Not here"); + sl_send_reply("404", "Not here"); exit; } @@ -768,7 +768,7 @@ route[AUTH] { # if caller is not local subscriber, then check if it calls # a local destination, otherwise deny, not an open relay here if (from_uri!=myself && uri!=myself) { - sl_send_reply("403","Not relaying"); + sl_send_reply("403", "Not relaying"); exit; } @@ -776,7 +776,7 @@ route[AUTH] { # authentication not enabled - do not relay at all to foreign networks if(uri!=myself) { - sl_send_reply("403","Not relaying"); + sl_send_reply("403", "Not relaying"); exit; } @@ -969,7 +969,7 @@ failure_route[MANAGE_FAILURE] { #!ifdef WITH_BLOCK3XX # block call redirect based on 3xx replies. if (t_check_status("3[0-9][0-9]")) { - t_reply("404","Not found"); + t_reply("404", "Not found"); exit; } #!endif @@ -977,7 +977,7 @@ failure_route[MANAGE_FAILURE] { #!ifdef WITH_BLOCK401407 # block call redirect based on 401, 407 replies. if (t_check_status("401|407")) { - t_reply("404","Not found"); + t_reply("404", "Not found"); exit; } #!endif diff --git a/misc/scripts/serconf.sh b/misc/scripts/serconf.sh index bca65c043ac..9f04481be0b 100755 --- a/misc/scripts/serconf.sh +++ b/misc/scripts/serconf.sh @@ -274,7 +274,7 @@ route{ # filter too old messages if (!mf_process_maxfwd_header("10")) { log("LOG: Too many hops\n"); - sl_send_reply("483","Alas Too Many Hops"); + sl_send_reply("483", "Alas Too Many Hops"); break; }; if (len_gt( max_len )) { @@ -523,7 +523,7 @@ route[3] { append_hf("P-hint: GATEWAY\r\n"); # use UDP to guarantee well-known sender port (TCP ephemeral) - t_relay_to_udp("$SER_GWIP","5060"); + t_relay_to_udp("$SER_GWIP", "5060"); }