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; } }