Open Pytonballoon810 opened 10 months ago
Hi @Pytonballoon810,
did I understand correctly, that the Intercom does not react to the dialtones? Did you try the other methods of sending DTMF via SIP, namely "in_band" and "rfc2833"?
The intercom is supposed to activate the door opener upon typing #1
. It works when typing manually but not with the SIP client. I already tried all three methods. I also think it worked about 6-10 months ago. Then it stopped working without making any changes... No idea why.
Did you try with a longer delay?
Did you try with a longer delay?
I originally had a 3 sec delay between both typing the digits and ending the call. Still didnt work
Ok so I fixed it now. I put each character in one by one in two seperate stdin calls with a 500ms delay between each digit. Maybe you wanna fix that in your code (or I find the time to fix it myself.) Thanks for the help anyways :)
Nice you figured that out! ha-sip is only calling the send DTMF function of pjsip, and for rfc2833 and sip_info methods it's not possible to set a delay between tones. You can only set the duration of each tone. For in_band you can control both. It would be interesting if increasing the tone length would also work with your intercom. In the code you would just need to increase the value of DEFAULT_DTMF_ON
, if you're able to test that yourself.
Using FritzBox 7590 on OS version 7.57, Addon on Version 3.2, HA Core 2023.11.3, Supervisor 2023.11.6, OS 11.2
I have an automation (and script) set up to first, dial a number (script) then wait until a webhook is called, then sending a DTMF job to press
#1
. Lastly the automation ends the call.Now the problem is that if I am using the addon to call my mobile phone internally (via the 620) it just works. You may recognize that that is indeed not a problem. And you would be correct. My phone rings, the timeout is set to 15s, if I answer in those 15s I can hear how the caller (homeassistant) is pressing both buttons and then ending the call. The Problem arrises however when I change the internal call number to the 2 (my intercom). The logs don't show any errors (at least I think) but the intercom station is still not able to open the door. (I tested and the exact same prosedure is working when calling internally from my mobile phone via the Fritz!FON app or using a telephone.)
Here is my HA-SIP config:
My script for dialing the call:
My automation for reacting to the sent webhook, pressing the buttons and ending the call:
Here are the logs after running the first script (all that I could export at least since HA doesnt keep them for long):