From 4133798aa077da2b587c36bd214621c977bcf760 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 9 Jan 2006 22:03:35 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@311 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_core.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/include/switch_core.h b/src/include/switch_core.h index e93d981494..b447a06bdf 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -407,13 +407,21 @@ SWITCH_DECLARE(switch_status) switch_core_session_add_event_hook_outgoing(switch ///\ingroup core1 ///\{ /*! - \brief Add an event hook to be executed when a session requests an outgoing extension + \brief Add an event hook to be executed when a session answers a channel \param session session to bind hook to \param answer_channel hook to bind \return SWITCH_STATUS_SUCCESS on suceess */ SWITCH_DECLARE(switch_status) switch_core_session_add_event_hook_answer_channel(switch_core_session *session, switch_answer_channel_hook answer_channel); +/*! + \brief Add an event hook to be executed when a session sends a message + \param session session to bind hook to + \param answer_channel hook to bind + \return SWITCH_STATUS_SUCCESS on suceess +*/ +SWITCH_DECLARE(switch_status) switch_core_session_add_event_hook_receive_message(switch_core_session *session, switch_receive_message_hook receive_message); + /*! \brief Add an event hook to be executed when a session reads a frame \param session session to bind hook to