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
    Date d'inscription
    avril 2012
    Localisation
    83170 Tourves (Var)
    Messages
    46
    Downloads
    0
    Uploads
    0
    Bonjour,

    Tout d'abord je tiens à vous remercie de votre aide.

    Ok je vais me documenté sur le net pour créer la boite vocale.
    Voici le retour de la commande

    Avec le minimum d'informations
    Code:
    serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Addr->IP'      
      Addr->IP     : 192.168.1.26:5060
    serveur@raspberrypi:~ $ 
    serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Defaddr->IP' 
      Defaddr->IP  : (null)
    serveur@raspberrypi:~ $ 
    serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Status' 
      Status       : Unmonitored
    serveur@raspberrypi:~ $ 
    serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Useragent' 
      Useragent    : CSipSimple_trelte-23/r2457
    serveur@raspberrypi:~ $ 
    serveur@raspberrypi:~ $ sudo asterisk -rx 'sip show peer bureau' | grep 'Reg. Contact' 
      Reg. Contact : sip:bureau@192.168.1.26:5060;ob
    serveur@raspberrypi:~ $
    Avec plus de détails
    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)
    raspberrypi*CLI> sip show peer bureau
    
    
      * Name       : bureau
      Description  : 
      Secret       : <Set>
      MD5Secret    : <Not set>
      Remote Secret: <Not set>
      Context      : maison
      Record On feature : automon
      Record Off feature : automon
      Subscr.Cont. : <Not set>
      Language     : fr
      Tonezone     : <Not set>
      AMA flags    : Unknown
      Transfer mode: open
      CallingPres  : Presentation Allowed, Not Screened
      Callgroup    : 
      Pickupgroup  : 
      Named Callgr : 
      Nam. Pickupgr: 
      MOH Suggest  : 
      Mailbox      : 
      VM Extension : asterisk
      LastMsgsSent : 32767/65535
      Call limit   : 0
      Max forwards : 0
      Dynamic      : Yes
      Callerid     : "" <>
      MaxCallBR    : 384 kbps
      Expire       : 522
      Insecure     : no
      Force rport  : Auto (No)
      Symmetric RTP: No
      ACL          : No
      DirectMedACL : No
      T.38 support : No
      T.38 EC mode : Unknown
      T.38 MaxDtgrm: 4294967295
      DirectMedia  : Yes
      PromiscRedir : No
      User=Phone   : No
      Video Support: No
      Text Support : No
      Ign SDP ver  : No
      Trust RPID   : No
      Send RPID    : No
      Path support : No
      Path         : N/A
      TrustIDOutbnd: Legacy
      Subscriptions: Yes
      Overlap dial : Yes
      DTMFmode     : auto
      Timer T1     : 500
      Timer B      : 32000
      ToHost       : 
      Addr->IP     : 192.168.1.26:5060
      Defaddr->IP  : (null)
      Prim.Transp. : UDP
      Allowed.Trsp : UDP
      Def. Username: poste21
      SIP Options  : (none)
      Codecs       : (ulaw|alaw|gsm|h263)
      Auto-Framing : No
      Status       : Unmonitored
      Useragent    : CSipSimple_trelte-23/r2457
      Reg. Contact : sip:bureau@192.168.1.26:5060;ob
      Qualify Freq : 60000 ms
      Keepalive    : 0 ms
      Sess-Timers  : Accept
      Sess-Refresh : uas
      Sess-Expires : 1800 secs
      Min-Sess     : 90 secs
      RTP Engine   : asterisk
      Parkinglot   : 
      Use Reason   : No
      Encryption   : No
    
    raspberrypi*CLI>
    Concernant le problème de droit d'accès à la base de donnée, comment je doit procéder pour résoudre le problème ?
    Code:
    [Jul 20 04:10:30] WARNING[12233]: db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked
    Merci.

  2. #2
    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

  3. #3
    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.

  4. #4
    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

  5. #5
    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.

  6. #6
    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

  7. #7
    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.

  8. #8
    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.

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
  •