1.1.3 • Published 4 years ago
homebridge-phone v1.1.3
Homebridge-phone
Use a Raspberry Pi as IP Phone to call internal numbers
- The plugin that this one is based on: homebridge-script2.
- Original plugin: homebridge-script.
Installation
(Requires node >=6.0.0)
- Install homebridge using:
npm install -g homebridge
- Install homebridge-phone using:
npm install -g homebridge-phone
- Install twinkle using:
sudo apt-get install twinkle
- Configure your twinkle.cfg in the folder /home/yourusername/.twinkle/
- Update your configuration file with code like the sample below
Homebridge-phone configuration parameters
Name | Value | Required | Notes |
---|---|---|---|
accessory | "phone" | yes | Must be set to "phone" and is required |
name | (custom) | yes | Name of accessory that will appear in homekit app and is required |
on_value | (custom) | no (see note) | Used for checking the state of the operator. |
number | „**620#621“ | yes | Must be set to the internal Fritz! number to call and is required |
Homebridge configuration
"accessories": [
{
"accessory": "phone",
"name": „Doorbell call",
"on_value" : "ON",
"number" : „**620#621“
}
]
##Twinkle configuration
# USER
user_name=**UiD**
user_domain=**sip.foo.bar**
user_display=**Your Name**
user_organization=
auth_realm=
auth_name=**UiD**
auth_pass=**Password**
# SIP SERVER
outbound_proxy=**sip.foo.bar**
all_requests_to_proxy=no
registrar=**sip.foo.bar**
register_at_startup=yes
registration_time=3600
# RTP AUDIO
codecs=g711a,g711u,gsm
ptime=20
dtmf_payload_type=101
dtmf_duration=100
dtmf_pause=40
dtmf_volume=10
# SIP PROTOCOL
hold_variant=rfc3264
check_max_forwards=no
allow_missing_contact_reg=yes
registration_time_in_contact=yes
compact_headers=no
use_domain_in_contact=yes
allow_redirection=no
ask_user_to_redirect=yes
max_redirections=5
ext_100rel=supported
referee_hold=no
referrer_hold=yes
allow_refer=yes
ask_user_to_refer=yes
auto_refresh_refer_sub=no
# NAT
nat_public_ip=
#stun_server=**sip.foo.bar**:10000
# TIMERS
timer_noanswer=30
timer_nat_keepalive=30
# ADDRESS FORMAT
display_useronly_phone=yes
numerical_user_is_phone=no
# RING TONES
ringtone_file=
ringback_file=
# SCRIPTS
script_incoming_call=
Notes
Using the above configuration as an example:
- The on_value is used to match against the state script output. If the value matches the output of the state script the accessory is determined to be on.
- The number has to be set to the internal number of the phones in your Fritz!Box