Adding &quot;fromuser&quot; option in trunk declaration in AST1 has solved all problems though.<br><br>
<div class="gmail_quote">On Wed, Feb 27, 2008 at 4:36 PM, Igor A. Goncharovsky &lt;<a href="mailto:igi-go@ya.ru">igi-go@ya.ru</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">Rizwan Hisham wrote:<br>&gt; I am having a strange problem. I am using my asterisk server AST1 to<br>&gt; register with another asterisk server AST2 using 2 accounts (2 register<br>&gt; commands in sip.conf). I have made 2 local users in AST1, and configured my<br>
&gt; dialplan in such a way that both local accounts on AST1 use different trunks<br>&gt; to send the call to AST2 server. These 2 different trunks are for 2 accounts<br>&gt; i have registered on AST1.<br></div>&gt; (skiped)<br>

<div class="Ih2E3d">&gt;<br>&gt; How can i make asterisk realize it?<br>&gt;<br></div>You must enable authentication of INVITE that AST1 send to AST2. Now you<br>have no authentication of incoming INVITE and AST2 make decision about<br>
used account based only on IP address of caller peer.<br><br>Changing insecure=port,invite to insecure=port should help.<br><br>--<br>Best regards,<br>Igor A. Goncharovsky<br><br><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Rizwan Hisham<br>