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_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel