Affichage des résultats 1 à 10 sur 17

Discussion: Erreur asterisk impossible de si conneter avec smartphone Csipsimple

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre Senior
    Date d'inscription
    janvier 2011
    Localisation
    Villejuif 94
    Messages
    337
    Downloads
    0
    Uploads
    0
    pour l'appel vers bureau certainement un réglage de csipsimple :
    - il y a une option à activer pour toujours recevoir les appels (attention à la batterie) et si le compte est actif seulement pour une connexion par wifi ou aussi sur la data 3g/4g


    - le smartphone coupe peut-être le wifi en mode veille.

    pour la base de données monte le niveau de détails dans la console pour récupérer plus d'infos.

    Code:
    core set verbose 5

  2. #2
    Membre
    Date d'inscription
    avril 2012
    Localisation
    83170 Tourves (Var)
    Messages
    46
    Downloads
    0
    Uploads
    0
    Re,

    Voici le retour de la commande

    Code:
    serveur@raspberrypi:~ $ sudo asterisk -rvvv
    Asterisk 13.14.1~dfsg-2+deb9u3, Copyright (C) 1999 - 2014, 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 13.14.1~dfsg-2+deb9u3 currently running on raspberrypi (pid = 12232)
    [Jul 20 12:15:20] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: salon
    [Jul 20 12:16:39] NOTICE[12290]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau
    [Jul 20 12:21:49] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked
    raspberrypi*CLI> core set verbose 5
    Console verbose was 3 and is now 5.
    raspberrypi*CLI>
    Merci.

  3. #3
    Membre Senior
    Date d'inscription
    janvier 2011
    Localisation
    Villejuif 94
    Messages
    337
    Downloads
    0
    Uploads
    0
    tu as installer une base de donnée sur le raspberry ? postgresql ou mysql ?

    résultats de la commande
    Code:
    cdr show status
    et
    Code:
    odbc show all

  4. #4
    Membre
    Date d'inscription
    avril 2012
    Localisation
    83170 Tourves (Var)
    Messages
    46
    Downloads
    0
    Uploads
    0
    re,

    voici le retour

    Code:
    raspberrypi*CLI> cdr show status
    
    Call Detail Record (CDR) settings
    ----------------------------------
      Logging:                    Enabled
      Mode:                       Simple
      Log unanswered calls:       No
      Log congestion:             No
    
    * Registered Backends
      -------------------
        csv
        cdr_manager (suspended) 
        Adaptive ODBC
        cdr-custom
        res_config_sqlite
    
    raspberrypi*CLI>
    Code:
    raspberrypi*CLI> odbc show all
    
    ODBC DSN Settings
    -----------------
    
    raspberrypi*CLI>
    j'ai installé dans l'ordre :
    Code:
    1 : APACHE
    2 : PHP
    3 : SQL
    4 : PHPMYADMIN
    Pour realiser un serveur multi-fonction avec le raspberry (domotique, serveur web, serveur ftp, serveur dlna, etc...)

    Merci.

  5. #5
    Membre Senior
    Date d'inscription
    janvier 2011
    Localisation
    Villejuif 94
    Messages
    337
    Downloads
    0
    Uploads
    0
    Dans le fichier /etc/asterisk/modules.conf
    ajoutes ou vérifies l'existence de ces lignes et relance Asterisk !
    suivi des com en fichier csv uniquement

    Code:
    noload => cdr_odbc.so
    noload => cdr_radius.so
    noload => cdr_adaptive_odbc.so
    noload => cdr_sqlite3_custom.so
    noload => cdr_custom.so
    noload => cdr_tds.so
    noload => cdr_syslog.so
    noload => cdr_mysql.so
    ; cdr.db without a way to rotate it.
    noload => cdr_sqlite.so
    si tu veux le suivi des communications en base de données (mysql) il faut un paquet supplémentaire asterisk-mysql et créer la/les tables qui vont bien

  6. #6
    Membre Senior
    Date d'inscription
    janvier 2011
    Localisation
    Villejuif 94
    Messages
    337
    Downloads
    0
    Uploads
    0
    pareil pour le voicemail tu peux choisir entre 3 paquets :
    asterisk-voicemail = stockage en fichiers "plats"
    asterisk-voicemail-imapstorage = stockage sur serveur imap
    asterisk-voicemail-odbcstorage = stockage sur serveur base de données SQL

    contrairement au CDR tu ne peux avoir qu'un seul backend.

  7. #7
    Membre
    Date d'inscription
    avril 2012
    Localisation
    83170 Tourves (Var)
    Messages
    46
    Downloads
    0
    Uploads
    0
    re,

    La console CLi me dit toujours que sql bloc
    Code:
    [Jul 20 14:36:45] WARNING[17827]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked
    Code:
    serveur@raspberrypi:~ $ sudo asterisk -rvvv
    Asterisk 13.14.1~dfsg-2+deb9u3, Copyright (C) 1999 - 2014, 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 13.14.1~dfsg-2+deb9u3 currently running on raspberrypi (pid = 17824)
    [Jul 20 14:35:32] NOTICE[17872]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: salon
    [Jul 20 14:36:45] NOTICE[17872]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau
        -- Registered SIP 'bureau' at 192.168.1.26:5060
    [Jul 20 14:36:45] WARNING[17827]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked
    [Jul 20 14:36:45] NOTICE[17872]: chan_sip.c:28276 handle_request_subscribe: Received SIP subscribe for peer without mailbox: bureau
    raspberrypi*CLI>
    fichier : /etc/asterisk/modules.conf
    Code:
    serveur@raspberrypi:~ $ sudo cat /etc/asterisk/modules.conf
    ;
    ; Asterisk configuration file
    ;
    ; Module Loader configuration file
    ;
    
    [modules]
    autoload=yes
    ;
    ; Any modules that need to be loaded before the Asterisk core has been
    ; initialized (just after the logger has been initialized) can be loaded
    ; using 'preload'. This will frequently be needed if you wish to map all
    ; module configuration files into Realtime storage, since the Realtime
    ; driver will need to be loaded before the modules using those configuration
    ; files are initialized.
    ;
    ; An example of loading ODBC support would be:
    ;preload => res_odbc.so
    ;preload => res_config_odbc.so
    ;
    ; If you want, load the GTK console right away.  
    ; Don't load the KDE console since
    ; it's not as sophisticated right now.
    ;
    noload => pbx_gtkconsole.so
    ;load => pbx_gtkconsole.so
    noload => pbx_kdeconsole.so
    ;
    ; Intercom application is obsoleted by
    ; chan_oss.  Don't load it.
    ;
    noload => app_intercom.so
    ;
    ; The 'modem' channel driver and its subdrivers are
    ; obsolete, don't load them.
    ;
    noload => chan_modem.so
    noload => chan_modem_aopen.so
    noload => chan_modem_bestdata.so
    noload => chan_modem_i4l.so
    ;
    ; Comment this out (after installing CAPI middleware and hardware
    ; drivers) if you have CAPI-able hardware and wish to use it in
    ; Asterisk.
    ;
    noload => chan_capi.so
    ;
    load => res_musiconhold.so
    ;
    ; Load either OSS or ALSA, not both
    ; By default, load OSS only (automatically) and do not load ALSA
    ;
    noload => chan_alsa.so
    ;noload => chan_oss.so
    ;
    ; Disable CDR logging to SQLite by default since it writes unconditionally to 
    ; cdr.db without a way to rotate it.
    ;
    noload => cdr_sqlite.so
    ;
    ; These conflict with app_directory.so and each other.
    noload => app_directory_odbc.so
    ;
    ; Enable these if you want to configure Asterisk in a database
    ;
    noload => res_config_odbc.so
    noload => res_config_pgsql.so
    ;
    ; Module names listed in "global" section will have symbols globally
    ; exported to modules loaded after them.
    ;
    [global]
    noload => cdr_odbc.so
    noload => cdr_radius.so
    noload => cdr_adaptive_odbc.so
    noload => cdr_sqlite3_custom.so
    noload => cdr_custom.so
    noload => cdr_tds.so
    noload => cdr_syslog.so
    noload => cdr_mysql.so
    ; cdr.db without a way to rotate it.
    noload => cdr_sqlite.so
    serveur@raspberrypi:~ $
    suivi de :
    Code:
    serveur@raspberrypi:~ $ sudo /etc/init.d/asterisk restart
    [ ok ] Restarting asterisk (via systemctl): asterisk.service.
    serveur@raspberrypi:~ $
    Merci.

  8. #8
    Membre Senior
    Date d'inscription
    janvier 2011
    Localisation
    Villejuif 94
    Messages
    337
    Downloads
    0
    Uploads
    0
    à essayer :
    1 vérifier que le fichier /var/lib/asterisk/astdb.sqlite3 appartient à asterisk:asterisk avec droit en écriture

    ls -l /var/lib/asterisk/astdb.sqlite3 /etc/asterisk
    -rw-r----- 1 asterisk asterisk 17K juil. 20 17:07 /var/lib/asterisk/astdb.sqlite3
    si non régler les problèmes d'accès

    si oui
    arrêter Asterisk
    déplacer/renommer le fichier /var/lib/asterisk/astdb.sqlite3
    relancer Asterisk qui doit le recréer, c'est un fichier "interne" à l'appli.

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •