<html xmlns:v="urn:schemas-microsoft-com:vml" 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;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><![endif]--><!--[if gte mso 9]><![endif]--></head><body lang="EN-NZ" link="#0563C1" vlink="#954F72"><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US">Hi there,</span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">Long time user, 1<sup>st</sup> time poster – apologies if someone has posted this previously. </span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">We have a product from a vendor that utilizes Kamailio as a SIP router – but we’re wanting to extend it a little bit by the use of anycast (we’re a small ISP).  Basically the scenario is that we want to utilize Quagga
 via BGP to anycast an address, which addresses a glaring load balancing issue with have with people who use only A records.</span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">Problem is anycast doesn’t work so well in this scenario, just by adding the Anycast as a listen address on the proxy.  What we’d want to do is rewrite the SIP so that all responses come back out saying to use the ‘real
 ip’.</span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">So I have two variables – say REAL_IP_ADDRESS and ANYCAST_IP_ADDRESS – request will come in via ANYCAST, but I want all responses from then on to be via REAL_IP_ADDRESS.  We have six Kamailio boxes in various geographical
 locations, so the idea is they hit one based on closest, and we rewrite it so they end up with the real ip address to talk to. </span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">Anyone done something similar?  I’m guessing possibly, but I can’t find anything specific enough for me to use.</span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">Help appreciated!</span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US">Regards,</span></p><p class="MsoNormal"><span lang="EN-US">Daniel</span></p><p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p></div></body></html>