Hello and thank you so much for this great addon
I am having trouble making the audio work, the calls are however working without issues.
I am using the fritbox 7590 VOIP, and followed your instruction as per the doc.
The only part I could not do was to add the base_url option in the config file is deprecated and it gaves me error adding this option.
tts:
- platform: google_translate
# This option is not longer availabl
# base_url: Please provide a valid base url for Google TTS
Here my config of the addon:
sip_parameters:
caller_id_uri: sip:[email protected]:5060
realm: "*"
username: user
password: pass
pjsua_custom_options: "--ip-addr=192.168.1.20"
My Fritzbox setting are the same as yours:
The script:
data_template:
addon: 89275b70_dss_voip
input:
call_sip_uri: sip:[email protected]:5060
message_tts: i love ha
action: hassio.addon_stdin
And the complete log
-----------------------------------------------------------
Add-on: DSS VoIP Notifier
VoIP Notifier for Home Assistant
-----------------------------------------------------------
Add-on version: 4.0.0
You are running the latest version of this add-on.
System: Home Assistant OS 14.0 (amd64 / generic-x86-64)
Home Assistant Core: 2024.12.4
Home Assistant Supervisor: 2024.12.0
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[Info] Starting addon...
PJSUA_CUSTOM_OPTIONS = '--ip-addr=192.168.1.20'
[Info] Listening for messages via stdin service call...
[Info] Received messages {"call_sip_uri":"sip:[email protected]:5060","message_tts":"i love ha"}
Converting audio file 'http://192.168.1.20:8123/api/tts_proxy/M7EA158VoGA3rAVP4PDtsg.mp3'...
Audio succesfully converted...
Starting SIP Client and calling 'sip:[email protected]:5060'...
This call will be terminated after '50' seconds.
01:12:05.183 os_core_unix.c !pjlib 2.11.1 for POSIX initialized
01:12:05.183 sip_endpoint.c .Creating endpoint instance...
01:12:05.183 pjlib .select() I/O Queue created (0x7f7af0ff2100)
01:12:05.183 sip_endpoint.c .Module "mod-msg-print" registered
01:12:05.183 sip_transport.c .Transport manager created.
01:12:05.183 pjsua_core.c .PJSUA state changed: NULL --> CREATED
01:12:05.197 pjsua_core.c .pjsua version 2.11.1 for Linux-6.6.63/x86_64 initialized
01:12:05.203 pjsua_app.c .Turning sound device -99 -99 ON
01:12:05.203 main.c Ready: Success
01:12:05.208 pjsua_app.c .......Call 0 state changed to CALLING
>>>>
Account list:
[ 0] <sip:192.168.1.20:5060>: does not register
Online status: Online
[ 1] <sip:192.168.1.20:5060;transport=TCP>: does not register
Online status: Online
*[ 2] sip:[email protected]:5060: does not register
Online status: Online
Buddy list:
[ 1] <?> sip:[email protected]:5060
+=============================================================================+
| Call Commands: | Buddy, IM & Presence: | Account: |
| | | |
| m Make new call | +b Add new buddy .| +a Add new accnt |
| M Make multiple calls | -b Delete buddy | -a Delete accnt. |
| a Answer call | i Send IM | !a Modify accnt. |
| h Hangup call (ha=all) | s Subscribe presence | rr (Re-)register |
| H Hold call | u Unsubscribe presence | ru Unregister |
| v re-inVite (release hold) | t ToGgle Online status | > Cycle next ac.|
| U send UPDATE | T Set online status | < Cycle prev ac.|
| ],[ Select next/prev call +--------------------------+-------------------+
| x Xfer call | Media Commands: | Status & Config: |
| X Xfer with Replaces | | |
| # Send RFC 2833 DTMF | cl List ports | d Dump status |
| * Send DTMF with INFO | cc Connect port | dd Dump detailed |
| dq Dump curr. call quality | cd Disconnect port | dc Dump config |
| | V Adjust audio Volume | f Save config |
| S Send arbitrary REQUEST | Cp Codec priorities | |
+-----------------------------------------------------------------------------+
| q QUIT L ReLoad sleep MS echo [0|1|txt] n: detect NAT type |
+=============================================================================+
You have 1 active call
Current call id=0 to sip:[email protected]:5060 [CALLING]
>>> 01:12:05.227 pjsua_app.c SIP TCP transport is connected to 192.168.178.1:5060
01:12:05.329 pjsua_app.c .....Call 0 state changed to EARLY (183 Session Progress)
01:12:12.798 pjsua_app.c .....Call 0 state changed to CONNECTING
01:12:12.798 pjsua_app_common.c .......
[CONNECTING] To: sip:[email protected];tag=699E36C278F86B33
Call time: 00h:00m:00s, 1st res in 126 ms, conn in 0ms
#0 audio G722 @16kHz, sendrecv, peer=-
SRTP status: Not active Crypto-suite:
RX pt=9, last update:00h:00m:00.000s ago
total 0pkt 0B (0B +IP hdr) @avg=0bps/0bps
pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
TX pt=9, ptime=20, last update:never
total 216pkt 34.5KB (43.2KB +IP hdr) @avg=37.0Kbps/46.2Kbps
pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
RTT msec : 0.000 0.000 0.000 0.000 0.000
01:12:12.802 pjsua_app.c .....Call 0 state changed to CONFIRMED
01:12:12.813 pjsua_app_common.c .......
[CONFIRMED] To: sip:[email protected];tag=699E36C278F86B33
Call time: 00h:00m:00s, 1st res in 126 ms, conn in 7599ms
#0 audio iLBC @8kHz, sendrecv, peer=-
SRTP status: Not active Crypto-suite:
RX pt=99, last update:00h:00m:00.000s ago
total 0pkt 0B (0B +IP hdr) @avg=0bps/0bps
pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
TX pt=99, ptime=30, last update:never
total 0pkt 0B (0B +IP hdr) @avg=0bps/0bps
pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
RTT msec : 0.000 0.000 0.000 0.000 0.000
01:12:37.283 pjsua_app.c SIP TCP transport is disconnected from 192.168.178.1:5060: End of file (PJ_EEOF) [status=70016]
01:12:55.174 pjsua_app_common.c ...
[CONFIRMED] To: sip:[email protected];tag=699E36C278F86B33
Call time: 00h:00m:42s, 1st res in 126 ms, conn in 7599ms
#0 audio iLBC @8kHz, sendrecv, peer=-
SRTP status: Not active Crypto-suite:
RX pt=99, last update:00h:00m:00.000s ago
total 0pkt 0B (0B +IP hdr) @avg=0bps/0bps
pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
TX pt=99, ptime=30, last update:never
total 745pkt 37.2KB (67.0KB +IP hdr) @avg=7.0Kbps/12.6Kbps
pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
RTT msec : 0.000 0.000 0.000 0.000 0.000
01:12:55.175 pjsua_app.c .Call 0 is DISCONNECTED [reason=200 (OK)]
>>> 01:12:56.174 pjsua_app.c ..Turning sound device -99 -99 OFF
01:12:56.752 timer.c .Dumping timer heap:
01:12:56.752 timer.c . Cur size: 0 entries, max: 3070
[Info] Call ended...
[Info] Listening for messages via stdin service call...
Thanks