[Freeswitch-svn] [commit] r9064 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Wed Jul 16 18:02:41 EDT 2008


Author: anthm
Date: Wed Jul 16 18:02:41 2008
New Revision: 9064

Modified:
   freeswitch/trunk/src/switch_caller.c

Log:
don't let caller profiles init with blank caller id

Modified: freeswitch/trunk/src/switch_caller.c
==============================================================================
--- freeswitch/trunk/src/switch_caller.c	(original)
+++ freeswitch/trunk/src/switch_caller.c	Wed Jul 16 18:02:41 2008
@@ -56,6 +56,14 @@
 		context = "default";
 	}
 
+	if (switch_strlen_zero(caller_id_name)) {
+		caller_id_name = "FreeSWITCH";
+	}
+
+	if (switch_strlen_zero(caller_id_number)) {
+		caller_id_number = "0000000000";
+	}
+
 	profile_dup_clean(username, profile->username, pool);
 	profile_dup_clean(dialplan, profile->dialplan, pool);
 	profile_dup_clean(caller_id_name, profile->caller_id_name, pool);



More information about the Freeswitch-svn mailing list