asterisk-config/pjsip.conf

147 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
2021-11-26 08:09:09 +08:00
allow=!all,opus48,opus,ulaw,speex,alaw
2021-11-19 15:52:42 +08:00
;direct_media=no
rtp_symmetric=no
force_rport=yes
rewrite_contact=yes
2021-11-26 08:09:09 +08:00
[peers-endpoint-template](!,endpoint-template)
context=jerry-peers
allow=!all,ulaw,opus48,opus,speex,alaw
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
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
callerid=Jerry <424036180005>
[REDACTED](auth-template)
auth_type=userpass
username=REDACTED
password=REDACTED
[REDACTED](aor-template)
;=============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)
contact=sip:10.127.11.130:5060
[sunnet]
type=identify
endpoint=sunnet
match=10.127.11.130
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-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