[Freeswitch-svn] [commit] r5580 - in freeswitch/trunk/src/mod: endpoints/mod_iax languages/mod_spidermonkey
Freeswitch SVN
anthm at freeswitch.org
Thu Aug 9 13:57:15 EDT 2007
Author: anthm
Date: Thu Aug 9 13:57:14 2007
New Revision: 5580
Modified:
freeswitch/trunk/src/mod/endpoints/mod_iax/mod_iax.c
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
Log:
small tweak
Modified: freeswitch/trunk/src/mod/endpoints/mod_iax/mod_iax.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_iax/mod_iax.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_iax/mod_iax.c Thu Aug 9 13:57:14 2007
@@ -763,8 +763,17 @@
assert(tech_pvt != NULL);
switch (msg->message_id) {
+ case SWITCH_MESSAGE_INDICATE_REJECT:
+ {
+ if (tech_pvt->iax_session) {
+ iax_reject(tech_pvt->iax_session, msg->string_arg ? msg->string_arg : "Call Rejected");
+ }
+ }
+ break;
case SWITCH_MESSAGE_INDICATE_ANSWER:
- channel_answer_channel(session);
+ {
+ channel_answer_channel(session);
+ }
break;
default:
break;
Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c Thu Aug 9 13:57:14 2007
@@ -1788,9 +1788,9 @@
channel = switch_core_session_get_channel(jss->session);
assert(channel != NULL);
-
- CHANNEL_SANITY_CHECK();
-
+ /* you can execute some apps before you answer */
+ /* CHANNEL_SANITY_CHECK(); */
+
if (argc > 0) {
const switch_application_interface_t *application_interface;
More information about the Freeswitch-svn
mailing list