浏览代码

dialog: use defined tockens for is_set field of local cseq structure for keepalives

(cherry picked from commit 2492b92e49cfcd5f6828007b6a289b3f881dba69)
Daniel-Constantin Mierla 3 月之前
父节点
当前提交
39685ace68
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/modules/dialog/dlg_req_within.c

+ 2 - 1
src/modules/dialog/dlg_req_within.c

@@ -790,10 +790,11 @@ int dlg_send_ka(dlg_cell_t *dlg, int dir)
 	 * - dialog is ended on timeout (408) or C/L does not exist (481) */
 	if(di->loc_seq.value > 1) {
 		di->loc_seq.value -= 2;
+		di->loc_seq.is_set = DLG_SEQ_VALSET;
 	} else {
 		di->loc_seq.value = 0;
+		di->loc_seq.is_set = DLG_SEQ_VALNEW;
 	}
-	di->loc_seq.is_set = 1;
 
 	LM_DBG("sending OPTIONS to %s\n",
 			(dir == DLG_CALLER_LEG) ? "caller" : "callee");