Kannel and Huawei EC167 and EC156 support only Text Mode SMS

2016-06-15 Thread Paul Isidore
Ok, Thank you,

I think I'll try to provide support to this type of modem. ( Huawei EC167 and 
EC156 support only Text Mode SMS)

However there anyone have you already worked on this in the source code Kannel?

Aside from choosing the PDU and Text mode, Kannel accept the sending of SMS 
with the command AT + GWWC?

There would have a major inconveniant to this method?

In fact, I'm going to start in the Kannel source code and wish to limit myself 
on abosulement little to change unless other developers with me.

Thank you all,

Best regards,



[X][X]

??



De : Alvaro Cornejo 
Envoyé : mercredi 15 juin 2016 16:19
À : Paul Isidore; users
Objet : Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? 
command

Hi

Always cc the list so you can receive feedback from more people and others can 
benefit from this info.

You can alway hack kannel code and change that setup.

Regards,

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular 
y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y 
GPRS online
  Visitenos en www.perusms.com

On Wed, Jun 15, 2016 at 9:01 AM, Paul Isidore 
> wrote:

Thank you very much,
Now I remark my modem accept only PDU text mode (AT+CMGF=1) but Kannel want to 
set it to PDU Mode (AT+CMGF=0 in log) and make Error message .
Are there a  solution to change this behaviour ?
I don't see anything like no-cmgf or cmgf=1 in config file description.

Thank you
Cordialy,

Paul Isidore

Log file:
2016-06-15 13:48:53 [1747] [6] DEBUG: AT2[huawei]: device opened
2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: Logging in
2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: init device
2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: speed set to 9600
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> ATZ^M
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT^M
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- AT
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT^M
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- AT
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> ATE0^M
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- ATE0
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT+IFC=2,2^M
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT+CMGF=0^M
2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- ERROR
2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Generic error: ERROR
2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Initialization of device 
failed.
2016-06-15 13:48:54 [1747] [6] INFO: AT2[huawei]: Closing device
2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Couldn't connect (retrying 
in 10 seconds).


[X][X]


De : Alvaro Cornejo >
Envoyé : mercredi 15 juin 2016 13:25

À : Paul Isidore
Cc : users@kannel.org
Objet : Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? 
command

Hi

The message is clear. You modem does not support the AT+CSCA command. Remove it 
from config.

In most cases, smsc center is configured automatically by the operator through 
the sim card and sim initialization. Therefore you shouldn't need to configure 
it.

Regards,

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular 
y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y 
GPRS online
  Visitenos en www.perusms.com

On Tue, Jun 14, 2016 at 6:26 PM, Paul Isidore 
> wrote:

Hi,

Indeed, I take the CPIN command config modem and this time I get a new error 
message about attaching the smsc center number, i also try the no-smsc to 
circumvent this but still get this new error message. (While both modem sends 
and receive sms on Windows 8.1).


Best regards,


Here is a copy of the log file:

2016-06-14 22:55:07 [1760] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) 
maps to pid 1760.
2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: trying to use speed <9600> 
from modem definition
2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: opening device
2016-06-14 22:55:07 [1760] [0] INFO: Loading store file 

Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? command

2016-06-15 Thread Alvaro Cornejo
Hi

Always cc the list so you can receive feedback from more people and others
can benefit from this info.

You can alway hack kannel code and change that setup.

Regards,

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com

On Wed, Jun 15, 2016 at 9:01 AM, Paul Isidore 
wrote:

> Thank you very much,
> Now I remark my modem accept only PDU text mode (AT+CMGF=1) but Kannel
> want to set it to PDU Mode (AT+CMGF=0 in log) and make Error message .
> Are there a  solution to change this behaviour ?
> I don't see anything like no-cmgf or cmgf=1 in config file description.
>
> Thank you
> Cordialy,
>
> Paul Isidore
>
> Log file:
> 2016-06-15 13:48:53 [1747] [6] DEBUG: AT2[huawei]: device opened
> 2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: Logging in
> 2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: init device
> 2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: speed set to 9600
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> ATZ^M
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT^M
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- AT
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT^M
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- AT
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> ATE0^M
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- ATE0
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT+IFC=2,2^M
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT+CMGF=0^M
> 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- ERROR
> 2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Generic error: ERROR
> 2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Initialization of
> device failed.
> 2016-06-15 13:48:54 [1747] [6] INFO: AT2[huawei]: Closing device
> 2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Couldn't connect
> (retrying in 10 seconds).
>
>
>
> --
> *De :* Alvaro Cornejo 
> *Envoyé :* mercredi 15 juin 2016 13:25
>
> *À :* Paul Isidore
> *Cc :* users@kannel.org
> *Objet :* Re: Kannel and Huawei EC167 and EC156 failed to reponse to
> AT+CPIN=? command
>
> Hi
>
> The message is clear. You modem does not support the AT+CSCA command.
> Remove it from config.
>
> In most cases, smsc center is configured automatically by the operator
> through the sim card and sim initialization. Therefore you shouldn't need
> to configure it.
>
> Regards,
>
> Alvaro
>
>
> |-|
> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> celular y Nextel
> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
> y GPRS online
>   Visitenos en www.perusms.com
>
> On Tue, Jun 14, 2016 at 6:26 PM, Paul Isidore 
> wrote:
>
>> Hi,
>>
>> Indeed, I take the CPIN command config modem and this time I get a new
>> error message about attaching the smsc center number, i also try the
>> no-smsc to circumvent this but still get this new error message. (While
>> both modem sends and receive sms on Windows 8.1).
>>
>>
>> Best regards,
>>
>>
>> Here is a copy of the log file:
>>
>> 2016-06-14 22:55:07 [1760] [7] DEBUG: Thread 7
>> (gw/bb_smscconn.c:sms_router) maps to pid 1760.
>> 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: trying to use speed
>> <9600> from modem definition
>> 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: opening device
>> 2016-06-14 22:55:07 [1760] [0] INFO: Loading store file
>> `/var/log/kannel/kannel.store'
>> 2016-06-14 22:55:07 [1760] [0] INFO: Store-file size 0, starting to unpack
>> 2016-06-14 22:55:07 [1760] [0] INFO: Retrieved 0 messages,
>> non-acknowledged messages: 0
>> 2016-06-14 22:55:07 [1760] [6] DEBUG: AT2[huawei]: device opened. Telnet
>> mode = 0
>> 2016-06-14 22:55:07 [1760] [0] DEBUG: Started thread 8
>> (gw/bb_store_file.c:store_dumper)
>> 2016-06-14 22:55:07 [1760] [0] INFO: MAIN: Start-up done, entering
>> mainloop
>> 2016-06-14 22:55:07 [1760] [0] DEBUG: AT2[huawei]: start called
>> 2016-06-14 22:55:07 [1760] [8] DEBUG: Thread 8
>> (gw/bb_store_file.c:store_dumper) maps to pid 1760.
>> 2016-06-14 22:55:07 [1760] [8] DEBUG: Dumping 0 messages to store
>> 2016-06-14 22:55:08 [1760] [6] DEBUG: AT2[huawei]: device opened
>> 2016-06-14 22:55:08 [1760] [6] INFO: 

Re: Kannel Queuing

2016-06-15 Thread Salih Al-Hassan
The only mysql implementation i use is for sqlbox none on kannel itself.

Just turned on logging. Will share it when it happens again.




On Wed, Jun 15, 2016 at 12:04 PM, spameden  wrote:

> Check your smsc logs.
>
> Do you use mysql at all?
>
> 2016-06-15 15:00 GMT+03:00 Salih Al-Hassan :
>
>> Hi,
>>
>> I have an issue where kannel starts to queue MT messages after some
>> period of running. The TPS drops so low that i get 1 message delivered
>> about every 10 seconds. I am able to free the queue by putting kannel in a
>> suspended state.
>>
>> Has anyone experienced this?
>>
>> Regards,
>> Salih Al-Hassan
>>
>
>


Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? command

2016-06-15 Thread Alvaro Cornejo
Hi

The message is clear. You modem does not support the AT+CSCA command.
Remove it from config.

In most cases, smsc center is configured automatically by the operator
through the sim card and sim initialization. Therefore you shouldn't need
to configure it.

Regards,

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com

On Tue, Jun 14, 2016 at 6:26 PM, Paul Isidore 
wrote:

> Hi,
>
> Indeed, I take the CPIN command config modem and this time I get a new
> error message about attaching the smsc center number, i also try the
> no-smsc to circumvent this but still get this new error message. (While
> both modem sends and receive sms on Windows 8.1).
>
>
> Best regards,
>
>
> Here is a copy of the log file:
>
> 2016-06-14 22:55:07 [1760] [7] DEBUG: Thread 7
> (gw/bb_smscconn.c:sms_router) maps to pid 1760.
> 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: trying to use speed
> <9600> from modem definition
> 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: opening device
> 2016-06-14 22:55:07 [1760] [0] INFO: Loading store file
> `/var/log/kannel/kannel.store'
> 2016-06-14 22:55:07 [1760] [0] INFO: Store-file size 0, starting to unpack
> 2016-06-14 22:55:07 [1760] [0] INFO: Retrieved 0 messages,
> non-acknowledged messages: 0
> 2016-06-14 22:55:07 [1760] [6] DEBUG: AT2[huawei]: device opened. Telnet
> mode = 0
> 2016-06-14 22:55:07 [1760] [0] DEBUG: Started thread 8
> (gw/bb_store_file.c:store_dumper)
> 2016-06-14 22:55:07 [1760] [0] INFO: MAIN: Start-up done, entering mainloop
> 2016-06-14 22:55:07 [1760] [0] DEBUG: AT2[huawei]: start called
> 2016-06-14 22:55:07 [1760] [8] DEBUG: Thread 8
> (gw/bb_store_file.c:store_dumper) maps to pid 1760.
> 2016-06-14 22:55:07 [1760] [8] DEBUG: Dumping 0 messages to store
> 2016-06-14 22:55:08 [1760] [6] DEBUG: AT2[huawei]: device opened
> 2016-06-14 22:55:08 [1760] [6] INFO: AT2[huawei]: speed set to 9600
> 2016-06-14 22:55:08 [1760] [6] DEBUG: AT2[huawei]: --> ^M
> 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: --> AT^M
> 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: <-- AT
> 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-14 22:55:10 [1760] [6] INFO: AT2[huawei]: Closing device
> 2016-06-14 22:55:10 [1760] [6] INFO: AT2[huawei]: speed is 9600
> 2016-06-14 22:55:10 [1760] [6] INFO: AT2[huawei]: opening device
> 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: device opened. Telnet
> mode = 0
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: device opened
> 2016-06-14 22:55:11 [1760] [6] INFO: AT2[huawei]: Logging in
> 2016-06-14 22:55:11 [1760] [6] INFO: AT2[huawei]: init device
> 2016-06-14 22:55:11 [1760] [6] INFO: AT2[huawei]: speed set to 9600
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: --> ATZ^M
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- ATZ
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: --> AT^M
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- AT
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: --> AT^M
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- AT
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: --> ATE0^M
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- ATE0
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: --> AT+IFC=2,2^M
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- OK
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: -->
> AT+CSCA="+XX"^M
> 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- COMMAND NOT SUPPORT
> 2016-06-14 22:55:14 [1760] [0] WARNING: Killing signal or HTTP admin
> command received, shutting down...
> 2016-06-14 22:55:14 [1760] [0] DEBUG: Shutting down Kannel...
> 2016-06-14 22:55:14 [1760] [0] DEBUG: shutting down smsc
> 2016-06-14 22:55:14 [1760] [0] DEBUG: AT2[huawei]: Shutting down SMSCConn,
> slow
> 2016-06-14 22:55:14 [1760] [0] DEBUG: shutting down udp
> 2016-06-14 22:55:16 [1760] [6] ERROR: AT2[huawei]: Initialization of
> device failed.
> 2016-06-14 22:55:16 [1760] [6] INFO: AT2[huawei]: Closing device
> 2016-06-14 22:55:16 [1760] [6] INFO: AT2[huawei]: Closing device
> 2016-06-14 22:55:16 [1760] [7] DEBUG: Thread 7
> (gw/bb_smscconn.c:sms_router) terminates.
> 2016-06-14 22:55:16 [1760] [4] DEBUG: Thread 4
> (gw/bb_boxc.c:sms_to_smsboxes) terminates.
> 2016-06-14 22:55:16 [1760] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
> terminates.
>
>
> --
> *De :* Alvaro Cornejo 
> *Envoyé :* mardi 14 juin 

Re: Kannel Queuing

2016-06-15 Thread spameden
Check your smsc logs.

Do you use mysql at all?

2016-06-15 15:00 GMT+03:00 Salih Al-Hassan :

> Hi,
>
> I have an issue where kannel starts to queue MT messages after some period
> of running. The TPS drops so low that i get 1 message delivered about every
> 10 seconds. I am able to free the queue by putting kannel in a suspended
> state.
>
> Has anyone experienced this?
>
> Regards,
> Salih Al-Hassan
>


Kannel Queuing

2016-06-15 Thread Salih Al-Hassan
Hi,

I have an issue where kannel starts to queue MT messages after some period
of running. The TPS drops so low that i get 1 message delivered about every
10 seconds. I am able to free the queue by putting kannel in a suspended
state.

Has anyone experienced this?

Regards,
Salih Al-Hassan