<p>Hi!</p>

<p>Please fix calculation of $TH_callee_callid:</p>

<pre><code>--- 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-&gt;rs.len = req_len;
        res-&gt;flags = PV_VAL_STR;

+       p = res-&gt;rs.s + res-&gt;rs.len - 1;
+       while (*p == '=') {
+               *p = '-';
+               p--;
+       }
+
        return 0;
 }
</code></pre>

<p>BTW, why don't use one function to calculate mangled callid?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/800">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcict6R1JavywAbgGOaVzDpx27BAGgks5plsGUgaJpZM4HdxbV.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/800"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>