mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 23:24:18 +00:00
more ivr stuff (not done)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@693 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
5938cee550
commit
bdd2223542
13 files changed
+362
-91
No files matched your search
@@ -149,7 +149,7 @@ static void ivrtest_function(switch_core_session *session, char *data)
|
||||
/* you could have passed NULL instead of on_dtmf to get this exact behaviour (copy the digits to buf and stop playing)
|
||||
but you may want to pass the function if you have something cooler to do...
|
||||
*/
|
||||
status = switch_ivr_play_file(session, data, NULL, on_dtmf, buf, sizeof(buf));
|
||||
status = switch_ivr_play_file(session, NULL, data, NULL, on_dtmf, buf, sizeof(buf));
|
||||
|
||||
if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK) {
|
||||
switch_channel_hangup(channel);
|
||||
|
||||
@@ -64,7 +64,7 @@ static void playback_function(switch_core_session *session, char *data)
|
||||
channel = switch_core_session_get_channel(session);
|
||||
assert(channel != NULL);
|
||||
|
||||
if (switch_ivr_play_file(session, file_name, timer_name, on_dtmf, NULL, 0) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_ivr_play_file(session, NULL, file_name, timer_name, on_dtmf, NULL, 0) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_channel_hangup(channel);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user