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"><<a href="mailto:desired.mta@gmail.com">desired.mta@gmail.com</a>></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"><<a href="mailto:jwinius@umrk.to" target="_blank">jwinius@umrk.to</a>></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 => <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'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't work, resulting "Failed to authenticate on<br>
INVITE" errors. It only works if I first remove the "fromuser" and<br>
"secret" options from the configuration on the first system, but<br>
that's not what I want.<br>
<br>
Any idea what I'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>