[Freeswitch-svn] [commit] r2519 - freeswitch/trunk/src/mod/applications/mod_commands
Freeswitch SVN
mikej at freeswitch.org
Tue Sep 5 16:34:17 EDT 2006
Author: mikej
Date: Tue Sep 5 16:34:17 2006
New Revision: 2519
Modified:
freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
Log:
fix assert when running api originate and not passing an extension.
Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Tue Sep 5 16:34:17 2006
@@ -255,7 +255,7 @@
timeout = atoi(argv[6]);
}
- if (!aleg && exten) {
+ if (!aleg || !exten) {
stream->write_function(stream, "Invalid Arguements\n");
return SWITCH_STATUS_SUCCESS;
}
More information about the Freeswitch-svn
mailing list