[asterisk-users] Simulating a commercial SIP provider
Motiejus Jakštys
desired.mta at gmail.com
Mon May 10 07:12:16 CDT 2010
Forgot to mention that 10.10.10.10 must be the address of your secondary pbx
:)
2010/5/10 Motiejus Jakštys <desired.mta at gmail.com>
> 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 <jwinius at umrk.to> 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:passwrd at sip.provider.com/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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100510/560b0601/attachment.htm
More information about the asterisk-users
mailing list