[Asterisk-Users] Asterisk SIP between two networks
Sergio Serrano
sergio.serrano at avanzada7.com
Wed Sep 1 16:33:44 MST 2004
Hi all,
I'm desperate,
if I put bindaddr=192.168.20.10, I obtain the next:
Sip read:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.20.10:5060;branch=z9hG4bK2174f136
From: <sip:3400001792 at voztele.com>;tag=as05db6abc
To:
<sip:3400001792 at voztele.com>;tag=84448f3c7053227cca70775302748de3.a866
Call-ID: 26e3d26b4c36479a1e5d98e7639f3e1b at 192.168.20.10
CSeq: 102 REGISTER
WWW-Authenticate: Digest realm="voztele.com",
nonce="41365c4cf9c69cc73a429f27813652ded65fc483"
Server: Sip EXpress router (0.8.12-tcp_nonb (i386/linux))
Content-Length: 0
But If i put bindaddr=0.0.0.0, I obtain yhe next:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.20.10:5060;branch=z9hG4bK54679e05
From: <sip:3400001792 at voztele.com>;tag=as294baf04
To:
<sip:3400001792 at voztele.com>;tag=84448f3c7053227cca70775302748de3.e5c8
Call-ID: 6b8b4567327b23c6643c986966334873 at 192.168.20.10eq: 103 REGISTER
WWW-Authenticate: Digest realm="voztele.com",
nonce="41365cfc1947f24b5cd03bb5bca062540243dc39"
Server: Sip EXpress router (0.8.12-tcp_nonb (i386/linux))
Content-Length: 0
It is a bug? Why if I put bindaddr=0.0.0.0 packet received by asterisk
is broken?
Could anyone help me?
Regards,
srsergio
-----Mensaje original-----
De: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] En nombre de Sergio
Serrano
Enviado el: jueves, 02 de septiembre de 2004 0:28
Para: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Asunto: RE: [Asterisk-Users] Asterisk SIP between two networks
I just use localnet parameter in next way:
localnet=192.168.20.0/255.255.255.0
localnet=172.28.240.0/255.255.240.0
Any idea more?
Regards,
srsergio
-----Mensaje original-----
De: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] En nombre de Kevin
Walsh Enviado el: miércoles, 01 de septiembre de 2004 19:16
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: RE: [Asterisk-Users] Asterisk SIP between two networks
Sergio Serrano [sergio.serrano at avanzada7.com] wrote:
> SIP Provider<--------------->ADSL router<---localnet
> 192.168.20.0--->ASTERISK<---localnet 172.24.240.0--->softphones
>
> first localnet 192.168.20.0
> second localnet 172.28.240.0
> in second localnet we have softphone and the first localnet is
> connected to ADSL router to connect to our SIP provider.
>
> if I put in [general] section in sip.conf, bindaddr=0.0.0.0, I can't
> register in my SIP provider. If I put 192.168.20.10 in bindaddr I can
> register in my SIP provider but softphones can't register into
> asterisk. I 'm using asterisk RC1.
>
You probably need to use the "localnet" setting in sip.conf. See here
for more sip.conf-related information:
http://www.voip-info.org/wiki-Asterisk+config+sip.conf
On the other hand, you could use an IAX2 provider and side-step the
issue altogether.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list