Module: sip-router
Branch: master
Commit: da2e3d712c1025b02df6a047ba06b8d8d7d8c80a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=da2e3d7…
Author: Jason Penton <jason.penton(a)gmail.com>
Committer: Jason Penton <jason.penton(a)gmail.com>
Date: Thu Mar 13 10:08:07 2014 +0200
modules/ims_usrloc_pcscf: search for contacts should not be based on reg_state
- up to consumer to check state of contact
---
modules/ims_usrloc_pcscf/udomain.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/ims_usrloc_pcscf/udomain.c b/modules/ims_usrloc_pcscf/udomain.c
index d3ba43b..31a051b 100644
--- a/modules/ims_usrloc_pcscf/udomain.c
+++ b/modules/ims_usrloc_pcscf/udomain.c
@@ -538,9 +538,7 @@ int get_pcontact_by_src(udomain_t* _d, str * _host, unsigned short _port, unsign
s_contact.s);
// First check, if Proto and Port matches:
- if ((c->reg_state == PCONTACT_REGISTERED)
- && (c->received_port == _port)
- && (c->received_proto == _proto)) {
+ if ((c->received_port == _port) && (c->received_proto == _proto)) {
LM_DBG("Received host len %d (search %d)\n", c->received_host.len, _host->len);
// Then check the length:
if (c->received_host.len == _host->len) {
@@ -568,7 +566,7 @@ int get_pcontact_by_src(udomain_t* _d, str * _host, unsigned short _port, unsign
reg_state_to_string(c->reg_state), reg_state_to_string(PCONTACT_REGISTERED)
);
// First check, if Proto and Port matches:
- if ((c->reg_state == PCONTACT_REGISTERED) && (c->received_port == _port) && (c->received_proto == _proto)) {
+ if ((c->received_port == _port) && (c->received_proto == _proto)) {
LM_DBG("Received host len %d (search %d)\n", c->received_host.len, _host->len);
// Then check the length:
if (c->received_host.len == _host->len) {
So I posted this to the user list in December, and got nowhere..
Can someone familiar with db_cassandra review my patch ( possibly clean
this up and commit it )
# git diff dbcassa_base.cpp
diff --git a/modules/db_cassandra/dbcassa_base.cpp
b/modules/db_cassandra/dbcassa_base.cpp
index e9d3a32..155221d 100644
--- a/modules/db_cassandra/dbcassa_base.cpp
+++ b/modules/db_cassandra/dbcassa_base.cpp
@@ -439,6 +439,7 @@ ColumnVecPtr cassa_translate_query(const db1_con_t* _h,
const db_key_t* _k,
int key_len=0, seckey_len = 0;
int no_kc, no_sec_kc;
dbcassa_table_p tbc;
+ char pk[255];
/** Lock table schema and construct primary and secondary key **/
if(_k) {
@@ -495,8 +496,12 @@ ColumnVecPtr cassa_translate_query(const db1_con_t*
_h, const db_key_t* _k,
} else { /* the table doesn't have any secondary key
defined */
if(_c) {
for(int i=0; i< _nc; i++) {
- sp.column_names.push_back(_c[i]->s);
- LM_DBG("Query col: %s\n", _c[i]->s);
+ sprintf(pk, "%.*s", _c[i]->len,
_c[i]->s );
+ sp.column_names.push_back( pk);
+
//sp.column_names.push_back(_c[i]->s);
+ LM_DBG("Query col: %s\n", pk );
+ //LM_DBG("Query col: %s\n",
_c[i]->s);
+ LM_DBG("JAY Query col: %.*s\n",
_c[i]->len, _c[i]->s);
}
LM_DBG("get %d columns\n", _nc);
sp.__isset.column_names = true; // set
yea I know I left crap in there, but it gives you an idea... also...
yea pk is a crap name... copy paste... and I havnt given any thought to the
size 255 , but thats probably fairly safe and anything smaller might not
be so safe.
( unless there is a limit elsewhere I should observe )
Jay
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Alekzander Spiridonov (alekz)
Attached to Project - sip-router
Summary - Kamailio crashes in case USE_LONGJMP undefined
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - High
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - Kamailio crashes in case USE_LONGJMP undefined in action.h:40.
Checked on kamailio 3.1.5.
BackTrace:
<code>(gdb) bt
#0 0x08159ee3 in fm_malloc ()
#1 0x0815e3e5 in parse_msg ()
#2 0x080cbf9d in receive_msg ()
#3 0x0814ff3f in udp_rcv_loop ()
#4 0x080a02bb in main_loop ()
#5 0x080a4072 in main ()</code>
Modules loaded:
<code>loadmodule "mi_fifo.so"
loadmodule "kex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "dispatcher.so"
loadmodule "snmpstats.so"</code>
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=409
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.