Module: kamailio
Branch: 4.3
Commit: 785ab99f18627f1173c9e1714551577c901f04ed
URL:
https://github.com/kamailio/kamailio/commit/785ab99f18627f1173c9e1714551577…
Author: Charles Chance <charles.chance(a)sipcentric.com>
Committer: Charles Chance <charles.chance(a)sipcentric.com>
Date: 2015-07-16T20:29:56+01:00
dmq_usrloc: use new version of serialized structure returned by usrloc (now includes
received address)
(cherry picked from commit bc01d8d6c6abfc7912a27df3ac23bffd818758e9)
---
Modified: modules/dmq_usrloc/usrloc_sync.c
---
Diff:
https://github.com/kamailio/kamailio/commit/785ab99f18627f1173c9e1714551577…
Patch:
https://github.com/kamailio/kamailio/commit/785ab99f18627f1173c9e1714551577…
---
diff --git a/modules/dmq_usrloc/usrloc_sync.c b/modules/dmq_usrloc/usrloc_sync.c
index 7d1cf45..3bd0c24 100644
--- a/modules/dmq_usrloc/usrloc_sync.c
+++ b/modules/dmq_usrloc/usrloc_sync.c
@@ -96,7 +96,7 @@ void usrloc_get_all_ucontact(dmq_node_t* node)
{
int rval, len=0;
void *buf, *cp;
- str c;
+ str c, recv;
str path;
str ruid;
unsigned int aorhash;
@@ -145,6 +145,9 @@ void usrloc_get_all_ucontact(dmq_node_t* node)
break;
c.s = (char*)cp + sizeof(c.len);
cp = (char*)cp + sizeof(c.len) + c.len;
+ memcpy(&(recv.len), cp, sizeof(recv.len));
+ recv.s = (char*)cp + sizeof(recv.len);
+ cp = (char*)cp + sizeof(recv.len) + recv.len;
memcpy( &send_sock, cp, sizeof(send_sock));
cp = (char*)cp + sizeof(send_sock);
memcpy( &flags, cp, sizeof(flags));