35 lines
960 B
Plaintext
35 lines
960 B
Plaintext
;
|
|
; /etc/asterisk/pjsip_wizard_trunk_two.conf
|
|
;
|
|
; Modifed and "borrowed" (read: stolen) https://www.sacredheartsc.com/blog/building-a-personal-voip-system/
|
|
;
|
|
[trunk-two](trunk-defaults)
|
|
; Require SIP authentication.
|
|
sends_auth = yes
|
|
|
|
; Require SIP registration.
|
|
sends_registrations = yes
|
|
|
|
; If registration fails, keep trying until x tries.
|
|
registration/max_retries = 1000
|
|
|
|
; Don't assume an authentication failure is permanent.
|
|
registration/auth_rejection_permanent = no
|
|
|
|
; Perform a connectivity check every 30 seconds.
|
|
aor/qualify_frequency = 30
|
|
|
|
; UDP transport please.
|
|
transport = transport-udp
|
|
|
|
; Hostname and port for your SIP provider.
|
|
remote_hosts = voiceless.aa.net.uk:5060
|
|
|
|
; Choose a context name for incoming calls from this account. You'll use this
|
|
; name in your dialplan.
|
|
endpoint/context = from-trunk-two
|
|
|
|
; Your SIP provider will give you these credentials.
|
|
outbound_auth/username = +442012345678
|
|
outbound_auth/password = NoIDontHaveAnyMONEY
|