add SMBF_ONE_ONLY flag and use it on dtmf detectors

This commit is contained in:
Anthony Minessale committed 2013-03-27 17:19:40 -05:00
1 parent e3ac7c50ac
commit 7818c3c9ed
4 files changed
+23 -4

No files matched your search

@@ -505,7 +505,7 @@ switch_status_t spandsp_inband_dtmf_session(switch_core_session_t *session)
}
if ((status = switch_core_media_bug_add(session, "spandsp_dtmf_detect", NULL,
inband_dtmf_callback, pvt, 0, SMBF_READ_REPLACE | SMBF_NO_PAUSE, &bug)) != SWITCH_STATUS_SUCCESS) {
inband_dtmf_callback, pvt, 0, SMBF_READ_REPLACE | SMBF_NO_PAUSE | SMBF_ONE_ONLY, &bug)) != SWITCH_STATUS_SUCCESS) {
return status;
}