Module: kamailio
Branch: master
Commit: 09fc2d25e4fd7bf55e2c055d3664890dbc27a4f0
URL: https://github.com/kamailio/kamailio/commit/09fc2d25e4fd7bf55e2c055d3664890…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-09-12T16:57:21+02:00
modules/ims_regstrar_scscf: remove process id check that could fail on messages processed into shm
---
Modified: modules/ims_registrar_scscf/pvt_message.c
---
Diff: https://github.com/kamailio/kamailio/commit/09fc2d25e4fd7bf55e2c055d3664890…
Patch: https://github.com/kamailio/kamailio/commit/09fc2d25e4fd7bf55e2c055d3664890…
---
diff --git a/modules/ims_registrar_scscf/pvt_message.c b/modules/ims_registrar_scscf/pvt_message.c
index 3b8274e..22d54aa 100644
--- a/modules/ims_registrar_scscf/pvt_message.c
+++ b/modules/ims_registrar_scscf/pvt_message.c
@@ -84,9 +84,7 @@ struct sip_msg* get_request_from_tx(struct cell *t) {
(which we cannot assume) then we would pollute the shm_msg t->uas.request if we did any parsing on it. Instead, we need to
make a private copy of the message and free it when we are done
*/
- if ((_pv_treq.T != t || t->uas.request != _pv_treq.tmsgp)
- && t->uas.request->id != _pv_treq.id) {
-
+ if ((_pv_treq.T != t || t->uas.request != _pv_treq.tmsgp)) {
/* make a copy */
if (_pv_treq.buf == NULL || _pv_treq.buf_size < t->uas.request->len + 1) {
if (_pv_treq.buf != NULL)
Module: kamailio
Branch: master
Commit: 78d01751780bb69c339f2f29f2d374a10dc92c70
URL: https://github.com/kamailio/kamailio/commit/78d01751780bb69c339f2f29f2d374a…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-09-12T16:57:21+02:00
modules/ims_regstrar_scscf: corrected logging from ERR to DBG
---
Modified: modules/ims_registrar_scscf/save.c
---
Diff: https://github.com/kamailio/kamailio/commit/78d01751780bb69c339f2f29f2d374a…
Patch: https://github.com/kamailio/kamailio/commit/78d01751780bb69c339f2f29f2d374a…
---
diff --git a/modules/ims_registrar_scscf/save.c b/modules/ims_registrar_scscf/save.c
index f0ef4a9..e212817 100644
--- a/modules/ims_registrar_scscf/save.c
+++ b/modules/ims_registrar_scscf/save.c
@@ -617,7 +617,7 @@ static inline int unregister_contact(contact_t* chi, contact_state_t state) {
// }
if (ul.get_ucontact(&chi->uri, &callid, &path, 0/*cseq*/, &ucontact) != 0) {
- LM_ERR("Can't unregister contact that does not exist <%.*s>\n", chi->uri.len, chi->uri.s);
+ LM_DBG("Can't unregister contact that does not exist <%.*s>\n", chi->uri.len, chi->uri.s);
// ul.unlock_udomain(_d, public_identity);
goto error;
}
@@ -930,7 +930,7 @@ int update_contacts(struct sip_msg* msg, udomain_t* _d,
}
calc_contact_expires(chi, expires_hdr, sos);
if (unregister_contact(chi, CONTACT_DELETE_PENDING) != 0) {
- LM_ERR("Unable to remove contact <%.*s\n", chi->uri.len, chi->uri.s);
+ LM_DBG("Unable to remove contact <%.*s\n", chi->uri.len, chi->uri.s);
}
//add this contact to the successful unregistered in the 200OK so the PCSCF can also see what is de-registered
@@ -951,7 +951,7 @@ int update_contacts(struct sip_msg* msg, udomain_t* _d,
//now, we get the subscription
ul.lock_udomain(_d, public_identity);
if (ul.get_impurecord(_d, public_identity, &impu_rec) != 0) {
- LM_ERR("Error retrieving impu record on explicit de-reg nothing we can do from here on... aborting..\n");
+ LM_DBG("Error retrieving impu record on explicit de-reg nothing we can do from here on... aborting..\n");
ul.unlock_udomain(_d, public_identity);
goto error;
}
@@ -1347,7 +1347,7 @@ int save(struct sip_msg* msg, char* str1, char *route) {
//lets update the contacts - we need to know if all were deleted or not for the public identity
int res = update_contacts(msg, _d, &public_identity, sar_assignment_type, 0, 0, 0, 0, 0, &contact_header);
if (res <= 0) {
- LM_ERR("Error processing REGISTER for de-registration\n");
+ LM_DBG("Error processing REGISTER for de-registration\n");
free_contact_buf(contact_header);
rerrno = R_SAR_FAILED;
goto error;
@@ -1424,7 +1424,7 @@ int save(struct sip_msg* msg, char* str1, char *route) {
create_return_code(CSCF_RETURN_ERROR);
- LM_DBG("Suspending SIP TM transaction\n");
+ LM_DBG("Suspending SIP TM transaction with index [%d] and label [%d]\n", saved_t->tindex, saved_t->tlabel);
if (tmb.t_suspend(msg, &saved_t->tindex, &saved_t->tlabel) != 0) {
LM_ERR("failed to suspend the TM processing\n");
free_saved_transaction_data(saved_t);
Sipwise hat ON:
We have a scenario where we need to force the on-hold detection, so sca has to skip the sdp parsing and behave as previous based on a bflag
--
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/issues/773