瀏覽代碼

dialplan: improved debug messages so that used dpid is shown

Juha Heinanen 12 年之前
父節點
當前提交
9bb88b5b22
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/dialplan/dialplan.c

+ 2 - 1
modules/dialplan/dialplan.c

@@ -233,8 +233,8 @@ static int dp_get_ivalue(struct sip_msg* msg, dp_param_p dp, int *val)
 	pv_value_t value;
 	pv_value_t value;
 
 
 	if(dp->type==DP_VAL_INT) {
 	if(dp->type==DP_VAL_INT) {
-		LM_DBG("integer value\n");
 		*val = dp->v.id;
 		*val = dp->v.id;
+		LM_DBG("dpid is %d from constant argument\n", *val);
 		return 0;
 		return 0;
 	}
 	}
 
 
@@ -246,6 +246,7 @@ static int dp_get_ivalue(struct sip_msg* msg, dp_param_p dp, int *val)
 		return -1;
 		return -1;
 	}
 	}
 	*val = value.ri;
 	*val = value.ri;
+	LM_DBG("dpid is %d from pv argument\n", *val);
 	return 0;
 	return 0;
 }
 }