[asterisk] Add a homeassistant extension
This commit is contained in:
parent
f17f9aa0eb
commit
b94a2baa2f
4 changed files with 34 additions and 0 deletions
|
@ -49,6 +49,16 @@ exten => 700,1,Answer()
|
|||
|
||||
; Other extensions
|
||||
; 3-digit extensions dial their associated devices
|
||||
|
||||
exten => 100,hint,PJSIP/100
|
||||
exten => 101,hint,PJSIP/101
|
||||
exten => 102,hint,PJSIP/102
|
||||
exten => 500,hint,PJSIP/homeassistant
|
||||
|
||||
exten => 500,1,NoOp()
|
||||
same => n,Dial(PJSIP/homeassistant)
|
||||
same => n,Hangup()
|
||||
|
||||
exten => _XXX,1,NoOp()
|
||||
same = n,Dial(PJSIP/${EXTEN}, 15)
|
||||
same = n,Set(MAILBOXES=${PJSIP_ENDPOINT(${EXTEN},mailboxes)})
|
||||
|
|
|
@ -80,6 +80,16 @@ type=aor
|
|||
max_contacts=1
|
||||
remove_existing=yes
|
||||
|
||||
[homeassistant]
|
||||
type=endpoint
|
||||
context=from-internal
|
||||
allow=opus
|
||||
aors=homeassistant
|
||||
|
||||
[homeassistant]
|
||||
type=aor
|
||||
contact=sip:homeassistant@192.168.1.13:5060
|
||||
|
||||
[pstn]
|
||||
type=endpoint
|
||||
context=incoming
|
||||
|
|
|
@ -161,6 +161,12 @@
|
|||
<featureOptionMask>1</featureOptionMask>
|
||||
<speedDialNumber>102</speedDialNumber>
|
||||
</line>
|
||||
<line button="3" lineIndex="3">
|
||||
<featureID>21</featureID>
|
||||
<featureLabel>Home Assistant</featureLabel>
|
||||
<featureOptionMask>1</featureOptionMask>
|
||||
<speedDialNumber>500</speedDialNumber>
|
||||
</line>
|
||||
</sipLines>
|
||||
<externalNumberMask></externalNumberMask>
|
||||
<voipControlPort>5060</voipControlPort>
|
||||
|
|
|
@ -61,6 +61,10 @@ http:
|
|||
rule: "Host(`hugo.sailmaker.fenix.lgbt`)"
|
||||
service: hugo
|
||||
<<: *sailmaker-tls
|
||||
minecraft-public:
|
||||
rule: "Host(`minecraft.fenix.lgbt`)"
|
||||
service: minecraft-dynmap
|
||||
<<: *public-tls
|
||||
omada-internal:
|
||||
rule: "Host(`omada.sailmaker.fenix.lgbt`)"
|
||||
service: omada
|
||||
|
@ -142,6 +146,10 @@ http:
|
|||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://reason.sailmaker.fenix.lgbt:3100"
|
||||
minecraft-dynmap:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://reason.sailmaker.fenix.lgbt:8123"
|
||||
omada:
|
||||
loadBalancer:
|
||||
servers:
|
||||
|
|
Loading…
Reference in a new issue