Browse Source

modules_k/sst: Setting AVPs from integer values requires the
PV_TYPE_INT flag to be set.

Timo Reimann 15 years ago
parent
commit
61c4a93486
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_k/sst/sst_handlers.c

+ 1 - 1
modules_k/sst/sst_handlers.c

@@ -834,7 +834,7 @@ static int set_timeout_avp(struct sip_msg *msg, unsigned int value)
 				rtn = 0;
 			} else {
 				/* AVP not found or non-INT value -> add a new one*/
-				pv_val.flags = PV_VAL_INT;
+				pv_val.flags = PV_VAL_INT|PV_TYPE_INT;
 				pv_val.ri = value;
 				if (timeout_avp->setf(msg,&timeout_avp->pvp,EQ_T,&pv_val)!=0) {
 					LM_ERR("failed to set new dialog timeout value\n");