From 89fca65c3926472ac6754c1aa29b3c8c78e1b6f1 Mon Sep 17 00:00:00 2001 From: James Aimonetti Date: Wed, 16 Feb 2011 17:26:05 -0800 Subject: [PATCH 01/20] fix comma --- sip_profiles/sipinterface_2.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sip_profiles/sipinterface_2.xml b/sip_profiles/sipinterface_2.xml index aa1826e..f73ee1a 100644 --- a/sip_profiles/sipinterface_2.xml +++ b/sip_profiles/sipinterface_2.xml @@ -84,7 +84,7 @@ - + From bfd2d2da416f73c98f134e9bf220b1d8217eba46 Mon Sep 17 00:00:00 2001 From: James Aimonetti Date: Mon, 2 May 2011 14:47:32 -0700 Subject: [PATCH 02/20] remove mod_file_string from being loaded --- autoload_configs/modules.conf.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/autoload_configs/modules.conf.xml b/autoload_configs/modules.conf.xml index 5cb1b90..dea1ca9 100644 --- a/autoload_configs/modules.conf.xml +++ b/autoload_configs/modules.conf.xml @@ -48,7 +48,6 @@ - From d170ee25db815dc70bed7bf51108fb66cb5211c4 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 10:12:18 -0700 Subject: [PATCH 03/20] tweaks to the commit --- freeswitch.xml | 38 +++++++++++++++++++++++++++------ sip_profiles/sipinterface_1.xml | 12 ++++++----- 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/freeswitch.xml b/freeswitch.xml index 720124a..7211c21 100644 --- a/freeswitch.xml +++ b/freeswitch.xml @@ -1,14 +1,40 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + +
diff --git a/sip_profiles/sipinterface_1.xml b/sip_profiles/sipinterface_1.xml index 46bab36..69f9870 100644 --- a/sip_profiles/sipinterface_1.xml +++ b/sip_profiles/sipinterface_1.xml @@ -5,7 +5,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -65,11 +65,11 @@ - + - + @@ -101,7 +101,9 @@ - + + + From 7b3b8d8a5327177c911d60e782784ea5e2315cd8 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 15:16:01 -0700 Subject: [PATCH 04/20] more tweaks --- autoload_configs/conference.conf.xml | 202 ++++++++-------------- autoload_configs/directory.conf.xml | 20 --- autoload_configs/event_multicast.conf.xml | 9 - autoload_configs/fifo.conf.xml | 6 - autoload_configs/ivr.conf.xml | 5 - autoload_configs/modules.conf.xml | 16 +- autoload_configs/voicemail.conf.xml | 62 ------- ivr_menus/empty.xml | 3 - 8 files changed, 78 insertions(+), 245 deletions(-) delete mode 100644 autoload_configs/directory.conf.xml delete mode 100644 autoload_configs/event_multicast.conf.xml delete mode 100644 autoload_configs/fifo.conf.xml delete mode 100644 autoload_configs/ivr.conf.xml delete mode 100644 autoload_configs/voicemail.conf.xml delete mode 100644 ivr_menus/empty.xml diff --git a/autoload_configs/conference.conf.xml b/autoload_configs/conference.conf.xml index 8b119dd..8add428 100644 --- a/autoload_configs/conference.conf.xml +++ b/autoload_configs/conference.conf.xml @@ -1,174 +1,118 @@ - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - \ No newline at end of file + diff --git a/autoload_configs/directory.conf.xml b/autoload_configs/directory.conf.xml deleted file mode 100644 index 1704d16..0000000 --- a/autoload_configs/directory.conf.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/autoload_configs/event_multicast.conf.xml b/autoload_configs/event_multicast.conf.xml deleted file mode 100644 index 846dbc2..0000000 --- a/autoload_configs/event_multicast.conf.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/autoload_configs/fifo.conf.xml b/autoload_configs/fifo.conf.xml deleted file mode 100644 index c20b6a4..0000000 --- a/autoload_configs/fifo.conf.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/autoload_configs/ivr.conf.xml b/autoload_configs/ivr.conf.xml deleted file mode 100644 index 93a4ad3..0000000 --- a/autoload_configs/ivr.conf.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/autoload_configs/modules.conf.xml b/autoload_configs/modules.conf.xml index dea1ca9..371a3a3 100644 --- a/autoload_configs/modules.conf.xml +++ b/autoload_configs/modules.conf.xml @@ -10,7 +10,6 @@ - @@ -25,40 +24,35 @@ - - - - - - - + + - + + + - - diff --git a/autoload_configs/voicemail.conf.xml b/autoload_configs/voicemail.conf.xml deleted file mode 100644 index de8f6f2..0000000 --- a/autoload_configs/voicemail.conf.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ivr_menus/empty.xml b/ivr_menus/empty.xml deleted file mode 100644 index dd68d75..0000000 --- a/ivr_menus/empty.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - From 7bd89e53422674e2f0e265c99c83e27c6a9d39a2 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 15:21:34 -0700 Subject: [PATCH 05/20] even more tweaks! --- autoload_configs/modules.conf.xml | 2 +- shout.conf.xml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 shout.conf.xml diff --git a/autoload_configs/modules.conf.xml b/autoload_configs/modules.conf.xml index 371a3a3..e4445fc 100644 --- a/autoload_configs/modules.conf.xml +++ b/autoload_configs/modules.conf.xml @@ -39,7 +39,7 @@ - + diff --git a/shout.conf.xml b/shout.conf.xml new file mode 100644 index 0000000..3f381e6 --- /dev/null +++ b/shout.conf.xml @@ -0,0 +1,8 @@ + + + + + + + + From ae5866ee799e602c575f87747bd264c2862f4180 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 15:21:34 -0700 Subject: [PATCH 06/20] even more tweaks! --- autoload_configs/modules.conf.xml | 2 +- autoload_configs/shout.conf.xml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 autoload_configs/shout.conf.xml diff --git a/autoload_configs/modules.conf.xml b/autoload_configs/modules.conf.xml index 371a3a3..e4445fc 100644 --- a/autoload_configs/modules.conf.xml +++ b/autoload_configs/modules.conf.xml @@ -39,7 +39,7 @@ - + diff --git a/autoload_configs/shout.conf.xml b/autoload_configs/shout.conf.xml new file mode 100644 index 0000000..3f381e6 --- /dev/null +++ b/autoload_configs/shout.conf.xml @@ -0,0 +1,8 @@ + + + + + + + + From aadc71bc54c389fe31b97f9fed6ecb9122b221ba Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 15:25:24 -0700 Subject: [PATCH 07/20] spacing --- freeswitch.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freeswitch.xml b/freeswitch.xml index 7211c21..7a7639a 100644 --- a/freeswitch.xml +++ b/freeswitch.xml @@ -1,5 +1,6 @@ + @@ -55,4 +56,5 @@ + From b9db680878f6f0e22c01fab58b6abf307bd38044 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 15:26:20 -0700 Subject: [PATCH 08/20] hmm ok now I know amending to a push branch, not a great idea --- shout.conf.xml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 shout.conf.xml diff --git a/shout.conf.xml b/shout.conf.xml deleted file mode 100644 index 3f381e6..0000000 --- a/shout.conf.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - From 0c6cc8ea24e1e55a26a86acb530ba9505a869bb9 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 15:30:16 -0700 Subject: [PATCH 09/20] NO LIMITS (well sorta) --- freeswitch.limits.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 freeswitch.limits.conf diff --git a/freeswitch.limits.conf b/freeswitch.limits.conf new file mode 100644 index 0000000..f12233e --- /dev/null +++ b/freeswitch.limits.conf @@ -0,0 +1,15 @@ +freeswitch soft core unlimit +freeswitch soft data unlimit +freeswitch soft fsize unlimit +freeswitch soft memlock unlimit +freeswitch soft nofile 999999 +freeswitch soft rss unlimit +freeswitch soft stack 1024 +freeswitch soft cpu unlimit +freeswitch soft nproc unlimit +freeswitch soft as unlimit +freeswitch soft priority -11 +freeswitch soft locks unlimit +freeswitch soft sigpending unlimit +freeswitch soft msgqueue unlimit +freeswitch soft nice -11 From aae71e6c22e8b499ed224add419a59b57df2da20 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 4 May 2011 15:44:11 -0700 Subject: [PATCH 10/20] this needs to be hard to take effect --- freeswitch.limits.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeswitch.limits.conf b/freeswitch.limits.conf index f12233e..02d3dff 100644 --- a/freeswitch.limits.conf +++ b/freeswitch.limits.conf @@ -4,7 +4,7 @@ freeswitch soft fsize unlimit freeswitch soft memlock unlimit freeswitch soft nofile 999999 freeswitch soft rss unlimit -freeswitch soft stack 1024 +freeswitch hard stack 240 freeswitch soft cpu unlimit freeswitch soft nproc unlimit freeswitch soft as unlimit From eedbaf3955a2d678ab9cb6a00ce8d74021f25a99 Mon Sep 17 00:00:00 2001 From: Lum Date: Sun, 8 May 2011 01:35:50 +0000 Subject: [PATCH 11/20] added aa cluster opensips servers to acl.conf.xml --- autoload_configs/acl.conf.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload_configs/acl.conf.xml b/autoload_configs/acl.conf.xml index c4801d5..4f19493 100644 --- a/autoload_configs/acl.conf.xml +++ b/autoload_configs/acl.conf.xml @@ -9,6 +9,8 @@ + + From 96a1e20fb291fa663de6a45a15d63412cac301da Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 11 May 2011 01:21:34 -0700 Subject: [PATCH 12/20] change the default codecs (dont include wideband) and dont try to pass dtmf directly --- freeswitch.xml | 3 ++- sip_profiles/sipinterface_1.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/freeswitch.xml b/freeswitch.xml index 7a7639a..3cd68ef 100644 --- a/freeswitch.xml +++ b/freeswitch.xml @@ -34,7 +34,8 @@ - + +
diff --git a/sip_profiles/sipinterface_1.xml b/sip_profiles/sipinterface_1.xml index 69f9870..b2cc9eb 100644 --- a/sip_profiles/sipinterface_1.xml +++ b/sip_profiles/sipinterface_1.xml @@ -97,7 +97,7 @@ - + From 906af7e306b64f01838342ad9ca8052f3d6d653f Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 11 May 2011 01:45:24 -0700 Subject: [PATCH 13/20] tweak --- freeswitch.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeswitch.xml b/freeswitch.xml index 3cd68ef..ded6c85 100644 --- a/freeswitch.xml +++ b/freeswitch.xml @@ -35,7 +35,7 @@ - +
From ed8d02365d57cf5716728b06fb73d268b6d8c995 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 11 May 2011 01:47:57 -0700 Subject: [PATCH 14/20] make up your mind! --- freeswitch.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freeswitch.xml b/freeswitch.xml index ded6c85..6322e4c 100644 --- a/freeswitch.xml +++ b/freeswitch.xml @@ -35,7 +35,8 @@ - + +
From 83b53a890db031dde9b512f6d4d5f57767c00a5c Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Fri, 13 May 2011 15:38:00 -0700 Subject: [PATCH 15/20] updates to ensure the ACL is checked in --- autoload_configs/acl.conf.xml | 20 ++--- opensips/opensips.cfg | 160 +++++++++++++++++++--------------- 2 files changed, 99 insertions(+), 81 deletions(-) diff --git a/autoload_configs/acl.conf.xml b/autoload_configs/acl.conf.xml index 4f19493..32c42f3 100644 --- a/autoload_configs/acl.conf.xml +++ b/autoload_configs/acl.conf.xml @@ -1,16 +1,16 @@ - - - - - + + + + + + - - - - + + + - + \ No newline at end of file diff --git a/opensips/opensips.cfg b/opensips/opensips.cfg index bc9249f..6c004b5 100644 --- a/opensips/opensips.cfg +++ b/opensips/opensips.cfg @@ -105,11 +105,12 @@ disable_tcp=no ###################################################################### ## Module Loading ###################################################################### -mpath="/usr/local/lib64/opensips/modules/" +mpath="/usr/lib64/opensips/modules/" loadmodule "memcached.so" loadmodule "signaling.so" loadmodule "sl.so" loadmodule "tm.so" +loadmodule "dialog.so" loadmodule "maxfwd.so" loadmodule "rr.so" loadmodule "path.so" @@ -117,6 +118,7 @@ loadmodule "uri.so" loadmodule "textops.so" loadmodule "usrloc.so" loadmodule "nathelper.so" +loadmodule "nat_traversal.so" loadmodule "dispatcher.so" loadmodule "mi_fifo.so" # loadmodule "mi_datagram.so" @@ -149,7 +151,7 @@ modparam("tm", "fr_timer", 5) # modparam("tm", "fr_inv_timer_avp", "$avp(i:25)") # modparam("tm", "tw_append", # "test: ua=$hdr(User-Agent) ;avp=$avp(i:10);$rb;time=$Ts") -# modparam("tm", "pass_provisional_replies", 0) +modparam("tm", "pass_provisional_replies", 1) # modparam("tm", "syn_branch", 1) # modparam("tm", "onreply_avp_mode", 0) # modparam("tm", "disable_6xx_block", 0) @@ -221,17 +223,25 @@ modparam("usrloc", "path_column", "path") ## Nathelper Module Parameters ###################################################################### # modparam("nathelper", "rtpproxy_sock", "udp:127.0.0.1:7890") -modparam("nathelper", "natping_interval", 30) -modparam("nathelper", "ping_nated_only", 1) +# modparam("nathelper", "natping_interval", 30) +# modparam("nathelper", "ping_nated_only", 1) # modparam("nathelper", "natping_processes", 3) -modparam("nathelper", "sipping_bflag", 7) -modparam("nathelper", "sipping_from", "sip:sipcheck@184.106.172.9 ") +# modparam("nathelper", "sipping_bflag", 7) +# modparam("nathelper", "sipping_from", "sip:sipcheck@184.106.157.174") # modparam("nathelper", "sipping_method", "INFO") +###################################################################### +## NAT Traversal Module Parameters +###################################################################### +modparam("nat_traversal", "keepalive_interval", 60) +modparam("nat_traversal", "keepalive_method", "OPTIONS") +modparam("nat_traversal", "keepalive_from", "sip:keepalive@ping.sip.2600hz.com") +modparam("nat_traversal", "keepalive_state_file", "/tmp/opensips_keepalive_state") + ###################################################################### ## Dispatcher Module Parameters ###################################################################### -modparam("dispatcher", "list_file", "/usr/local/etc/opensips/dispatcher.list") +modparam("dispatcher", "list_file", "/etc/opensips/dispatcher.list") modparam("dispatcher", "flags", 2) modparam("dispatcher", "use_default", 0) modparam("dispatcher", "force_dst", 1) @@ -242,7 +252,7 @@ modparam("dispatcher", "cnt_avp", "$avp(i:274)") modparam("dispatcher", "hash_pvar", "$avp(i:273)") # modparam("dispatcher", "setid_pvar", "$var(setid)") modparam("dispatcher", "ds_ping_method", "OPTIONS") -modparam("dispatcher", "ds_ping_from", "sip:sipcheck@184.106.172.9:5060") +modparam("dispatcher", "ds_ping_from", "sip:sipcheck@184.106.157.174:5060") modparam("dispatcher", "ds_ping_interval", 10) # modparam("dispatcher", "ds_ping_sock", "udp:10.80.25.168:5080") modparam("dispatcher", "ds_probing_threshhold", 3) @@ -290,11 +300,18 @@ route exit; } + if (src_ip==myself) + { + xlog("L_WARN", "Src IP [$ou] from [$si:$sp]"); + + exit; + } + xlog("L_INFO", "Received [$rm] [$ou] from [$si:$sp]"); xlog("L_DBG", " From: [$fu]"); xlog("L_DBG", " To: [$tu]"); - if (is_method("OPTIONS")) + if (is_method("OPTIONS|SUBSCRIBE")) { xlog("L_NOTICE", " Method [$rm] is not supported, sending 503 to [$si:$sp]"); @@ -305,39 +322,16 @@ route t_on_reply("1"); - if (nat_uac_test("18")) - { - xlog("L_INFO", " Source port is different from the port in Via, force rport"); - - force_rport(); - - fix_nated_contact(); - - if (has_body("application/sdp")) - { - xlog("L_INFO", " Fixing nated SDP, rewritting media and origin with [$si]"); - - fix_nated_sdp("10"); - } - - # If this leads to a sucessfull register then flag 5 will cause nat=yes to be append to the contact - # and (when appropriate) the use of the nat_compensator reply branch - setflag(5); - } + t_on_failure("1"); if (has_totag()) { - if (subst_uri('/(sip:.*);nat=yes/\1/')) - { - xlog("L_INFO", " Set reply branch for NAT compensation on this message in the existing dialog"); - - t_on_reply("nat_compensator"); - } - # sequential request withing a dialog should # take the path determined by record-routing if (loose_route()) { + append_hf("P-hint: rr-enforced\r\n"); + if (is_method("INVITE")) { # even if in most of the cases is useless, do RR for @@ -348,6 +342,13 @@ route #record_route(); } + if ((ds_is_in_list("$si", "$sp", "1") || ds_is_in_list("$si", "$sp", "2")) && is_method("ACK")) + { + xlog("L_INFO", " Stored [$tU] as belonging to media server [$fd]"); + + cache_store("memcached_callid_hash", "$tU ", "$fd", 3600); + } + # route it out to whatever destination was set by loose_route() # in $du (destination URI). route(1); @@ -430,33 +431,38 @@ route } # is not from media servers - if (!ds_is_in_list("$si", "$sp", "1") and !ds_is_in_list("$si", "$sp", "2")) - { - if(cache_fetch("memcached_callid_hash", "$ci", $avp(i:55))) + if (!ds_is_in_list("$si", "$sp", "1") && !ds_is_in_list("$si", "$sp", "2")) + { + if ($ct.fields(uri) && cache_fetch("memcached_callid_hash", "$(ct.fields(uri){uri.user})", $avp(i:55))) + { + $rd = $avp(i:55); + + xlog("L_INFO", " Reconized contact [$ct.fields(uri)] as belonging to media server [$rd]"); + } + else if (cache_fetch("memcached_callid_hash", "$ci", $avp(i:55))) { $rd = $avp(i:55); xlog("L_INFO", " Reconized call-id [$ci] as belonging to media server [$rd]"); + + if ($ct.fields(uri) && is_method("INVITE")) + { + xlog("L_INFO", " Stored [$(ct.fields(uri){uri.user})] as belonging to media server [$rd]"); + + cache_store("memcached_callid_hash", "$(ct.fields(uri){uri.user})", "$rd", 3600); + } } else { xlog("L_INFO", " Selecting domain from set 1 using round-robin"); - + ds_select_domain("1", "4"); - - t_on_failure("1"); } + + remove_hf("X-AUTH-IP"); append_hf("X-AUTH-IP: $si\r\n"); - - if (isflagset(5)) - { - xlog("L_INFO", " This contact is behind NAT, appending nat=yes to the Contact header"); - - # "nat=yes" is added to help with in-dialog re-INVITE, UPDATE, etc. - search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes'); - } - } + } # record routing if (!is_method("REGISTER|MESSAGE")) @@ -473,6 +479,8 @@ route route[1] { + route("nat_test_and_correct"); + if (!t_relay()) { xlog("L_ERR", " Unable to relay [$rm] [$ru] to [$du], sending 500"); @@ -485,40 +493,41 @@ route[1] exit; } -onreply_route[1] +route[nat_test_and_correct] { - if (t_check_status("(407)|(401)")) + if (client_nat_test("3")) { - cache_store("memcached_callid_hash", "$ci ", "$si", 60); + xlog("L_INFO", " NAT (SIP): Private IP in contact field or via address differs from source"); - xlog("L_INFO", " Stored call-id [$ci] as belonging to media server [$si]"); - } -} + force_rport(); -onreply_route[nat_compensator] -{ - xlog("L_INFO ", " Compensating reply from NATed message [$rs] [$rr]"); + if ((method=="REGISTER" || method=="SUBSCRIBE" || (method=="INVITE" && !has_totag()))) + { + xlog("L_INFO", " NAT (SIP): Activating keep alive pings"); - if (t_check_status("(407)|(401)")) - { - cache_store("memcached_callid_hash", "$ci ", "$si", 60); + nat_keepalive(); + } - xlog("L_INFO", " Stored call-id [$ci] for NATed reply as belonging to media server [$si]"); + fix_contact(); } - - if (has_body("application/sdp")) + + if (has_body("application/sdp") && nat_uac_test("8")) { - xlog("L_INFO", " Fixing nated reply SDP, rewritting media and origin with [$si]"); + xlog("L_INFO", " NAT (SDP): Private IP in SDP"); fix_nated_sdp("10"); } +} + +onreply_route[1] +{ + route("nat_test_and_correct"); - if (is_present_hf("Contact")) + if (t_check_status("(407)|(401)")) { - xlog("L_INFO", " Fixing nated reply contact header"); + cache_store("memcached_callid_hash", "$ci ", "$si", 60); - fix_nated_contact(); - #search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes'); + xlog("L_INFO", " Stored call-id [$ci] as belonging to media server [$si]"); } } @@ -535,12 +544,20 @@ failure_route[1] ds_mark_dst("p"); - if (ds_next_domain()) +# if (ds_next_domain()) + if(ds_select_domain("1", "4")) { xlog("L_ERR", " Hunting for avaliable media server..."); xlog("L_INFO", " Sent [$rm] [$ru] to [$rd]"); + if ($ct.fields(uri) && is_method("INVITE")) + { + xlog("L_INFO", " Stored [$(ct.fields(uri){uri.user})] as belonging to media server [$rd]"); + + cache_store("memcached_callid_hash", "$(ct.fields(uri){uri.user})", "$rd", 3600); + } + t_relay(); exit; @@ -555,3 +572,4 @@ failure_route[1] exit; } + From 5a6fde6555ae917593cf71c248fa863cb5ed072a Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Fri, 13 May 2011 15:40:10 -0700 Subject: [PATCH 16/20] add the second ts opensips --- autoload_configs/acl.conf.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload_configs/acl.conf.xml b/autoload_configs/acl.conf.xml index 32c42f3..41cdd73 100644 --- a/autoload_configs/acl.conf.xml +++ b/autoload_configs/acl.conf.xml @@ -6,6 +6,7 @@ + @@ -13,4 +14,4 @@ - \ No newline at end of file + From bb9df047245782b45b198c6cca7dc3aa32bec21d Mon Sep 17 00:00:00 2001 From: Darren Schreiber Date: Sat, 14 May 2011 18:29:14 -0700 Subject: [PATCH 17/20] Added support for G729 --- freeswitch.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeswitch.xml b/freeswitch.xml index 6322e4c..86a9db1 100644 --- a/freeswitch.xml +++ b/freeswitch.xml @@ -36,7 +36,7 @@ - +
From 810dba91e6ebbcf63763e644bdb377f2a953c1d7 Mon Sep 17 00:00:00 2001 From: Lum Date: Mon, 16 May 2011 05:30:21 +0000 Subject: [PATCH 18/20] added bandwidth to acl --- autoload_configs/acl.conf.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload_configs/acl.conf.xml b/autoload_configs/acl.conf.xml index 41cdd73..8f0e317 100644 --- a/autoload_configs/acl.conf.xml +++ b/autoload_configs/acl.conf.xml @@ -7,6 +7,7 @@ + From b008b03eaf6ad579002b98d196c1edde66cc6687 Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 22 Jun 2011 11:00:14 -0700 Subject: [PATCH 19/20] marker --- sip_profiles/sipinterface_1.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sip_profiles/sipinterface_1.xml b/sip_profiles/sipinterface_1.xml index b2cc9eb..16bd2e1 100644 --- a/sip_profiles/sipinterface_1.xml +++ b/sip_profiles/sipinterface_1.xml @@ -1,7 +1,7 @@ - + From 7af8765819b775d6942cd8313320028e5df5519a Mon Sep 17 00:00:00 2001 From: Karl Anderson Date: Wed, 22 Jun 2011 11:03:52 -0700 Subject: [PATCH 20/20] remove the marker --- sip_profiles/sipinterface_1.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sip_profiles/sipinterface_1.xml b/sip_profiles/sipinterface_1.xml index 16bd2e1..b2cc9eb 100644 --- a/sip_profiles/sipinterface_1.xml +++ b/sip_profiles/sipinterface_1.xml @@ -1,7 +1,7 @@ - +