asterisk-config/pjsip.conf

200 lines
3.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
2022-11-09 18:41:39 +08:00
allow=!all,opusloss,ulaw,alaw,speex
direct_media=no ; proxy all calls
rtp_ipv6=yes
rtp_symmetric=yes
tone_zone=cn
rtp_timeout=60
rtp_timeout_hold=120
rpid_immediate=yes
2021-11-19 15:52:42 +08:00
force_rport=yes
rewrite_contact=yes
2021-11-26 08:09:09 +08:00
[peers-endpoint-template](!,endpoint-template)
context=jerry-peers
2022-11-09 18:41:39 +08:00
allow=!all,ulaw,alaw,opusloss
2021-11-26 08:09:09 +08:00
2021-11-19 15:52:42 +08:00
[auth-template](!)
type=auth
[aor-template](!)
type=aor
max_contacts=1
remove_existing=yes
;=============PHONES==============
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180001>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180002>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180003>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180004>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180005>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
2022-11-09 18:41:39 +08:00
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180006>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180007>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180008>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
[REDACTED](endpoint-template)
auth = REDACTED
aors = REDACTED
callerid=Jerry <424036180009>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
2021-11-19 15:52:42 +08:00
;=============EXTERN==============
;=============PEERS==============
2021-11-26 08:09:09 +08:00
[nia](peers-endpoint-template)
2021-11-19 15:52:42 +08:00
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
2021-11-26 08:09:09 +08:00
[zane](peers-endpoint-template)
2021-11-19 15:52:42 +08:00
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
2021-11-26 08:09:09 +08:00
[sunnet](peers-endpoint-template)
2021-11-19 15:52:42 +08:00
aors = sunnet
identify_by=ip
[sunnet](aor-template)
2022-11-09 18:41:39 +08:00
contact=sip:172.21.100.138:5060
2021-11-19 15:52:42 +08:00
[sunnet]
type=identify
endpoint=sunnet
2022-11-09 18:41:39 +08:00
match=172.21.100.138
2021-11-19 15:52:42 +08:00
2021-11-26 08:09:09 +08:00
[hertz](peers-endpoint-template)
2021-11-19 15:52:42 +08:00
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
2021-11-26 08:09:09 +08:00
[jrb0001](peers-endpoint-template)
2021-11-19 15:52:42 +08:00
aors = jrb0001
identify_by=ip
2021-11-26 23:08:18 +08:00
allow=!all,opusloss,speex,ulaw,alaw
2021-11-19 15:52:42 +08:00
[jrb0001](aor-template)
2022-11-09 18:41:39 +08:00
contact=sip:[fd42:5d71:219:1008:216:3eff:fe9d:882f]:5060
2021-11-19 15:52:42 +08:00
[jrb0001]
type=identify
endpoint=jrb0001
2022-11-09 18:41:39 +08:00
match=fd42:5d71:219:1008:216:3eff:fe9d:882f
2021-11-26 23:08:18 +08:00
[kioubit](peers-endpoint-template)
aors = kioubit
identify_by=ip
[kioubit](aor-template)
contact=sip:172.20.14.37:5060
[kioubit]
type=identify
endpoint=kioubit
match=172.20.14.37