Connect asterisk to Zyxel(P-2304R-P1) as SIP server

hello
im a beginner in asterisk and i try to connect my zyxel Voip gateway to asterisk
this is my zyxel config
wan ip : 192.168.18.104
dg : 192.168.18.102 (asterisk ip)

sip1 , phone 1
number =1010
local port =5060
SIP Server Address = 192.168.18.102
username = 1010
pass = xxxx
dtmf = rfc2833

sip2 , phone 2
number =2020
local port =5060
SIP Server Address = 192.168.18.102
username = 2020
pass = xxxx
dtmf = rfc2833


asterisk

sip.conf
general]
localnet=192.168.18.0/255.255.255.0
context=unauthenticated
allowguest=no
srvlookup=no
udpbindaddr=0.0.0.0
tcpenable=no
[1010]
secret=xxxx
;register => 1010:xxxx@192.168.18.104
type=friend
context=zyxel
port=5060
nat=no
host=dynamic
dtmfmode=auto
canreinvite=no
disallow=all
allow=g729
allow=alaw
allow=ulaw

[2020]
secret=xxxx
;register => 2020:xxxx@192.168.18.104
type=friend
host=dynamic
context=zyxel
nat=force_rport,comedia
canreinvite=no
disallow=all
allow=g729
allow=alaw
aloow=ulaw
dtmfmode=auto

extensions.conf
[zyxel]

exten => 1010,1,Dial(${1010},10,r)
exten => 2020,1,Dial(SIP/2020)



plz help me it’s not working
i cant make call whats wrong

In what way is it not working? Please provide the logs demonstrating that it is not working.

Your extensions.conf doesn’t make sense. You route all the calls back to the line from which they came. Also you haven’t listed the globals section. I assume there is a line saying:

1010=SIP/1010

Also, this is a discussion forum, not a support one.