aboutsummaryrefslogtreecommitdiff
path: root/asterisk-conf/pjsip.conf
diff options
context:
space:
mode:
Diffstat (limited to 'asterisk-conf/pjsip.conf')
-rw-r--r--asterisk-conf/pjsip.conf278
1 files changed, 278 insertions, 0 deletions
diff --git a/asterisk-conf/pjsip.conf b/asterisk-conf/pjsip.conf
new file mode 100644
index 0000000..faf8575
--- /dev/null
+++ b/asterisk-conf/pjsip.conf
@@ -0,0 +1,278 @@
+;===============TRANSPORT
+
+[simpletrans]
+type=transport
+protocol=udp
+bind=0.0.0.0
+local_net=192.168.4.0/24
+local_net=192.168.5.0/24
+local_net=192.168.6.0/24
+local_net=192.168.9.0/24
+external_media_address=2.59.235.35
+external_signaling_address=2.59.235.35
+
+
+;===============ENDPOINT TEMPLATES
+
+[endpoint-basic](!)
+type=endpoint
+context=from-internal
+message_context=send-text
+disallow=all
+;allow=g722
+allow=ulaw
+;allow=alaw
+;allow=opus
+;allow=all
+
+[auth-userpass](!)
+type=auth
+auth_type=userpass
+
+[aor-single-reg](!)
+type=aor
+max_contacts=1
+
+;===============ATA site A port 1
+
+[1001](endpoint-basic)
+auth=auth1001
+aors=1001
+acl=internal
+
+[auth1001](auth-userpass)
+password=REDACTED
+username=1001
+
+[1001](aor-single-reg)
+
+;===============ATA site A port 2
+
+[1002](endpoint-basic)
+auth=auth1002
+aors=1002
+acl=internal
+
+[auth1002](auth-userpass)
+password=REDACTED
+username=1002
+
+[1002](aor-single-reg)
+
+;===============ATA site B port 1
+
+[1011](endpoint-basic)
+auth=auth1011
+aors=1011
+acl=internal
+
+[auth1011](auth-userpass)
+password=REDACTED
+username=1011
+
+[1011](aor-single-reg)
+
+;===============ATA site B port 2
+
+[1012](endpoint-basic)
+auth=auth1012
+aors=1012
+acl=internal
+
+[auth1012](auth-userpass)
+password=REDACTED
+username=1012
+
+[1012](aor-single-reg)
+
+
+;===============soft phone 1
+
+[1021](endpoint-basic)
+auth=auth1021
+aors=1021
+acl=internal
+
+[auth1021](auth-userpass)
+password=REDACTED
+username=1021
+
+[1021](aor-single-reg)
+
+;===============soft phone 2
+
+[1022](endpoint-basic)
+auth=auth1022
+aors=1022
+acl=internal
+
+[auth1022](auth-userpass)
+password=REDACTED
+username=1022
+
+[1022](aor-single-reg)
+
+
+;===============remote phone 1
+
+[1031](endpoint-basic)
+auth=auth1031
+aors=1031
+rtp_symmetric=yes
+force_rport=yes
+direct_media=no
+rewrite_contact=yes
+acl=internal ; these are currently disabled for external registration so they arent really remote
+
+[auth1031](auth-userpass)
+password=REDACTED
+username=1031
+
+[1031](aor-single-reg)
+
+;===============remote phone 2
+
+[1032](endpoint-basic)
+auth=auth1032
+aors=1032
+rtp_symmetric=yes
+force_rport=yes
+direct_media=no
+rewrite_contact=yes
+acl=internal
+
+[auth1032](auth-userpass)
+password=REDACTED
+username=1032
+
+[1032](aor-single-reg)
+
+;===============Cisco 3911 SIP phone 1
+
+[1051](endpoint-basic)
+auth=auth1051
+aors=1051
+rtp_symmetric=yes
+force_rport=yes
+direct_media=no
+rewrite_contact=yes
+;acl=internal
+
+[auth1051](auth-userpass)
+password=REDACTED
+username=1051
+
+[1051](aor-single-reg)
+
+
+
+
+; ============= anonymous inbound calls
+[anonymous]
+type=endpoint
+context=from-anonymous
+;disallow=all
+;allow=speex,g726,g722,ilbc,gsm,alaw,ulaw
+allow=all
+acl=external
+
+
+
+;=============== SDF TRUNK
+
+[sdf]
+type=registration
+outbound_auth=sdf
+server_uri=sip:sip.sdf.org
+client_uri=sip:2063@sip.sdf.org
+retry_interval=120
+forbidden_retry_interval=180
+auth_rejection_permanent=no
+max_retries=3
+contact_user=2063
+expiration=1200
+
+[sdf]
+type=auth
+auth_type=userpass
+username=2063
+password=REDACTED
+
+[sdf]
+type=aor
+contact=sip:sip.sdf.org:5060
+qualify_frequency=58
+
+[sdf]
+type=endpoint
+context=from-sdf
+disallow=all
+allow=ulaw
+allow=g729
+allow=alaw
+allow=opus
+;allow=all
+outbound_auth=sdf
+aors=sdf
+;rtp_symmetric=yes
+;force_rport=yes
+direct_media=no
+;rewrite_contact=yes
+acl=sdf
+
+[sdf]
+type=identify
+endpoint=sdf
+match=sip.sdf.org
+
+;=============== AVANZA PSTN TRUNK
+
+[pstn]
+type=registration
+outbound_auth=pstn
+server_uri=sip:sip.avanzafibra.net
+client_uri=sip:mta69987-1@sip.avanzafibra.net
+retry_interval=120
+forbidden_retry_interval=180
+auth_rejection_permanent=no
+max_retries=3
+contact_user=868925554
+expiration=1200
+
+[pstn]
+type=auth
+auth_type=userpass
+username=mta69987-1
+password=REDACTED
+
+[pstn]
+type=aor
+contact=sip:sip.avanzafibra.net:5060
+qualify_frequency=58
+
+[pstn]
+type=endpoint
+transport=simpletrans
+context=from-pstn
+disallow=all
+allow=ulaw
+allow=g729
+allow=alaw
+allow=opus
+;allow=all
+outbound_auth=pstn
+aors=pstn
+;rtp_symmetric=yes
+;force_rport=yes
+direct_media=no
+;rewrite_contact=yes
+acl=pstn
+
+[pstn]
+type=identify
+endpoint=pstn
+match=sip.avanzafibra.net
+
+
+
+