Module: kamailio
Branch: master
Commit: 55b5b35430ccb7de904f6b1c48ff71e691344b9e
URL:
https://github.com/kamailio/kamailio/commit/55b5b35430ccb7de904f6b1c48ff71e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-27T16:00:08+02:00
pv: $RAp returns also the int value for advertised port when available
---
Modified: src/modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/55b5b35430ccb7de904f6b1c48ff71e…
Patch:
https://github.com/kamailio/kamailio/commit/55b5b35430ccb7de904f6b1c48ff71e…
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 8e0074fca4..b49de912d7 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -797,7 +797,8 @@ int pv_get_rcv_advertised_ip(struct sip_msg *msg, pv_param_t *param,
if(msg->rcv.bind_address!=NULL
&& msg->rcv.bind_address->useinfo.address_str.len > 0) {
- return pv_get_strval(msg, param, res,
&msg->rcv.bind_address->useinfo.address_str);
+ return pv_get_strval(msg, param, res,
+ &msg->rcv.bind_address->useinfo.address_str);
}
return pv_get_rcvip(msg, param, res);
@@ -811,7 +812,9 @@ int pv_get_rcv_advertised_port(struct sip_msg *msg, pv_param_t
*param,
if(msg->rcv.bind_address!=NULL
&& msg->rcv.bind_address->useinfo.port_no_str.len > 0) {
- return pv_get_strval(msg, param, res,
&msg->rcv.bind_address->useinfo.port_no_str);
+ return pv_get_intstrval(msg, param, res,
+ (int)msg->rcv.bind_address->useinfo.port_no,
+ &msg->rcv.bind_address->useinfo.port_no_str);
}
return pv_get_rcvport(msg, param, res);