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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      varg @Thomas Braun last edited by varg

      @thomas-braun

      hatte ganz zuvor mit folgenden Befehlen versucht asterisk komplett zu löschen, vielleicht hats ja auch damit zu tun

      sudo apt-get remove  asterisk
      Following command is used to remove the asterisk package along with its dependencies:
      
      sudo apt-get remove --auto-remove asterisk
      This will remove asterisk and all its dependent packages which is no longer needed in the system.
      
      Completely removing asterisk with all configuration files:
      
      Following command should be used with care as it deletes all the configuration files and data:
      
      sudo apt-get purge asterisk
      or you can use following command also:
      
      sudo apt-get purge --auto-remove asterisk
      

      habe noch nen pi4 hier rumliegen, werde mal bei gelegenheit versuchen es da zu installieren

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

        @varg

        Hast du die alle verwendet?

        Schau mal was das macht:

        sudo sh -x /var/lib/dpkg/info/asterisk.postinst configure 1:16.2.1~dfsg-1+deb10u2
        

        oder auch

        sudo dpkg --configure -D 777 asterisk
        
        V 1 Reply Last reply Reply Quote 0
        • V
          varg @Thomas Braun last edited by varg

          @thomas-braun

          ja alle commands reingeprügelt

          pi@pio4gb:~ $ sudo sh -x /var/lib/dpkg/info/asterisk.postinst configure 1:16.2.1~dfsg-1+deb10u2                                                                                                                                              + set -e
          + getent passwd asterisk
          + groups asterisk
          + grep -w -q -v dialout
          + groups asterisk
          + grep -w -q -v audio
          + find /var/log/asterisk /var/lib/asterisk -type d
          + read dir
          + dpkg-statoverride --list /var/log/asterisk
          + chown asterisk: /var/log/asterisk
          + read dir
          + dpkg-statoverride --list /var/log/asterisk/cdr-custom
          + chown asterisk: /var/log/asterisk/cdr-custom
          + read dir
          + dpkg-statoverride --list /var/log/asterisk/cdr-csv
          + chown asterisk: /var/log/asterisk/cdr-csv
          + read dir
          + dpkg-statoverride --list /var/lib/asterisk
          + chown asterisk: /var/lib/asterisk
          + read dir
          + dpkg-statoverride --list /var/lib/asterisk/moh
          + chown asterisk: /var/lib/asterisk/moh
          + read dir
          + dpkg-statoverride --list /var/lib/asterisk/sounds
          + chown asterisk: /var/lib/asterisk/sounds
          + read dir
          + dpkg-statoverride --list /var/lib/asterisk/sounds/custom
          + chown asterisk: /var/lib/asterisk/sounds/custom
          + read dir
          + dpkg-statoverride --list /var/lib/asterisk/priv-callerintros
          + chown asterisk: /var/lib/asterisk/priv-callerintros
          + read dir
          + dpkg-statoverride --list /etc/asterisk
          + chown asterisk: /etc/asterisk
          + find /var/spool/asterisk -type d
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk
          + chown asterisk: /var/spool/asterisk
          + chmod 750 /var/spool/asterisk
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk/monitor
          + chown asterisk: /var/spool/asterisk/monitor
          + chmod 750 /var/spool/asterisk/monitor
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk/tmp
          + chown asterisk: /var/spool/asterisk/tmp
          + chmod 750 /var/spool/asterisk/tmp
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk/dictate
          + chown asterisk: /var/spool/asterisk/dictate
          + chmod 750 /var/spool/asterisk/dictate
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk/outgoing
          + chown asterisk: /var/spool/asterisk/outgoing
          + chmod 750 /var/spool/asterisk/outgoing
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk/meetme
          + chown asterisk: /var/spool/asterisk/meetme
          + chmod 750 /var/spool/asterisk/meetme
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk/voicemail
          + chown asterisk: /var/spool/asterisk/voicemail
          + chmod 750 /var/spool/asterisk/voicemail
          + read dir
          + dpkg-statoverride --list /var/spool/asterisk/system
          + chown asterisk: /var/spool/asterisk/system
          + chmod 750 /var/spool/asterisk/system
          + read dir
          + [ ! -e /usr/local/share/asterisk/sounds ]
          + set +e
          + dpkg-query -W -f=${Package}\t${Provides}\n
          + sed -nr s/(.*)\tasterisk-config-custom|(asterisk-config)(\t.*)?/\1\2/p
          + ASTERISK_CONFIG=asterisk-config
          + dpkg-query -W -f=${Conffiles}\n asterisk-config
          + sed -nr -e s; (/etc/asterisk/.*) [0-9a-f]*;\1;p
          + read conffile
          + chown asterisk: /etc/asterisk/acl.conf
          + read conffile
          + chown asterisk: /etc/asterisk/adsi.conf
          + read conffile
          + chown asterisk: /etc/asterisk/agents.conf
          + read conffile
          + chown asterisk: /etc/asterisk/alarmreceiver.conf
          + read conffile
          + chown asterisk: /etc/asterisk/alsa.conf
          + read conffile
          + chown asterisk: /etc/asterisk/amd.conf
          + read conffile
          + chown asterisk: /etc/asterisk/app_mysql.conf
          + read conffile
          + chown asterisk: /etc/asterisk/app_skel.conf
          + read conffile
          + chown asterisk: /etc/asterisk/ari.conf
          + read conffile
          + chown asterisk: /etc/asterisk/ast_debug_tools.conf
          + read conffile
          + chown asterisk: /etc/asterisk/asterisk.adsi
          + read conffile
          + chown asterisk: /etc/asterisk/asterisk.conf
          + read conffile
          + chown asterisk: /etc/asterisk/calendar.conf
          + read conffile
          + chown asterisk: /etc/asterisk/ccss.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_adaptive_odbc.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_beanstalkd.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_custom.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_manager.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_mysql.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_odbc.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_pgsql.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_sqlite3_custom.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_syslog.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cdr_tds.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cel.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cel_beanstalkd.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cel_custom.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cel_odbc.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cel_pgsql.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cel_sqlite3_custom.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cel_tds.conf
          + read conffile
          + chown asterisk: /etc/asterisk/chan_dahdi.conf
          + read conffile
          + chown asterisk: /etc/asterisk/chan_mobile.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cli.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cli_aliases.conf
          + read conffile
          + chown asterisk: /etc/asterisk/cli_permissions.conf
          + read conffile
          + chown asterisk: /etc/asterisk/codecs.conf
          + read conffile
          + chown asterisk: /etc/asterisk/confbridge.conf
          + read conffile
          + chown asterisk: /etc/asterisk/config_test.conf
          + read conffile
          + chown asterisk: /etc/asterisk/console.conf
          + read conffile
          + chown asterisk: /etc/asterisk/dbsep.conf
          + read conffile
          + chown asterisk: /etc/asterisk/dnsmgr.conf
          + read conffile
          + chown asterisk: /etc/asterisk/dsp.conf
          + read conffile
          + chown asterisk: /etc/asterisk/enum.conf
          + read conffile
          + chown asterisk: /etc/asterisk/extconfig.conf
          + read conffile
          + chown asterisk: /etc/asterisk/extensions.ael
          + read conffile
          + chown asterisk: /etc/asterisk/extensions.conf
          + read conffile
          + chown asterisk: /etc/asterisk/extensions.lua
          + read conffile
          + chown asterisk: /etc/asterisk/extensions_minivm.conf
          + read conffile
          + chown asterisk: /etc/asterisk/features.conf
          + read conffile
          + chown asterisk: /etc/asterisk/festival.conf
          + read conffile
          + chown asterisk: /etc/asterisk/followme.conf
          + read conffile
          + chown asterisk: /etc/asterisk/func_odbc.conf
          + read conffile
          + chown asterisk: /etc/asterisk/hep.conf
          + read conffile
          + chown asterisk: /etc/asterisk/http.conf
          + read conffile
          + chown asterisk: /etc/asterisk/iax.conf
          + read conffile
          + chown asterisk: /etc/asterisk/iaxprov.conf
          + read conffile
          + chown asterisk: /etc/asterisk/indications.conf
          + read conffile
          + chown asterisk: /etc/asterisk/logger.conf
          + read conffile
          + chown asterisk: /etc/asterisk/manager.conf
          + read conffile
          + chown asterisk: /etc/asterisk/manager.d/README.conf
          + read conffile
          + chown asterisk: /etc/asterisk/meetme.conf
          + read conffile
          + chown asterisk: /etc/asterisk/minivm.conf
          + read conffile
          + chown asterisk: /etc/asterisk/misdn.conf
          + read conffile
          + chown asterisk: /etc/asterisk/modules.conf
          + read conffile
          + chown asterisk: /etc/asterisk/motif.conf
          + read conffile
          + chown asterisk: /etc/asterisk/musiconhold.conf
          + read conffile
          + chown asterisk: /etc/asterisk/muted.conf
          + read conffile
          + chown asterisk: /etc/asterisk/ooh323.conf
          + read conffile
          + chown asterisk: /etc/asterisk/osp.conf
          + read conffile
          + chown asterisk: /etc/asterisk/oss.conf
          + read conffile
          + chown asterisk: /etc/asterisk/phone.conf
          + read conffile
          + chown asterisk: /etc/asterisk/phoneprov.conf
          + read conffile
          + chown asterisk: /etc/asterisk/pjproject.conf
          + read conffile
          + chown asterisk: /etc/asterisk/pjsip.conf
          + read conffile
          + chown asterisk: /etc/asterisk/pjsip_notify.conf
          + read conffile
          + chown asterisk: /etc/asterisk/pjsip_wizard.conf
          + read conffile
          + chown asterisk: /etc/asterisk/queuerules.conf
          + read conffile
          + chown asterisk: /etc/asterisk/queues.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_config_mysql.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_config_sqlite.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_config_sqlite3.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_corosync.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_curl.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_fax.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_ldap.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_odbc.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_parking.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_pgsql.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_pktccops.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_snmp.conf
          + read conffile
          + chown asterisk: /etc/asterisk/res_stun_monitor.conf
          + read conffile
          + chown asterisk: /etc/asterisk/resolver_unbound.conf
          + read conffile
          + chown asterisk: /etc/asterisk/rtp.conf
          + read conffile
          + chown asterisk: /etc/asterisk/say.conf
          + read conffile
          + chown asterisk: /etc/asterisk/sip.conf
          + read conffile
          + chown asterisk: /etc/asterisk/sip_notify.conf
          + read conffile
          + chown asterisk: /etc/asterisk/sla.conf
          + read conffile
          + chown asterisk: /etc/asterisk/smdi.conf
          + read conffile
          + chown asterisk: /etc/asterisk/sorcery.conf
          + read conffile
          + chown asterisk: /etc/asterisk/ss7.timers
          + read conffile
          + chown asterisk: /etc/asterisk/stasis.conf
          + read conffile
          + chown asterisk: /etc/asterisk/statsd.conf
          + read conffile
          + chown asterisk: /etc/asterisk/telcordia-1.adsi
          + read conffile
          + chown asterisk: /etc/asterisk/test_sorcery.conf
          + read conffile
          + chown asterisk: /etc/asterisk/udptl.conf
          + read conffile
          + chown asterisk: /etc/asterisk/users.conf
          + read conffile
          + chown asterisk: /etc/asterisk/voicemail.conf
          + read conffile
          + chown asterisk: /etc/asterisk/vpb.conf
          + read conffile
          + chown asterisk: /etc/asterisk/xmpp.conf
          + read conffile
          + + read STAT
          dpkg-statoverride --quiet --list /etc/asterisk/*
          + set -e
          + [ configure = configure ]
          + deb-systemd-helper unmask asterisk.service
          /usr/bin/deb-systemd-helper was not called from dpkg. Exiting.
          + true
          + deb-systemd-helper --quiet was-enabled asterisk.service
          /usr/bin/deb-systemd-helper was not called from dpkg. Exiting.
          + deb-systemd-helper update-state asterisk.service
          /usr/bin/deb-systemd-helper was not called from dpkg. Exiting.
          + true
          + [ configure = configure ]
          + [ -x /etc/init.d/asterisk ]
          + update-rc.d asterisk defaults
          + [ -n 1:16.2.1~dfsg-1+deb10u2 ]
          + _dh_action=restart
          + invoke-rc.d asterisk restart
          Job for asterisk.service failed because the control process exited with error code.
          See "systemctl status asterisk.service" and "journalctl -xe" for details.
          invoke-rc.d: initscript asterisk, action "restart" failed.
          ● asterisk.service - Asterisk PBX
             Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled)
             Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:58:51 CEST; 48ms ago
               Docs: man:asterisk(8)
            Process: 14893 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE)
           Main PID: 14893 (code=exited, status=1/FAILURE)
          + exit 1
          pi@pio4gb:~ $
          
          
          pi@pio4gb:~ $ sudo dpkg --configure -D 777 asterisk
          D000001: ensure_diversions: new, (re)loading
          D000001: process queue pkg asterisk:armhf queue.len 0 progress 1, try 1
          D000040: checking dependencies of asterisk:armhf (- <none>)
          D000400:   checking group ...
          D000400:     checking possibility  -> adduser
          D000400:       checking non-provided pkg adduser:all
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> asterisk-config
          D000400:       checking non-provided pkg asterisk-config:all
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> asterisk-core-sounds-en
          D000400:       checking non-provided pkg asterisk-core-sounds-en:all
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> asterisk-modules
          D000400:       checking non-provided pkg asterisk-modules:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> lsb-base
          D000400:       checking non-provided pkg lsb-base:all
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libc6
          D000400:       checking non-provided pkg libc6:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libcap2
          D000400:       checking non-provided pkg libcap2:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libedit2
          D000400:       checking non-provided pkg libedit2:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libgcc1
          D000400:       checking non-provided pkg libgcc1:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libjansson4
          D000400:       checking non-provided pkg libjansson4:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libpopt0
          D000400:       checking non-provided pkg libpopt0:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libsqlite3-0
          D000400:       checking non-provided pkg libsqlite3-0:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libssl1.1
          D000400:       checking non-provided pkg libssl1.1:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libsystemd0
          D000400:       checking non-provided pkg libsystemd0:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> liburiparser1
          D000400:       checking non-provided pkg liburiparser1:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libuuid1
          D000400:       checking non-provided pkg libuuid1:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libxml2
          D000400:       checking non-provided pkg libxml2:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libxslt1.1
          D000400:       checking non-provided pkg libxslt1.1:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000040: ok 2 msgs >><<
          D000040:     checking Breaks
          D000400:      checking virtbroken asterisk-1fb7f5c06d7a2052e38d021b3d8ca151
          Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ...
          D000002: fork/exec /var/lib/dpkg/info/asterisk.postinst ( configure  )
          Job for asterisk.service failed because the control process exited with error code.
          See "systemctl status asterisk.service" and "journalctl -xe" for details.
          invoke-rc.d: initscript asterisk, action "start" failed.
          ● asterisk.service - Asterisk PBX
             Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled)
             Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:59:56 CEST; 23ms ago
               Docs: man:asterisk(8)
            Process: 15558 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE)
           Main PID: 15558 (code=exited, status=1/FAILURE)
          dpkg: error processing package asterisk (--configure):
           installed asterisk package post-installation script subprocess returned error exit status 1
          D000001: ensure_diversions: same, skipping
          D000040: checking dependencies of libc-bin:armhf (- <none>)
          D000400:   checking group ...
          D000400:     checking possibility  -> libc6
          D000400:       checking non-provided pkg libc6:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000400:   checking group ...
          D000400:     checking possibility  -> libc6
          D000400:       checking non-provided pkg libc6:armhf
          D000400:       is installed, ok and found
          D000400:     found 3
          D000400:   found 3 matched 0 possfixbytrig -
          D000040: ok 2 msgs >><<
          Processing triggers for libc-bin (2.28-10+rpi1) ...
          D000002: fork/exec /var/lib/dpkg/info/libc-bin.postinst ( triggered ldconfig )
          D000001: ensure_diversions: same, skipping
          Errors were encountered while processing:
           asterisk
          pi@pio4gb:~ $
          
          
          Thomas Braun 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @varg last edited by

            @varg

            ls -l /var/lib/dpkg/info | grep -i asterisk
            
            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @varg last edited by

              @varg

              sudo mv /var/lib/dpkg/info/asterisk* /tmp
              

              Dann

              sudo apt update
              sudo apt install asterisk
              
              V 1 Reply Last reply Reply Quote 0
              • V
                varg @Thomas Braun last edited by varg

                @thomas-braun

                pi@pio4gb:~ $ ls -l /var/lib/dpkg/info | grep -i asterisk
                -rw-r--r-- 1 root root      69 Aug 27  2020 asterisk.conffiles
                -rw-r--r-- 1 root root    3137 Aug 27  2020 asterisk-config.conffiles
                -rw-r--r-- 1 root root   13720 Jun  6 15:22 asterisk-config.list
                -rw-r--r-- 1 root root   14680 Aug 27  2020 asterisk-config.md5sums
                -rwxr-xr-x 1 root root    1325 Aug 27  2020 asterisk-config.postinst
                -rwxr-xr-x 1 root root    1409 Aug 27  2020 asterisk-config.preinst
                -rw-r--r-- 1 root root   35380 Jun  6 15:22 asterisk-core-sounds-en-gsm.list
                -rw-r--r-- 1 root root   53716 Dec 20  2018 asterisk-core-sounds-en-gsm.md5sums
                -rwxr-xr-x 1 root root     352 Dec 20  2018 asterisk-core-sounds-en-gsm.preinst
                -rw-r--r-- 1 root root     347 Jun  6 15:22 asterisk-core-sounds-en.list
                -rw-r--r-- 1 root root     439 Dec 20  2018 asterisk-core-sounds-en.md5sums
                -rwxr-xr-x 1 root root    1050 Dec 20  2018 asterisk-core-sounds-en.postinst
                -rwxr-xr-x 1 root root     245 Dec 20  2018 asterisk-core-sounds-en.prerm
                -rw-r--r-- 1 root root   10731 Jun  6 15:40 asterisk.list
                -rw-r--r-- 1 root root   15583 Aug 27  2020 asterisk.md5sums
                -rw-r--r-- 1 root root   14460 Jun  6 15:22 asterisk-modules.list
                -rw-r--r-- 1 root root   24919 Aug 27  2020 asterisk-modules.md5sums
                -rw-r--r-- 1 root root     480 Jun  6 15:22 asterisk-moh-opsound-gsm.list
                -rw-r--r-- 1 root root     593 Jun 28  2010 asterisk-moh-opsound-gsm.md5sums
                -rwxr-xr-x 1 root root    4642 Aug 27  2020 asterisk.postinst
                -rwxr-xr-x 1 root root     731 Aug 27  2020 asterisk.postrm
                -rwxr-xr-x 1 root root     321 Aug 27  2020 asterisk.prerm
                -rw-r--r-- 1 root root      25 Aug 27  2020 asterisk.shlibs
                -rw-r--r-- 1 root root      67 Aug 27  2020 asterisk.triggers
                -rw-r--r-- 1 root root     358 Jun  6 15:40 asterisk-voicemail.list
                -rw-r--r-- 1 root root     402 Aug 27  2020 asterisk-voicemail.md5sums
                pi@pio4gb:~ $
                
                pi@pio4gb:~ $ sudo mv /var/lib/dpkg/info/asterisk* /tmp
                pi@pio4gb:~ $
                
                pi@pio4gb:~ $ sudo apt update
                Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                Hit:2 http://archive.raspberrypi.org/debian buster InRelease
                Hit:3 https://deb.nodesource.com/node_12.x buster InRelease
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                All packages are up to date.
                pi@pio4gb:~ $ sudo apt install asterisk
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                asterisk is already the newest version (1:16.2.1~dfsg-1+deb10u2).
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                2 not fully installed or removed.
                After this operation, 0 B of additional disk space will be used.
                Do you want to continue? [Y/n] Y
                Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ...
                Setting up asterisk-voicemail (1:16.2.1~dfsg-1+deb10u2) ...
                
                

                Installationsverzeichnis /etc/asterisk/ scheint immernoch tot

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

                  @varg
                  Mehr nicht?
                  Da sollte eigentlich mehr kommen.
                  Bitte ggf. auch das login prompt posten, dann kann man sehen ob alles durch ist.

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    varg @Thomas Braun last edited by varg

                    @thomas-braun

                    habe alles was putty hergibt kopiert, mehr war hier nicht zu sehen.

                    ...und vielen Dank für Deine Unterstützung

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      varg @varg last edited by varg

                      @varg

                      habe mal aus neugier auf einem anderen gerät iobroker komplett neu aufgesetzt und asterisk installiert:

                      das Problem bleibt bestehen:

                      @Thomas-Braun die installationsroutine verlief auf dem neuen system fehlerfrei

                      asterisk.0	2021-06-06 22:47:53.763	error	(1084) Error while Converting File: {}
                      asterisk.0	2021-06-06 22:47:53.229	silly	(1084) States user redis pmessage asterisk.0.*/asterisk.0.dialin.callerid:{"val":"","ack":true,"ts":1623012473225,"q":0,"from":"system.adapter.asterisk.0","user":"system.user.admin","lc":1623012039437
                      asterisk.0	2021-06-06 22:47:53.223	silly	(1084) States user redis pmessage asterisk.0.*/asterisk.0.dialin.dtmf:{"val":"","ack":true,"ts":1623012473173,"q":0,"from":"system.adapter.asterisk.0","user":"system.user.admin","lc":1623012039466}
                      asterisk.0	2021-06-06 22:47:53.164	info	(1084) Connected to Asterisk Manager
                      asterisk.0	2021-06-06 22:47:53.154	info	(1084) Starting Adapter asterisk.0 in version 1.0.6 with transcoder ffmpeg and language DE
                      asterisk.0	2021-06-06 22:47:53.142	silly	(1084) States system redis pmessage system.adapter.asterisk.0.logLevel/system.adapter.asterisk.0.logLevel:{"val":"silly","ack":true,"ts":1623012473124,"q":0,"from":"system.adapter.asterisk.0","lc":162
                      asterisk.0	2021-06-06 22:47:53.092	info	(1084) starting. Version 1.0.6 in /opt/iobroker/node_modules/iobroker.asterisk, node: v14.17.0, js-controller: 3.2.16
                      host.piholeblack	2021-06-06 22:47:51.619	info	instance system.adapter.asterisk.0 started with pid 1084
                      host.piholeblack	2021-06-06 22:47:49.157	info	instance system.adapter.asterisk.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                      asterisk.0	2021-06-06 22:47:48.587	info	(1067) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                      asterisk.0	2021-06-06 22:47:48.585	info	(1067) terminating
                      asterisk.0	2021-06-06 22:47:48.582	info	(1067) Closing Asterisk Adapter
                      host.piholeblack	2021-06-06 22:47:48.582	info	stopInstance system.adapter.asterisk.0 send kill signal
                      
                      1 Reply Last reply Reply Quote 0
                      • T
                        TemPeck last edited by

                        Bin eben auf den Thread gestoßen und hab auch gleich mal nen Testanruf angestoßen - gleicher Fehler.

                        Kann jetzt natürlich nicht sagen seit wann. Ich erhalte die Anrufe nur bei Auslösung der Rauchmelder oder bei Einbruchmeldung - also nicht alle Tage.

                        Sicher dass es nicht an der Node-Version liegt? Ich wüsste sonst auch nicht, was ich noch so verändert hätte...

                        Ich schaue nächste Woche sonst mal ob ich noch ein ganz altes Backup finde...

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          varg @TemPeck last edited by

                          @tempeck

                          habe den Fehler auf node 12 und 14

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

                            Hallo zusammen,
                            ich vermute Google hat etwas an der verwendeten Text-To-Speech API verändert, sodass nur noch eine bestimmte Anzahl Wandlungen in einem Zeitraum möglich sind (wenn überhaupt noch)...
                            Ich habe es jetzt so gelöst, dass im Skript "umzu" mit lokalem PicoTTS wav-Dateien erzeugt und mit sox zur gsm konvertiert werden.

                            Problem ist, dass beim Starten des Adapters der Dial-In-Text an Google geschickt wird und natürlich nicht gewandelt wird...
                            Als Konsequenz daraus startet dann der Adapter nicht korrekt (kein DTMF mehr möglich)
                            Um dies quick and dirty zu beheben habe ich in der asterisk.js die Zeilen 757 und 788 auskommentiert...
                            Der Teil dazwischen wurde sonst nicht ausgeführt...

                            757:	/* convertDialInFile(parameter, () => { */
                            .....
                            788:	/* }); */
                            

                            Wäre natürlich toll, wenn jemand den Adapter so umbauen könnte, dass eine andere TTS-Engine genutzt wird...

                            bahnuhr Z 3 Replies 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: {}":

                              Ich habe es jetzt so gelöst, dass im Skript "umzu" mit lokalem PicoTTS wav-Dateien erzeugt und mit sox zur gsm konvertiert werden.

                              Könntest du dies mal näher erläutern.

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

                                @bahnuhr
                                Hoffe das hier hilft:

                                let msg = "Dieser Text wird vorgelesen."
                                exec('pico2wave -w /tmp/ttsdatei.wav -l de-DE "' + msg + '"', function (error, stdout, stderr) { 
                                                        /* wav erstellt */
                                                        exec('sox /tmp/ttsdatei.wav -r 8000 -c 1 /tmp/ttsdatei.gsm', function (error, stdout, stderr) { 
                                                            /* gsm erstellt */
                                                            exec('rm /tmp/ttsdatei.wav', function (error, stdout, stderr) { 
                                                                /* wav gelöscht, sonst wurde beim folgenden Anruf ggf. die falsche Datei aufgerufen... */
                                                                    sendTo('asterisk.0', "dial", { telnr: callNumber, callerid: callerId, audiofile: '/tmp/ttsdatei.gsm'},  (res) => {
                                                                        console.log('Result: ' + JSON.stringify(res));
                                                                        exec('cp /tmp/ttsdatei.gsm /tmp/asterisk_dtmf.gsm', function (error, stdout, stderr) { 
                                                                            /* Die asterisk_dtmf.gsm wird für Dial-In Anrufe verwendet... Hier wird dann einfach der letzte Anruf nochmal wiedergegeben */
                                                                            /* Das folgende Löschen führte bei mir zu Problemen, also bleibt die Datei liegen.. wird ja eh überschrieben */
                                                                            /* exec('rm /tmp/ttsdatei.gsm', function (error, stdout, stderr) { console.log('Telefonalamierung: gsm gelöscht'); }); */
                                                                        });
                                                                    });
                                                            });
                                                        });
                                                    });
                                
                                bahnuhr stek 2 Replies 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: {}":

                                  pico2wave

                                  Kenn ich bisher nicht.
                                  Muss man dies installieren?

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

                                    @bahnuhr
                                    ja, wird auch im sayit-Adapter verwendet:

                                    PicoTTS (linux only): English, German, Italian, Spanish, French For PicoTTS it is necessary to install the following packages: libttspico-utils and lame. Installation command: 'sudo apt-get install libttspico-utils lame'

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

                                      @boeskij

                                      Habe mal das Script gekürzt um zu sehen ob eine wav erzeugt wird.

                                          let msg = "Dieser Text wird vorgelesen."
                                          exec('pico2wave -w /tmp/ttsifixalarm.wav -l de-DE "' + msg + '"', function (error, stdout, stderr) { 
                                              log (error);
                                              log (stdout);
                                              log (stderr);
                                          });
                                      

                                      Datei wird nicht erzeugt. Und im log steht:
                                      3acb4daf-8bb8-47f4-ae9a-1f11d645e2fe-image.png

                                      Pico wird nicht gefunden. Muss ich doch etwas installieren. Habe auch mal "pico2wave" eingegeben in der JS instanz. Da kamen dann aber nur Fehlermeldungen.

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

                                        @bahnuhr

                                        pico TTS muss noch nachinstalliert werden. Ist etwas komplexer, je nach vorhandenem System:

                                        https://cstan.io/?p=11840&lang=en

                                        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: {}":

                                          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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            825
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            116
                                            8481
                                            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