[sr-dev] git:master:4b6328ce: erlang: use proper name for the long field of xavp

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 22 10:20:12 CET 2022


Module: kamailio
Branch: master
Commit: 4b6328ce015bbdc0899dc948c0f981649039407c
URL: https://github.com/kamailio/kamailio/commit/4b6328ce015bbdc0899dc948c0f981649039407c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-11-22T10:10:41+01:00

erlang: use proper name for the long field of xavp

---

Modified: src/modules/erlang/pv_xbuff.c

---

Diff:  https://github.com/kamailio/kamailio/commit/4b6328ce015bbdc0899dc948c0f981649039407c.diff
Patch: https://github.com/kamailio/kamailio/commit/4b6328ce015bbdc0899dc948c0f981649039407c.patch

---

diff --git a/src/modules/erlang/pv_xbuff.c b/src/modules/erlang/pv_xbuff.c
index 42af43798f..1ea5c8331c 100644
--- a/src/modules/erlang/pv_xbuff.c
+++ b/src/modules/erlang/pv_xbuff.c
@@ -914,7 +914,7 @@ int xavp_encode(ei_x_buff *xbuff, sr_xavp_t *xavp,int level)
 			ei_x_encode_string_len(xbuff,xavp->val.v.s.s,xavp->val.v.s.len);
 			break;
 		case 'i':
-			ei_x_encode_long(xbuff,xavp->val.v.i);
+			ei_x_encode_long(xbuff,xavp->val.v.l);
 			break;
 		case 't':
 			n = xavp_get_count(xavp->val.v.xavp);




More information about the sr-dev mailing list