[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5065
local_net=192.168.0.0/8
external_media_address=
198.51
.
100.5
external_signaling_address=
198.51
.
100.5
[6001]
type=endpoint
context=internal
disallow=all
allow=ulaw
auth=6001
aors=6001
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes ; necessary if endpoint does not know/register public ip:port
ice_support=yes ;This is specific to clients that support NAT traversal
send_pai=yes
transport=transport-udp
[6001]
type=auth
auth_type=userpass
password=19111@@!
username=6001
[6001]
type=aor
max_contacts= 2
qualify_frequency=1 ; Interval at which to qualify an AoR (default: "0")
authenticate_qualify=no
remove_existing=yes
maximum_expiration=7200 ; Maximum time to keep an AoR (default: "7200")
minimum_expiration=6000 ; Minimum keep alive time for an AoR (default: "60")
trunk
[400]
type=endpoint
context=from-external
disallow=all
allow=ulaw
auth=400
aors=400
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes ; necessary if endpoint does not know/register public ip:port
ice_support=yes ;This is specific to clients that support NAT traversal
rewrite_contact=yes
send_pai=yes
transport=transport-udp
;for a deeper explanation of this topic.
[400]
type=auth
auth_type=userpass
password=193011
username=400
[400]
type=aor
max_contacts= 1
qualify_frequency=10 ; Interval at which to qualify an AoR (default: "0")
authenticate_qualify=no
remove_existing=yes
maximum_expiration=7200 ; Maximum time to keep an AoR (default: "7200")
minimum_expiration=6000 ; Minimum keep alive time for an AoR (default: "60")
[twilio]
type=aor
contact=sip:asteriskpjsip.pstn.us1.twilio.com:5060
qualify_frequency=100
[twilio]
type=endpoint
context=from-external
disallow=all
allow=ulaw
aors=twilio
transport=transport-udp-trunk
send_diversion=yes ; Send the Diversion header conveying the diversion
; information to the called user agent (default: "yes")
send_pai=yes ; Send the P Asserted Identity header (default: "no")
send_rpid=yes
trust_id_inbound=yes ; Accept identification information received from this
; endpoint (default: "no")
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes ; necessary if endpoint does not know/register public ip:port
[twilio]
type=identify
endpoint=twilio
match=54.172.60.0/8
match=68.183.142.204
[rapidvox]
type=endpoint
context=from-external
disallow=all
allow=ulaw
outbound_auth=rapidvox
aors=rapidvox
transport=transport-udp-trunk
from_user=ambiorixg12
send_diversion=yes ; Send the Diversion header conveying the diversion
; information to the called user agent (default: "yes")
send_pai=yes ; Send the P Asserted Identity header (default: "no")
send_rpid=yes
trust_id_inbound=yes ; Accept identification information received from this
; endpoint (default: "no")
trust_id_outbound=yes
[rapidvox]
type=aor
contact=sip:sip.rapidvox.com:5060
qualify_frequency=200
[rapidvox]
type=auth
auth_type=userpass
username=ambiorixg12
password=terezx
[rapidvox]
type=identify
endpoint=rapidvox
match=sip.rapidvox.com
---
[telnyx]
type=aor
contact=sip:sip.telnyx.com:5060
qualify_frequency=100
[telnyx]
type=endpoint
context=ctx-app-incoming
disallow=all
allow=ulaw
aors=telnyx
transport=transport-udp
send_diversion=yes ; Send the Diversion header conveying the diversion
; information to the called user agent (default: "yes")
send_pai=yes ; Send the P Asserted Identity header (default: "no")
send_rpid=yes
trust_id_inbound=yes ; Accept identification information received from this
; endpoint (default: "no")
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes ; necessary if endpoint does not know/register public ip:port
[telnyx]
type=identify
endpoint=telnyx
match=192.76.120.10
match=64.16.250.10
----
;;anoymous calls
;;anonymous
[transport-udp-anonymous]
type=transport
protocol=udp
bind=0.0.0.0:5067
[anonymous]
type=endpoint
context=from-anonymous
disallow=all
allow=ulaw
transport=transport-udp-anonymous
https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip
https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Sections+and+Relationships
https://wiki.asterisk.org/wiki/display/AST/Endpoints+and+Location%2C+A+Match+Made+in+Heaven
https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip
https://wiki.asterisk.org/wiki/display/AST/res_pjsip+Configuration+Examples
https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip#Asterisk16Configuration_res_pjsip-contact_qualify_frequency
https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Sections+and+Relationships
https://wiki.asterisk.org/wiki/display/AST/Endpoints+and+Location%2C+A+Match+Made+in+Heaven
https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip
https://wiki.asterisk.org/wiki/display/AST/res_pjsip+Configuration+Examples
https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip#Asterisk16Configuration_res_pjsip-contact_qualify_frequency
No hay comentarios:
Publicar un comentario