35 lines
778 B
Plaintext
35 lines
778 B
Plaintext
;
|
|
; /etc/asterisk/pjsip_trunk_one.conf
|
|
;
|
|
; For a local system to register as a trunk.
|
|
;
|
|
[trunk-one](trunk-defaults)
|
|
; Accept inbound auth for this trunk.
|
|
accepts_auth = yes
|
|
|
|
; UDP transport please.
|
|
transport = ipv4-udp
|
|
|
|
; What's the username?
|
|
inbound_auth/username = trunk-one
|
|
|
|
; The Password?
|
|
inbound_auth/password = BedknobsArentSupposedToWorkThatWayUNLESSYOUREBRAVE
|
|
|
|
; Choose a context name for incoming calls from this account. You'll use this
|
|
; name in your dialplan.
|
|
endpoint/context = from-trunk-one
|
|
|
|
; Only one registration please.
|
|
aor/max_contacts = 1
|
|
|
|
[trunk-one]
|
|
; An identify block is needed for this trunk to match for incoming calls.
|
|
type = identify
|
|
|
|
; IP / hostname.
|
|
match = 192.168.255.2
|
|
|
|
; What endpoint does this identify block belong to?
|
|
endpoint = trunk-one
|