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, ...
stp peut u m'expliquer chaque ligne de configuration....?
RépondreSupprimerSavez vous pourquo je n'ai pas cez fichier dans mon rules.d
RépondreSupprimerj'ai plutot le 70-persistents-net et 70-persistent-cd.rules
slt!aidez moi!lj'utilise une clé huawei E3131 lorque je tape bearerbo -v 0 kannel.conf jè ce sms d'erreur
RépondreSupprimer2013
-08-15 07:09:45 [2733] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
2013-08-15 07:09:45 [2733] [0] ERROR: fopen failed: couldn't open `kannel.conf'
2013-08-15 07:09:45 [2733] [0] ERROR: System error 2: No such file or directory
2013-08-15 07:09:45 [2733] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d21ed]
2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox(cfg_read+0x72b) [0x80be72b]
2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox(main+0xd1) [0x8054d61]
2013-08-15 07:09:45 [2733] [0] PANIC: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x765bd6]
2013-08-15 07:09:45 [2733] [0] PANIC: bearerbox() [0x8053f51]
slt j'ai vraiment besoin d'aide j'ai du mal avec smsbox quand je tape smsbox -v 0 kannel.conf il me renvoi ce code d'erreur
RépondreSupprimer2014-02-01 12:11:25 [3442] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
2014-02-01 12:11:25 [3442] [0] DEBUG: Kannel smsbox version `1.4.3'.
Build `Nov 24 2011 09:54:00', compiler `4.6.2'.
System Linux, release 3.2.0-23-generic, version #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012, machine x86_64.
Hostname ngal-diaw-gassama, 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-02-01 12:11:25 [3442] [0] INFO: HTTP: Opening server at port 13013.
2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2014-02-01 12:11:25 [3442] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3442.
2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2014-02-01 12:11:25 [3442] [0] INFO: Set up send sms service at port 13013
2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2014-02-01 12:11:25 [3442] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3442.
2014-02-01 12:11:25 [3442] [0] DEBUG: ----------------------------------------------
2014-02-01 12:11:25 [3442] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2014-02-01 12:11:25 [3442] [0] DEBUG: dumping group (sendsms-user):
2014-02-01 12:11:25 [3442] [0] DEBUG: =
2014-02-01 12:11:25 [3442] [0] DEBUG: =
2014-02-01 12:11:25 [3442] [0] DEBUG: =
2014-02-01 12:11:25 [3442] [0] DEBUG: dumping group (sendsms-user):
2014-02-01 12:11:25 [3442] [0] DEBUG: = <127.0.0.1>
2014-02-01 12:11:25 [3442] [0] DEBUG: = <*.*.*.*>
2014-02-01 12:11:25 [3442] [0] DEBUG: =
2014-02-01 12:11:25 [3442] [0] DEBUG: =
2014-02-01 12:11:25 [3442] [0] DEBUG: =
2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2014-02-01 12:11:25 [3442] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3442.
2014-02-01 12:11:25 [3442] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3442.
2014-02-01 12:11:25 [3442] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2014-02-01 12:11:25 [3442] [0] ERROR: connect failed
2014-02-01 12:11:25 [3442] [0] ERROR: System error 111: Connection refused
2014-02-01 12:11:25 [3442] [0] ERROR: error connecting to server `localhost' at port `13001'
2014-02-01 12:11:25 [3442] [0] PANIC: Couldn't connect to the bearerbox.
2014-02-01 12:11:25 [3442] [0] PANIC: smsbox(gw_panic+0x17b) [0x43e14b]
2014-02-01 12:11:25 [3442] [0] PANIC: smsbox(main+0xcbc) [0x40e0fc]
2014-02-01 12:11:25 [3442] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f0c7921876d]
2014-02-01 12:11:25 [3442] [0] PANIC: smsbox() [0x40ea35]
Bonjour j'avais un soucis pr terminer la config
RépondreSupprimerj'ai ce message
2014-12-04 10:26:43 [12451] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
2014-12-04 10:26:43 [12451] [0] ERROR: fopen failed: couldn't open `kannel.conf'
2014-12-04 10:26:43 [12451] [0] ERROR: System error 2: No such file or directory
2014-12-04 10:26:43 [12451] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox(gw_panic+0x17b) [0x47fdab]
2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox(cfg_read+0x5c6) [0x46ade6]
2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox(main+0xc4) [0x40dc64]
2014-12-04 10:26:43 [12451] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f681a718de5]
2014-12-04 10:26:43 [12451] [0] PANIC: bearerbox() [0x40e9d5]
cette configuration ne marche que pour la clé E1552 dont l'idProduct est 1446;
RépondreSupprimerDonc si vous avez une autre clé comme par exemple E3131 le mien l'idProduct est le 15d1. Pour connaitre le votre brancher votre clé usb et taper lsusb en ligne de commande. Changer le ATTR{idProduct}=="1446" par votre idProduct ce qui donne ATTR{idProduct}=="15d1" dans mon cas.
Ensuite aller dans kannel.conf remplacer E1552 par E3131 ou une autre si vous disposer d'une autre clé
Stopper kannel pui rédemarrer bearerbox et smsbox sa devrait marcher.
Enjoy guys
Bonjour j'ai fini ma config mais j'ai toujours cette erreur :
RépondreSupprimer2015-08-20 18:36:36 [14429] [0] INFO: Debug_lvl = 0, log_file = , log_lvl = 0
2015-08-20 18:36:36 [14429] [0] ERROR: fopen failed: couldn't open `kannel.conf'
2015-08-20 18:36:36 [14429] [0] ERROR: System error 2: No such file or directory
2015-08-20 18:36:36 [14429] [0] PANIC: Failed to load main configuration file `kannel.conf'. Aborting!
2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox(gw_panic+0xd2) [0x80d1ae2]
2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox(cfg_read+0x6fa) [0x80ba0aa]
2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox(main+0xd1) [0x8052e61]
2015-08-20 18:36:36 [14429] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6db7a83]
2015-08-20 18:36:36 [14429] [0] PANIC: bearerbox() [0x8053dc9]
j'ai un modem huawei E3131
je vous laisse mon fichier de configuration :
RépondreSupprimer#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 = "00225,+225,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 = +22547070002
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-E3131
modemtype = huawei_e3131
device = /dev/ttyUSB0
host = localhost
sms-center = +22507070002
my-number = +22547002579
keepalive = 10
speed = 9600
sim-buffering = true
#Modems
group = modems
id = huawei_e3131
name = "huawei E3131"
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-E3131
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-E3131
keyword = test
catch-all = true
text="Configuration de kannel reussie. Bravo !!!"
#Sendsms
group = sendsms-user
username = kannel
password = kannel
forced-smsc = huawei-E3131
user-allow-ip = « *.*.*.* »
Merci de m'aider ....
Ou se situ votre réel problème?
Supprimeren fait
Supprimerj'ai cette erreur:
3: Queued for later delivery
pouvez vous m'aidez ?
je vous laisse mon fichier de configuration :
---
#Core Kannel Configuration Section
group = core
admin-port = 13000
admin-password = kannel
status-password = kannel
admin-allow-ip = "*.*.*.*"
wapbox-port = 13003
smsbox-port = 13002
store-type = file
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/bearerbox-access.log"
log-level = 0
unified-prefix = « 00221,+221,00′′
smsbox-max-pending = 100
#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-E13131
modemtype = huawei
device = /dev/tty6
host = "localhost"
sms-center = 51120837
my-number = 51120837
pin = 0000
keepalive = 60
speed = 9600
sim-buffering = true
validityperiod =167
#Modems
group = modems
id = huawei_e3131
name = "huawei E3131"
detect-string = "Huawei"
init-string ="AT+CNMI=2,1,2,2,0"
message-storage = "SM"
need-sleep = true
speed = 115200
#Sms Service Informations
group = sms-service
accepted-smsc = Huawei-E3131
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-E3131
keyword = test
catch-all = true
text="Configuration de kannel reussie. Bravo !!!"
accept-x-kannel-headers = true
#Sendsms
group = sendsms-user
username = kannel
password = kannel
forced-smsc = huawei-E3131
user-allow-ip = « *.*.*.* »