User Tools

Site Tools


Sidebar

Asterisk 11

Asterisk 13

ast11:configure
asterisk.conf
[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdbdir => /var/lib/asterisk
astkeydir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk
astsbindir => /usr/sbin
 
[options]
defaultlanguage = en
documentation_language = en_US
extensions.conf
[from-telecube]
exten => 1017952,1,Dial(SIP/3000,60)
exten => 1017952,n,Hangup()
 
[from-phones]
exten => _X.,1,Dial(SIP/${EXTEN}@telecube00)
exten => _X.,n,Hangup()
indications.conf
[general]
country = au
 
[au]
description = Australia
; Reference http://www.acif.org.au/__data/page/3303/S002_2001.pdf
; Normal Ring
ringcadence = 400,200,400,2000
; Distinctive Ring 1 – Forwarded Calls
; 400,400,200,200,400,1400
; Distinctive Ring 2 – Selective Ring 2 + Operator + Recall
; 400,400,200,2000
; Distinctive Ring 3 – Multiple Subscriber Number 1
; 200,200,400,2200
; Distinctive Ring 4 – Selective Ring 1 + Centrex
; 400,2600
; Distinctive Ring 5 – Selective Ring 3
; 400,400,200,400,200,1400
; Distinctive Ring 6 – Multiple Subscriber Number 2
; 200,400,200,200,400,1600
; Distinctive Ring 7 – Multiple Subscriber Number 3 + Data Privacy
; 200,400,200,400,200,1600
; Tones
dial = 413+438
busy = 425/375,0/375
ring = 413+438/400,0/200,413+438/400,0/2000
; XXX Congestion: Should reduce by 10 db every other cadence XXX
congestion = 425/375,0/375,420/375,0/375
callwaiting = 425/200,0/200,425/200,0/4400
dialrecall = 413+438
; Record tone used for Call Intrusion/Recording or Conference
record = !425/1000,!0/15000,425/360,0/15000
info = 425/2500,0/500
; Other Australian Tones
; The STD "pips" indicate the call is not an untimed local call
std = !525/100,!0/100,!525/100,!0/100,!525/100,!0/100,!525/100,!0/100,!525/100
; Facility confirmation tone (eg. Call Forward Activated)
facility = 425
; Message Waiting "stutter" dialtone
stutter = 413+438/100,0/40
; Ringtone for calls to Telstra mobiles
ringmobile = 400+450/400,0/200,400+450/400,0/2000
logger.conf
[general]
 
[logfiles]
 
console = verbose,notice,warning,error
 
messages = notice,warning,error
full = verbose,notice,warning,error,debug
security = security
modules.conf
[modules]
autoload = no
 
; Applications
 
load = app_dial.so
 
; Bridging
 
load = bridge_native_rtp.so
load = bridge_simple.so
 
; Call Detail Records
 
 
; Channel Drivers
 
load = chan_bridge_media.so
load = chan_sip.so
 
; Codecs
 
load = codec_gsm.so
load = codec_resample.so
load = codec_ulaw.so
load = codec_g722.so
 
; Formats
 
load = format_gsm.so
load = format_pcm.so
load = format_wav_gsm.so
load = format_wav.so
 
; Functions
 
 
; Core/PBX
 
load = pbx_config.so
load = pbx_functions.so
 
; Resources
 
load = res_rtp_asterisk.so
load = res_timing_timerfd.so
sip.conf
[general]
udpenable=yes
tcpenable=no
sipdebug=no
progressinband=yes
internal_timing=yes
silencesuppression=no
localnet=<Internal Private IP Network>
externaddr=<External Public IP Address>
 
register => <extension ID>:<password>@sip.telecube.com.au/<extension ID>~180
 
[telecube­trunk](!)
type=peer
context=from­-telecube     ;Which dialplan to use for incoming calls
dtmfmode=rfc4733
canreinivite=no
insecure=port,invite
 
[telecube00](telecube­trunk)
host=sip.telecube.com.au
remotesecret=<password>
defaultuser=<extension ID>
fromuser=<extension ID>
 
[telecube01](telecube­trunk)
host=103.193.166.161
 
[telecube02](telecube­trunk)
host=103.193.166.162
 
[telecube03](telecube­trunk)
host=103.193.166.163
 
[telecube04](telecube­trunk)
host=103.193.167.161
 
[telecube05](telecube­trunk)
host=103.193.167.162
 
[telecube06](telecube­trunk)
host=103.193.167.163
 
[telecube07](telecube­trunk)
host=103.193.166.11
 
[telecube08](telecube­trunk)
host=103.193.166.12
 
[telecube09](telecube­trunk)
host=103.193.167.11
 
[telecube10](telecube­trunk)
host=103.193.167.12
 
[3000]
type=friend
directmedia=no
context=from-phones
host=dynamic
nat=force_rport,comedia
secret=3000
disallow=all
allow=G722
pjsip.conf
[global]
type=global
user_agent=Whirlpool
max_forwards=70
keep_alive_interval=30
 
[0.0.0.0-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
external_media_address=<External Public IP Address>
external_signaling_address=<External Public IP Address>
local_net=<Internal Private IP Network>
 
[Telecube]
type=aor
qualify_frequency=60
contact=sip:<extension ID>@sip.telecube.com.au:5060
default_expiration=180
 
[Telecube]
type=auth
auth_type=userpass
password=<password>
username=<extension ID>
 
[Telecube]
type=endpoint
transport=0.0.0.0-udp
context=from-telecube
disallow=all
allow=g722
aors=Telecube
outbound_auth=Telecube
from_user=<extension ID>
t38_udptl=no
t38_udptl_ec=none
fax_detect=no
t38_udptl_nat=no
dtmf_mode=auto
inband_progress=yes
direct_media=no
 
[Telecube]
type=identify
endpoint=Telecube
match=sip.telecube.com.au,103.193.166.161,103.193.166.162,103.193.166.163,103.193.167.161,103.193.167.162,103.193.167.163,103.193.166.11,103.193.166.12,103.193.167.11,103.193.167.12
 
[Telecube]
type=registration
line=yes
endpoint=Telecube
transport=0.0.0.0-udp
outbound_auth=Telecube
retry_interval=60
max_retries=10
expiration=180
auth_rejection_permanent=no
contact_user=<extension ID>
server_uri=sip:sip.telecube.com.au:5060
client_uri=sip:<extension ID>@sip.telecube.com.au:5060
 
[3000]
type=aor
max_contacts=1
default_expiration=180
remove_existing=yes
maximum_expiration=7200
minimum_expiration=60
qualify_frequency=60
 
[3000-auth]
type=auth
auth_type=userpass
password=3000
username=3000
 
[3000]
type=endpoint
aors=3000
auth=3000-auth
allow=g722
context=from-phones
callerid=device <3000>
dtmf_mode=auto
aggregate_mwi=yes
use_avpf=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
media_encryption=no
timers=yes
media_encryption_optimistic=no
rtp_symmetric=yes
rewrite_contact=yes
force_rport=yes
language=en
inband_progress=yes
direct_media=no
 
[3000-identify]
type=identify
endpoint=3000
ast11/configure.txt · Last modified: 2016/06/23 12:49 by vk2xxy