[asterisk-commits] mmichelson: branch mmichelson/pool_shark r380428 - /team/mmichelson/pool_shar...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 29 15:58:31 CST 2013
Author: mmichelson
Date: Tue Jan 29 15:58:28 2013
New Revision: 380428
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380428
Log:
Revert to using the CSeq to determine the incoming method on incoming responses.
pjsip_rx_data_clone() does not copy any of the rdata's mod_data array. This means
that we do not have access to the transaction via the rdata.
Modified:
team/mmichelson/pool_shark/res/res_sip_session.c
Modified: team/mmichelson/pool_shark/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/pool_shark/res/res_sip_session.c?view=diff&rev=380428&r1=380427&r2=380428
==============================================================================
--- team/mmichelson/pool_shark/res/res_sip_session.c (original)
+++ team/mmichelson/pool_shark/res/res_sip_session.c Tue Jan 29 15:58:28 2013
@@ -939,9 +939,9 @@
{
struct ast_sip_session_supplement *supplement;
struct pjsip_status_line status = rdata->msg_info.msg->line.status;
- char method[15];
- pjsip_transaction *tsx = pjsip_rdata_get_tsx(rdata);
- ast_copy_pj_str(method, &tsx->method.name, sizeof(method));
+ char method[16];
+ pj_str_t *pj_method = &rdata->msg_info.cseq->method.name;
+ ast_copy_pj_str(method, pj_method, sizeof(method));
ast_debug(3, "Response is %d %.*s\n", status.code, (int) pj_strlen(&status.reason),
pj_strbuf(&status.reason));
More information about the asterisk-commits
mailing list