mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 04:27:25 +00:00
fix assert when running api originate and not passing an extension.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2519 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
24f3cc1e85
commit
d9d51826fb
@ -255,7 +255,7 @@ static switch_status_t originate_function(char *cmd, switch_core_session_t *ises
|
|||||||
timeout = atoi(argv[6]);
|
timeout = atoi(argv[6]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!aleg && exten) {
|
if (!aleg || !exten) {
|
||||||
stream->write_function(stream, "Invalid Arguements\n");
|
stream->write_function(stream, "Invalid Arguements\n");
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user