From: Seven Du Date: Sat, 4 Jan 2014 08:53:36 +0000 (+0800) Subject: return +OK on success X-Git-Tag: v1.4.2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14ad62e327634b66cf86ee59c23e295fb55e1d2;p=thirdparty%2Ffreeswitch.git return +OK on success --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index be2d36cb4f..2b21821ccc 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -3187,8 +3187,13 @@ SWITCH_STANDARD_API(uuid_answer_function) if (uuid && (xsession = switch_core_session_locate(uuid))) { switch_channel_t *channel = switch_core_session_get_channel(xsession); - switch_channel_answer(channel); + switch_status_t status = switch_channel_answer(channel); switch_core_session_rwunlock(xsession); + if (status == SWITCH_STATUS_SUCCESS) { + stream->write_function(stream, "+OK\n"); + } else { + stream->write_function(stream, "-ERROR\n"); + } } else { stream->write_function(stream, "-ERROR\n"); }