]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9981: [mod_spandsp] add api_on_fax_success api_on_fax_failure #resolve
authorBrian West <brian@freeswitch.org>
Thu, 26 Jan 2017 22:19:27 +0000 (16:19 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 26 Jan 2017 22:19:34 +0000 (16:19 -0600)
src/mod/applications/mod_spandsp/mod_spandsp_fax.c

index 65e7e54708c5a867b59992901c57584907f7ace7..e1276fc1017d938c1bee5c1af48414ffe0a6ac75 100644 (file)
@@ -613,6 +613,7 @@ static void phase_e_handler(void *user_data, int result)
                        }
                }
                switch_channel_execute_on(channel, "execute_on_fax_success");
+               switch_channel_api_on(channel, "api_on_fax_success");
        } else {
                if ((var = switch_channel_get_variable(channel, "system_on_fax_failure"))) {
                        expanded = switch_channel_expand_variables(channel, var);
@@ -622,6 +623,7 @@ static void phase_e_handler(void *user_data, int result)
                        }
                }
                switch_channel_execute_on(channel, "execute_on_fax_failure");
+               switch_channel_api_on(channel, "api_on_fax_failure");
        }
 }