Please, help to register adapter in Asterisk

I’v installed Asterisk-1.4.23.1 and i connected the custom phone with the computer by D-Link DVG-2001s adapter.

I wrote in sip.conf:
[200]
type=friend
host=dynamic
username=200
secret=123
contex=office
nat=yes

[201]
type=friend
host=dynamic
username=201
secret=321
contex=office
nat=yes

I wrote in extensions.conf:
[office]
include => default
exten => 200,1,Macro(stdexten,200,SIP/200)
exten => user,1,Goto(200|1)
exten => 201,1,Macro(stdexten,201,SIP/201)
exten => user2,1,Goto(201|1)

I did the corresponding settings in adapter (for number 200).
When i’m trying to register it in Asterisk, the Asterisk is writing (briefly):

<—Transmitting (NAT) to …>

<------------>
Scheduling destruction of SIP dialog …(Method: REGISTER)
Really destroying SIP dialog … Method: REGISTER

No error-note and so registration is faild.
What is wrong??? Please, help!!!

if you are on a local network network adress translation NAT is not needed
remove the nat translations

It dosn’t help. ((((
I’m a beginner in all this and i am worrying about words: ‘scheduling destruction’ and ‘really destroying’. What does it mean?

Could you try to set local network
voip-info.org/wiki/view/Aste … P+localnet

Show your log if asterisk will write nothing about NAT…

Nothing changes.
Could you write the set of codecs that i need to be installed.

can u give qualify=yes for agents in sip.conf

Regards,
Rajkumar.D

“The set of codecs” could be defferent!
You can use any codec you like, as soon as you have support for it on both sides and enouth network bandwidth…
As for me, I’m using g711=alaw. This meens 80kbits/s flow…

so I have

[general]
...
dissallow=all
allow=alaw
...

Asterisk is steel talking about NAT?

hm, bth,

is

[quote]context=office[/quote] ?

about typos) dissallow -> disallow :stuck_out_tongue:

It’s funny about “contex”, but i can’t tell you what did i write, because i had to reinstall my computer and so to start all over again. I’ll write you back as soon as i do it.