]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11926: [mod_spandsp] execute_on_fax_detect_close
authorDragos Oancea <dragos@signalwire.com>
Wed, 10 Jul 2019 15:00:08 +0000 (15:00 +0000)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 20:57:27 +0000 (00:57 +0400)
src/mod/applications/mod_spandsp/mod_spandsp_fax.c

index d0f60326a4ef890f4a874c1312f9413fc133acc8..c1b6d123ed55f75b9438142ffda94914f22d02d0 100644 (file)
@@ -2230,6 +2230,7 @@ static switch_bool_t tone_detect_callback(switch_media_bug_t *bug, void *user_da
                }
                break;
        case SWITCH_ABC_TYPE_CLOSE:
+               switch_channel_execute_on(switch_core_session_get_channel(cont->session), "execute_on_fax_detect_close");
                break;
        case SWITCH_ABC_TYPE_READ_REPLACE:
        case SWITCH_ABC_TYPE_WRITE_REPLACE: