<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I was wondering if anyone can help, and advise me if I am missing something when using topos in an environment where I have more than one interface for kamailio.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Essentially I would like to set the contact_host to 2 different values depending on the flow of the SIP requests, as we have a private LAN interconnect for example 10.10.10.10, and a public interconnect using 2.2.2.2 (for example).</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I notice there is xavu for A-side contact and B-side contact, but what about just the contact host?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As I have set for example;</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">modparam("topos", "xavu_cfg", "_tps_")</p>
<p class="MsoNormal">modparam("topos", "xavu_field_contact_host", "contact_host")</p>
<p class="MsoNormal">...</p>
<p class="MsoNormal">    $xavu(_tps_=>contact_host) = "2.2.2.2";</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And this works fine but obviously sets the contact_host to 8.8.8.8 across both interfaces, I ideally want it to change between 10.10.10.10 and 2.2.2.2.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How can I set more than one contact_host $xavu that topos can use? As my understanding is you can only set $xavu once, so is there another way to manipulate the contact_host on requests coming in and out on different interfaces?  I assume
 I am missing something? :)</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jon</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows</p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>