Salut tout le monde. je suis débutant en linux et pour mon examen je doit configurer un passerelle sms avec kannel sur ububtu 18.04
Depuis des semaines, je cherche des solutions à mon problème mais rien.
je suis parvenue à installer kannel et tout ses dépendances.
sudo apt-get install gcc
sudo apt-get install libXML2-devel
sudo apt-get install wvdial
apt-get install kannel
j'ai configurer le fichier /etc/kannel/kannel.conf
les paramètres de mon modem (clé 3g huawei) sont les suivant:
wvdial.conf donne ceci
wvdialconf donne ceci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 [Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Modem Type = Analog Modem ; Phone = <Target Phone Number> ISDN = 0 ; Password = <Your Password> New PPPD = yes ; Username = <Your Login Name> Modem = /dev/ttyUSB0 Baud = 9600
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 Scanning your serial ports for a modem. Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7 Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15 Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23 Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31 ttyUSB0<*1>: ATQ0 V1 E1 -- OK ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- COMMAND NOT SUPPORT ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei ttyUSB0<*1>: Speed 9600: AT -- OK ttyUSB0<*1>: Max speed is 9600; that should be safe. ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. ttyUSB2<*1>: ATQ0 V1 E1 -- OK ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- failed with 2400 baud, next try: 9600 baud ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- COMMAND NOT SUPPORT ttyUSB2<*1>: Modem Identifier: ATI -- Max speed is 9600; that should be safe. ttyUSB2<*1>: Max speed is 9600; that should be safe. ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- ATQ0 V1 E1 S0=0 &C1 &D2 ttyUSB2<*1>: failed with 9600 baud, next try: 9600 baud ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- ATQ0 V1 E1 S0=0 &C1 &D2 ttyUSB2<*1>: and failed too at 115200, giving up. Found a modem on /dev/ttyUSB0. Modem configuration written to /etc/wvdial.conf. ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2"
Cependant lors que je démarre le bearerbox avec la commande bearerbox -v 1 /etc/kannel/kannel.conf il me génere des erreurs.
voici le retour de la commande :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 tony@tony-Aspire-E5-531:~$ bearerbox -v 1 /etc/kannel/kannel.conf 2018-05-20 10:09:06 [5017] [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl = 0 2018-05-20 10:09:06 [5017] [0] WARNING: DLR: using default 'internal' for storage type. 2018-05-20 10:09:06 [5017] [0] INFO: DLR using storage type: internal 2018-05-20 10:09:06 [5017] [0] ERROR: Couldn't open logfile `/var/log/kannel/kannel.log'. 2018-05-20 10:09:06 [5017] [0] ERROR: System error 13: Permission denied 2018-05-20 10:09:06 [5017] [0] ERROR: Couldn't open logfile `/var/log/kannel/access.log'. 2018-05-20 10:09:06 [5017] [0] ERROR: System error 13: Permission denied 2018-05-20 10:09:06 [5017] [0] WARNING: 'store-file' option deprecated, please use 'store-location' and 'store-type' instead. 2018-05-20 10:09:06 [5017] [0] INFO: HTTP: Opening server at port 13000. 2018-05-20 10:09:06 [5017] [0] INFO: Set SMS resend frequency to 60 seconds. 2018-05-20 10:09:06 [5017] [0] INFO: SMS resend retry set to unlimited. 2018-05-20 10:09:06 [5017] [0] INFO: DLR rerouting for smsc id <huawei> disabled. 2018-05-20 10:09:06 [5017] [0] INFO: AT2[huawei]: configuration shows modemtype <huawei> 2018-05-20 10:09:06 [5017] [0] INFO: AT2[huawei]: read modem definition for <huawei> 2018-05-20 10:09:06 [5017] [0] INFO: ---------------------------------------- 2018-05-20 10:09:06 [5017] [0] INFO: Kannel bearerbox II version 1.4.4 starting 2018-05-20 10:09:06 [5017] [0] ERROR: fopen failed: couldn't open `/var/log/kannel/kannel.store' 2018-05-20 10:09:06 [5017] [0] ERROR: System error 13: Permission denied 2018-05-20 10:09:06 [5017] [0] ERROR: fopen failed: couldn't open `/var/log/kannel/kannel.store.new' 2018-05-20 10:09:06 [5017] [0] ERROR: System error 2: No such file or directory 2018-05-20 10:09:06 [5017] [0] ERROR: fopen failed: couldn't open `/var/log/kannel/kannel.store.bak' 2018-05-20 10:09:06 [5017] [0] ERROR: System error 13: Permission denied 2018-05-20 10:09:06 [5017] [0] INFO: Cannot open any store file, starting a new one 2018-05-20 10:09:06 [5017] [0] ERROR: Failed to open '/var/log/kannel/kannel.store' for writing, cannot create store-file 2018-05-20 10:09:06 [5017] [0] ERROR: System error 13: Permission denied 2018-05-20 10:09:06 [5017] [0] PANIC: Cannot start with store-file failing 2018-05-20 10:09:06 [5017] [8] ERROR: Failed to open '/var/log/kannel/kannel.store.new' for writing, cannot create store-filejavascript://:( 2018-05-20 10:09:06 [5017] [8] ERROR: System error 13: Permission denied 2018-05-20 10:09:06 [5017] [0] PANIC: bearerbox(gw_backtrace+0xe0) [0x562403fedb80] 2018-05-20 10:09:06 [5017] [0] PANIC: bearerbox(gw_panic+0x167) [0x562403fedcf7] 2018-05-20 10:09:06 [5017] [0] PANIC: bearerbox(main+0x1218) [0x562403f65328] 2018-05-20 10:09:06 [5017] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fed0afafb97] 2018-05-20 10:09:06 [5017] [0] PANIC: bearerbox(_start+0x2a) [0x562403f6540a]
je précise que j'ai bien arrêté les services de kannel avec la commande service kannel stop avant de démarer le bearerbox,
: je vous prie de m'aider je suis a bout .
Partager