Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Asterisk bringt "Error while dialing (2). Error: {}"

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Asterisk bringt "Error while dialing (2). Error: {}"

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active @boeskij last edited by

      @boeskij sagte in Asterisk bringt "Error while dialing (2). Error: {}":

      wird auch im sayit-Adapter verwendet:

      oben stand, dass pico bei sayit dabei ist.

      Dem ist dann nicht so ?

      B 1 Reply Last reply Reply Quote 0
      • B
        boeskij @bahnuhr last edited by

        @bahnuhr
        es wird dort verwendet... ist aber nicht dabei...
        wie oben im Zitat geschrieben:

        Installation command: 'sudo apt-get install libttspico-utils lame'

        bahnuhr 1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active @boeskij last edited by

          @boeskij sagte in Asterisk bringt "Error while dialing (2). Error: {}":

          es wird dort verwendet... ist aber nicht dabei...

          tut mir leid, aber diesen Satz verstehe ich nicht.

          Wenn es verwendet wird, muss es doch auch installiert sein.
          Denn wenn nicht installiert, dann kann es auch nicht verwendet werden.

          Ist aber auch egal, ich probier dies einmal.
          Melde mich dann wieder.

          1 Reply Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active last edited by

            @boeskij

            das:
            sudo apt-get install libttspico-utils lame

            funktioniert nicht.

            Benutze debian auf proxmox in einer VM

            Und da kommt:

            root@VM-iobroker:/opt/iobroker# sudo apt-get install libttspico-utils lame
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            Paket libttspico-utils ist nicht verfügbar, wird aber von einem anderen Paket
            referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
            wurde oder nur aus einer anderen Quelle verfügbar ist.
            
            E: Für Paket »libttspico-utils« existiert kein Installationskandidat.
            
            
            B 1 Reply Last reply Reply Quote 0
            • B
              boeskij @bahnuhr last edited by

              @bahnuhr
              https://forum.iobroker.net/topic/38883/sayit-mit-tts-pico/2?_=1623260824757

              Thomas Braun 1 Reply Last reply Reply Quote 1
              • Thomas Braun
                Thomas Braun Most Active @boeskij last edited by

                @boeskij
                Lol, wusste gar nicht das ich mich damit schon mal beschäftigt hatte.

                1 Reply Last reply Reply Quote 1
                • bahnuhr
                  bahnuhr Forum Testing Most Active last edited by bahnuhr

                  @boeskij
                  @Thomas-Braun

                  So, Installation hat geklappt.
                  Dann das Script von @boeskij laufen gelassen.
                  Und es kommt:

                  javascript.0 (1132) script.js.Scripte.test6: Result: {"result":{"parameter":{"telnr":"017647101234","callerid":"066512345","audiofile":"/tmp/ttsifixalarm","extension":"123456789"},"options":{"action":"originate","channel":"SIP/123456789/017647112324","context":"ael-ansage","exten":"017647103713","priority":1,"timeout":60000,"variable":{"repeat":5,"file":"/tmp/ttsifixalarm","del":""},"callerid":"0665123543"},"guid":"0d47baf8-3fad-b4c3-4ec1-86f81a5d8ad6","result":{"response":"Error","actionid":"0d47baf8-3fad-b4c3-4ec1-86f81a5d8ad6","message":"Originate failed"}},"error":{"response":"Error","actionid":"0d47baf8-3fad-b4c3-4ec1-86f81a5d8ad6","message":"Originate failed"}}
                  

                  Anruf erfolgte nicht.
                  Tel. habe ich geändert.

                  Muss ich jetzt noch deine Auskommentierung machen ?

                  B 1 Reply Last reply Reply Quote 0
                  • bahnuhr
                    bahnuhr Forum Testing Most Active last edited by

                    So, habe auch mal die Zeilen auskommentiert.
                    Aber gleiches Ergebnis.

                    Test "Originate failed"
                    -> was immer das zu sagen hat.

                    Tel. wurde nicht getätigt.

                    1 Reply Last reply Reply Quote 0
                    • B
                      boeskij @bahnuhr last edited by

                      @bahnuhr
                      Der Anruf sollte normalerweise trotzdem rausgehen.
                      Was nicht funktionierte waren nur die DTMF-Reaktionen.

                      bahnuhr 1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active @boeskij last edited by

                        @boeskij

                        Ok,
                        Kommentierung wieder zurück genommen.

                        Hast du sonst noch ne Idee ?

                        1 Reply Last reply Reply Quote 0
                        • bahnuhr
                          bahnuhr Forum Testing Most Active last edited by bahnuhr

                          Im debug kommt:

                          asterisk.0	2021-06-09 20:23:57.572	debug	(11448) sendTo "dial" to system.adapter.javascript.0 from system.adapter.asterisk.0
                          asterisk.0	2021-06-09 20:23:57.571	debug	(11448) Calling callback function: (res, err) => { adapter.sendTo(msg.from, msg.command, { result: res, error: err }, msg.callback); }
                          asterisk.0	2021-06-09 20:23:57.570	error	(11448) Error while dialing (1). Error: {"response":"Error","actionid":"9ef349c2-d53f-ca4e-1a24-caa343e23b19","message":"Originate failed"}, Result: {"parameter":{"telnr":"0176471123123","callerid":"06
                          asterisk.0	2021-06-09 20:23:56.563	info	(11448) Start dialing
                          asterisk.0	2021-06-09 20:23:56.563	debug	(11448) Got GSM audio file /tmp/ttsifixalarm.gsm
                          asterisk.0	2021-06-09 20:23:56.562	debug	(11448) Parameter: {"telnr":"017sdfsdf","callerid":"066512313","audiofile":"/tmp/ttsifixalarm","extension":"123456789"}
                          asterisk.0	2021-06-09 20:23:56.561	debug	(11448) Dial Command
                          asterisk.0	2021-06-09 20:23:56.560	debug	(11448) Message: {"telnr":"017sdfsdfsdf","callerid":"0665123123","audiofile":"/tmp/ttsifixalarm.gsm"}
                          asterisk.0	2021-06-09 20:23:56.558	debug	(11448) Connected to Asterisk
                          

                          Tel.Nr. wieder geändert.

                          1 Reply Last reply Reply Quote 0
                          • bahnuhr
                            bahnuhr Forum Testing Most Active last edited by

                            Über putty kam dies:

                            root@VM-iobroker:/opt/iobroker# asterisk -rvvvvvv
                            Asterisk 16.2.1~dfsg-1+deb10u2, Copyright (C) 1999 - 2018, Digium, Inc. and others.
                            Created by Mark Spencer <markster@digium.com>
                            Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
                            This is free software, with components licensed under the GNU General Public
                            License version 2 and other licenses; you are welcome to redistribute it under
                            certain conditions. Type 'core show license' for details.
                            =========================================================================
                            Connected to Asterisk 16.2.1~dfsg-1+deb10u2 currently running on VM-iobroker (pid = 402)
                              == Manager 'manager' logged off from 192.168.243.12
                              == Manager 'manager' logged on from 192.168.243.12
                            [Jun  9 20:23:56] WARNING[11463]: chan_sip.c:6331 create_addr: Purely numeric hostname (123456789), and not a peer--rejecting!
                                -- Executing [failed@ael-ansage:1] Answer("OutgoingSpoolFailed", "") in new stack
                                -- Executing [failed@ael-ansage:2] Wait("OutgoingSpoolFailed", "1") in new stack
                                -- Executing [failed@ael-ansage:3] Read("OutgoingSpoolFailed", "dtmf,/tmp/ttsifixalarm&beep,0,s,5,1") in new stack
                                -- Executing [failed@ael-ansage:4] GotoIf("OutgoingSpoolFailed", "0?5:6") in new stack
                                -- Goto (ael-ansage,failed,6)
                                -- Executing [failed@ael-ansage:6] NoOp("OutgoingSpoolFailed", "Finish if_ael-ansage_1") in new stack
                                -- Executing [failed@ael-ansage:7] Hangup("OutgoingSpoolFailed", "") in new stack
                              == Spawn extension (ael-ansage, failed, 7) exited non-zero on 'OutgoingSpoolFailed'
                                -- Executing [h@ael-ansage:1] GotoIf("OutgoingSpoolFailed", "0?2:4") in new stack
                                -- Goto (ael-ansage,h,4)
                                -- Executing [h@ael-ansage:4] NoOp("OutgoingSpoolFailed", "Finish if_ael-ansage_2") in new stack
                                -- Executing [h@ael-ansage:5] SayDigits("OutgoingSpoolFailed", "") in new stack
                                -- Executing [h@ael-ansage:6] NoOp("OutgoingSpoolFailed", "Finish if_ael-ansage_1") in new stack
                                -- Executing [h@ael-ansage:7] Hangup("OutgoingSpoolFailed", "") in new stack
                              == Spawn extension (ael-ansage, h, 7) exited non-zero on 'OutgoingSpoolFailed'
                            VM-iobroker*CLI>
                            
                            
                            Thomas Braun B 2 Replies Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @bahnuhr last edited by Thomas Braun

                              @bahnuhr
                              Du solltest keine root shell offen haben.

                              1 Reply Last reply Reply Quote 0
                              • B
                                boeskij @bahnuhr last edited by

                                @bahnuhr
                                nun bin ich raus...
                                die Asterisk-Instanz hat aber schon mal gelaufen?
                                Die CallerId im Schnippsel stimmt?

                                sendTo('asterisk.0', "dial", { telnr: TELNR, callerid: CALLERID, audiofile: AUDIOFILE},  (res) => { ...
                                
                                bahnuhr 1 Reply Last reply Reply Quote 0
                                • bahnuhr
                                  bahnuhr Forum Testing Most Active @boeskij last edited by

                                  @boeskij sagte in Asterisk bringt "Error while dialing (2). Error: {}":

                                  die Asterisk-Instanz hat aber schon mal gelaufen?
                                  Nein

                                  Die CallerId im Schnippsel stimmt?
                                  ich lass diese mal weg.

                                  1 Reply Last reply Reply Quote 0
                                  • bahnuhr
                                    bahnuhr Forum Testing Most Active last edited by

                                    so, keine Veränderung.
                                    Es kommt immer:
                                    "Originate failed"

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      boeskij @bahnuhr last edited by

                                      @bahnuhr
                                      Angebunden nach Anleitung an eine Fritzbox?
                                      Beantwortet der iobroker einen eingehenden Anruf (wenn auch nur mit "beep" da die TTS-Datei nicht erzeugt werden kann)?

                                      bahnuhr 1 Reply Last reply Reply Quote 0
                                      • bahnuhr
                                        bahnuhr Forum Testing Most Active @boeskij last edited by

                                        @boeskij sagte in Asterisk bringt "Error while dialing (2). Error: {}":

                                        Angebunden nach Anleitung an eine Fritzbox?

                                        bfde8afe-e7cc-414c-8915-566d4a579892-image.png
                                        Ich denke schon, manager ist logged on

                                        @boeskij sagte in Asterisk bringt "Error while dialing (2). Error: {}":

                                        Beantwortet der iobroker einen eingehenden Anruf (wenn auch nur mit "beep" da die TTS-Datei nicht erzeugt werden kann)?

                                        Weiß ich jetzt nicht, wie und was ich da machen soll.

                                        B 1 Reply Last reply Reply Quote 0
                                        • B
                                          boeskij @bahnuhr last edited by

                                          @bahnuhr
                                          Für den Asterisk musste auf der Fritzbox eine SIP-Nebenstelle eingerichtet werden.
                                          Diese hat mindestens eine interne Rufnummer, ggf. auch eine externe Rufnummer.
                                          Die einfach mal anrufen und schauen was passiert

                                          bahnuhr 1 Reply Last reply Reply Quote 0
                                          • bahnuhr
                                            bahnuhr Forum Testing Most Active @boeskij last edited by

                                            @boeskij sagte in Asterisk bringt "Error while dialing (2). Error: {}":

                                            @bahnuhr
                                            Für den Asterisk musste auf der Fritzbox eine SIP-Nebenstelle eingerichtet werden.
                                            Diese hat mindestens eine interne Rufnummer, ggf. auch eine externe Rufnummer.
                                            Die einfach mal anrufen und schauen was passiert

                                            Ja, sip nach Anleitung.
                                            Nummer hab ich mit meinem Handy mal angerufen.
                                            Alle Telefone klingeln.
                                            Der Fritzbox Adapter reagiert.

                                            Aber Astersik nicht.

                                            B 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            446
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            116
                                            9029
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo