[asterisk] Add a homeassistant extension

This commit is contained in:
Correl Roush 2024-12-10 15:47:42 -05:00
parent f17f9aa0eb
commit b94a2baa2f
4 changed files with 34 additions and 0 deletions

View file

@ -49,6 +49,16 @@ exten => 700,1,Answer()
; Other extensions ; Other extensions
; 3-digit extensions dial their associated devices ; 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() exten => _XXX,1,NoOp()
same = n,Dial(PJSIP/${EXTEN}, 15) same = n,Dial(PJSIP/${EXTEN}, 15)
same = n,Set(MAILBOXES=${PJSIP_ENDPOINT(${EXTEN},mailboxes)}) same = n,Set(MAILBOXES=${PJSIP_ENDPOINT(${EXTEN},mailboxes)})

View file

@ -80,6 +80,16 @@ type=aor
max_contacts=1 max_contacts=1
remove_existing=yes 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] [pstn]
type=endpoint type=endpoint
context=incoming context=incoming

View file

@ -161,6 +161,12 @@
<featureOptionMask>1</featureOptionMask> <featureOptionMask>1</featureOptionMask>
<speedDialNumber>102</speedDialNumber> <speedDialNumber>102</speedDialNumber>
</line> </line>
<line button="3" lineIndex="3">
<featureID>21</featureID>
<featureLabel>Home Assistant</featureLabel>
<featureOptionMask>1</featureOptionMask>
<speedDialNumber>500</speedDialNumber>
</line>
</sipLines> </sipLines>
<externalNumberMask></externalNumberMask> <externalNumberMask></externalNumberMask>
<voipControlPort>5060</voipControlPort> <voipControlPort>5060</voipControlPort>

View file

@ -61,6 +61,10 @@ http:
rule: "Host(`hugo.sailmaker.fenix.lgbt`)" rule: "Host(`hugo.sailmaker.fenix.lgbt`)"
service: hugo service: hugo
<<: *sailmaker-tls <<: *sailmaker-tls
minecraft-public:
rule: "Host(`minecraft.fenix.lgbt`)"
service: minecraft-dynmap
<<: *public-tls
omada-internal: omada-internal:
rule: "Host(`omada.sailmaker.fenix.lgbt`)" rule: "Host(`omada.sailmaker.fenix.lgbt`)"
service: omada service: omada
@ -142,6 +146,10 @@ http:
loadBalancer: loadBalancer:
servers: servers:
- url: "http://reason.sailmaker.fenix.lgbt:3100" - url: "http://reason.sailmaker.fenix.lgbt:3100"
minecraft-dynmap:
loadBalancer:
servers:
- url: "http://reason.sailmaker.fenix.lgbt:8123"
omada: omada:
loadBalancer: loadBalancer:
servers: servers: