small tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5580 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-08-09 17:57:14 +00:00
parent c829877254
commit 7deb3330a1
2 changed files with 13 additions and 4 deletions

View File

@ -763,8 +763,17 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
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);
}
break;
default:
break;

View File

@ -1788,8 +1788,8 @@ static JSBool session_execute(JSContext * cx, JSObject * obj, uintN argc, jsval
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) {