[asterisk-commits] mmichelson: branch mmichelson/direct_media r382897 - in /team/mmichelson/dire...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 12 13:43:50 CDT 2013
Author: mmichelson
Date: Tue Mar 12 13:43:47 2013
New Revision: 382897
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382897
Log:
Make ast_sip_session_delayed_request opaque.
Modified:
team/mmichelson/direct_media/include/asterisk/res_sip_session.h
team/mmichelson/direct_media/res/res_sip_session.c
Modified: team/mmichelson/direct_media/include/asterisk/res_sip_session.h
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/direct_media/include/asterisk/res_sip_session.h?view=diff&rev=382897&r1=382896&r2=382897
==============================================================================
--- team/mmichelson/direct_media/include/asterisk/res_sip_session.h (original)
+++ team/mmichelson/direct_media/include/asterisk/res_sip_session.h Tue Mar 12 13:43:47 2013
@@ -64,6 +64,12 @@
/*! \brief Stream is on hold */
unsigned int held:1;
};
+
+/*!
+ * \brief Opaque structure representing a request that could not be sent
+ * due to an outstanding INVITE transaction
+ */
+struct ast_sip_session_delayed_request;
/*!
* \brief A structure describing a SIP session
@@ -98,14 +104,6 @@
typedef int (*ast_sip_session_request_creation_cb)(struct ast_sip_session *session, pjsip_tx_data *tdata);
typedef int (*ast_sip_session_response_cb)(struct ast_sip_session *session, pjsip_rx_data *rdata);
-
-struct ast_sip_session_delayed_request {
- char method[15];
- ast_sip_session_request_creation_cb on_request_creation;
- ast_sip_session_response_cb on_response;
- pjsip_tx_data *tdata;
- AST_LIST_ENTRY(ast_sip_session_delayed_request) next;
-};
/*!
* \brief A supplement to SIP message processing
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=382897&r1=382896&r2=382897
==============================================================================
--- team/mmichelson/direct_media/res/res_sip_session.c (original)
+++ team/mmichelson/direct_media/res/res_sip_session.c Tue Mar 12 13:43:47 2013
@@ -349,6 +349,14 @@
*/
return 0;
}
+
+struct ast_sip_session_delayed_request {
+ char method[15];
+ ast_sip_session_request_creation_cb on_request_creation;
+ ast_sip_session_response_cb on_response;
+ pjsip_tx_data *tdata;
+ AST_LIST_ENTRY(ast_sip_session_delayed_request) next;
+};
static int send_delayed_request(void *data)
{
More information about the asterisk-commits
mailing list