Module: kamailio
Branch: master
Commit: bc01d8d6c6abfc7912a27df3ac23bffd818758e9
URL:
https://github.com/kamailio/kamailio/commit/bc01d8d6c6abfc7912a27df3ac23bff…
Author: Charles Chance <charles.chance(a)sipcentric.com>
Committer: Charles Chance <charles.chance(a)sipcentric.com>
Date: 2015-07-15T09:48:57+01:00
dmq_usrloc: use new version of serialized structure returned by usrloc (now includes
received address)
---
Modified: modules/dmq_usrloc/usrloc_sync.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bc01d8d6c6abfc7912a27df3ac23bff…
Patch:
https://github.com/kamailio/kamailio/commit/bc01d8d6c6abfc7912a27df3ac23bff…
---
diff --git a/modules/dmq_usrloc/usrloc_sync.c b/modules/dmq_usrloc/usrloc_sync.c
index b826802..c174ac9 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));