浏览代码

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

Richard Good 11 年之前
父节点
当前提交
8aa989618f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);