SIP registration failed

Hi all.

I have an Asterisk on my Ubuntu 11.04 for testing and I’m reading the O’Reailly book to see some examples to do them but I have a problem. It is that I modified the sip.conf to add two SIP accounts but my phones can not register on it. My sip.conf is:


[general]
context=internas
allow=all
qualify=yes
port=5060
bindaddr=0.0.0.0
dtmfmode=rfc2833
language=es

[3000]
username=3000
secret=1234
host=dynamic
type=friend
nat=no

[3001]
secret=1234
host=dynamic
type=friend
nat=no

No phones (or softphone) can registry on these extensions on localnet.

The examples of the book are very basic (more than mine) and no work.

May I use another file to configure it? As I read, no, the sip.conf sets the accounts settings only.

Thanks a lot.

Regards.

What diagnostics do you get? What happens when you use “sip set debug on”?

Ooops! I don’t know what I did, but I “re do” the sip.conf with the same code and all worked.

Sorry for this stupid post, I have no explanation for this.