Forgot to mention that 10.10.10.10 must be the address of your secondary pbx :)<br><br><div class="gmail_quote">2010/5/10 Motiejus Jakštys <span dir="ltr">&lt;<a href="mailto:desired.mta@gmail.com">desired.mta@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">If I understand well - you want second PBX to act as your <a href="http://sip.provider.com" target="_blank">sip.provider.com</a><br>

<br>add this to your /etc/hosts (on primary pbx):<br>10.10.10.10 <a href="http://sip.provider.com" target="_blank">sip.provider.com</a><br>
<br>(secondary - simulation pbx):<br>127.0.0.1 localhost <a href="http://sip.provider.com" target="_blank">sip.provider.com</a><br><br>And use primary pbx as normal. When you need to switch to production - remove the /etc/hosts line.<br>


<br>Hope this helps.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, May 10, 2010 at 2:57 PM, Jaap Winius <span dir="ltr">&lt;<a href="mailto:jwinius@umrk.to" target="_blank">jwinius@umrk.to</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br>
<br>
The kind of configuration that I use in my sip.conf to connect to<br>
various commercial SIP providers looks like this:<br>
<br>
    [general]<br>
    context=incoming-calls<br>
    canreinvite=no<br>
    qualify=yes<br>
    register =&gt; <a href="http://jwinius:passwrd@sip.provider.com/0201234567" target="_blank">jwinius:passwrd@sip.provider.com/0201234567</a><br>
<br>
    [provider]<br>
    type=peer<br>
    host=<a href="http://sip.provider.com" target="_blank">sip.provider.com</a><br>
    fromuser=jwinius<br>
    secret=passwrd<br>
<br>
This works. However, how would I have to configure the sip.conf of a<br>
second Asterisk machine if I wanted to use it to simulate the host<br>
mentioned above, <a href="http://sip.provider.com" target="_blank">sip.provider.com</a>, but (crucially) without changing<br>
the above configuration?<br>
<br>
I would have thought that the appropriate stanza to use for my account<br>
in the other Asterisk machine&#39;s sip.conf -- the system that simulates<br>
the commercial SIP provider -- would have to look like this:<br>
<br>
    [jwinius]<br>
    type=friend<br>
    host=dynamic<br>
    secret=passwrd<br>
    insecure=invite<br>
<br>
Unfortunately, this doesn&#39;t work, resulting &quot;Failed to authenticate on<br>
INVITE&quot; errors. It only works if I first remove the &quot;fromuser&quot; and<br>
&quot;secret&quot; options from the configuration on the first system, but<br>
that&#39;s not what I want.<br>
<br>
Any idea what I&#39;m doing wrong?<br>
<br>
Thanks,<br>
<br>
Jaap<br>
<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>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <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>
</div></div></blockquote></div><br>