Browse Source

modules:ims_registrar_scscf: notify partial reg info body incorrect when q is set

Richard Good 11 years ago
parent
commit
8aa989618f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/ims_registrar_scscf/registrar_notify.c

+ 1 - 1
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);