1.1.3 • Published 4 years ago

homebridge-phone v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Homebridge-phone

Use a Raspberry Pi as IP Phone to call internal numbers

Installation

(Requires node >=6.0.0)

  1. Install homebridge using: npm install -g homebridge
  2. Install homebridge-phone using: npm install -g homebridge-phone
  3. Install twinkle using: sudo apt-get install twinkle
  4. Configure your twinkle.cfg in the folder /home/yourusername/.twinkle/
  5. Update your configuration file with code like the sample below

Homebridge-phone configuration parameters

NameValueRequiredNotes
accessory"phone"yesMust be set to "phone" and is required
name(custom)yesName 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“yesMust 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
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago