3.
Configuration Example of your IP-PBX
; ------------------
; sip.conf (for IP address authentication)
; ------------------
[general]
[general]
allowguest=no
maxexpirey=3600
defaultexpirey=3600
port=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=ulaw
allow=ulaw
language=jp
[siptr]
type=friend
context=inbound
canreinvite=no
host=
xxx.xxx.xxx.xxx
insecure=port,invite
insecure=port,invite
disallow=all
allow=ulaw
qualify=yes
nat=yes
;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver. 11
[peer1]
type=friend
type=friend
context=inbound
Host=xxx.xxx.xxx.xxx
nat=yes
[peer2]
type=friend
context=inbound
Host=xxx.xxx.xxx.xxx
Host=xxx.xxx.xxx.xxx
nat=yes
;please refer to P.10 ② for checking host IP address to be configured as peer.
[
200
]
type=friend
username=
200
secret=
200
pass
secret=
200
pass
host=dynamic
context=outbound-1
[
201
]
type=friend
username=
201
secret=
201
pass
host=dynamic
17
host=dynamic
context=outbound-2