I can't test simple connect asterisk

I create sip account in the last line of /etc/asterisk/sip.conf like this.

[code][1000]
username=1000
secret=1000
host=dynamic
type=friend

[2000]
username=1000
secret=1000
host=dynamic
type=friend[/code]

And config at [default] in file /etc/asterisk/extensions.conf

[dafualt] exten => 1000,1,Dial(SIP/1000) exten => 2000,1,Dial(SIP/2000)

But when I use X-Lite call from 1000 to 2000 it show error like this in CLI. How to fix it ?

Your general section says public, rather than defualt or even default. Change it to match extensions.conf, or set the context for each device.