Accéder au contenu principal

Installation des composants de kannel


Ouvrez votre terminal puis tapez :
sudo su

Cela nous évitera de retaper sudo.

a) Installons libxml2 et libxml2-dev en tapant :
apt-get install libxml2 libxml2-dev

b) Installons kannel en tapant :
apt-get install kannel

c'est beaucoup plus rapide que de le télécharger puis le compiler.

c) Installons le serveur LAMP. C'est pour prévoir l'utilisation d'une base de données. Tapez :
apt-get install lamp-server^                                                                                       

N'oubliez pas le l'accent circonflexe ^
Au cours de l'installation un mot de passe vous sera demandé ; Pour simplifier mettez le mot de passe de votre session ubuntu.

d) Installons phpmyadmin
Il est un composant du serveur LAMP, mais il peut arriver qu'il ne soit pas installé avec l'installation du serveur.
Donc installons le. Tapez :
apt-get install phpmyadmin
Au cours de l'installation, il vous est aussi demandé un mot de passe d'accès à la base de données. Retenez bien le mot de passe que vous mettez !

A la fin de l'installation, tapez :
ln -s /usr/share/phpmyadmin /var/www/phpmyadmin 
C'est tout simplement pour pouvoir utiliser phpmyadmin avec le navigateur.

e) Installons minicom. Tapez :
apt-get install minicom

OUF !!! L'installation est terminée, passons à la configuration !

Cliquez ici pour la 2ème étape.


[)3\/73X, le blog du partage !

Commentaires

  1. jarive pas a installer LAMP serveur avec cette commende
    apt-get install lamp-server^
    quant je le tape,on me signal une erreur:

    E: Impossible de trouver le paquet lamp-serveur^
    E: Impossible de trouver la tâche « lamp-serveur »
    E: Impossible de trouver de paquet correspondant à l'expression rationnelle « lamp-serveur^ »

    RépondreSupprimer
  2. Vous avez quelle version de ubuntu ?
    Faites :
    sudo apt-get update
    sudo apt-get install aptitude
    sudo aptitude safe-upgrade

    Ensuite réessayez.

    RépondreSupprimer
    Réponses
    1. Bonjour
      Avant tout je vous remercie pour le tuto, mais je l'ai suivi installation et configuration sans probleme. Merci de m'aider
      mais quand je lance bearerbox -v 0 kannel.conf
      resultat:
      bearerbox: Symbol `sqlite3_version' has different size in shared object, consider re-linking
      2014-01-08 12:35:16 [13816] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
      2014-01-08 12:35:16 [13816] [0] WARNING: DLR: using default 'internal' for storage type.
      2014-01-08 12:35:16 [13816] [0] INFO: DLR using storage type: internal
      2014-01-08 12:35:16 [13816] [0] DEBUG: Kannel bearerbox version `1.4.3'.
      Build `Nov 24 2011 08:02:18', compiler `4.6.2'.
      System Linux, release 3.8.0-19-generic, version #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013, machine i686.
      Hostname sambe-ECS-945G, IP 127.0.1.1.
      Libxml version 2.7.8.
      Using OpenSSL 1.0.0e 6 Sep 2011.
      Compiled with MySQL 5.5.17, using MySQL 5.5.34.
      Using SQLite 3.7.9.
      Using native malloc.

      2014-01-08 12:35:16 [13816] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
      2014-01-08 12:35:16 [13816] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
      2014-01-08 12:35:16 [13816] [0] INFO: HTTP: Opening server at port 13000.
      2014-01-08 12:35:16 [13816] [0] ERROR: bind failed
      2014-01-08 12:35:16 [13816] [0] ERROR: System error 98: Address already in use
      2014-01-08 12:35:16 [13816] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
      2014-01-08 12:35:16 [13816] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 13816.
      2014-01-08 12:35:16 [13816] [0] DEBUG: starting smsbox connection module
      2014-01-08 12:35:16 [13816] [1] DEBUG: HTTP: No clients with requests, quitting.

      Supprimer
  3. jarive pas a installer kannel avec cette commende
    apt-get install kannel
    quant je le tape,on me signal une erreur:

    E: Impossible de trouver le paquet kannel

    RépondreSupprimer
  4. avez-vous correctement suivi les étapes ?
    Si oui
    Essayez alors de telecharger Kannel directement avec le lien
    http://www.kannel.org/download.shtml
    Ensuite tu le décompresse et tu l'installe.

    RépondreSupprimer
  5. bonjour a vous!
    Merci pour le tuto qui est bien expliqué. sauf que moi j'ai problème j'ai respecté toutes les instructions mais quand je tape bearbox -v 0 kannel.conf ya une erreure: bearbox : commande introuvable

    SVP aidez moi!!!

    RépondreSupprimer
  6. Bonsoir a vous! merci de m'aider. après les configurations qui s'imposent j'ai lancé kannel et j'ai des erreures:
    INFO: Kannel bearerbox II version 1.4.3 starting
    2011-08-19 19:25:48 [4927] [5] ERROR: bind failed
    2011-08-19 19:25:48 [4927] [5] ERROR: System error 98: Address already in use
    2011-08-19 19:25:48 [4927] [5] PANIC: Could not open smsbox port 13002
    2011-08-19 19:25:48 [4927] [5] PANIC: bearerbox(gw_panic+0xcd) [0x80d469d]
    2011-08-19 19:25:48 [4927] [5] PANIC: bearerbox() [0x805a038]
    2011-08-19 19:25:48 [4927] [5] PANIC: bearerbox() [0x80cb9ed]
    2011-08-19 19:25:48 [4927] [5] PANIC: /lib/libpthread.so.0(+0x5cc9) [0x6efcc9]
    2011-08-19 19:25:48 [4927] [5] PANIC: /lib/libc.so.6(clone+0x5e) [0x9c56ae]

    RépondreSupprimer
  7. Bonjour,
    Lorsque vous lisez le message, vous voyez à la ligne 4 "Address already in use".
    Il faut tuyer tous les processus en cours (concernant Kannel uniquement)
    Pour cela, faites :
    ps -edf | grep kannel

    Ensuite, regardez les numéros de processus (le premier chiffre après le nom du processus. Exemple kannel 1988 2 ....)
    Pour chaque numéro de processus, faites :
    kill -9 Numéro du processus

    Exemple :
    Kill -9 1988

    RépondreSupprimer
  8. Bonjour,
    merci votre aide elle très précieuse pour moi.
    J'ai tenu compte de toutes les possibilités que vous aviez proposer mais je rencontre toujours des problèmes. voici le message d'erreur:

    root@kafena:/etc/kannel# bearerbox -v O kannel.conf
    2011-10-11 12:43:13 [3026] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2011-10-11 12:43:13 [3026] [0] ERROR: Group does not contain variable 'group'.
    2011-10-11 12:43:13 [3026] [0] ERROR: Error found on line 14 of file `kannel.conf'.
    2011-10-11 12:43:13 [3026] [0] PANIC: Couldn't read configuration from `kannel.conf'.
    2011-10-11 12:43:13 [3026] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d469d]
    2011-10-11 12:43:13 [3026] [0] PANIC: bearerbox(main+0xdc8) [0x8055fc8]
    2011-10-11 12:43:13 [3026] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0xd94e37]



    SVP aidez moi!

    RépondreSupprimer
  9. Salut regarde ton fichier de config (ligne 14) entre 2 groupes tu dois avoir une seule ligne vide. La prochaine devra commencer par group=xxxx

    RépondreSupprimer
  10. Je vous remercie pour le tutoriel .djadeuf

    RépondreSupprimer
  11. Bonjour et félicitations pour ce travail. Avez-vous essayé de faire des requêtes ussd avec kannel ?

    RépondreSupprimer
  12. non, pas encore, mais vous pouvez aller voir sur memoireonline.com

    RépondreSupprimer
  13. bonsoir voici mon erreur !!!

    root@kafena:/etc/kannel# bearerbox -v O kannel.conf
    2011-10-11 12:43:13 [3026] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2011-10-11 12:43:13 [3026] [0] ERROR: Group does not contain variable 'group'.
    2011-10-11 12:43:13 [3026] [0] ERROR: Error found on line 14 of file `kannel.conf'.
    2011-10-11 12:43:13 [3026] [0] PANIC: Couldn't read configuration from `kannel.conf'.
    2011-10-11 12:43:13 [3026] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d469d]
    2011-10-11 12:43:13 [3026] [0] PANIC: bearerbox(main+0xdc8) [0x8055fc8]
    2011-10-11 12:43:13 [3026] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0xd94e37]

    RépondreSupprimer
  14. bonsoir voici mon erreur !!!
    oot@ubuntu:/etc/kannel# bearerbox -v 0 kannel.conf
    2012-05-26 20:24:51 [6548] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2012-05-26 20:24:51 [6548] [0] ERROR: Group does not contain variable 'group'.
    2012-05-26 20:24:51 [6548] [0] ERROR: Error found on line 6 of file `kannel.conf'.
    2012-05-26 20:24:51 [6548] [0] PANIC: Couldn't read configuration from `kannel.conf'.
    2012-05-26 20:24:51 [6548] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80caf22]
    2012-05-26 20:24:51 [6548] [0] PANIC: bearerbox(main+0xe83) [0x80525a3]
    2012-05-26 20:24:51 [6548] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x276113]
    2012-05-26 20:24:51 [6548] [0] PANIC: bearerbox() [0x8052651]

    RépondreSupprimer
    Réponses
    1. Ton fichier kannel.conf a apparemment une erreur à la ligne 6. Poste le contenu du fichier sur le blog.

      Supprimer
  15. l'installation se fait sur une distribution linux?

    RépondreSupprimer
  16. s'il vous plait comment faire pour envoyer les sms alor?

    RépondreSupprimer
    Réponses
    1. Que voulez-vous dire exactement ?
      Voulez-vous configurer un service ? Suivez les étapes du tutoriel.

      Supprimer
  17. Que voulez-vous dire exactement ?
    Voulez-vous configurer un service ? Suivez les étapes du tutoriel.

    RépondreSupprimer
  18. Bonjour j'ai suivi votre tutoriel pour installer Kannel. Jusque là tout marche nikel. Le bearerbox se lance avec succes mais lorsque je lance le smsbox j'obtiens ce message:

    2012-08-17 17:04:55 [23148] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2012-08-17 17:04:55 [23148] [0] DEBUG: Kannel smsbox version `1.4.3'.
    Build `Jun 15 2010 10:41:45', compiler `4.4.4'.
    System Linux, release 2.6.35-32-generic, version #67-Ubuntu SMP Mon Mar 5 19:35:26 UTC 2012, machine i686.
    Hostname ubuntu, IP 192.168.0.31.
    Libxml version 2.7.7.
    Using OpenSSL 0.9.8o 01 Jun 2010.
    Compiled with MySQL 5.1.47, using MySQL 5.1.61.
    Using SQLite 3.6.23.1.
    Using native malloc.

    2012-08-17 17:04:55 [23148] [0] INFO: Starting to log to file /var/log/kannel/smsbox.log level 0
    2012-08-17 17:04:55 [23148] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'.
    2012-08-17 17:04:55 [23148] [0] INFO: Service global sender set as '778315214'
    2012-08-17 17:04:55 [23148] [0] INFO: Logging accesses to '/var/log/kannel/smsbox-access.log'.
    2012-08-17 17:04:55 [23148] [0] INFO: Started access logfile `/var/log/kannel/smsbox-access.log'.
    2012-08-17 17:04:55 [23148] [0] INFO: HTTP: Opening server at port 14000.
    2012-08-17 17:04:55 [23148] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
    2012-08-17 17:04:55 [23148] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 23148.
    2012-08-17 17:04:55 [23148] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
    2012-08-17 17:04:55 [23148] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 23148.
    2012-08-17 17:04:55 [23148] [0] INFO: Set up send sms service at port 14000
    2012-08-17 17:04:55 [23148] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
    2012-08-17 17:04:55 [23148] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 23148.
    2012-08-17 17:04:55 [23148] [0] DEBUG: ----------------------------------------------
    2012-08-17 17:04:55 [23148] [0] DEBUG: Kannel smsbox version 1.4.3 starting
    2012-08-17 17:04:55 [23148] [0] DEBUG: dumping group (sendsms-user):
    2012-08-17 17:04:55 [23148] [0] DEBUG: = <« *.*.*.* »>
    2012-08-17 17:04:55 [23148] [0] DEBUG: =
    2012-08-17 17:04:55 [23148] [0] DEBUG: =
    2012-08-17 17:04:55 [23148] [0] DEBUG: =
    2012-08-17 17:04:55 [23148] [0] DEBUG: =
    2012-08-17 17:04:55 [23148] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
    2012-08-17 17:04:55 [23148] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 23148.
    2012-08-17 17:04:55 [23148] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
    2012-08-17 17:04:55 [23148] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 23148.
    2012-08-17 17:04:55 [23148] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
    2012-08-17 17:04:55 [23148] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 23148.
    2012-08-17 17:04:55 [23148] [0] INFO: Connected to bearerbox at localhost port 13002.
    2012-08-17 17:04:55 [23148] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
    2012-08-17 17:04:55 [23148] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 23148.

    Mon probleme est que lorque j'envoie un message avec mon téléphone, je ne vois rien sur le terminal ou j'ai lancé le smsbox.

    RépondreSupprimer
  19. Salu,
    je recois le message envoiyer depuis le telephone sur le terminal smsbox, mais je recois pas de reponse sur mon telephone, je ne sais pas pourquoi, aidez moi
    j'ai suivi la tuto ala lettre voila la config
    #Sms Service test
    group = sms-service
    accepted-smsc = Huawei-E1552
    keyword = test
    catch-all = true
    text="Configuration de kannel reussie. Bravo !!!"

    #Sendsms
    group = sendsms-user
    username = kannel
    password = kannel
    forced-smsc = huawei-E1552
    user-allow-ip = « *.*.*.* »

    RépondreSupprimer
  20. Salut. Regarde bien la console sur laquelle est lancé le smsbox, affiche-moi les trois dernières lignes après réception de messages.

    RépondreSupprimer
  21. voici le message que je recois:
    2012-10-18 11:56:11 [4219] [0] INFO: Starting to log to file /var/log/kannel/smsbox.log level 1
    2012-10-18 11:56:11 [4219] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `1'.
    2012-10-18 11:56:11 [4219] [0] INFO: Service global sender set as '+23797550002'
    2012-10-18 11:56:11 [4219] [0] INFO: Logging accesses to '/var/log/kannel/access.log'.
    2012-10-18 11:56:11 [4219] [0] INFO: Started access logfile `/var/log/kannel/access.log'.
    2012-10-18 11:56:11 [4219] [0] INFO: HTTP: Opening server at port 13131.
    2012-10-18 11:56:11 [4219] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
    2012-10-18 11:56:11 [4219] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
    2012-10-18 11:56:11 [4219] [0] INFO: Set up send sms service at port 13131
    2012-10-18 11:56:11 [4219] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
    2012-10-18 11:56:11 [4219] [0] DEBUG: ----------------------------------------------
    2012-10-18 11:56:11 [4219] [0] DEBUG: Kannel smsbox version svn-r starting
    2012-10-18 11:56:11 [4219] [0] DEBUG: dumping group (sendsms-user):
    2012-10-18 11:56:11 [4219] [0] DEBUG: =
    2012-10-18 11:56:11 [4219] [0] DEBUG: =
    2012-10-18 11:56:11 [4219] [0] DEBUG: = <10>
    2012-10-18 11:56:11 [4219] [0] DEBUG: =
    2012-10-18 11:56:11 [4219] [0] DEBUG: =
    2012-10-18 11:56:11 [4219] [0] DEBUG: = <127.0.0.1>
    2012-10-18 11:56:11 [4219] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
    2012-10-18 11:56:11 [4219] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
    2012-10-18 11:56:11 [4219] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
    2012-10-18 11:56:11 [4219] [0] DEBUG: Connecting to <127.0.0.1>
    2012-10-18 11:56:11 [4219] [0] INFO: Connected to bearerbox at localhost port 13001.
    2012-10-18 11:56:11 [4219] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
    2012-10-18 11:56:11 [4219] [0] ERROR: Connection closed by the bearerbox.
    2012-10-18 11:56:11 [4219] [0] ERROR: Bearerbox is gone, restarting
    2012-10-18 11:56:11 [4219] [0] INFO: Received (and handled?) 0 requests in 0 seconds (-nan per second)
    2012-10-18 11:56:11 [4219] [0] INFO: Kannel smsbox terminating.
    2012-10-18 11:56:11 [4219] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 4219.
    2012-10-18 11:56:11 [4219] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 4219.
    2012-10-18 11:56:11 [4219] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 4219.
    2012-10-18 11:56:11 [4219] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 4219.
    2012-10-18 11:56:11 [4219] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 4219.
    2012-10-18 11:56:11 [4219] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) terminates.
    2012-10-18 11:56:11 [4219] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate
    2012-10-18 11:56:11 [4219] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 4219.
    2012-10-18 11:56:11 [4219] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates.
    2012-10-18 11:56:11 [4219] [0] DEBUG: Waiting for 3 (gw/smsbox.c:sendsms_thread) to terminate
    2012-10-18 11:56:11 [4219] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 4219.

    RépondreSupprimer
  22. Aide moi jariv pas a installer lamp-server jai le mème message d'erreur que le premier intervenant la. jutilise une distribution debian

    RépondreSupprimer
    Réponses
    1. J’espère que tu n'as pas oublié l'accent circonflexe à la fin ?!
      Sinon fais une mise a jour ....

      Supprimer
  23. J’espère que tu n'as pas oublié l'accent circonflexe à la fin ?!
    Sinon fais une mise a jour ....

    RépondreSupprimer
  24. slt j parvien a envoyer des sms avec kannel mais je parviens pas à recevoir les message ,comment faire ?

    RépondreSupprimer
    Réponses
    1. Precise le probleme, que vois rtu sur ton smsbox ?

      Supprimer
    2. Bonsoir DjolofTek moi j'utilise un autre modem Huwai-E153u-1 est-ce sa va pas passer? et voici le message d'erreur que je recois lorsque je lance bearerbox -v 0 kannel.conf
      2013-03-12 23:03:01 [18813] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
      2013-03-12 23:03:01 [18813] [0] WARNING: DLR: using default 'internal' for storage type.
      2013-03-12 23:03:01 [18813] [0] INFO: DLR using storage type: internal
      2013-03-12 23:03:01 [18813] [0] DEBUG: Kannel bearerbox version `1.4.3'.
      Build `Mar 12 2013 18:45:53', compiler `4.4.3'.
      System Linux, release 2.6.32-21-generic, version #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010, machine i686.
      Hostname sam-laptop, IP 127.0.1.1.
      Libxml version 2.7.6.
      Using native malloc.

      2013-03-12 23:03:01 [18813] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
      2013-03-12 23:03:01 [18813] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
      2013-03-12 23:03:01 [18813] [0] INFO: SSL not supported, no SSL initialization done.
      2013-03-12 23:03:01 [18813] [0] INFO: HTTP: Opening server at port 13000.
      2013-03-12 23:03:01 [18813] [0] ERROR: bind failed
      2013-03-12 23:03:01 [18813] [0] ERROR: System error 98: Address already in use
      2013-03-12 23:03:01 [18813] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
      2013-03-12 23:03:01 [18813] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 18813.
      2013-03-12 23:03:01 [18813] [1] DEBUG: HTTP: No clients with requests, quitting.
      2013-03-12 23:03:01 [18813] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) terminates.
      2013-03-12 23:03:01 [18813] [0] DEBUG: starting smsbox connection module
      2013-03-12 23:03:01 [18813] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
      2013-03-12 23:03:01 [18813] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsboxes)
      2013-03-12 23:03:01 [18813] [2] DEBUG: Thread 2 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 18813.
      2013-03-12 23:03:01 [18813] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run)
      2013-03-12 23:03:01 [18813] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 18813.
      2013-03-12 23:03:01 [18813] [3] ERROR: bind failed
      2013-03-12 23:03:01 [18813] [3] ERROR: System error 98: Address already in use
      2013-03-12 23:03:01 [18813] [3] PANIC: Could not open smsbox port 13002
      2013-03-12 23:03:01 [18813] [0] INFO: Set SMS resend frequency to 60 seconds.
      2013-03-12 23:03:01 [18813] [0] INFO: SMS resend retry set to unlimited.
      2013-03-12 23:03:01 [18813] [0] DEBUG: smsbox MO concatenated message handling enabled
      2013-03-12 23:03:01 [18813] [3] PANIC: bearerbox(gw_panic+0xcd) [0x80cdb5d]
      2013-03-12 23:03:01 [18813] [3] PANIC: bearerbox() [0x80585c8]
      2013-03-12 23:03:01 [18813] [3] PANIC: bearerbox() [0x80c446d]
      2013-03-12 23:03:01 [18813] [0] INFO: DLR rerouting for smsc id disabled.
      2013-03-12 23:03:01 [18813] [3] PANIC: /lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0x39696e]
      2013-03-12 23:03:01 [18813] [3] PANIC: /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xc7fa4e]
      Qu'est-ce que je dois faire?

      Supprimer
    3. Avec n'importe quel modem huawei cela doit marcher. Tu utilises déjà le port !!!

      Supprimer
  25. c'est toujours moi qui utilise le modem Huwai E153u-1 svp aider a trouver le contenu que je mettrai dans mon fichier 62-option-modem-modeswitch.rules du faite que j'utilise un modem autre que huwai E1552 svp!!!
    SUBSYSTEM=="usb",
    ATTR{idVendor}=="12d1",
    ATTR{idProduct}=="1446",
    RUN+="/lib/udev/modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

    RépondreSupprimer
  26. petite rectification ce plutôt le modem HUAWEI E-153

    RépondreSupprimer
  27. salut à tous aidez moi svp j'ai bien suivi le tuto mais lorsque j'execute la commande bearerbox -v 0 kannel.conf voici l'erreur qui s'affiche c'est du a qoui?
    2013-03-13 00:34:43 [6935] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2013-03-13 00:34:43 [6935] [0] WARNING: DLR: using default 'internal' for storage type.
    2013-03-13 00:34:43 [6935] [0] INFO: DLR using storage type: internal
    2013-03-13 00:34:43 [6935] [0] DEBUG: Kannel bearerbox version `1.4.3'.
    Build `Mar 12 2013 18:45:53', compiler `4.4.3'.
    System Linux, release 2.6.32-21-generic, version #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010, machine i686.
    Hostname sam-laptop, IP 127.0.1.1.
    Libxml version 2.7.6.
    Using native malloc.

    2013-03-13 00:34:43 [6935] [0] ERROR: Couldn't open logfile `/var/log/kannel/bearerbox.log'.
    2013-03-13 00:34:43 [6935] [0] ERROR: System error 13: Permission denied
    2013-03-13 00:34:43 [6935] [0] ERROR: Couldn't open logfile `/var/log/kannel/bearerbox-access.log'.
    2013-03-13 00:34:43 [6935] [0] ERROR: System error 13: Permission denied
    2013-03-13 00:34:43 [6935] [0] INFO: SSL not supported, no SSL initialization done.
    2013-03-13 00:34:43 [6935] [0] INFO: HTTP: Opening server at port 13000.
    2013-03-13 00:34:43 [6935] [0] ERROR: bind failed
    2013-03-13 00:34:43 [6935] [0] ERROR: System error 98: Address already in use
    2013-03-13 00:34:43 [6935] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin_run)
    2013-03-13 00:34:43 [6935] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 6935.
    2013-03-13 00:34:43 [6935] [0] DEBUG: starting smsbox connection module
    2013-03-13 00:34:43 [6935] [1] DEBUG: HTTP: No clients with requests, quitting.
    2013-03-13 00:34:43 [6935] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) terminates.
    2013-03-13 00:34:43 [6935] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
    2013-03-13 00:34:43 [6935] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_smsboxes)
    2013-03-13 00:34:43 [6935] [2] DEBUG: Thread 2 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 6935.
    2013-03-13 00:34:43 [6935] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_run)
    2013-03-13 00:34:43 [6935] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 6935.
    2013-03-13 00:34:43 [6935] [3] ERROR: bind failed
    2013-03-13 00:34:43 [6935] [3] ERROR: System error 98: Address already in use
    2013-03-13 00:34:43 [6935] [3] PANIC: Could not open smsbox port 13002
    2013-03-13 00:34:43 [6935] [0] INFO: Set SMS resend frequency to 60 seconds.
    2013-03-13 00:34:43 [6935] [0] INFO: SMS resend retry set to unlimited.
    2013-03-13 00:34:43 [6935] [0] DEBUG: smsbox MO concatenated message handling enabled
    2013-03-13 00:34:43 [6935] [3] PANIC: bearerbox(gw_panic+0xcd) [0x80cdb5d]
    2013-03-13 00:34:43 [6935] [3] PANIC: bearerbox() [0x80585c8]
    2013-03-13 00:34:43 [6935] [0] INFO: DLR rerouting for smsc id disabled.
    2013-03-13 00:34:43 [6935] [3] PANIC: bearerbox() [0x80c446d]
    2013-03-13 00:34:43 [6935] [3] PANIC: /lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0x5bc96e]

    RépondreSupprimer
    Réponses
    1. Lol. Alors tu vois :
      2013-03-13 00:34:43 [6935] [0] ERROR: System error 98: Address already in use
      Tu dois remonter et lire le commentaire concernant cela, ensuite, fais signe. c'est le message du 24 août 2011 05:39.

      Supprimer
  28. question de curiosité le serveur lamp qu'on install à partir de la commande apt-get install lamp reste dans quel dossier sur ubuntu? et quel est la commande dois-je utiliser pour demarrer mon wamp

    RépondreSupprimer
  29. Boujour à tous mon bearerbox et mon smsbox marche bien lorsque je le démarre mais lorsque je send le mot clé test à partir de mon portable le message arrive bien sur mon terminale où je lancer le smsbox mais sur le terminal où je lancer mon bearerbox voici ce qui le message qui s'affiche c'est dû à quoi?
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- +CMT: ,23
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- 0791428399906900240C9142836909060900003140601103950004F4F29C0E
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: received message from SMSC: +243899099600
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: Numeric sender (international) <+243896906090>
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: User data length read as (4)
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: Udh decoding done len=4 udhi=0 udhlen=0 udh=''
    2013-04-06 11:31:05 [1764] [14] DEBUG: send_msg: sending msg to box: <127.0.0.1>
    2013-04-06 11:31:05 [1764] [14] DEBUG: boxc_sender: sent message to <127.0.0.1>
    2013-04-06 11:31:05 [1764] [13] DEBUG: boxc_receiver: sms received
    2013-04-06 11:31:05 [1764] [13] DEBUG: send_msg: sending msg to box: <127.0.0.1>
    2013-04-06 11:31:05 [1764] [13] DEBUG: boxc_receiver: got ack
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: --> AT^M
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- OK
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: --> AT+CPMS?^M
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- +CPMS: "ME",0,10,"ME",0,10,"ME",0,10
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- OK
    2013-04-06 11:31:06 [1764] [6] ERROR: AT2[Samsung GT-B7510]: Error encoding PDU!
    2013-04-06 11:31:06 [1764] [6] ERROR: System error 2: No such file or directory
    2013-04-06 11:31:06 [1764] [13] DEBUG: boxc_receiver: heartbeat with load value 0 received

    RépondreSupprimer
    Réponses
    1. c'est du qu reception de message tout d'abord la reception sur le bearerbox puis le contenue de message se voit sur le smsbox ,le smsbox est une transaction

      Supprimer
  30. je ne comprends pas ta réponses rend sa plus explicite sa pourrait m'aider svp

    RépondreSupprimer
  31. bonjour : le bearerbox c'est le noyau du kannel dons lorsque vous avez envoyer un message vers kannel le bearerbox va recevoir le message en premier puis ransfert le messages vers le smsbox est serra afficher en mode text vous avez compris

    RépondreSupprimer
  32. thunder c'est vraiment mais sur le smsbox le message s'affiche bien en mode texte mais sur le bearerbox cette erreur s'affiche:
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- +CMT: ,23
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- 0791428399906900240C9142836909060900003140601103950004F4F29C0E
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: received message from SMSC: +243899099600
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: Numeric sender (international) <+243896906090>
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: User data length read as (4)
    2013-04-06 11:31:05 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: Udh decoding done len=4 udhi=0 udhlen=0 udh=''
    2013-04-06 11:31:05 [1764] [14] DEBUG: send_msg: sending msg to box: <127.0.0.1>
    2013-04-06 11:31:05 [1764] [14] DEBUG: boxc_sender: sent message to <127.0.0.1>
    2013-04-06 11:31:05 [1764] [13] DEBUG: boxc_receiver: sms received
    2013-04-06 11:31:05 [1764] [13] DEBUG: send_msg: sending msg to box: <127.0.0.1>
    2013-04-06 11:31:05 [1764] [13] DEBUG: boxc_receiver: got ack
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: --> AT^M
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- OK
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: --> AT+CPMS?^M
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- +CPMS: "ME",0,10,"ME",0,10,"ME",0,10
    2013-04-06 11:31:06 [1764] [6] DEBUG: AT2[Samsung GT-B7510]: <-- OK
    2013-04-06 11:31:06 [1764] [6] ERROR: AT2[Samsung GT-B7510]: Error encoding PDU!
    2013-04-06 11:31:06 [1764] [6] ERROR: System error 2: No such file or directory
    2013-04-06 11:31:06 [1764] [13] DEBUG: boxc_receiver: heartbeat with load value 0 received
    je veux savoir si c'est dû à quoi?

    RépondreSupprimer
  33. salut. vous pouvez affiche la partie smsc du fichier de configuration (kannel.conf)

    RépondreSupprimer
  34. pardons afficher ton fichier de configuration

    RépondreSupprimer
  35. bonjour Djolof tek
    Tout d'abord je vous felicite pour le brillant travai que vous avez abattu.
    En effet j'ai suivi e tout le travail que vous avez fait mais malheureusement j'ai rencontré quelques difficultés.
    Quand j'ai lancé la commande:

    bearerbox -v 0 kannel.conf
    voici l'erreure:

    bearerbox -v 0 kannel.conf
    2017-08-01 15:31:26 [3397] [0] ERROR: Error while gw_gethostbyname occurs.
    2017-08-01 15:31:26 [3397] [0] ERROR: System error 1: Operation not permitted
    2017-08-01 15:31:26 [3397] [0] ERROR: Can't find out official hostname for this host, using `aziz-3115-AEA16450GR1' instead.
    2017-08-01 15:31:26 [3397] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2017-08-01 15:31:26 [3397] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2017-08-01 15:31:26 [3397] [0] ERROR: System error 2: No such file or directory
    2017-08-01 15:31:26 [3397] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2017-08-01 15:31:26 [3397] [0] PANIC: bearerbox(gw_panic+0x17b) [0x47fdab]
    2017-08-01 15:31:26 [3397] [0] PANIC: bearerbox(cfg_read+0x5c6) [0x46ade6]
    2017-08-01 15:31:26 [3397] [0] PANIC: bearerbox(main+0xc4) [0x40dc64]
    2017-08-01 15:31:26 [3397] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f9d2e35bf45]
    2017-08-01 15:31:26 [3397] [0] PANIC: bearerbox() [0x40e9d5]

    RépondreSupprimer

Enregistrer un commentaire

Posts les plus consultés de ce blog

Configuration de Kannel

Voir la première étape La configuration se fera en trois sous-étapes : 1. Configuration du modem Branchez votre modem Huawei 3G (Clé Orange), ouvrez le terminal et tapez : sudo su puis tapez votre mot de passe. Ensuite, tapez apt-get install usb-modeswitch Toujours sur le terminal; tapez : gedit /etc/udev/rules.d/62-option-modem-modeswitch.rules Attention : Ne fermez pas le terminal, nous n'avons pas terminé. Copiez, sur le fichier ouvert; le contenu du fichier disponible ici  Enregistrez et fermez le fichier Continuons toujours sur le terminal en tapant : minicom -s Allez à la trosième ligne qui est : Serial port setup ou Appuyez sur la touche "Entrer"   et tapez a Effacez tout ce qui est après /dev/tty et tapez  USB0 Vous devez obtenir /dev/ttyUSB0 Tapez sur la touche "Entrer" deux (2) fois  Allez à la ligne six(6) qui est : Save setup as dfl ou faites "Entrer" deux (2) fois.. Ensuite, ...

Kannel.conf version base de donnees

#Core Kannel Configuration Section group = core admin-port = 13000 admin-password = kannel status-password = kannel admin-allow-ip = "*.*.*.*" wapbox-port = 13003 smsbox-port = 13002 log-file = "/var/log/kannel/bearerbox.log" access-log = "/var/log/kannel/bearerbox-access.log" log-level = 1 unified-prefix = « 00221,+221,00′′ #Wapbox group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" #Smsbox group = smsbox bearerbox-host = localhost sendsms-port = 14000 sendsms-url = "/cgi-bin/sendsms" sendsms-chars = "0123456789+-" global-sender = 14000 log-level = 0 log-file = "/var/log/kannel/smsbox.log" access-log = "/var/log/kannel/smsbox-access.log" #Smsc group = smsc smsc = at smsc-id = Huawei-E1552 modemtype = huawei_e1552 device = /dev/ttyUSB0 host = localhost sms-center = +221776380010 my-number = +2217...