<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Arial","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white
background="file:///C:\Program%20Files\Common%20Files\Microsoft%20Shared\Stationery\tech.gif"
lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>Folks,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>First of all I will like to apologize before hand, since I
am better with numbers than with words.&nbsp; Therefore I hope you all can at
least understand the essence of what I am trying to communicate. ;-)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I am trying to set up an application, where I use Kamailio,
asterisk, and A2Billing to process pre paid calling cards, and wholesale voip.&nbsp;
I already have setup a kamailio service using carrier route and a2billing as a
preprocessor. It works beautiful, Great work guys!!!!<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>The questions I have are around the design for resiliency and
redundancy.&nbsp; I will like to use another instance of kamailio for a
dispatcher function to load balance between asterisk servers, since the is a
limitation and performance issues with asterisk. Now I have done some research
and some testing and they only way I know I can make it work is by using 302
redirection to redirect the invites from my customers to the corresponding asterisk
server. If I use a direct setup using ds_select_dst asterisk gets all &#8220;confused&#8221;
since the request appears to come from the dispatcher ip address.&nbsp; For
wholesale ip, I filter a2billing on ip address and not username.&nbsp; My
configuration is as follows:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>&lt;customer&gt;----<span style='font-family:Wingdings'>&agrave;</span>&lt;dispatcher/kamailio&gt;----<span
style='font-family:Wingdings'>&agrave;</span>&lt;a2billing/asterisk&gt;---<span
style='font-family:Wingdings'>&agrave;</span>&lt;carrierroute/kamailio&gt;----<span
style='font-family:Wingdings'>&agrave;</span>&lt;carrier&gt;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Any thoughts, comments and/or suggestions are more than
welcomed!<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Carlos<o:p></o:p></p>

</div>

</body>

</html>