mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
* Allow specifying SIP username for outgoing calls Allow configuring a SIP username to be sent in outgoing call requests to identify the home assistant source endpoint. * Remove advanced options section * Add test for removing user * Allow unsetting SIP user Make previous SIP user value a suggested value rather than default to allow unsetting by submitting an empty value in the form. * Remove unnecessary checks Remove user check from main flow and remove none or empty check.
17 lines
274 B
Python
17 lines
274 B
Python
"""Constants for the Voice over IP integration."""
|
|
|
|
DOMAIN = "voip"
|
|
|
|
RATE = 16000
|
|
WIDTH = 2
|
|
CHANNELS = 1
|
|
RTP_AUDIO_SETTINGS = {
|
|
"rate": RATE,
|
|
"width": WIDTH,
|
|
"channels": CHANNELS,
|
|
"sleep_ratio": 0.99,
|
|
}
|
|
|
|
CONF_SIP_PORT = "sip_port"
|
|
CONF_SIP_USER = "sip_user"
|