Call from '' to exten. '' rejected because exten. not found

Hello,

I have just set up my Asterisk 1.6.1.x server.

My sip.conf:

[code][general]
bindaddr=XX.YY.ZZ.WW

[1001]
type=friend
context=phones
host=dynamic
nat=yes
canreinvite=no
secret=

[1002]
type=friend
context=phones
host=dynamic
nat=yes
canreinvite=no
secret=
[/code]

When I try to do a call from 1001 to 1002, the Asterisk shows the error:

What should be the simplest extensions.conf to do calls between 1001 e 1002, please?

TIA,
cviniciusm.

Hello,

I have changed the softphones configuration to register with the domain and to do incoming calls.

Now, it’s working fine.

Bye.