]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 20 Dec 2007 23:25:45 +0000 (23:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 20 Dec 2007 23:25:45 +0000 (23:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6923 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c

index c6fa3ead9a6506be63bcf50040ada58562691f1e..b71711bf7a901745e9dc33089b6e32f6ed994364 100644 (file)
@@ -160,7 +160,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
                caller_profile = switch_channel_get_caller_profile(channel);
        }
        
-       if (caller_profile) {
+       if (caller_profile && !switch_strlen_zero(caller_profile->destination_number)) {
                context = caller_profile->context ? caller_profile->context : "default";
        } else {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Obtaining Profile!\n");