From 54e60f8143c939797dc8c6e9fe9a27378e740923 Mon Sep 17 00:00:00 2001 From: karl anderson Date: Sat, 8 Mar 2014 21:01:27 -0800 Subject: [PATCH] fix hunt in the backup dispatcher list, fix tab-to-space and enable tls by default --- freeswitch/sip_profiles/sipinterface_1.xml | 16 ++++++++-------- kamailio/dbtext/dispatcher | 1 + kamailio/dispatcher-role.cfg | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/freeswitch/sip_profiles/sipinterface_1.xml b/freeswitch/sip_profiles/sipinterface_1.xml index 6f8e38a..74fb7dc 100644 --- a/freeswitch/sip_profiles/sipinterface_1.xml +++ b/freeswitch/sip_profiles/sipinterface_1.xml @@ -68,8 +68,8 @@ - - + + @@ -90,13 +90,13 @@ - diff --git a/kamailio/dbtext/dispatcher b/kamailio/dbtext/dispatcher index 12a5db7..f9e4194 100644 --- a/kamailio/dbtext/dispatcher +++ b/kamailio/dbtext/dispatcher @@ -7,3 +7,4 @@ # setid(integer) destination(sip uri) flags (integer, optional) 1 sip:127.0.0.1:11000 0 +3 sips:127.0.0.1:11001 0 diff --git a/kamailio/dispatcher-role.cfg b/kamailio/dispatcher-role.cfg index 2ef0507..5202303 100644 --- a/kamailio/dispatcher-role.cfg +++ b/kamailio/dispatcher-role.cfg @@ -112,7 +112,7 @@ route[DISPATCHER_REORDER_ROUTES] $var(i) = $var(i) + 1; } - if (!$var(found) && ds_select_dst("2", "0")) { + if (!$var(found) && $var(ds_group) == 1 && ds_select_dst("2", "0")) { $var(i) = 0; while($(avp(ds_dst)[$var(i)]) != $null) { if($(avp(ds_dst)[$var(i)]) == $var(prefered_route)) { @@ -120,6 +120,7 @@ route[DISPATCHER_REORDER_ROUTES] $var(found) = 1; break; } + $var(i) = $var(i) + 1; } }