Xlite Issue

Hello ; newbie here…I installed Asterisk last weekend following the .pdf book that most people recommed (Asterist TFOT). I have installed X-lite in my laptop and also on my asterisk server. The first question I have is regarding the extension.conf and sip.conf. according to the book these files should have been in the /etc/asterisk folder. For some reason there were not there so I “touch” these file and configured my extension. I have install X-lite in my laptop and also in the asterisk server; I get both to talk to asterisk but when I dial from my server to my laptop (ex 1000) I get a " call failed: 404 not found" followed by a message tellin me that "the number that I dial is not available…"
I have setup extension 1000 and 1001 like this: sip.conf

[general]
[1000]
type=friend
context=phones
host=dynamic
secret=********
nat=yes

[general]
[1001]
type=friend
context=phones
host=dynamic
secret=******
nat=yes

and this is my dialplan which i think is incompleted:extensions.conf

[internal]
exten => 1000,1,Verbose(1 |Extension 1000)
exten => 1000,n,Dial(SIP/1000,30)
exten => 1000,n,Hangup()

exten => 1001,1,Verbose(1 |Extension 1000)
exten => 1001,n,Dial(SIP/1001,30)
exten => 1001,n,Hangup()

So i assume that if i dial ext 1000 from my server using X-lite it should ring in my laptop but I get the above error.

Could anyone please help me out?
Thank you!

contexts don’t match up

set the contexts to be internal?

[quote=“Docteh”]contexts don’t match up

set the contexts to be internal?[/quote]
Ok; should I add this at the beggining of extensions.con:
[phones]
include => internal

or should I just change [internal] for [phones]
thanks!

do whichever that makes most sense to you

including different sections can be very useful though

[quote=“Docteh”]do whichever that makes most sense to you

including different sections can be very useful though[/quote]
Im gonna tried that tonight and advise back.

thanks!

[quote=“Docteh”]contexts don’t match up

set the contexts to be internal?[/quote]

Thank you Docteh; I changed that and it worked!