[Asterisk-Users] Matching SIP users and peers
Joshua Colp
joshnet at nbnet.nb.ca
Fri Dec 23 11:19:00 MST 2005
Hello Doug,
A user is only matched on when the user part of the SIP URI matches the name
of one in sip.conf, Asterisk then challenges for credentials. A user is only
used when username/password authentication occurs. In your scenario, this
doesn't occur.
A peer can be matched on for incoming calls using the insecure option, this
causes it to match based on the IP address.
Joshua Colp
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Douglas
Garstang
Sent: Friday, December 23, 2005 2:00 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Matching SIP users and peers
I have an incoming call from, say, extension 1000 and IP address
192.168.10.4 in Asterisk. There is no user 1000 defined in sip.conf and
allowguest=no. Here is what sip.conf has:
[general]
allowguest=no
Context=default
[proxy1-in]
type=user
host=192.168.10.4
insecure=very
context=Company1
[proxy1]
type=peer
host=192.168.10.4
insecure=very
context=Company1
qualify=yes
When this call comes in, Asterisk logs:
--- (16 headers 9 lines)---
Using INVITE request as basis request -
c594f217-59d20131-b33f740c at 192.168.10.123
Sending to 192.168.10.4 : 5060 (non-NAT)
Found peer 'proxy1'
I'm wondering why it matched against the peer before the user, when this was
an incoming call. Shouldn't an incoming call match a 'user' before a 'peer',
if at all on the peer.
Thanks,
Doug.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list