Module: kamailio
Branch: master
Commit: 0e2cb067ac01988b3693c7a40fb65071df103666
URL: https://github.com/kamailio/kamailio/commit/0e2cb067ac01988b3693c7a40fb6507…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2016-12-02T23:01:08+02:00
lib/kcore: faked_msg.h not referenced anymore
---
Removed: lib/kcore/faked_msg.h
---
Diff: https://github.com/kamailio/kamailio/commit/0e2cb067ac01988b3693c7a40fb6507…
Patch: https://github.com/kamailio/kamailio/commit/0e2cb067ac01988b3693c7a40fb6507…
---
diff --git a/lib/kcore/faked_msg.h b/lib/kcore/faked_msg.h
deleted file mode 100644
index 65ecb3f..0000000
--- a/lib/kcore/faked_msg.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- *
- * Copyright (C) 2009 Daniel-Constantin Mierla (asipto.com)
- *
- * This file is part of kamailio, a free SIP server.
- *
- * kamailio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version
- *
- * kamailio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef _FAKED_SIP_MSG_H_
-#define _FAKED_SIP_MSG_H_
-
-#include "../../fmsg.h"
-
-#endif
Looks like lib/kcore/faked_msg.h is not needed anymore
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/880
-- Commit Summary --
* modules: faked message api has moved to core
* lib/kcore: faked_msg.h not referenced anymore
-- File Changes --
M fmsg.h (2)
D lib/kcore/faked_msg.h (27)
M modules/cnxcc/cnxcc_mod.c (2)
M modules/dialog/dialog.c (2)
M modules/dialog/dlg_handlers.c (2)
M modules/dispatcher/dispatch.c (2)
M modules/erlang/handle_emsg.c (2)
M modules/evapi/evapi_dispatch.c (2)
M modules/evapi/evapi_mod.c (2)
M modules/htable/ht_api.c (2)
M modules/htable/htable.c (2)
M modules/http_async_client/async_http.c (2)
M modules/http_async_client/http_async_client_mod.c (2)
M modules/ims_dialog/dlg_handlers.c (2)
M modules/ims_dialog/ims_dialog.c (2)
M modules/kazoo/kz_amqp.h (2)
M modules/mqueue/mqueue_api.c (2)
M modules/registrar/regpv.c (2)
M modules/rtimer/rtimer_mod.c (2)
M modules/uac/uac_send.c (2)
M modules/websocket/ws_conn.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/880.patchhttps://github.com/kamailio/kamailio/pull/880.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/880
Module: kamailio
Branch: master
Commit: 938ac5e7223001fb9e3b748262283d323a23c539
URL: https://github.com/kamailio/kamailio/commit/938ac5e7223001fb9e3b748262283d3…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: 2016-12-02T16:30:10+02:00
modules/ims_qos: added patch for flow-description bug when request originates from called party
Fix for incorrect IP swap in flow description AVP when called party originates a request that triggers Rx
---
Modified: modules/ims_qos/rx_aar.c
---
Diff: https://github.com/kamailio/kamailio/commit/938ac5e7223001fb9e3b748262283d3…
Patch: https://github.com/kamailio/kamailio/commit/938ac5e7223001fb9e3b748262283d3…
---
diff --git a/modules/ims_qos/rx_aar.c b/modules/ims_qos/rx_aar.c
index 8ba6f4e..f23740b 100644
--- a/modules/ims_qos/rx_aar.c
+++ b/modules/ims_qos/rx_aar.c
@@ -436,8 +436,15 @@ int add_media_components(AAAMessage* aar, struct sip_msg *req,
sdp_session_cell_t* req_sdp_session, *rpl_sdp_session;
sdp_stream_cell_t* req_sdp_stream, *rpl_sdp_stream;
int add_flow = 1;
-
- if (!req || !rpl) {
+ str ttag = {0, 0};
+ str ftag = {0, 0};
+ int request_originated_from_callee = 0;
+ str ipA, ipB;
+
+ rx_authsessiondata_t* p_session_data = 0;
+ p_session_data = (rx_authsessiondata_t*) auth->u.auth.generic_data;
+
+ if (!req || !rpl) {
goto error;
}
@@ -497,23 +504,57 @@ int add_media_components(AAAMessage* aar, struct sip_msg *req,
if(add_flow) {
- str ipA = req_sdp_session->ip_addr;
- str ipB = rpl_sdp_session->ip_addr;
+
+ if (cscf_get_to_tag(rpl, &ttag) && cscf_get_from_tag(rpl, &ftag)) {
+ LM_DBG("Original ftag [%.*s] ttag [%.*s]. Current ftag [%.*s] ttag [%.*s]\n",
+ p_session_data->ftag.len, p_session_data->ftag.s, p_session_data->ttag.len, p_session_data->ttag.s,
+ ftag.len, ftag.s, ttag.len, ttag.s);
+ if (!(strncmp(p_session_data->ttag.s, ttag.s, p_session_data->ttag.len) == 0 && strncmp(p_session_data->ftag.s, ftag.s, p_session_data->ftag.len) == 0)) {
+ LM_DBG("ftag and ttag of this response do not match initial response so this request came from callee\n");
+ request_originated_from_callee = 1;
+ }
+ } else {
+ LM_ERR("Couldn't retrieve ftag so assume this request originated from caller\n");
+ }
+
+ if (request_originated_from_callee) {
+ LM_DBG("Request originated from callee so IPs are reversed\n");
+ ipA = rpl_sdp_session->ip_addr;
+ ipB = req_sdp_session->ip_addr;
+ } else {
+ ipA = req_sdp_session->ip_addr;
+ ipB = rpl_sdp_session->ip_addr;
+ }
+
if (ipA.len <= 0) {
- LM_DBG("Request SDP connection IP could not be retrieved, so we use SDP 1st stream IP");
- ipA = req_sdp_stream->ip_addr;
+ LM_DBG("Request SDP connection IP could not be retrieved, so we use SDP 1st stream IP\n");
+ if (request_originated_from_callee) {
+ LM_DBG("Request originated from callee so IPs are reversed\n");
+ ipA = rpl_sdp_stream->ip_addr;
+ } else {
+ ipA = req_sdp_stream->ip_addr;
+ }
+
+
if (ipA.len <= 0) {
- LM_ERR("Requested SDP IP information could not be retrieved");
+ LM_ERR("Requested SDP IP information could not be retrieved\n");
goto error;
}
}
if (ipB.len <= 0) {
- LM_DBG("Reply SDP connection IP could not be retrieved, so we use SDP 1st stream IP");
- ipB = rpl_sdp_stream->ip_addr;
+ LM_DBG("Reply SDP connection IP could not be retrieved, so we use SDP 1st stream IP\n");
+ if (request_originated_from_callee) {
+ LM_DBG("Request originated from callee so IPs are reversed\n");
+ ipB = req_sdp_stream->ip_addr;
+ } else {
+ ipB = rpl_sdp_stream->ip_addr;
+ }
+
+
if (ipB.len <= 0) {
- LM_ERR("Request SDP IP information could not be retrieved");
+ LM_ERR("Request SDP IP information could not be retrieved\n");
goto error;
}
}
…Status as the reply method. I've patched sipcapture.c and sipcapture.h to insert the actual SIP Status into a 'status' field on replies, and the Method extracted from the CSEQ into the 'method' field. This means when using this version of the module, you're tables must include a 'status' varchar(5) NULL field.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/876
-- Commit Summary --
* Sipcapture: When inserting a reply, this module would insert the SIP Status as the reply method. I've patched sipcapture.c and sipcapture.h to insert the actual SIP Status into a 'status' field on replies, and the Method extracted from the CSEQ into the 'method' field. This means when using this version of the module, you're tables must include a 'status' varchar(5) NULL field.
-- File Changes --
M modules/sipcapture/sipcapture.c (83)
M modules/sipcapture/sipcapture.h (1)
M modules/sipcapture/sql/create_sipcapture_postgress.sql (3)
M modules/sipcapture/sql/schema_data.sql (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/876.patchhttps://github.com/kamailio/kamailio/pull/876.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/876