If I understand well - you want second PBX to act as your sip.provider.com add this to your /etc/hosts (on primary pbx): 10.10.10.10 sip.provider.com
(secondary - simulation pbx): 127.0.0.1 localhost sip.provider.com And use primary pbx as normal. When you need to switch to production - remove the /etc/hosts line. Hope this helps. On Mon, May 10, 2010 at 2:57 PM, Jaap Winius <[email protected]> wrote: > Hi all, > > The kind of configuration that I use in my sip.conf to connect to > various commercial SIP providers looks like this: > > [general] > context=incoming-calls > canreinvite=no > qualify=yes > register => jwinius:[email protected]/0201234567 > > [provider] > type=peer > host=sip.provider.com > fromuser=jwinius > secret=passwrd > > This works. However, how would I have to configure the sip.conf of a > second Asterisk machine if I wanted to use it to simulate the host > mentioned above, sip.provider.com, but (crucially) without changing > the above configuration? > > I would have thought that the appropriate stanza to use for my account > in the other Asterisk machine's sip.conf -- the system that simulates > the commercial SIP provider -- would have to look like this: > > [jwinius] > type=friend > host=dynamic > secret=passwrd > insecure=invite > > Unfortunately, this doesn't work, resulting "Failed to authenticate on > INVITE" errors. It only works if I first remove the "fromuser" and > "secret" options from the configuration on the first system, but > that's not what I want. > > Any idea what I'm doing wrong? > > Thanks, > > Jaap > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
