From: Anthony Minessale Date: Thu, 23 Aug 2012 21:29:24 +0000 (-0500) Subject: fix small bug, init this value to success so you can record without playing a file... X-Git-Tag: v1.2.3^2~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4efff5c46367a89c666ad1d44db4e417e4a87b27;p=thirdparty%2Ffreeswitch.git fix small bug, init this value to success so you can record without playing a file first --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index 2e6c589740..f926ddcd0e 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -887,7 +887,7 @@ static switch_status_t parse_record(const char *tag_name, client_t *client, swit const char *digit_timeout_ = switch_xml_attr(tag, "digit-timeout"); char *loops_ = (char *) switch_xml_attr(tag, "loops"); int loops = 0; - switch_status_t status = SWITCH_STATUS_FALSE; + switch_status_t status = SWITCH_STATUS_SUCCESS; switch_ivr_dmachine_t *dmachine = NULL; switch_input_args_t *args = NULL, myargs = { 0 }; long digit_timeout = 1500;