Explorar o código

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

Richard Good %!s(int64=11) %!d(string=hai) anos
pai
achega
8aa989618f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);