ast: inbound and outbound must be separate - some trunks get confused seeing more than one contact & fail to register
This commit is contained in:
parent
72f5bcca59
commit
38a38391ec
|
@ -19,3 +19,8 @@ local_net = 172.16.0.0/12
|
||||||
local_net = 192.168.0.0/16
|
local_net = 192.168.0.0/16
|
||||||
local_net = 127.0.0.0/8
|
local_net = 127.0.0.0/8
|
||||||
local_net = 10.0.0.0/8
|
local_net = 10.0.0.0/8
|
||||||
|
|
||||||
|
;
|
||||||
|
; Load trunk identify block
|
||||||
|
#tryinclude pjsip_identify_trunk_one.conf
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
;
|
||||||
|
; /etc/asterisk/pjsip_identify_trunk_one.conf
|
||||||
|
;
|
||||||
|
; This is needed for inbound calls from local trunk.
|
||||||
|
[trunk-one]
|
||||||
|
type = identify
|
||||||
|
match = 192.168.255.2
|
||||||
|
endpoint = trunk-one
|
|
@ -4,6 +4,7 @@
|
||||||
; For a local system to register as a trunk.
|
; For a local system to register as a trunk.
|
||||||
;
|
;
|
||||||
[trunk-one](trunk-defaults)
|
[trunk-one](trunk-defaults)
|
||||||
|
|
||||||
; Accept inbound auth for this trunk.
|
; Accept inbound auth for this trunk.
|
||||||
accepts_auth = yes
|
accepts_auth = yes
|
||||||
|
|
||||||
|
@ -20,15 +21,9 @@ inbound_auth/password = BedknobsArentSupposedToWorkThatWayUNLESSYOUREBRAVE
|
||||||
; name in your dialplan.
|
; name in your dialplan.
|
||||||
endpoint/context = from-trunk-one
|
endpoint/context = from-trunk-one
|
||||||
|
|
||||||
; Only one registration please.
|
; Max contacts should be one.
|
||||||
aor/max_contacts = 1
|
aor/max_contacts = 1
|
||||||
|
|
||||||
[trunk-one]
|
; When simultaneous logins from the same account exceed max_contacts, disconnect
|
||||||
; An identify block is needed for this trunk to match for incoming calls.
|
; the oldest session.
|
||||||
type = identify
|
aor/remove_existing = yes
|
||||||
|
|
||||||
; IP / hostname.
|
|
||||||
match = 192.168.255.2
|
|
||||||
|
|
||||||
; What endpoint does this identify block belong to?
|
|
||||||
endpoint = trunk-one
|
|
||||||
|
|
Loading…
Reference in New Issue