[sr-dev] git:master:595b8fe0: ims_usrloc_scscf: missing assignment of record_route

Christoph Valentin christoph.valentin at kapsch.net
Thu Jan 25 16:58:31 CET 2018


Module: kamailio
Branch: master
Commit: 595b8fe06165328366865328e43c14a9ca23c386
URL: https://github.com/kamailio/kamailio/commit/595b8fe06165328366865328e43c14a9ca23c386

Author: Christoph Valentin <christoph.valentin at kapsch.net>
Committer: Christoph Valentin <christoph.valentin at kapsch.net>
Date: 2018-01-25T13:37:59+01:00

ims_usrloc_scscf: missing assignment of record_route

In update_subscriber() function, when the rs is assigned to the subs,
it is missing the record_route component, which leads to core dump in
some scenarios.

---

Modified: src/modules/ims_usrloc_scscf/subscribe.c

---

Diff:  https://github.com/kamailio/kamailio/commit/595b8fe06165328366865328e43c14a9ca23c386.diff
Patch: https://github.com/kamailio/kamailio/commit/595b8fe06165328366865328e43c14a9ca23c386.patch

---

diff --git a/src/modules/ims_usrloc_scscf/subscribe.c b/src/modules/ims_usrloc_scscf/subscribe.c
index 227d06d51a..a5bdf699d5 100644
--- a/src/modules/ims_usrloc_scscf/subscribe.c
+++ b/src/modules/ims_usrloc_scscf/subscribe.c
@@ -346,6 +346,7 @@ int update_subscriber(impurecord_t* urec, reg_subscriber** _reg_subscriber, int
     subs.callid = rs->call_id;
     subs.expires = rs->expires - act_time;
     subs.contact = rs->watcher_contact;
+    subs.record_route = rs->record_route;
     
     hash_code = core_hash(&subs.callid, &subs.to_tag, sub_dialog_hash_size);
     




More information about the sr-dev mailing list