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

hello
im a beginner in asterisk and i try to connect my zyxel Voip gateway to asterisk to make a call between to analog phones

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

i have no idea about how config extensions.conf

so plz help me to do this
thank you!

[quote=“onewayticket”]
i have no idea about how config extensions.conf [/quote]

Read and understand the dialplan chapters in asteriskdocs.org/ and read and understand extensions.conf.sample.