Module: kamailio
Branch: master
Commit: 6137358a9f699efd88c53d9b0b1081b338996888
URL:
https://github.com/kamailio/kamailio/commit/6137358a9f699efd88c53d9b0b1081b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-02T14:00:32+01:00
tm: cast port parameter for kemi export function
---
Modified: src/modules/tm/tm.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6137358a9f699efd88c53d9b0b1081b…
Patch:
https://github.com/kamailio/kamailio/commit/6137358a9f699efd88c53d9b0b1081b…
---
diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c
index 06e315fe14..fcc312aeb6 100644
--- a/src/modules/tm/tm.c
+++ b/src/modules/tm/tm.c
@@ -2923,7 +2923,7 @@ static int ki_t_relay_to_proto(sip_msg_t *msg, str *sproto)
/**
*
*/
-static int ki_t_relay_to_proto_addr(sip_msg_t *msg, str *sproto, str *host, unsigned int
port)
+static int ki_t_relay_to_proto_addr(sip_msg_t *msg, str *sproto, str *host, int port)
{
int proto = PROTO_NONE;
@@ -2941,9 +2941,9 @@ static int ki_t_relay_to_proto_addr(sip_msg_t *msg, str *sproto, str
*host, unsi
return E_UNSPEC;
}
}
- proxy = mk_proxy(host, port, 0);
+ proxy = mk_proxy(host, (unsigned short)port, 0);
if (proxy == 0) {
- LM_ERR("bad host, port provided <%s,%d>\n",
+ LM_ERR("bad host:port provided <%s:%d>\n",
host->s, port );
return E_BAD_ADDRESS;
}