-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This provides a test script for outgoing calls based on the work originally started by Michael Hansen. Instructions for running the outgoing call test script can be found in the README.md file. I tried to make the acceptable coding for the OPUS codecs in the SIP messages more flexible, but the number may need to be changed back from 96 to 123 to work with Grandstream phones. I don't have a Grandstream yet to test with.
- Loading branch information
Showing
8 changed files
with
470 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ tmp/ | |
htmlcov | ||
|
||
.projectile | ||
.env | ||
.venv/ | ||
venv/ | ||
.mypy_cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# VoIP Utils | ||
|
||
Voice over IP utilities for the [voip integration](https://www.home-assistant.io/integrations/voip/). | ||
|
||
## Test outgoing call | ||
Install dependencies from requirements_dev.txt | ||
|
||
Set environment variables for source and destination endpoints in .env file | ||
CALL_SRC_USER = "homeassistant" | ||
CALL_SRC_IP = "192.168.1.1" | ||
CALL_SRC_PORT = 5060 | ||
CALL_VIA_IP = "192.168.1.1" | ||
CALL_DEST_IP = "192.168.1.2" | ||
CALL_DEST_PORT = 5060 | ||
CALL_DEST_USER = "phone" | ||
|
||
Run script | ||
python -m voip_utils.call_phone | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ isort==5.12.0 | |
mypy==1.1.1 | ||
pylint==3.2.5 | ||
pytest==7.2.2 | ||
python-dotenv==1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.