<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;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* 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;
        color:black;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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>Any comments?<o:p></o:p></p>

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

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> users-bounces@lists.kamailio.org
[mailto:users-bounces@lists.kamailio.org] <b>On Behalf Of </b>Carlos A. Alvarez<br>
<b>Sent:</b> Thursday, July 09, 2009 11:10 AM<br>
<b>To:</b> 'Users@lists.kamailio.org'<br>
<b>Subject:</b> [Kamailio-Users] OpenSer/Kamailio and A2Billing<o:p></o:p></span></p>

</div>

</div>

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

<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'>à</span>&lt;dispatcher/kamailio&gt;----<span
style='font-family:Wingdings'>à</span>&lt;a2billing/asterisk&gt;---<span
style='font-family:Wingdings'>à</span>&lt;carrierroute/kamailio&gt;----<span
style='font-family:Wingdings'>à</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>