[Freeswitch-svn] [commit] r2723 - in freeswitch/trunk/src/mod/languages: mod_python mod_ruby
Freeswitch SVN
docelmo at freeswitch.org
Sun Sep 17 17:15:09 EDT 2006
Author: docelmo
Date: Sun Sep 17 17:15:08 2006
New Revision: 2723
Modified:
freeswitch/trunk/src/mod/languages/mod_python/switch_swig.c
freeswitch/trunk/src/mod/languages/mod_ruby/switch_swig.c
Log:
Update to swig files
Modified: freeswitch/trunk/src/mod/languages/mod_python/switch_swig.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_python/switch_swig.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_python/switch_swig.c Sun Sep 17 17:15:08 2006
@@ -257,6 +257,7 @@
switch_core_session_t *peer_session;
unsigned int timelimit = 60;
char *var;
+ switch_call_cause_t cause = SWITCH_CAUSE_NORMAL_CLEARING;
caller_channel = switch_core_session_get_channel(session);
assert(caller_channel != NULL);
@@ -265,7 +266,7 @@
timelimit = atoi(var);
}
- if (switch_ivr_originate(session, &peer_session, bridgeto, timelimit, NULL, NULL, NULL, NULL) != SWITCH_STATUS_SUCCESS) {
+ if (switch_ivr_originate(session, &peer_session, &cause, bridgeto, timelimit, NULL, NULL, NULL, NULL) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot Create Outgoing Channel!\n");
switch_channel_hangup(caller_channel, SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL);
return;
Modified: freeswitch/trunk/src/mod/languages/mod_ruby/switch_swig.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_ruby/switch_swig.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_ruby/switch_swig.c Sun Sep 17 17:15:08 2006
@@ -257,6 +257,7 @@
switch_core_session_t *peer_session;
unsigned int timelimit = 60;
char *var;
+ switch_call_cause_t cause = SWITCH_CAUSE_NORMAL_CLEARING;
caller_channel = switch_core_session_get_channel(session);
assert(caller_channel != NULL);
@@ -265,7 +266,7 @@
timelimit = atoi(var);
}
- if (switch_ivr_originate(session, &peer_session, bridgeto, timelimit, NULL, NULL, NULL, NULL) != SWITCH_STATUS_SUCCESS) {
+ if (switch_ivr_originate(session, &peer_session, &cause, bridgeto, timelimit, NULL, NULL, NULL, NULL) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot Create Outgoing Channel!\n");
switch_channel_hangup(caller_channel, SWITCH_CAUSE_REQUESTED_CHAN_UNAVAIL);
return;
More information about the Freeswitch-svn
mailing list