[Freeswitch-svn] [commit] r6923 - freeswitch/trunk/src/mod/dialplans/mod_dialplan_asterisk

Freeswitch SVN anthm at freeswitch.org
Thu Dec 20 18:25:45 EST 2007


Author: anthm
Date: Thu Dec 20 18:25:45 2007
New Revision: 6923

Modified:
   freeswitch/trunk/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c

Log:
tweak

Modified: freeswitch/trunk/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c
==============================================================================
--- freeswitch/trunk/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c	(original)
+++ freeswitch/trunk/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c	Thu Dec 20 18:25:45 2007
@@ -160,7 +160,7 @@
 		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");



More information about the Freeswitch-svn mailing list