Ha-Sip spielt keine Nachricht ab, nur manchmal fiesen Pfeifton…

ja Wahnsinn, du hast Recht. Ich habe die Version 3.0, da wurde es auf ha_sip geändert und ab Version 3.1 ist es wieder ha-sip. Welche Version hast du? 3.5.1?

Was mir an der Automation noch aufgefallen ist: lass mal den Port hinter der IP bei number: weg.
Also number: sip:**611@192.x.x.x
und füge noch sip_account: 1 hinzu.

service: hassio.addon_stdin
data_template:
  addon: c7744bff_ha-sip
  input:
    command: dial
    number: sip:**611@192.x.x.x
    ring_timeout: 15
    sip_account: 1
    menu:
      message: Dies ist ein Test

Ich hab in der configuration.yaml nur

tts:
  - platform: google_translate

stehen, und es funktioniert wunderbar. Probier das doch mal aus.

Gleiches Problem, nur “sound of silence”. Der Anruf kommt ja zustande, nur keine Nachricht…

Werde ich gleich versuchen und Rückmeldung geben. Danke!

Auch die Änderung in der configuration.yaml nur die Platform einzutragen hat nicht geholfen. Ich bekomme keine Fehlermeldung aber auch keine Nachricht. HA-Sip ist übrigens 3.5.1.

was sagt das Protokoll im AddOn?

Was Du auch mal probieren könntest, wäre, statt der internen Telefone mal Dein Handy anrufen zu lassen. Dazu musst Du nach sip: nur die Sternchen weglassen und statt der internen die Handynummer eintragen.

Content-Length:   217

v=0
o=user 12128796 12128797 IN IP4 192.x.x.x
s=pjmedia
c=IN IP4 192.x.x.x
t=0 0
m=audio 7080 RTP/AVP 9 121
a=rtpmap:9 G722/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-15
a=sendrecv
a=rtcp:7081

--end msg--
16:08:29.208      inv0x7f4a6bd341b8  ....SDP negotiation done: Success
16:08:29.208          pjsua_media.c  .....Call 0: updating media..
16:08:29.208          pjsua_media.c  ......Call 0: stream #0 (audio) unchanged.
16:08:29.208          pjsua_media.c  ......Audio updated, stream #0: G722 (sendrecv)
| 16:08:29.208602 [1] onCallMediaState call info state 5
| 16:08:29.208820 [1] Connected media 1
| 16:08:30.212235 [1] Call is established.
| 16:08:30.212540 [ ] Calling webhook sip_call_webhook_id with data {'event': 'call_established', 'caller': 'sip:**611@192.x.x.x', 'parsed_caller': '**611', 'sip_account': 1}
| 16:08:30.384615 [ ] Webhook response 200 b''
| 16:08:30.386468 [1] Playing message: Dies ist ein Test
| 16:08:30.413298 [ ] Getting audio from "http://192.x.x.x:8123/api/tts_proxy/46d35759feded708ecd4ac98368f9d4d0c2b61fd_de_-_google_translate.mp3"
16:08:34.262            pjsua_aud.c !Creating file player: /tmp/tmp_gep50rh.wav..
16:08:34.262           wav_player.c  .File player '/tmp/tmp_gep50rh.wav' created: samp.rate=24000, ch=1, bufsize=4KB, filesize=77KB
16:08:34.262            pjsua_aud.c  .Player created, id=0, slot=2
16:08:34.262            pjsua_aud.c  Conf connect: 2 --> 1
16:08:34.262           conference.c  .Port 2 (/tmp/tmp_gep50rh.wav) transmitting to port 1 (sip:**611@192.x.x.x)
| 16:08:34.262547 [1] No action supplied
| 16:08:35.896326 [1] Playback done.
| 16:08:35.896631 [ ] Calling webhook sip_call_webhook_id with data {'event': 'playback_done', 'sip_account': 1, 'caller': 'sip:**611@192.x.x.x', 'parsed_caller': '**611', 'type': 'message', 'message': 'Dies ist ein Test'}
| 16:08:35.930713 [ ] Webhook response 200 b''
| 16:08:35.935231 [1] Scheduled post action: noop
16:08:40.113           pjsua_core.c  .RX 796 bytes Request msg BYE/cseq=30691 (rdata0x7f4a6bd0d088) from UDP 192.x.x.x:5060:
BYE sip:home-assistant@192.x.x.x:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.x.x.x:5060;branch=z9hG4bKFD8E30A2F6C3A387
From: <sip:**611@192.x.x.x>;tag=6E0BA5CB893A7744
To: <sip:home-assistant@192.x.x.x>;tag=ykSRgG0Sl9P-DPNboJfEbl69kws7jFJk
Call-ID: swpg-xxx
CSeq: 30691 BYE
X-RTP-Stat: CS=0;PS=1553;ES=756;OS=114080;SP=0/0;SO=0;QS=-;PR=139;ER=756;OR=22240;CR=0;SR=0;QR=-;PL=0,35;BL=0;LS=0;RB=0/0;SB=-/-;EN=G722;DE=G722;JI=5,18;DL=1247,1247,1247;IP=192.x.x.x:7080,192.x.x.x:4033
X-RTP-Stat-Add: DQ=2;DSS=0;DS=0;PLCS=22656;JS=9
X-SIP-Stat: DRT=0;IR=0
Reason: Q.850; cause=16
Max-Forwards: 70
User-Agent: AVM FRITZ!Box (lgi) 161.07.57 TAL (Sep  2 2023)
Supported: 100rel,replaces,timer
Allow-Events: telephone-event,refer
Content-Length: 0


--end msg--
16:08:40.113           pjsua_core.c  .......TX 310 bytes Response msg 200/BYE/cseq=30691 (tdta0x7f4a6bceec88) to UDP 192.x.x.x:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.x.x.x:5060;received=192.x.x.x;branch=z9hG4bKFD8E30A2F6C3A387
Call-ID: swpg-xxx
From: <sip:**611@192.x.x.x>;tag=6E0BA5CB893A7744
To: <sip:home-assistant@192.x.x.x>;tag=ykSRgG0Sl9P-DPNboJfEbl69kws7jFJk
CSeq: 30691 BYE
Content-Length:  0


--end msg--
16:08:40.114          pjsua_media.c  ......Call 0: deinitializing media..
16:08:40.114          pjsua_media.c  .......
  [DISCONNECTED] To: sip:**611@192.x.x.x;tag=6E0BA5CB893A7744
    Call time: 00h:00m:10s, 1st res in 86 ms, conn in 4305ms
    #0 audio G722 @16kHz, sendrecv, peer=192.x.x.x:7080
       SRTP status: Not active Crypto-suite: 
       ICE role: Unknown, state: Candidate Gathering, comp_cnt: 2
       RX pt=9, last update:00h:00m:04.778s ago
          total 720pkt 115.2KB (144.0KB +IP hdr) @avg=60.9Kbps/76.1Kbps
          pkt loss=35 (4.6%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period: 1400.000 1400.000 1400.000 1400.000   0.000
          jitter     :   0.000  11.725 252.125   0.375   5.519
       TX pt=9, ptime=20, last update:00h:00m:00.847s ago
          total 139pkt 22.2KB (27.8KB +IP hdr) @avg=11.7Kbps/14.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.125   0.375   0.625   0.625   0.250
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
16:08:40.116          pjsua_media.c  ........Media stream call00:0 is destroyed
16:08:40.117                icetp00  .......Stopping ICE, reason=media stop requested
16:08:40.117     srtp0x7f4a6bd9ff10  .......Destroying SRTP transport
16:08:40.117                icetp00  .......Destroying ICE transport
16:08:40.117          ice_session.c  .......ICE session 0x7f4a6bf895f8 destroyed
16:08:40.117                icetp00  .......ICE stream transport 0x7f4a6bd37828 destroyed
16:08:40.117                icetp00  .......ICE transport destroyed
16:08:40.117     srtp0x7f4a6bd9ff10  .......SRTP transport destroyed
| 16:08:40.117674 [1] Call disconnected
| 16:08:40.117963 [ ] Calling webhook sip_call_webhook_id with data {'event': 'call_disconnected', 'caller': 'sip:**611@192.x.x.x', 'parsed_caller': '**611', 'sip_account': 1}
| 16:08:40.152296 [ ] Webhook response 200 b''
| 16:08:40.152978 [ ] Remove from state: sip:**611@192.x.x.x
16:08:41.116            pjsua_aud.c  Closing sound device after idle for 1 second(s)
16:08:41.116            pjsua_aud.c  .Closing null sound device..
Content-Length:   217

v=0
o=user 12128796 12128797 IN IP4 192.x.x.x
s=pjmedia
c=IN IP4 192.x.x.x
t=0 0
m=audio 7080 RTP/AVP 9 121
a=rtpmap:9 G722/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-15
a=sendrecv
a=rtcp:7081

--end msg--
16:08:29.208      inv0x7f4a6bd341b8  ....SDP negotiation done: Success
16:08:29.208          pjsua_media.c  .....Call 0: updating media..
16:08:29.208          pjsua_media.c  ......Call 0: stream #0 (audio) unchanged.
16:08:29.208          pjsua_media.c  ......Audio updated, stream #0: G722 (sendrecv)
| 16:08:29.208602 [1] onCallMediaState call info state 5
| 16:08:29.208820 [1] Connected media 1
| 16:08:30.212235 [1] Call is established.
| 16:08:30.212540 [ ] Calling webhook sip_call_webhook_id with data {'event': 'call_established', 'caller': 'sip:**611@192.x.x.x', 'parsed_caller': '**611', 'sip_account': 1}
| 16:08:30.384615 [ ] Webhook response 200 b''
| 16:08:30.386468 [1] Playing message: Dies ist ein Test
| 16:08:30.413298 [ ] Getting audio from "http://192.x.x.x:8123/api/tts_proxy/46d35759feded708ecd4ac98368f9d4d0c2b61fd_de_-_google_translate.mp3"
16:08:34.262            pjsua_aud.c !Creating file player: /tmp/tmp_gep50rh.wav..
16:08:34.262           wav_player.c  .File player '/tmp/tmp_gep50rh.wav' created: samp.rate=24000, ch=1, bufsize=4KB, filesize=77KB
16:08:34.262            pjsua_aud.c  .Player created, id=0, slot=2
16:08:34.262            pjsua_aud.c  Conf connect: 2 --> 1
16:08:34.262           conference.c  .Port 2 (/tmp/tmp_gep50rh.wav) transmitting to port 1 (sip:**611@192.x.x.x)
| 16:08:34.262547 [1] No action supplied
| 16:08:35.896326 [1] Playback done.
| 16:08:35.896631 [ ] Calling webhook sip_call_webhook_id with data {'event': 'playback_done', 'sip_account': 1, 'caller': 'sip:**611@192.x.x.x', 'parsed_caller': '**611', 'type': 'message', 'message': 'Dies ist ein Test'}
| 16:08:35.930713 [ ] Webhook response 200 b''
| 16:08:35.935231 [1] Scheduled post action: noop
16:08:40.113           pjsua_core.c  .RX 796 bytes Request msg BYE/cseq=30691 (rdata0x7f4a6bd0d088) from UDP 192.x.x.x:5060:
BYE sip:home-assistant@192.x.x.x:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.x.x.x:5060;branch=z9hG4bKFD8E30A2F6C3A387
From: <sip:**611@192.x.x.x>;tag=6E0BA5CB893A7744
To: <sip:home-assistant@192.x.x.x>;tag=ykSRgG0Sl9P-DPNboJfEbl69kws7jFJk
Call-ID: swpg-xxx
CSeq: 30691 BYE
X-RTP-Stat: CS=0;PS=1553;ES=756;OS=114080;SP=0/0;SO=0;QS=-;PR=139;ER=756;OR=22240;CR=0;SR=0;QR=-;PL=0,35;BL=0;LS=0;RB=0/0;SB=-/-;EN=G722;DE=G722;JI=5,18;DL=1247,1247,1247;IP=192.x.x.x:7080,192.x.x.x:4033
X-RTP-Stat-Add: DQ=2;DSS=0;DS=0;PLCS=22656;JS=9
X-SIP-Stat: DRT=0;IR=0
Reason: Q.850; cause=16
Max-Forwards: 70
User-Agent: AVM FRITZ!Box (lgi) 161.07.57 TAL (Sep  2 2023)
Supported: 100rel,replaces,timer
Allow-Events: telephone-event,refer
Content-Length: 0


--end msg--
16:08:40.113           pjsua_core.c  .......TX 310 bytes Response msg 200/BYE/cseq=30691 (tdta0x7f4a6bceec88) to UDP 192.x.x.x:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.x.x.x:5060;received=192.x.x.x;branch=z9hG4bKFD8E30A2F6C3A387
Call-ID: swpg-Y9RR5N8P8HWxegdxJjG92SRB9iP
From: <sip:**611@192.x.x.x>;tag=6E0BA5CB893A7744
To: <sip:home-assistant@192.x.x.x>;tag=ykSRgG0Sl9P-DPNboJfEbl69kws7jFJk
CSeq: 30691 BYE
Content-Length:  0


--end msg--
16:08:40.114          pjsua_media.c  ......Call 0: deinitializing media..
16:08:40.114          pjsua_media.c  .......
  [DISCONNECTED] To: sip:**611@192.x.x.x;tag=6E0BA5CB893A7744
    Call time: 00h:00m:10s, 1st res in 86 ms, conn in 4305ms
    #0 audio G722 @16kHz, sendrecv, peer=192.x.x.x:7080
       SRTP status: Not active Crypto-suite: 
       ICE role: Unknown, state: Candidate Gathering, comp_cnt: 2
       RX pt=9, last update:00h:00m:04.778s ago
          total 720pkt 115.2KB (144.0KB +IP hdr) @avg=60.9Kbps/76.1Kbps
          pkt loss=35 (4.6%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period: 1400.000 1400.000 1400.000 1400.000   0.000
          jitter     :   0.000  11.725 252.125   0.375   5.519
       TX pt=9, ptime=20, last update:00h:00m:00.847s ago
          total 139pkt 22.2KB (27.8KB +IP hdr) @avg=11.7Kbps/14.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.125   0.375   0.625   0.625   0.250
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
16:08:40.116          pjsua_media.c  ........Media stream call00:0 is destroyed
16:08:40.117                icetp00  .......Stopping ICE, reason=media stop requested
16:08:40.117     srtp0x7f4a6bd9ff10  .......Destroying SRTP transport
16:08:40.117                icetp00  .......Destroying ICE transport
16:08:40.117          ice_session.c  .......ICE session 0x7f4a6bf895f8 destroyed
16:08:40.117                icetp00  .......ICE stream transport 0x7f4a6bd37828 destroyed
16:08:40.117                icetp00  .......ICE transport destroyed
16:08:40.117     srtp0x7f4a6bd9ff10  .......SRTP transport destroyed
| 16:08:40.117674 [1] Call disconnected
| 16:08:40.117963 [ ] Calling webhook sip_call_webhook_id with data {'event': 'call_disconnected', 'caller': 'sip:**611@192.x.x.x', 'parsed_caller': '**611', 'sip_account': 1}
| 16:08:40.152296 [ ] Webhook response 200 b''
| 16:08:40.152978 [ ] Remove from state: sip:**611@192.x.x.x
16:08:41.116            pjsua_aud.c  Closing sound device after idle for 1 second(s)
16:08:41.116            pjsua_aud.c  .Closing null sound device..

Super Tipp! Auf dem Mobiltelefon funktioniert die Nachricht. Aber wie kann das sein?

HEUREKA! Es funktioniert! Vielen Dank für Eure Hilfe! Das Problem liegt am Fritzfon, wenn es auf HD automatisch geschaltet ist. Wenn ich HD Telefonie abschalte kommt die Nachricht durch… Da muss man echt mal drauf kommen…

1 „Gefällt mir“

wie ist denn die sip Konfiguration im Addon?
Ich habe da @fritz.box stehen und du glaube die IP, wie ich den Logs entnehmen kann. Vielleicht bringt die Änderung noch was:

enabled: true
registrar_uri: sip:192.x.x.x
id_uri: sip:home-assistant@fritz.box
realm: "*"
user_name: home-assistant
password: xxx
answer_mode: listen
settle_time: 1
incoming_call_file: ""

Darauf muss man wirklich erst mal kommen. :grinning: Das hilft bestimmt auch mal noch anderen.

Das würde mich auf jeden Fall freuen. Ich habe echt schon an mir gezweifelt und überlegt, ob ich HA nochmal komplett neu aufsetzen sollte. Vielen Dank noch einmal für die Idee mit dem Mobiltelefon, manchmal ist man selbst zu sehr auf eine Fehlerquelle fixiert.

1 „Gefällt mir“

Ich hatte in der Protokolldatei alle IP/Fritzbox Einträge ersetzt, bevor ich es gepostet habe. Aber Danke nochmal für Deine Hilfe, wenn es nicht auch die Fritzfon Einstellungen gewesen wären, hätten Deine Tipps ausgereicht.

1 „Gefällt mir“

Hallo, ich knüpfe hier mal an, da die Info’s im Netz spärlich sind und ich hier auf die tolle Seite gestoßen bin da ich…wie hier eifrig diskutiert wurde, auch den nervigen Piepston beim Anruf hatte und das wars, keine Ansage :slightly_frowning_face:

Eingerichtet habe ich ha-sip nach einem “tonlosen” Video - Hat eigentlich ganz gut funktioniert - Bis eben nur der Ton beim Anrufen kam.

Ich verlinke hier mal das Video:
HA-SIP einrichten
so ab 07:10 wird es interessant.

Wie dem auch sei. Das fiepen war da und die Seite hier brachte mich auch nicht weiter aber dann…einfach mal ins Protokoll bei mir schauen und siehe da: Error bei Google Speech.

Tja, gewusst wie: Die hier und im Video und in der Anleitung beschriebene Platformverlinkung zu Google stimmte nicht mehr. Google Speech hieß jetzt bei mir anders nämlich: tts.google_translate_en_com

Wenn ich also bei tts nun statt:

platform: google_translate
language: de

schreibe:

platform: tts.google_translate_en_com
language: de

Dann geht es, kein Gefiepe Mehr und beim Anrufen quasselt die Google Stimme meinen Text, den ich vorgegeben habe -Super :+1:

1 „Gefällt mir“