Help with SIP incoming calls

Hello, wow firstly I want to say how amazed I am with Asterisk, I have been using Avaya hardware before and from what i’ve read about Asterisk, this rocks!!! However now its my turn to create my own asterisk network at home for testing, only I’m having problems receiving incoming calls.
My configuration is like this:
[ul]I have a linux gateway (DMZ) with Asterisk installed and running
I have a SIP provider which I pay a monthly fee to,
I have several xlite clients on windows XP boxes which can connect to asterisk and call other local extensions using SIP,
I can make outgoing calls through my sip provider using Xlite by pressing 1 for outside line
[/ul]
So it seems I have configured extensions.conf and sip.conf to be able to do most things needed for a home… but when I call my home number from outside I get an error in the asterisk console:

Jul 9 12:33:35 NOTICE 2999 : chan_sip.c:10569 handle_request_invite: Failed to authenticate user “Unknown” sip:Unknown@202.180.76.167;tag=as005f159b

so the call is making its way into my asterisk which I’m happy about but doesn’t get sent to my extension. The following is what I think is relevant from my conf files (theres too much other commented stuff to paste the whole lot) I would like to kjnow how to just accept any call from anywhere into my system, or is that a bad idea?

Thank you so much if anyone cen help me out here…

sip.conf:

[general]
context=default
allowguest=yes
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes

register => XXX:XXX@sip.kiwilink.co.nz/1234 ;I replaced my details with XXX in here for the sake of privacy

[sipout]
type=peer
secret=XXX
username=XXX
fromuser=XXX
fromdomain=tim
host=sip.kiwilink.co.nz
call-limit=2
canreinvite=no
qualify=yes
context=from-sipout

[tim] ; My extension
needed
type=friend
secret=XXX
callerid=“Tim” <222>
host=dynamic
canreinvite=yes
disallow=all
allow=gsm
allow=ulaw
allow=alaw
mailbox=8500@default,1233@default
dtmfmode=rfc2833
;context=sip

and extensions.conf

[default]
exten => 222,1,DIAL(SIP/tim,20,tr),Tim
exten => 333,1,DIAL(SIP/deva,20,tr),Deva

[from-sipout]
exten => 1234,1,Answer
exten => 1234,2,Dial(SIP/222,25,Ttr)
exten => 1234,3,Hangup

Add in sip.conf
[guest]
without password
And read about authenticated and unauthenticated calls - and how to handle.

Thanks for your reply, I got it sorted by doing the following (of course more searching found I was not alone with this issue only didn’t find it in my first 2 hours of frustration :smile:

what I changed was this:

[sipout]
type=friend ; <---- I changed this to friend
secret=XXX
username=XXX
fromuser=XXX
fromdomain=tim
host=sip.kiwilink.co.nz
call-limit=2
canreinvite=no
qualify=yes
context=from-sipout
disallow=all ; <---- I added this line
allow=gsm ; <---- I added this line
allow=ulaw ; <---- I added this line
allow=alaw ; <---- I added this line
insecure=invite ; <---- I added this line

I also added the following:

[sip_proxy]
type=peer
context=from-kiwi
host=202.180.76.167 ; <— this is where the external SIP connection from my supplier comes from

Although now that its working I dont actually know which part made the difference, I may have absent mindedly changed something else too…

I dont know if this is even any help for someone else who is experiencing the problem but who knows.

Cheers Problem Solved !