From ff89e4dfc659a8944a58e46ebc86b73a59d82c91 Mon Sep 17 00:00:00 2001 From: karl anderson Date: Sat, 8 Mar 2014 21:16:05 -0800 Subject: [PATCH] ensure the list is non-empty --- kamailio/dispatcher-role.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kamailio/dispatcher-role.cfg b/kamailio/dispatcher-role.cfg index 5202303..a91788e 100644 --- a/kamailio/dispatcher-role.cfg +++ b/kamailio/dispatcher-role.cfg @@ -65,7 +65,7 @@ route[DISPATCHER_FIND_ROUTES] } #!endif - if (!ds_select_dst("$var(ds_group)", "0")) { + if (!ds_select_dst("$var(ds_group)", "0") || $(avp(ds_dst)[0]) == $null) { # if we selected from group 1, try again in group 2 if ($var(ds_group) == 1) { if (!ds_select_dst("2", "0")) {