Module: sip-router
Branch: master
Commit: 8aa989618f79a0bd17a025b2f3ab38943fd6d6e5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8aa9896…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Fri May 23 18:06:03 2014 +0200
modules:ims_registrar_scscf: notify partial reg info body incorrect when q is set
---
modules/ims_registrar_scscf/registrar_notify.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/ims_registrar_scscf/registrar_notify.c
b/modules/ims_registrar_scscf/registrar_notify.c
index f953a86..aee2352 100644
--- a/modules/ims_registrar_scscf/registrar_notify.c
+++ b/modules/ims_registrar_scscf/registrar_notify.c
@@ -1601,7 +1601,7 @@ str get_reginfo_partial(impurecord_t *r, ucontact_t *c, int
event_type) {
}
if (c->q != -1) {
float q = (float) c->q / 1000;
- sprintf(pad.s, contact_s_q.s, c, r_active.len, r_active.s,
r_registered.len, r_registered.s, c->expires - act_time, q);
+ sprintf(pad.s, contact_s_q.s, c, state.len, state.s, event.len, event.s, expires, q);
} else
sprintf(pad.s, contact_s.s, c, state.len, state.s, event.len, event.s,
expires);
pad.len = strlen(pad.s);