[sr-dev] git:master:9ecbdce1: call_control: switch to long pvar field

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 16 16:49:49 CET 2022


Module: kamailio
Branch: master
Commit: 9ecbdce1a5ded2c5247a9a204b7841627f5e172a
URL: https://github.com/kamailio/kamailio/commit/9ecbdce1a5ded2c5247a9a204b7841627f5e172a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-11-16T16:49:30+01:00

call_control: switch to long pvar field

---

Modified: src/modules/call_control/call_control.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9ecbdce1a5ded2c5247a9a204b7841627f5e172a.diff
Patch: https://github.com/kamailio/kamailio/commit/9ecbdce1a5ded2c5247a9a204b7841627f5e172a.patch

---

diff --git a/src/modules/call_control/call_control.c b/src/modules/call_control/call_control.c
index 98de64523d0..14455ec967f 100644
--- a/src/modules/call_control/call_control.c
+++ b/src/modules/call_control/call_control.c
@@ -589,7 +589,7 @@ make_custom_request(struct sip_msg *msg, CallInfo *call)
         }
         if (pt.flags & PV_VAL_INT) {
             len += snprintf(request + len0, sizeof(request)-len0,
-                      "%.*s = %d ", al->name.len, al->name.s,
+                      "%.*s = %ld ", al->name.len, al->name.s,
                    pt.ri);
         } else    if (pt.flags & PV_VAL_STR) {
             len += snprintf(request + len0, sizeof(request)-len0,




More information about the sr-dev mailing list