sdesalve / hassio-addons

MIT License
86 stars 21 forks source link

Call times out at 50 sec #31

Closed ibishop83 closed 3 years ago

ibishop83 commented 3 years ago

Hi Sdesalve,

Thanks for the great work, I'm using the add-on to send severe weather warning alerts, as I always receive them too late by email.

I have found an issue for my longer messages that the call times out after 50 sec.

I've set both max_call_time and call_duration to 120 but the issue seems to be with pjsua as log shows:

13:44:35.608    pjsua_app.c  Duration (50 seconds) has been exceeded for call 0, disconnecting the call
13:44:35.610    pjsua_app.c  .....Call 0 is DISCONNECTED [reason=200 (Normal call clearing)

I have tried adding:

pjsua_custom_options: '--duration=120'

to try and override the pjsua timeout but it doesn't appear to have worked.

Any advice you can offer would be much appreciated.

Thanks

ibishop83 commented 3 years ago

Sorry, just found my answer under issue #19.

I hadn't set the max_call_time as a child (ie. I had included leading spaces). After deleting the spaces, worked like a charm.

Thanks again for your great work.