<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD>
<BODY>
<DIV>Why do you want to go through * main ? Just put everything on * B and log the CDR on * main using MySQL.</DIV><BR><BR>
<BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV class=msgHeaders>-----Original Message-----<BR><B>From:</B> info@saudihome.com<BR><B>Sent:</B> Wed, 16 Dec 2009 16:27:23 +0300<BR><B>To:</B> asterisk-users@lists.digium.com<BR><B>Subject:</B> [asterisk-users] FW: question on how to connect 2 boxes<BR><BR></DIV>
<DIV class=oldBody>
<DIV>
<DIV _class="Section1">
<P _class="MsoNormal"><SPAN _style="color:#1F497D">Was my question not understood?<?xml:namespace prefix = o /><o:p></o:p></SPAN></P>
<P _class="MsoNormal"><SPAN _style="color:#1F497D"><o:p>&nbsp;</o:p></SPAN></P>
<P _class="MsoNormal"><B><SPAN _style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p>&nbsp;</o:p></SPAN></B></P>
<P _class="MsoNormal"><SPAN _style="color:#1F497D"><o:p>&nbsp;</o:p></SPAN></P>
<P _class="MsoNormal">Hello,<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">I would like to connect 2 asterisk boxes together, so this is my scenario:<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">Asterisk Main: it is connected to many sip providers and its main purpose as a call termination forwarder.<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">Asterisk B: it’s connected to E1, and its purpose to terminate calls. It will receive SIP messages from Asterisk_Main, but there will be no voice traffic going between them,&nbsp; Asterisk_Main will send the provider IP address where both Asterisk_B &amp; provider will communicate, at the end of the call, Asterisk_Main will log CDR traffic.<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">Now I can make IAX2, but the problem is, the traffic must go like this: <o:p></o:p></P>
<P _class="MsoNormal">&nbsp;Provider &lt;-&gt;Asterisk_Main&lt;-&gt; Asterisk_B<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">This will cause a problem with wasted bandwidth and more latency on the call.<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">I want it to be like this:<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Asterisk_Main<o:p></o:p></P>
<P _class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<o:p></o:p></P>
<P _style="text-indent:.5in" _class="MsoNormal">Asterisk_B -<SPAN _style="font-family:&#10;Wingdings">ßà</SPAN> Provider<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">Please let me know your suggestions.<o:p></o:p></P>
<P _class="MsoNormal"><o:p>&nbsp;</o:p></P>
<P _class="MsoNormal">Regards.<o:p></o:p></P></DIV></DIV></DIV></BLOCKQUOTE><hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;">
<div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em">
<a href="http://www.inbox.com/smileys"><img src="http://my.inbox.com/img/ftrs/smileys.jpg" width="438" hight="73" alt="Smileys Preview" border="0" style="margin-bottom:10px" /></a><br>
<nobr><strong><font color="2086c3">Get Free Smileys for Your IM &amp; Email</font></strong> - Learn more at <a href="http://www.crawler.com/smileys">www.crawler.com/smileys</a></nobr><br>
<nobr>Works with AIM<font size="-1"><sup>&reg;</sup></font>, MSN<font size="-1"><sup>&reg;</sup></font> Messenger, Yahoo!<font size="-1"><sup>&reg;</sup></font> Messenger, ICQ<font size="-1"><sup>&reg;</sup></font>, Google Talk<font size="-1"><sup>&trade;</sup></font> and most webmails</nobr></div>
</BODY>
</HTML>