sdesalve / hassio-addons

MIT License
85 stars 21 forks source link

408 Request Timeout even though --no-tcp is present #51

Closed drthanwho closed 1 year ago

drthanwho commented 2 years ago

Hey

I moved my HA from an RPI to a VM. Before we had worked out that the other addon (32 now called ARM) was needed for some reasons when HA was in a Pi. Now that I moved to the VM that addon obviously isn't available. So I tried the normal addon but I get the exact same problem. 408 timeout error, even though I have added --no-tcp. The addon configuration is exactly the same taken from the working addon from the Rpi.

Any clues as to why?


You have 1 active call
Current call id=0 to sip:+xxxxxxx@sip.freevoipdeal.com [CALLING]
>>> 22:28:05.143      tsx0x7f45d2b206d8  .......Temporary failure in sending Request msg INVITE/cseq=4073 (tdta0x7f45d2b19aa8), will try next server: Unsupported transport (PJSIP_EUNSUPTRANSPORT)
22:28:06.078            pjsua_app.c  .Turning sound device -99 -99 OFF
22:28:37.144            pjsua_app.c  ....Call 0 is DISCONNECTED [reason=408 (Request Timeout)]
No current call
>>> 22:28:56.590                timer.c  .Dumping timer heap:
22:28:56.590                timer.c  .  Cur size: 0 entries, max: 3070
sdesalve commented 2 years ago

Please add full add-on log and screenshot of configuration

drthanwho commented 1 year ago

Add-on configuration

sip_parameters:
  caller_id_uri: sip:xxxxxxx@sip.freevoipdeal.com
  realm: '*'
  username: xxxx
  password: xxxx
platform_tts: microsoft
pjsua_custom_options: '--no-tcp'

Add-on logs

[Info] Listening for messages via stdin service call...
[Info] Received messages {"call_sip_uri":"sip:+xxxxxxxx@sip.freevoipdeal.com","message_tts":"Έχει ενεργοποιηθεί ο συναγερμός!"}
Converting audio file 'https://xxxxxxxxx.ddns.net/api/tts_proxy/7a0b4c7523078d07f9246087aadc73e3dc174bb1_el-gr_-_microsoft.mp3'...
Audio succesfully converted...
Starting SIP Client and calling 'sip:+xxxxxx@sip.freevoipdeal.com'...
This call will be terminated after '50' seconds.
13:35:21.514         os_core_unix.c !pjlib 2.11.1 for POSIX initialized
13:35:21.514         sip_endpoint.c  .Creating endpoint instance...
13:35:21.515                  pjlib  .select() I/O Queue created (0x7fe902070100)
13:35:21.515         sip_endpoint.c  .Module "mod-msg-print" registered
13:35:21.515        sip_transport.c  .Transport manager created.
13:35:21.515           pjsua_core.c  .PJSUA state changed: NULL --> CREATED
13:35:21.524           pjsua_core.c  .pjsua version 2.11.1 for Linux-5.15.38/x86_64 initialized
13:35:21.526            pjsua_app.c  .Turning sound device -99 -99 ON
13:35:21.526                 main.c  Ready: Success
13:35:21.609            pjsua_app.c  .......Call 0 state changed to CALLING
>>>>
Account list:
  [ 0] <sip:172.30.33.11:5060>: does not register
       Online status: Online
 *[ 1] sip:xxxxxxxxxxxx@sip.freevoipdeal.com: does not register
       Online status: Online
Buddy list:
 [ 1] <?>  sip:+xxxxxxx@sip.freevoipdeal.com
+=============================================================================+
|       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:+xxxxxxxx@sip.freevoipdeal.com [CALLING]
>>> 13:35:21.676      tsx0x7fe901edf6d8  .......Temporary failure in sending Request msg INVITE/cseq=20247 (tdta0x7fe901ed8aa8), will try next server: Unsupported transport (PJSIP_EUNSUPTRANSPORT)
13:35:22.526            pjsua_app.c  .Turning sound device -99 -99 OFF
13:35:53.677            pjsua_app.c  ....Call 0 is DISCONNECTED [reason=408 (Request Timeout)]
No current call
>>> 13:36:13.039                timer.c  .Dumping timer heap:
13:36:13.039                timer.c  .  Cur size: 0 entries, max: 3070
[Info] Call ended...
sdesalve commented 1 year ago

Full add-on logs will include recognized options... Is there on logs?

Have you tried without --no-tcp?

drthanwho commented 1 year ago

Ah yeah that shows only on restart of the addon. Yeah also tried without it (although your README says it's mandatory). Same output with our without --no-tcp

Here you are

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 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 8.0  (amd64 / qemux86-64)
 Home Assistant Core: 2022.7.0b5
 Home Assistant Supervisor: 2022.06.dev3004
-----------------------------------------------------------
 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 = '--no-tcp'
PLATFORM_TTS = 'microsoft'
[Info] Listening for messages via stdin service call...
sdesalve commented 1 year ago

It's strange. Same configuration on an Intel nuc with proxmox is working for me.

Have you tried to reboot your VM/host machine? Please try to add also --ip-addr=IP of hassio

drthanwho commented 1 year ago

Interesting this is also on Proxmox as well. I will try rebooting the VM and the IP option and get back to you