ast: mobile add stun, pjsip defaults & test user
This commit is contained in:
parent
5431f527b4
commit
79a379198d
|
@ -11,9 +11,9 @@ type = global
|
|||
endpoint_identifier_order = ip,username,anonymous
|
||||
|
||||
; Basic UDP Transport.
|
||||
[ipv4-udp]
|
||||
[ipv4-udp-nat]
|
||||
type = transport
|
||||
bind = 0.0.0.0:65535
|
||||
bind = 0.0.0.0:65534
|
||||
protocol = udp
|
||||
local_net = 172.16.0.0/12
|
||||
local_net = 192.168.0.0/16
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
;
|
||||
; /etc/asterisk/pjsip_users.conf
|
||||
;
|
||||
[1000](ext-defaults)
|
||||
|
||||
; Yay templates; we generally only need to provide an inbound user/pass
|
||||
; and a caller id.
|
||||
inbound_auth/username=1000
|
||||
|
||||
inbound_auth/password=MapleCarrotBlueGrainFishSoapSoup
|
||||
|
||||
endpoint/callerid=1000 <Ext 1000>
|
|
@ -0,0 +1,39 @@
|
|||
;
|
||||
; /etc/asterisk/pjsip_wizard.conf
|
||||
;
|
||||
[ext-defaults](!)
|
||||
type=wizard
|
||||
|
||||
; Users must register and auth!
|
||||
accepts_registrations=yes
|
||||
accepts_auth=yes
|
||||
|
||||
; Check ext connectivity every x seconds.
|
||||
aor/qualify_frequency=30
|
||||
|
||||
; How long do we wait for a response to our connection check?
|
||||
aor/qualify_timeout=3.0
|
||||
|
||||
; Remove older sessions when logins exceed max_contacts.
|
||||
aor/remove_existing=yes
|
||||
|
||||
; Max simultaneous account logins.
|
||||
endpoint/max_contacts=1
|
||||
|
||||
; Default context.
|
||||
endpoint/context=from-ext
|
||||
|
||||
; Audio codecs: alaw only please.
|
||||
endpoint/allow=!all,alaw
|
||||
|
||||
; Default language.
|
||||
endpoint/language=en_GB
|
||||
|
||||
; By default don't allow direct media connections.
|
||||
endpoint/direct_media=no
|
||||
|
||||
; Busy Lamp field / Presence context.
|
||||
endpoint/subscribe_context=presence
|
||||
|
||||
; Load users.
|
||||
#tryinclude pjsip_users.conf
|
|
@ -0,0 +1,9 @@
|
|||
;
|
||||
; /etc/asterisk/rtp.conf
|
||||
;
|
||||
; This really isn't needed unless you're behind NAT.
|
||||
;
|
||||
[general]
|
||||
|
||||
stunaddr=stun.aa.net.uk:3478
|
||||
stunrefresh=30
|
|
@ -5,4 +5,4 @@
|
|||
;
|
||||
[general]
|
||||
rtpstart=62535
|
||||
rtpend=65534
|
||||
rtpend=65533
|
||||
|
|
Loading…
Reference in New Issue