[OpenSIPS-Devel] [opensips] $TH_callee_callid is wrong (#800)
ankogan
notifications at github.com
Fri Feb 19 08:53:56 CET 2016
Hi!
Please fix calculation of $TH_callee_callid:
```
--- a/modules/topology_hiding/topology_hiding.c
+++ b/modules/topology_hiding/topology_hiding.c
@@ -206,6 +206,7 @@ static int pv_topo_callee_callid(struct sip_msg *msg, pv_param_t *param, pv_valu
{
struct dlg_cell *dlg;
int req_len = 0,i;
+ char *p;
if(res==NULL)
return -1;
@@ -239,5 +240,11 @@ static int pv_topo_callee_callid(struct sip_msg *msg, pv_param_t *param, pv_valu
res->rs.len = req_len;
res->flags = PV_VAL_STR;
+ p = res->rs.s + res->rs.len - 1;
+ while (*p == '=') {
+ *p = '-';
+ p--;
+ }
+
return 0;
}
```
BTW, why don't use one function to calculate mangled callid?
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/800
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160218/b5947a38/attachment.htm>
More information about the Devel
mailing list