ha-SIP Automation

Hallo liebe Community,

nach langem bin ich wieder am basteln und ich möchte gerne meine IP-Sprechstelle, welche auch als SIP Server dient in meinen HomeAssistant so integrieren, das wenn ein knopfgedrückt wird mein homeassitant angerufen wird.

ich habe so viel gelesen, aber schietere immer an der Automation.
HA_SIP ist erfolgreich auf dem SIP-Server registriert.

service: hassio.addon_stdin
data:
    addon: c7744bff_ha-sip
    input:
        command: dial
        number: sip:**620@fritz.box # number to call. Format depends on your SIP provider, 
                                    # but might look like 'sip:+49123456789@fritz.box' for external calls
        webhook_to_call: # web-hook IDs which you can listen on in your actions (additional to the global web-hook)
            ring_timeout: another_webhook_id # can be all the same, or different
            call_established: another_webhook_id
            entered_menu: another_webhook_id
            timeout: another_webhook_id  # is called after the given time-out on a menu is reached
            dtmf_digit: another_webhook_id # is called when the calling party sends a DTMF tone
            call_disconnected: another_webhook_id
            playback_done: another_webhook_id # is called after playback of message or audio file is done
        ring_timeout: 15 # time to ring in seconds (optional, defaults to 300)
        sip_account: 1 # number of configured sip account: 1, 2, or 3 
                       # (optional, defaults to first enabled sip account)
        menu:
            message: There's a burglar in da house.

dieses beispiel kommt vom Programmierer, aber es klappt nicht. Es kommt bei mir immer eine Fehlermeldung.

Message malformed: extra keys not allowed @ data[‚service‘]

Versuch mal:

alias: SIP Call Test
mode: single

trigger:
  - platform: time
    at: "12:00:00"

action:
  - service: hassio.addon_stdin
    data:
      addon: c7744bff_ha-sip
      input:
        command: dial
        number: "sip:**620@fritz.box"
        webhook_to_call:
          ring_timeout: another_webhook_id
          call_established: another_webhook_id
          entered_menu: another_webhook_id
          timeout: another_webhook_id
          dtmf_digit: another_webhook_id
          call_disconnected: another_webhook_id
          playback_done: another_webhook_id
        ring_timeout: 15
        sip_account: 1
        menu:
          message: "There's a burglar in da house."


Damit kommt erst mal kein Fehler! Ob es funktioniert ???

Danke, jetzt wird mir einoges klar :smiley:

Andere Sache,

Wie bekomme ich es hin, angerufen zu werden… ich hab schon sipcore probiert, aber da scheint momentan irgendwas nicht zu stimmen oder ich bekomme keine verbinung zu meinem eigene SiP Server hin

Danke