[asterisk-commits] mmichelson: branch mmichelson/direct_media r382635 - /team/mmichelson/direct_...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 7 15:10:10 CST 2013
Author: mmichelson
Date: Thu Mar 7 15:10:06 2013
New Revision: 382635
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382635
Log:
Remove the session_on_tsx_state callback.
This callback could be useful if we expected to handle transactions
that were out-of-dialog in the session module. However, we purposely
have designed our implementation not to work that way, so there is
no need for this function to exist.
Instead, we have the inv_session-specific transaction state callback
we use instead. It's mostly the same except that we are given a handle
to the inv_session as part of the function parameters.
Modified:
team/mmichelson/direct_media/res/res_sip_session.c
Modified: team/mmichelson/direct_media/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/direct_media/res/res_sip_session.c?view=diff&rev=382635&r1=382634&r2=382635
==============================================================================
--- team/mmichelson/direct_media/res/res_sip_session.c (original)
+++ team/mmichelson/direct_media/res/res_sip_session.c Thu Mar 7 15:10:06 2013
@@ -472,7 +472,6 @@
static pj_status_t session_stop(void);
static pj_status_t session_unload(void);
static pj_bool_t session_on_rx_request(pjsip_rx_data *rdata);
-static void session_on_tsx_state(pjsip_transaction *tsx, pjsip_event *event);
static pjsip_module session_module = {
.name = {"Session Module", 14},
@@ -482,7 +481,6 @@
.start = session_start,
.stop = session_stop,
.on_rx_request = session_on_rx_request,
- .on_tsx_state = session_on_tsx_state,
};
/*!
@@ -1034,15 +1032,6 @@
ast_log(LOG_NOTICE, "There is no transaction involved in this state change\n");
}
ast_log(LOG_NOTICE, "The current inv state is %s\n", pjsip_inv_state_name(inv->state));
-}
-
-static void session_on_tsx_state(pjsip_transaction *tsx, pjsip_event *event)
-{
- pjsip_inv_session *inv;
- pjsip_dialog *dlg;
- dlg = pjsip_tsx_get_dlg(tsx);
- inv = pjsip_dlg_get_inv_session(dlg);
- print_debug_details(__PRETTY_FUNCTION__, inv, tsx);
}
static void handle_incoming_request(struct ast_sip_session *session, pjsip_rx_data *rdata)
More information about the asterisk-commits
mailing list