Module: sip-router
Branch: kamailio_3.0
Commit: 0657d12cf2a1788c8d77d6495dd93e84d0f83c83
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0657d12…
Author: Timo Reimann <timo.reimann(a)1und1.de>
Committer: Timo Reimann <timo.reimann(a)1und1.de>
Date: Thu Jul 29 19:09:51 2010 +0200
modules_k/sst: Setting AVPs from integer values requires the
PV_TYPE_INT flag to be set.
(cherry picked from commit 61c4a93486fd3d215efb8d045c7415d752d3f057)
---
modules_k/sst/sst_handlers.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/sst/sst_handlers.c b/modules_k/sst/sst_handlers.c
index 43f1c09..68a91ba 100644
--- a/modules_k/sst/sst_handlers.c
+++ b/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");