Accéder au contenu principal

kannel.conf



#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 = +221777361804
keepalive = 10
speed = 9600
sim-buffering = true

#Modems
group = modems
id = huawei_e1552
name = "huawei E1552"
detect-string = "Huawei"
init-string ="AT+CNMI=2,1,2,2,0"
message-storage = "ME"
speed = 9600

#Sms Service Informations
group = sms-service
accepted-smsc = Huawei-E1552
keyword = info
catch-all = true
get-url = http://localhost/info.php?t=%t&q=%q&a=%a

#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 = « *.*.*.* » 

Commentaires

  1. Bonjour g un problem avec mon fichier kannel.conf kan je lance la commande bearerbox -v 0 kannel.conf sa maffiche sa ==>>>

    2012-07-08 13:28:34 [2832] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2012-07-08 13:28:34 [2832] [0] ERROR: Group does not contain variable 'group'.
    2012-07-08 13:28:34 [2832] [0] ERROR: Error found on line 6 of file `kannel.conf'.
    2012-07-08 13:28:34 [2832] [0] PANIC: Couldn't read configuration from `kannel.conf'.
    2012-07-08 13:28:34 [2832] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d469d]
    2012-07-08 13:28:34 [2832] [0] PANIC: bearerbox(main+0xdc8) [0x8055fc8]
    2012-07-08 13:28:34 [2832] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xe7) [0x609ce7]
    2012-07-08 13:28:34 [2832] [0] PANIC: bearerbox() [0x80544c1]

    RépondreSupprimer
    Réponses
    1. bonjour, j'ai aussi un grand probleme. quand je la commande bearerbox - v 0 kannel.conf
      voici ce qui s'affiche

      Supprimer
    2. bonjour, j'arrive pas à copier l'autre fichier. Je fait comment

      Supprimer
  2. Bonjour, j'ai aussi le même problème. quand je lance la commande:
    bearerbox /etc/kannel/kannel.conf

    voici ce qui s'affiche:

    2012-07-08 15:11:06 [4233] [0] INFO: Debug_lvl = -1, log_file = , log_lvl = 0
    2012-07-08 15:11:06 [4233] [0] ERROR: Group does not contain variable 'group'.
    2012-07-08 15:11:06 [4233] [0] ERROR: Error found on line 6 of file `/etc/kannel/kannel.conf'.
    2012-07-08 15:11:06 [4233] [0] PANIC: Couldn't read configuration from `/etc/kannel/kannel.conf'.
    2012-07-08 15:11:06 [4233] [0] PANIC: bearerbox(gw_panic+0x17b) [0x47fdab]
    2012-07-08 15:11:06 [4233] [0] PANIC: bearerbox(main+0xd74) [0x40e914]
    2012-07-08 15:11:06 [4233] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f97205b876d]
    2012-07-08 15:11:06 [4233] [0] PANIC: bearerbox() [0x40e9d5]

    ###########################################################################

    Aides nous stp!!!

    RépondreSupprimer
  3. Pour ceux qui ont des soucis avec le fichier, je l'ai modifie et apres test, il marche tres bien. Bon courage.

    RépondreSupprimer
  4. Bonjour g un problem avec mon fichier kannel.conf kan je lance la commande bearerbox -v 0 kannel.conf sa maffiche sa ==>>>

    2013-02-24 04:13:20 [4731] [0] INFO: ----------------------------------------
    2013-02-24 04:13:20 [4731] [0] INFO: Kannel bearerbox II version 1.4.3 starting
    2013-02-24 04:13:20 [4731] [0] INFO: MAIN: Start-up done, entering mainloop
    2013-02-24 04:13:20 [4731] [0] DEBUG: AT2[Huawei-E1752]: start called
    2013-02-24 04:13:20 [4731] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 4731.
    2013-02-24 04:13:20 [4731] [1] DEBUG: HTTP: No clients with requests, quitting.
    2013-02-24 04:13:20 [4731] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) terminates.
    2013-02-24 04:13:20 [4731] [7] DEBUG: Thread 7 (gw/bb_boxc.c:wapboxc_run) maps to pid 4731.
    2013-02-24 04:13:20 [4731] [7] ERROR: bind failed
    2013-02-24 04:13:20 [4731] [7] ERROR: System error 98: Address already in use
    2013-02-24 04:13:20 [4731] [7] PANIC: Could not open wapbox port 13003
    2013-02-24 04:13:20 [4731] [7] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2013-02-24 04:13:20 [4731] [7] PANIC: bearerbox() [0x8055bb0]
    2013-02-24 04:13:20 [4731] [7] PANIC: bearerbox() [0x80c8b3b]
    2013-02-24 04:13:20 [4731] [7] PANIC: /lib/i386-linux-gnu/libpthread.so.0(+0x6d4c) [0x4bfd4c]
    2013-02-24 04:13:20 [4731] [7] PANIC: /lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0x103fd3e]

    RépondreSupprimer
    Réponses
    1. Bonjour,
      Regardez les 4 derniers commentaires sur la page
      http://djoloftek.blogspot.com/2011/05/configuration-de-kannel.html?showComment=1361788722435#c6674078534302519645

      Supprimer
    2. Vous avez le message "address already in use". Alors faaites le necessaire pour tuer les processus kannel en cours.

      Supprimer
  5. Bonjour pouvez m'aider quand je redemarre les services de kannel il m'affiche ca

    2014-02-28 12:52:26 [17703] [0] ERROR: Group does not contain variable 'group'.
    2014-02-28 12:52:26 [17703] [0] ERROR: Error found on line 6 of file `/etc/kannel/kannel.conf'.
    2014-02-28 12:52:26 [17703] [0] PANIC: Couldn't read configuration from `/etc/kannel/kannel.conf'.
    2014-02-28 12:52:26 [17703] [0] PANIC: /usr/local/sbin/smsbox(gw_panic+0xd2) [0x8086eb2]
    2014-02-28 12:52:26 [17703] [0] PANIC: /usr/local/sbin/smsbox(main+0x1684) [0x80531d4]
    2014-02-28 12:52:26 [17703] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb74704d3]
    2014-02-28 12:52:26 [17703] [0] PANIC: /usr/local/sbin/smsbox() [0x805351d]


    aidez moi a le resoudre svp!!!!!!

    RépondreSupprimer
    Réponses
    1. Si vous ne vous inscrivez pas, je ne peux vous répondre plus rapidement. Car je n'ai ni votre mail, ni autre chose pour vous contacter.

      Supprimer
    2. aidez moi
      2014-07-18 06:08:19 [11493] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
      2014-07-18 06:08:19 [11493] [0] ERROR: fopen failed: couldn't open `kannel.conf'
      2014-07-18 06:08:19 [11493] [0] ERROR: System error 2: No such file or directory
      2014-07-18 06:08:19 [11493] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
      2014-07-18 06:08:19 [11493] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
      2014-07-18 06:08:19 [11493] [0] PANIC: bearerbox(cfg_read+0x6fa) [0x80ba0aa]
      2014-07-18 06:08:19 [11493] [0] PANIC: bearerbox(main+0xd1) [0x8052e61]
      2014-07-18 06:08:19 [11493] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6d9c4d3]
      2014-07-18 06:08:19 [11493] [0] PANIC: bearerbox() [0x8053dc9]

      Supprimer
  6. salut [)3\/73X es ce que vous pouvez me send votre numero svp j'ai vraiment besoin que vous m'aidez j'ai de serieux problem avec mon kannel voici mon num +221772456868

    merci

    RépondreSupprimer
  7. bonjour j'ai configurer kannel tout fonctionne bien, j'arrive a envoyer un message de mon navigateur a mon téléphone portable, mais je n'arrive pas a envoyer depuis mon portage au serveur kannel, je ne vois rien....

    RépondreSupprimer
  8. bonjour, sus nouveau sur le forum, pourriez m'aider au nveau du fchier de configuration de kannel sur la plateforme ubuntu

    RépondreSupprimer
  9. bjr j' ai un probleme avec mon fichier de configuration,en executant la commande:bearerbox -v 1 /etc/kannel/kannel.conf voici l'erreur que j'ai reçu
    bearerbox -v 1 /etc/kannel/kannel.conf
    2015-09-22 07:36:38 [3973] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
    2015-09-22 07:36:38 [3973] [0] ERROR: Group 'sendsms-user' may not contain field 'sms-center'.
    2015-09-22 07:36:38 [3973] [0] ERROR: Error found on line 71 of file `/etc/kannel/kannel.conf'.
    2015-09-22 07:36:38 [3973] [0] PANIC: Couldn't read configuration from `/etc/kannel/kannel.conf'.
    2015-09-22 07:36:38 [3973] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2015-09-22 07:36:38 [3973] [0] PANIC: bearerbox(main+0xf58) [0x8053ce8]
    2015-09-22 07:36:38 [3973] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6d0da83]
    2015-09-22 07:36:38 [3973] [0] PANIC: bearerbox() [0x8053dc9]

    RépondreSupprimer
    Réponses
    1. slt jai actuelement le meme probleme que vous peut u m'aider si vous avez trouver la solution

      Supprimer
    2. salut j'ai le meme probleme svp si vous avez reçu la solution svp aidé moi

      Supprimer
  10. bonjour aidez moi svp j'ai un probléme lorsque je demarre bearebox -v 0 kannel.conf il me genére les messages suivant :
    2016-05-24 07:22:25 [5296] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2016-05-24 07:22:25 [5296] [0] ERROR: Group 'sms-service' may not contain field 'Keyword1'.
    2016-05-24 07:22:25 [5296] [0] ERROR: Error found on line 67 of file `/etc/kannel/kannel.conf'.
    2016-05-24 07:22:25 [5296] [0] PANIC: Couldn't read configuration from `/etc/kannel/kannel.conf'.
    2016-05-24 07:22:25 [5296] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2016-05-24 07:22:25 [5296] [0] PANIC: bearerbox(main+0xf58) [0x8053ce8]
    2016-05-24 07:22:25 [5296] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6d5ea83]
    2016-05-24 07:22:25 [5296] [0] PANIC: bearerbox() [0x8053dc9]
    comment resoudre ce probleme svp c'est urgent

    RépondreSupprimer
  11. Ce commentaire a été supprimé par l'auteur.

    RépondreSupprimer
  12. aidez moinsvp voila ce que la commmande (bearerbox -v 0 kannel.conf) me donne

    root@amoSat75:/home/amo# bearerbox -v 0 kannel.conf
    2016-12-10 09:47:33 [812] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2016-12-10 09:47:33 [812] [0] ERROR: fopen failed: couldn't open `kannel.conf'
    2016-12-10 09:47:33 [812] [0] ERROR: System error 2: No such file or directory
    2016-12-10 09:47:33 [812] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
    2016-12-10 09:47:33 [812] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
    2016-12-10 09:47:33 [812] [0] PANIC: bearerbox(cfg_read+0x6fa) [0x80ba0aa]
    2016-12-10 09:47:33 [812] [0] PANIC: bearerbox(main+0xd1) [0x8052e61]
    2016-12-10 09:47:33 [812] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6cfdaf3]
    2016-12-10 09:47:33 [812] [0] PANIC: bearerbox() [0x8053dc9]
    root@amoSat75:/home/amo#

    RépondreSupprimer
  13. Bonjour,
    J'ai copié la configuration et l'ai adapaté mais j'ai le message d'erreur suivant quand je lance bearerbox -v 1 /etc/kannel.conf :
    2017-02-26 15:12:50 [5740] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
    2017-02-26 15:12:50 [5740] [0] WARNING: DLR: using default 'internal' for storage type.
    2017-02-26 15:12:50 [5740] [0] INFO: DLR using storage type: internal
    2017-02-26 15:12:50 [5740] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'.
    2017-02-26 15:12:50 [5740] [0] INFO: Started access logfile `/var/log/kannel/bearerbox-access.log'.
    2017-02-26 15:12:50 [5740] [0] INFO: HTTP: Opening server at port 13000.
    2017-02-26 15:12:50 [5740] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).

    RépondreSupprimer
  14. bonsoir je suis nouveau dans ce forum j'ai un problème en lançant la commande gedit kannel.conf.Elle m'affiche

    (gedit:318): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

    pourriz vous m'aidez

    RépondreSupprimer
  15. salut svp aidez moi j'ai copié la configuration de kannel que vous avez donné et je l'ai adapté a ma configuration comme vous l'avez demandé et j'ai lancé la commande bearerbox -v 0 kannel.conf
    et j'ai une infinité de lingne qui ne cesse de s'arreter.
    et lorsque je lance la commande smsbox -v 0 kannel.conf j'ai ceux-ci

    root@ipnetp-HP-ProDesk-400-G4-MT:/home/ipnetp# smsbox -v o kannel.conf
    2020-03-19 18:25:37 [11711] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
    2020-03-19 18:25:37 [11711] [0] DEBUG: Kannel smsbox version `1.4.4'.
    Compiler `7.2.0'.
    System Linux, release 5.3.0-42-generic, version #34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020, machine x86_64.
    Hostname ipnetp-HP-ProDesk-400-G4-MT, IP 127.0.1.1.
    Libxml version 2.9.4.
    Using OpenSSL 1.0.2g 1 Mar 2016.
    Compiled with MySQL 5.7.20, using MySQL 5.7.29.
    Compiled with PostgreSQL 10.0.
    Using SQLite 3.20.1.
    Using hiredis API 0.13.3
    Using native malloc.

    2020-03-19 18:25:37 [11711] [0] PANIC: Trying to fetch variable `smsbox-port' in non-existing group
    2020-03-19 18:25:37 [11711] [0] PANIC: smsbox(gw_backtrace+0xe0) [0x5653b789ce50]
    2020-03-19 18:25:37 [11711] [0] PANIC: smsbox(gw_panic+0x167) [0x5653b789cfc7]
    2020-03-19 18:25:37 [11711] [0] PANIC: smsbox(cfg_get_real+0xf6) [0x5653b78a3276]
    2020-03-19 18:25:37 [11711] [0] PANIC: smsbox(cfg_get_integer+0x27) [0x5653b78a3537]
    2020-03-19 18:25:37 [11711] [0] PANIC: smsbox(main+0x1c3) [0x5653b7875343]
    2020-03-19 18:25:37 [11711] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fea6bb35b97]
    2020-03-19 18:25:37 [11711] [0] PANIC: smsbox(_start+0x2a) [0x5653b7876a8a]


    RépondreSupprimer
  16. Voici mon numéro pour tous ceux qui ont des soucis +23672638058 on est dans un monde où on doit s'entraider grâce ce fichier j'arrive à résoudre mon problème et j'aimerais aussi aider merci

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

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'instal...

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