asterisk-config/pjsip.conf

146 lines
2.6 KiB
Text
Raw Normal View History

2021-11-19 15:52:42 +08:00
[global]
type=global
user_agent=PBX
[v4trans]
type=transport
protocol=udp
bind=0.0.0.0:5060
[v6trans]
type=transport
protocol=udp
bind=[::]:5060
;=============TEMPLATE==============
[endpoint-template](!)
type=endpoint
context=jerry
;message_context=jerry-msg
allow=!all,ulaw,opus48,opus,speex,alaw
;direct_media=no
rtp_symmetric=no
force_rport=yes
rewrite_contact=yes
[auth-template](!)
type=auth
[aor-template](!)
type=aor
max_contacts=1
remove_existing=yes
;=============PHONES==============
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
allow=!all,opus48,opus,ulaw,speex,alaw
callerid=Jerry <424036180001>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
allow=!all,opus48,opus,ulaw,speex,alaw
callerid=Jerry <424036180002>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
allow=!all,opus48,opus,ulaw,speex,alaw
callerid=Jerry <424036180003>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
allow=!all,opus48,opus,ulaw,speex,alaw
callerid=Jerry <424036180004>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
allow=!all,opus48,opus,ulaw,speex,alaw
callerid=Jerry <424036180005>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
;=============EXTERN==============
;=============PEERS==============
[nia](endpoint-template)
aors = nia
identify_by=ip
[nia](aor-template)
contact=sip:172.20.168.194:5160
[nia]
type=identify
endpoint=nia
match=172.20.168.194
[zane](endpoint-template)
aors = zane
identify_by=ip
[zane](aor-template)
contact=sip:172.22.167.72:5060
[zane]
type=identify
endpoint=zane
match=172.22.167.72
[sunnet](endpoint-template)
aors = sunnet
identify_by=ip
[sunnet](aor-template)
contact=sip:10.127.11.130:5060
[sunnet]
type=identify
endpoint=sunnet
match=10.127.11.130
[hertz](endpoint-template)
aors = hertz
identify_by=ip
[hertz](aor-template)
contact=sip:172.20.29.73:5060
[hertz]
type=identify
endpoint=hertz
match=172.20.29.73
[jrb0001](endpoint-template)
aors = jrb0001
identify_by=ip
2021-11-23 13:36:15 +08:00
allow=!all,opus48,opus,ulaw,speex,alaw
2021-11-19 15:52:42 +08:00
[jrb0001](aor-template)
contact=sip:[fd42:5d71:219:1003:216:3eff:fe9d:882f]:5060
[jrb0001]
type=identify
endpoint=jrb0001
match=fd42:5d71:219:1003:216:3eff:fe9d:882f