[sr-dev] git:master: modules_k/sst: Setting AVPs from integer values requires the

Timo Reimann timo.reimann at 1und1.de
Thu Jul 29 19:10:46 CEST 2010


Module: sip-router
Branch: master
Commit: 61c4a93486fd3d215efb8d045c7415d752d3f057
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=61c4a93486fd3d215efb8d045c7415d752d3f057

Author: Timo Reimann <timo.reimann at 1und1.de>
Committer: Timo Reimann <timo.reimann at 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.

---

 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 5f80f63..6a17c37 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");




More information about the sr-dev mailing list