fine, have session in hangup hook apps, don't call me if it segs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10467 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-11-19 21:55:50 +00:00
parent 8fb1e45e17
commit efb3b25e29
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session)
}
SWITCH_STANDARD_STREAM(stream);
switch_channel_get_variables(session->channel, &stream.param_event);
switch_api_execute(cmd, arg, NULL, &stream);
switch_api_execute(cmd, arg, session, &stream);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Hangup Command %s(%s):\n%s\n", cmd, arg,
switch_str_nil((char *) stream.data));
switch_safe_free(stream.data);