Re: problem kannel/playsms
You should ask this question to playsms mailinglist. I can advise you to check the playsms web url configured in Kannel gateway part (admin area of playsms) Join the group: playsms-de...@yahoogroups.com Regards Emmanuel 2012/10/23 Rodrigue Ango apim...@yahoo.fr Please i have problem with kannel/playsms i received sms but when i send, playsms tell me that sms Message queued. i want to know how can i send sms. i count for you
Re: SMPP and system_error
Hello, Do you have any clue on how to resolve this warning ? WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. Regards 2012/7/6 Emmanuel CHANSON emmanuelchan...@gmail.com Thanks Rene for your help, Higate support reply me this about this error: WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. *Please note that this is not a warning but an error, it is not an higate error but the SMPP protocol error, if you do not null terminate the tlv's within SMPP the higate system might kick it.* What does it mean ? Regards, Emmanuel 2012/7/4 Rene Kluwen rene.klu...@chimit.nl The best you can do is ask your provider what it means. They are giving this error. ** ** *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Emmanuel CHANSON *Sent:* Tuesday, 03 July, 2012 22:39 *To:* users *Subject:* SMPP and system_error ** ** Hello, Trying to connect to a Mobile Aggregator through SMPP I got this error: *SMSC returned error code 0x0008 (System Error) in response to submit_sm.* Also this: *WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. * but I guess this is not the real problem but how to handle this also ? Kannel.conf:#SMSC SMPP group=smsc smsc=smpp smsc-id=higate interface-version=34 host=** port=2775 system-id = smsc-username = smsc-password= system-type transceiver-mode=1 #source-addr-autodetect = false #address-range = source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 bind-addr-ton = 1 bind-addr-npi = 1 #msg-id-type = 0x01 log-file = /var/log/kannel/smsc-smpp.log log-level = 0 == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00) 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced source addr ton = 1, source add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced dest addr ton = 1, dest add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Sending PDU: 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP PDU 0x7fb69c000a10 dump: 2012-07-04 08:02:20 [26432] [7] DEBUG: type_name: submit_sm 2012-07-04 08:02:20 [26432] [7] DEBUG: command_id: 4 = 0x0004 2012-07-04 08:02:20 [26432] [7] DEBUG: command_status: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sequence_number: 2 = 0x0002 2012-07-04 08:02:20 [26432] [7] DEBUG: service_type: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr: 2034 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: destination_addr: 254724886107 2012-07-04 08:02:20 [26432] [7] DEBUG: esm_class: 3 = 0x0003 2012-07-04 08:02:20 [26432] [7] DEBUG: protocol_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: priority_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: schedule_delivery_time: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: validity_period: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: registered_delivery: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: replace_if_present_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: data_coding: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_default_msg_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_length: 6 = 0x0006 2012-07-04 08:02:20 [26432] [7] DEBUG: short_message: 2012-07-04 08:02:20 [26432] [7] DEBUG:Octet string at 0x7fb69c000c20: 2012-07-04 08:02:20 [26432] [7] DEBUG: len: 6 2012-07-04 08:02:20 [26432] [7] DEBUG: size: 7 2012-07-04 08:02:20 [26432] [7] DEBUG: immutable: 0 2012-07-04 08:02:20 [26432] [7] DEBUG: data: 74 65 73 74 11 36 test.6 2012-07-04 08:02:20 [26432] [7] DEBUG:Octet string dump ends. 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP PDU dump ends. == /var/log/kannel/smsbox.log == 2012-07-04 08:02:20 [26450] [0] DEBUG: Got ACK (0) of d02fc166-e8a5-42a1-9e97-d59d1c9d2e0a 2012-07-04 08:02:20 [26450] [0] DEBUG: HTTP: Destroying HTTPClient area 0x7fda7ad0. 2012-07-04 08:02:20 [26450] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: throughput (1.00,0.00) == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00) 2012-07-04 08:02:21 [26432] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP[higate]: Got PDU: 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP PDU 0x7fb69c001610 dump: 2012-07-04 08:02:21
Re: SMPP and system_error
Thanks for your reply Yes I can see the line: DEBUG: message_id: NULL but in submit_sm_resp so I thought the warning is about the missing message_id = NULL presence in submit_sm ? BTW what mean and for what is used this ? stg to make the submit_response come back with an id or not ? I guess this is required for DLR ? How to make it return an id ? And how to force it to NULL in submit_sm ? I would like to remove this warning so that provider wont take this warning as THE problem and we focus on the system_error problem Regards, Emmanuel 2012/7/7 Rene Kluwen rene.klu...@chimit.nl Weird… according to your logs, message_id HAS a null. Nonetheless the system error (8) is a different issue. ** ** *From:* Emmanuel CHANSON [mailto:emmanuelchan...@gmail.com] *Sent:* Saturday, 07 July, 2012 00:36 *To:* Rene Kluwen *Cc:* users *Subject:* Re: SMPP and system_error ** ** Hello, Do you have any clue on how to resolve this warning ? WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. Regards 2012/7/6 Emmanuel CHANSON emmanuelchan...@gmail.com Thanks Rene for your help, Higate support reply me this about this error: WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. *Please note that this is not a warning but an error, it is not an higate error but the SMPP protocol error, if you do not null terminate the tlv's within SMPP the higate system might kick it.* What does it mean ? Regards, Emmanuel ** ** 2012/7/4 Rene Kluwen rene.klu...@chimit.nl The best you can do is ask your provider what it means. They are giving this error. *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Emmanuel CHANSON *Sent:* Tuesday, 03 July, 2012 22:39 *To:* users *Subject:* SMPP and system_error Hello, Trying to connect to a Mobile Aggregator through SMPP I got this error: *SMSC returned error code 0x0008 (System Error) in response to submit_sm.* Also this: *WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. * but I guess this is not the real problem but how to handle this also ? Kannel.conf:#SMSC SMPP group=smsc smsc=smpp smsc-id=higate interface-version=34 host=** port=2775 system-id = smsc-username = smsc-password= system-type transceiver-mode=1 #source-addr-autodetect = false #address-range = source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 bind-addr-ton = 1 bind-addr-npi = 1 #msg-id-type = 0x01 log-file = /var/log/kannel/smsc-smpp.log log-level = 0 == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00) 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced source addr ton = 1, source add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced dest addr ton = 1, dest add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Sending PDU: 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP PDU 0x7fb69c000a10 dump: 2012-07-04 08:02:20 [26432] [7] DEBUG: type_name: submit_sm 2012-07-04 08:02:20 [26432] [7] DEBUG: command_id: 4 = 0x0004 2012-07-04 08:02:20 [26432] [7] DEBUG: command_status: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sequence_number: 2 = 0x0002 2012-07-04 08:02:20 [26432] [7] DEBUG: service_type: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr: 2034 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: destination_addr: 254724886107 2012-07-04 08:02:20 [26432] [7] DEBUG: esm_class: 3 = 0x0003 2012-07-04 08:02:20 [26432] [7] DEBUG: protocol_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: priority_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: schedule_delivery_time: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: validity_period: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: registered_delivery: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: replace_if_present_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: data_coding: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_default_msg_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_length: 6 = 0x0006 2012-07-04 08:02:20 [26432] [7] DEBUG: short_message: 2012-07-04 08:02:20 [26432] [7] DEBUG:Octet string at 0x7fb69c000c20: 2012-07-04 08:02:20 [26432] [7] DEBUG: len: 6 2012-07-04 08:02:20 [26432] [7] DEBUG: size: 7 2012-07-04 08:02:20 [26432] [7] DEBUG: immutable: 0 2012-07-04 08:02:20 [26432] [7] DEBUG: data: 74 65 73 74 11 36
Re: SMPP and system_error
Thanks Rene for your help, Higate support reply me this about this error: WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. *Please note that this is not a warning but an error, it is not an higate error but the SMPP protocol error, if you do not null terminate the tlv's within SMPP the higate system might kick it.* What does it mean ? Regards, Emmanuel 2012/7/4 Rene Kluwen rene.klu...@chimit.nl The best you can do is ask your provider what it means. They are giving this error. ** ** *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Emmanuel CHANSON *Sent:* Tuesday, 03 July, 2012 22:39 *To:* users *Subject:* SMPP and system_error ** ** Hello, Trying to connect to a Mobile Aggregator through SMPP I got this error: *SMSC returned error code 0x0008 (System Error) in response to submit_sm.* Also this: *WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. * but I guess this is not the real problem but how to handle this also ? Kannel.conf:#SMSC SMPP group=smsc smsc=smpp smsc-id=higate interface-version=34 host=** port=2775 system-id = smsc-username = smsc-password= system-type transceiver-mode=1 #source-addr-autodetect = false #address-range = source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 bind-addr-ton = 1 bind-addr-npi = 1 #msg-id-type = 0x01 log-file = /var/log/kannel/smsc-smpp.log log-level = 0 == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00) 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced source addr ton = 1, source add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced dest addr ton = 1, dest add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Sending PDU: 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP PDU 0x7fb69c000a10 dump: 2012-07-04 08:02:20 [26432] [7] DEBUG: type_name: submit_sm 2012-07-04 08:02:20 [26432] [7] DEBUG: command_id: 4 = 0x0004 2012-07-04 08:02:20 [26432] [7] DEBUG: command_status: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sequence_number: 2 = 0x0002 2012-07-04 08:02:20 [26432] [7] DEBUG: service_type: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr: 2034 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: destination_addr: 254724886107 2012-07-04 08:02:20 [26432] [7] DEBUG: esm_class: 3 = 0x0003 2012-07-04 08:02:20 [26432] [7] DEBUG: protocol_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: priority_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: schedule_delivery_time: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: validity_period: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: registered_delivery: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: replace_if_present_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: data_coding: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_default_msg_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_length: 6 = 0x0006 2012-07-04 08:02:20 [26432] [7] DEBUG: short_message: 2012-07-04 08:02:20 [26432] [7] DEBUG:Octet string at 0x7fb69c000c20: 2012-07-04 08:02:20 [26432] [7] DEBUG: len: 6 2012-07-04 08:02:20 [26432] [7] DEBUG: size: 7 2012-07-04 08:02:20 [26432] [7] DEBUG: immutable: 0 2012-07-04 08:02:20 [26432] [7] DEBUG: data: 74 65 73 74 11 36 test.6 2012-07-04 08:02:20 [26432] [7] DEBUG:Octet string dump ends. 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP PDU dump ends. == /var/log/kannel/smsbox.log == 2012-07-04 08:02:20 [26450] [0] DEBUG: Got ACK (0) of d02fc166-e8a5-42a1-9e97-d59d1c9d2e0a 2012-07-04 08:02:20 [26450] [0] DEBUG: HTTP: Destroying HTTPClient area 0x7fda7ad0. 2012-07-04 08:02:20 [26450] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: throughput (1.00,0.00) == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00) 2012-07-04 08:02:21 [26432] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP[higate]: Got PDU: 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP PDU 0x7fb69c001610 dump: 2012-07-04 08:02:21 [26432] [7] DEBUG: type_name: submit_sm_resp 2012-07-04 08:02:21 [26432] [7] DEBUG: command_id: 2147483652 = 0x8004 2012-07-04 08:02:21 [26432] [7] DEBUG: command_status: 8 = 0x0008 2012-07-04
SMPP and system_error
Hello, Trying to connect to a Mobile Aggregator through SMPP I got this error: *SMSC returned error code 0x0008 (System Error) in response to submit_sm.* Also this: *WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. * but I guess this is not the real problem but how to handle this also ? Kannel.conf:#SMSC SMPP group=smsc smsc=smpp smsc-id=higate interface-version=34 host=** port=2775 system-id = smsc-username = smsc-password= system-type transceiver-mode=1 #source-addr-autodetect = false #address-range = source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 bind-addr-ton = 1 bind-addr-npi = 1 #msg-id-type = 0x01 log-file = /var/log/kannel/smsc-smpp.log log-level = 0 == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00) 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced source addr ton = 1, source add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Manually forced dest addr ton = 1, dest add npi = 1 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: Sending PDU: 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP PDU 0x7fb69c000a10 dump: 2012-07-04 08:02:20 [26432] [7] DEBUG: type_name: submit_sm 2012-07-04 08:02:20 [26432] [7] DEBUG: command_id: 4 = 0x0004 2012-07-04 08:02:20 [26432] [7] DEBUG: command_status: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sequence_number: 2 = 0x0002 2012-07-04 08:02:20 [26432] [7] DEBUG: service_type: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: source_addr: 2034 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_ton: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2012-07-04 08:02:20 [26432] [7] DEBUG: destination_addr: 254724886107 2012-07-04 08:02:20 [26432] [7] DEBUG: esm_class: 3 = 0x0003 2012-07-04 08:02:20 [26432] [7] DEBUG: protocol_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: priority_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: schedule_delivery_time: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: validity_period: NULL 2012-07-04 08:02:20 [26432] [7] DEBUG: registered_delivery: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: replace_if_present_flag: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: data_coding: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_default_msg_id: 0 = 0x 2012-07-04 08:02:20 [26432] [7] DEBUG: sm_length: 6 = 0x0006 2012-07-04 08:02:20 [26432] [7] DEBUG: short_message: 2012-07-04 08:02:20 [26432] [7] DEBUG:Octet string at 0x7fb69c000c20: 2012-07-04 08:02:20 [26432] [7] DEBUG: len: 6 2012-07-04 08:02:20 [26432] [7] DEBUG: size: 7 2012-07-04 08:02:20 [26432] [7] DEBUG: immutable: 0 2012-07-04 08:02:20 [26432] [7] DEBUG: data: 74 65 73 74 11 36 test.6 2012-07-04 08:02:20 [26432] [7] DEBUG:Octet string dump ends. 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP PDU dump ends. == /var/log/kannel/smsbox.log == 2012-07-04 08:02:20 [26450] [0] DEBUG: Got ACK (0) of d02fc166-e8a5-42a1-9e97-d59d1c9d2e0a 2012-07-04 08:02:20 [26450] [0] DEBUG: HTTP: Destroying HTTPClient area 0x7fda7ad0. 2012-07-04 08:02:20 [26450] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:20 [26432] [7] DEBUG: SMPP[higate]: throughput (1.00,0.00) == /var/log/kannel/smsc-smpp.log == 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00) 2012-07-04 08:02:21 [26432] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP[higate]: Got PDU: 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP PDU 0x7fb69c001610 dump: 2012-07-04 08:02:21 [26432] [7] DEBUG: type_name: submit_sm_resp 2012-07-04 08:02:21 [26432] [7] DEBUG: command_id: 2147483652 = 0x8004 2012-07-04 08:02:21 [26432] [7] DEBUG: command_status: 8 = 0x0008 2012-07-04 08:02:21 [26432] [7] DEBUG: sequence_number: 2 = 0x0002 2012-07-04 08:02:21 [26432] [7] DEBUG: message_id: NULL 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP PDU dump ends. 2012-07-04 08:02:21 [26432] [7] ERROR: SMPP[higate]: *SMSC returned error code 0x0008 (System Error) in response to submit_sm.* 2012-07-04 08:02:21 [26432] [7] DEBUG: SMPP[higate]: throughput (0.00,0.00)
Re: UTF-16BE encoding problem
Is there any option like mo-recode=true ? Br Emmanuel Http://miig.mediacom.nc Le 29 mars 2012 07:57, Rob GB rob_gar_...@hotmail.com a écrit : Hi all, I'm using Kannel to send Cyrillic messages, I send SMSs with UTF-16BE encoding and they work perfectly, however I have a serious problem with incoming messages. I have this config: group = sms-servicekeyword = defaultcatch-all = truemax-messages=0get-url = http://myhost:13180/kannellistener/kannel-sms?from=%pto=%Pmsg=%aoriginSMSC=%icharset=%C In access logs the URL looks like: 2012-03-28 19:05:07 SMS HTTP-request sender:+xxx request: 'OK' url: ' http://localhost:90/kannel-sms?from=%2Bxxto=xxxmsg=%04%1F%04%3E%04%3D%04O%04B%04%3D%04%3E%00+%042%04A%04Q%00.%044%040%00+%04A%04%3E%00+%04A%04B%04%3E%04%40%04%3E%04%3D%04K%00.%048%00+%04B%04%3E%00+%04%3D%045%00+%042%04A%045%043%044%040originSMSC=mySMSCcharset=UTF-16BE' reply: 200 ' successful ' I use a Java webapp as the listening servlet, in logs the messages look like this: [http-13180-54] com.xxx..KannelIncomingSmsServlet.doGet - entry text = ^D%^D^DG^DC^@ ^D?^D^D7^D=^D0^D:^D^D^D8^DB^DA^D0^@ ^DA^@ ^D^DC^D6^@ ^@5^@3^@ ^@5^@5^@ ^D;^D5^D B^@ ^D4^D;^DO^@ ^DA^@/^D I have tried a lot of Java methods to decode the message, such as: URLDecoder.decode(text, UTF-16BE)); new String(text.getBytes(UTF-16BE), UTF-16) text = Charset.forName(UTF-16BE).decode(text).toString(); and some more big methods that are not necessary to list, the point is that the message never gets decoded. I wonder if there's something in Kannel config I could do to fix this problem. Thanks in advanced.
Special character and Kannel when sending using modem
Hello, I am faced to a problem since one week. How to send special character like 'ç' that is not part of the GSM 7 alphabet. I receive 'Ç instead, that can be understood but for others special character I dont think it will be ok. Can I used GSM 7 or do I have to use Unicode UCS-2 to be able to receive a correct message ? Of course it works when using charset=UTF-16BE but in this case all the message is converted in unicode, is there a way to keep GSM 7 or 8bit and send this particular character ? lynx -dump http://127.0.0.1:13013/cgi-bin/sendsms?username=playsmspassword=playsmsfrom=%2Bxxto=%2Bzzmclass=1text=test+remote+%C3%A7+%2B+%C3%A9+%2B+l%27e+5smsc=huawei_e220 Regards, Emmanuel
Re: MySQL Storage
Hello, Mysql db in Kannel is used to handle dlr report not to store all sms. Have a look to playsms you may find some usefull features. All sms will be stored in mysql db. Playsms.org Playsms-mc.mediacom.nc Br Emmanuel Le 7 déc. 2011 20:51, Supporto Tecnico - Crazy Network supp...@crazynetwork.it a écrit : Hi everyone. im trying to work with Kannel since some month now and ive successfull let it work as the company where i work want.. now.. my next step is save SMS into a DB so ive recompiled Kannel with latest SVN (yesterday 06/12/11) with mysql option enabled (and ofc mysql-devel installed). Installation went just fine, configuration doent give any error but im unable to see sms stored in database. Ive made some search on google and i should have wrong understand what i read (my native language is not english, so, sorry for any error), ive read that mysql is used just as temp database where kannel put the sms and remove that line once he have reply to the database, is this correct? If yes, how should i do for let sms stored to the database? Also, what about if i dont want that kannel reply directly to the sms? (Now he reply with a get-url in sms-service and with a status 0 delivery accepted from source code (that i had edited for test). Here my needs so: 1 - Kannel receive the SMS and store it in a MySQL DB 2 - A custom PHP script (that will be programmed from some programmers here in office) will check every minute (with crontab) if there are new sms 3 - The PHP script will call smsbox for send multiple sms (like sms accepted, forward of the sms to tech support or/and whatever) 4 - Kannel store the sent sms into another table using sqlbox i suppose (still didnt study this yet) Anyone can help me out with this request? Here my config: cat kannel.conf include = /usr/local/kannel/core.conf include = /usr/local/kannel/smsc.conf include = /usr/local/kannel/smsbox.**conf include = /usr/local/kannel/sms-user.**conf include = /usr/local/kannel/sms-**service.conf include = /usr/local/kannel/modems.**conf include = /usr/local/kannel/mysql.conf cat core.conf group = core admin-port = 13000 smsbox-port = 13001 admin-password = foo #status-password = foo #admin-deny-ip = admin-allow-ip = log-file = /var/log/kannel/bearerbox.**log log-level = 0 #box-deny-ip = *.*.*.* box-allow-ip = *.*.*.* dlr-storage = mysql #unified-prefix = +39,0039;+,00 access-log = /var/log/kannel/bearerbox-**access.log #store-location = /usr/local/kannel/store.**kannel #ssl-server-cert-file = cert.pem #ssl-server-key-file = key.pem #ssl-certkey-file = mycertandprivkeyfile.pem cat smsc.conf group = smsc smsc = at modemtype = auto device=/dev/ttyUSB1 my-number = 3806320353 connect-allow-ip = *.*.*.* log-level = 0 cat smsbox.conf group = smsbox bearerbox-host = 10.10.15.123 sendsms-port = 13013 global-sender = 3806320353 #sendsms-chars = 0123456789 +- log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/bearerbox-**access.log cat sms-user.conf group = sendsms-user username = andrea password = password concatenation = true max-messages = 1000 #user-deny-ip = user-allow-ip = *.*.*.* cat sms-service.conf group = sms-service keyword = catch-all = yes get-url = http://10.10.15.123:13013/**cgi-bin/sendsms?username=** andreapassword=passwordfrom=**RTHto=3388552885+%qtext=GAI+** USER+%q+your+request+is+**accepted+form+the+system+at+%** t+and+will+be+sent+to+our+**team.+Text:+%a group = sms-service keyword = default text = No service specified cat mysql.conf group = mysql-connection id = dlr-db host = 10.10.11.7 username = sms password = vR174 database = sms max-connections = 10 group = dlr-db id = dlr-db table = dlr field-smsc = smsc field-timestamp = ts field-source = source field-destination = destination field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc I didnt pasted modem.conf cause i dont think is needed, modem is an Huawei E220 USB that is working great if anyone would like to use it. Can anyone point me to the right edits? Thanks in advance. Best regards -- Andrea Iannucci Crazy Network di Iannucci Andrea Viale G.B. Lulli, 24 00050 Cerveteri - RM (w) www.crazynetwork.it (e) andrea.iannucci@crazynetwork.**it andrea.iannu...@crazynetwork.it (t) +39 06 62279876 (f) +39 06 62298767 (m) +39 338 8552885 --**--** --- Please consider our enviromental responsabilità before printing this E-Mail. Thank you. --**--** --- Questo messaggio di posta elettronica contiene informazioni di carattere confidenziale rivolte esclusivamente al destinatario sopra indicato. E' vietato l'uso, la diffusione, distribuzione o
Re: Free Libya
Congratulations too! Emmanuel Le 25 août 2011 04:42, Mohammed Saleem mohammedsl...@gmail.com a écrit : #cd Libya # make uninstall #./configure --without-gadafi --with-freedom=/usr/lib64/freedom --with-union=/usr/lib64/union check for gaddafi.. no check for feedom.. yes check for union.. yes Configuration complete #make Done #make install installing Done Congrats, new lybia is installed successfully Best Regards, Mohammed M I Sleem http://www.abusleem.net - Personal blog On Wed, Aug 24, 2011 at 7:19 PM, Goke Aruna mykl...@gmail.com wrote: Congrats with mixed feeling. I pray for a truly sovereign state of Libya. Pray for Gadaffi*-free Libya. I pray for a prosperous Libya that will maintain her freedom without going thru second colonization. Wish you quickest recovery fir the destroyed infrastructures. Long live Libya. On 8/24/11, Mike Nwaogu michael_nwa...@yahoo.com wrote: Congratulations!!! Benaiad. In the words of the famous Nelson Mandela, FREEDOM Regards, Michael C. Nwaogu From: Benaiad bena...@gmail.com To: kannel users list users@kannel.org Sent: Tuesday, August 23, 2011 8:33 PM Subject: Free Libya Dear Kannel Users, I'm proud to announce that my country became free from the control of the dictator Moammar Gaddaf. I hope that I will be back to my VAS business very soon. Regards -- Abdulmnem Benaiad Almontaha CTO Tripoli-Libya www.almontaha.ly about.me -- Sent from my mobile device
Re: Kannel SMS Parking Application
Hello Joseph, A free and easy solution to implement over Kannel would be PlaySMS ( playsms.org) Give a try to this Web GUI application that linked to Kannel can do what you are looking for. PlaySMS have a pack of plugins where one of them called SMS Subscribe allow you to create a list of subscriber registered by SMS. They can unregistered from list by sending unreg keyword. You will have a lot of functions included and you can develop what you need for the Parking service based on the following plugin. PlaySMS is GPL licensed. Hope this help Emmanuel PlaySMS-MC http://playsms-mc.mediacom.nc/?lang=en 2011/6/21 Joseph Koech kipponthe...@gmail.com Milan, I would appreciate so much if u can write a detailed article about it. Kr, Joseph. On Jun 21, 2011 10:47 AM, Milan P. Stanic m...@arvanta.net wrote: On Tue, 2011-06-21 at 10:14, Nikos Balkanas wrote: For the benefit of the list could someone explain what is an SMS parking aplication? Maybe we have an idea about what to do. SMS parking application is just system by which users of parking payment service uses SMS to pay parking tickets (usually on street parking) for vehicles. Such applications does not have much in common with Kannel (or especially with Kannels mailing lists). Kannel can be used as very good SMS gateway, but SMS could be received/sent by other methods, i.e. HTTP, custom TCP/UDP/IP messaging or anything else. Such applications is specific to business logic employed for particular parking service and they are not simple send/receive SMS and put it in the some database. There are a lot of work behind the stage. Very short and incomplete description of one of such applications can be seen on the my company WEB site at: http://www.arvanta.net/simsms.html (screenshots are in Serbian) That is really short description but for a Kannel users list (were such discussions aren't appropriate) is enough, IMHO. But, is anyone wants I can write a lot about it because I work in that market for about six (or maybe more) years and Kannel was/is really valuable element of some of the systems we developed. - Original Message - From: Joseph Koech kipponthe...@gmail.com To: users@kannel.org Sent: Tuesday, June 21, 2011 9:47 AM Subject: Re: Kannel SMS Parking Application Hi Milan P, That really sounds great. i am mostly interested on the send/stop sms parking and the response after one stops the SMS parking. I won't mind if you omitted the payment part and shared the rest. Looking forward. Thanks. KR, Joseph. On Tue, Jun 21, 2011 at 9:26 AM, Milan P. Stanic m...@arvanta.net wrote: On Tue, 2011-06-21 at 08:16, Joseph Koech wrote: I am trying to build a simple SMS parking application. I am relatively well off with kannel but I wanted to know if anyone has tried this before and maybe point out some other tools / s/w that are required. I will also appreciate if someone will be willing to hold my hand through the development process. I did that even three times. I even intended to release one of the SMS parking application for free use but I cannot because of some NDA with payment providers. -- Kind regards, Milan -- Arvanta, IT Security http://www.arvanta.net Please do not send me e-mail containing HTML code. -- Kind regards, Milan -- Arvanta, IT Security http://www.arvanta.net Please do not send me e-mail containing HTML code.
Charset encofing problem using sqlbox
Hello, I may ask a question that has maybe already been resolved but I did not find the solution. My architecture: PHP/Mysql - smsbox HTTP api - smsbox - sqlbox - bearerbox - GSM modem Using smsbox HTTP api I am sending the following message using PHP: *test l'e é ç à @ ê* in PHP/Mysql table Outgoing SMS I have: *test l'e é ç à @ ê* in sqlbox sent_sms table I can see: *test l'e é Ç à @ ?* And I receive on my mobile: *test l'e é **Ç** à @ ?* So ç replaced by *Ç* and ê replaced by ? Any ideas to this problem? BR Emmanuel
RTSP link in wappush sms
Hello, I would like to set up a way to open a streaming flow on a mobile. My idea is to send the RTSP link inside a wappush, do you think it is possible? Is it possible to handle 'application/sdp' inside this binary SMS and send it to mobile through kannel ? Regards, Emmanuel
Re: Kannel do not receive SMS
Is your phone able to use AT+CNMI command using minicom ? AT+CNMI? If ERROR then your phone won't be able to forward SMS to kannel BR Emmanuel 2011/1/12 Helen Sang sangzhu...@yahoo.com Dear Kannel users, I connect a Nokia E72 phone to my Fedora 7 box with a usb cable. The port is ttyACM0. mod for the device is changed to 666 with command chmod 666 ttyACM0 The setup is fine to send out SMS. When there is SMS being sent out, I can see the signal interaction in smsbox and bearer box. However, when the E72 received a SMS, bearer box has no action. It's as if no event happens. I have read users mail archives. Somebody has this problem before, but with a different phone model. The suggest given to him is to use minicom to check the phone AT command spec. I had tried minicom. But in minicom, the phone answer OK to AT^M and ERROR to all other queries. Frankly I don't understand much of it. Here is my modem.conf that I config the nokiaphone: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone need-sleep = true keepalive-cmd = AT+CBC;+CSQ enable-mms = true # detect-string = MODEM # detect-string2 = [Default] init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 # init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 speed = 9600 # enable-hwhs = AT+IFC=2,2 [Default] # need-sleep = false [Default] # no-pin = false [Default] # no-smsc = false [Default] # sendline-sleep = 100 [Default, miliseconds] # keepalive-cmd = AT [Default] # broken = false [Default] # message-storage = SM # enable-mms = false [Default] The init-string was directly copied from wvdial. I've stuck here for a week. Please someone help. thanks and regards.
Re: Error in sending sms to oversea mobile number by using Kannel gateway
Hello, Maybe you can try by url-encode your request: *** http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarfrom= %2B85516872490to=%2B6597379814text=TestSendingAnSMSFromTheSystemhttp://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarfrom=+85516872490to=+6597379814text=TestSendingAnSMSFromTheSystem *** Just an idea Emmanuel 2011/1/12 Sambath Prum psb.samb...@gmail.com I'm in Cambodia, and I'm currently able to use kannel gateway to send sms to local mobile numbers. However, I run into an error why trying to send SMS to oversea mobile number (Singapore mobile number). If I take out my sim card and place into a phone, I'm able to send the SMS to oversea. The error is *2011-01-11 10:58:04 [3960] [6] ERROR: AT2[abcd]: Generic error: ERROR* Has anyone ever encountered this issue? I really appreciate for your help. Thank you. I'm using Kannel 1.4.3 installed on Ubuntu 10.04 LTS. I use a wavecom modem whose model is WAVECOM FASTRACK type DUAL BRANCH MODEM connected to kannel via serial port. This is the command I use to send SMS from a web browser * http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarfrom=+85516872490to=+6597379814text=TestSendingAnSMSFromTheSystem * Below are my config file and log files. Should you need further detail, please let me know. Thanks, Sambath *Config file: kannel.conf* group = core admin-port = 13000 admin-password = bar smsbox-port = 13001 smsbox-port-ssl = false log-file = /home/sambath/Documents/softwares/kannel/kannel.log log-level = 0 access-log = /home/sambath/Documents/softwares/kannel/access.log access-log-clean = true sms-resend-retry = 0 # SMSC GSM group = smsc smsc = at smsc-id = abcd modemtype = wavecom device = /dev/ttyUSB0 pin = alt-charset = ASCII group = modems id = wavecom name = wavecom detect-string = wavecom message-storage = sm speed = 115200 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 sendsms-chars = 0123456789 +- log-file = /home/sambath/Documents/softwares/kannel/smsbox.log access-log = /home/sambath/Documents/softwares/kannel/access.log mo-recode = true # SEND-SMS USERS group = sendsms-user username = tester password = foobar # SMS SERVICES group = sms-service keyword = default get-url = http://localhost:8080/ReceiveSms.php?sender=%ptext=%a; catch-all = true max-messages = 0 *Log file: kannel.log *2011-01-11 10:57:44 [3960] [0] INFO: Added logfile `/home/sambath/Documents/softwares/kannel/kannel.log' with level `0'. 2011-01-11 10:57:44 [3960] [0] INFO: Started access logfile `/home/sambath/Documents/softwares/kannel/access.log'. 2011-01-11 10:57:44 [3960] [0] INFO: SSL not supported, no SSL initialization done. 2011-01-11 10:57:44 [3960] [0] INFO: HTTP: Opening server at port 13000. 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2011-01-11 10:57:44 [3960] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2011-01-11 10:57:44 [3960] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] DEBUG: starting smsbox connection module 2011-01-11 10:57:44 [3960] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2011-01-11 10:57:44 [3960] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2011-01-11 10:57:44 [3960] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] INFO: Set SMS resend frequency to 60 seconds. 2011-01-11 10:57:44 [3960] [0] INFO: SMS resend retry set to 0. 2011-01-11 10:57:44 [3960] [0] DEBUG: smsbox MO concatenated message handling enabled 2011-01-11 10:57:44 [3960] [0] INFO: DLR rerouting for smsc id abcd disabled. 2011-01-11 10:57:44 [3960] [0] INFO: AT2[abcd]: configuration shows modemtype wavecom 2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: Reading modem definitions from kannel.conf 2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: Found 1 modems in config 2011-01-11 10:57:44 [3960] [0] INFO: AT2[abcd]: read modem definition for wavecom 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2011-01-11 10:57:44 [3960] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2011-01-11 10:57:44 [3960] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 3960. 2011-01-11 10:57:44 [3960] [6] INFO: AT2[abcd]: trying to use speed 115200 from modem
Re: Error in sending sms to oversea mobile number by using Kannel gateway
I don't think it is linked to SMS encoding (ie UCS or 7bit or 8 bit or..) but it is URL encoding, I think you have to hard code the fact that + is replaced by %2B in your request. Emmanuel 2011/1/12 Sambath Prum psb.samb...@gmail.com Dear Emmanuel, Yes, it works. I can send the SMS now. I use SMSLib library to send the SMS. So which kind of ending I set in order to get %2B in the phone number. Below is my code snippet (C#) to send the SMS. Service service = new Service; KannelHTTPGateway gatway = new KannelHTTPGateway (abcd, http://localhost:13013/cgi-bin/sendsms;, tester, foobar); service.addGateway(gateway); ... OutboundMessage message = new OutboundMessage(phone, text); //phone = +65 message.setEncoding(MessageEncodings.ENCUCS2); // which encoding service.sendMessage(message); This link shows the 4 types of encoding. So which one I should use to change + sign to %2B in the phone variable? http://smslib.googlecode.com/svn-history/r453/smslib/trunk/src/java/org/smslib/MessageEncodings.java Thank you. Sambath On Wed, Jan 12, 2011 at 9:17 AM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: Hello, Maybe you can try by url-encode your request: *** http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarfrom= %2B85516872490to=%2B6597379814text=TestSendingAnSMSFromTheSystemhttp://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarfrom=+85516872490to=+6597379814text=TestSendingAnSMSFromTheSystem *** Just an idea Emmanuel 2011/1/12 Sambath Prum psb.samb...@gmail.com I'm in Cambodia, and I'm currently able to use kannel gateway to send sms to local mobile numbers. However, I run into an error why trying to send SMS to oversea mobile number (Singapore mobile number). If I take out my sim card and place into a phone, I'm able to send the SMS to oversea. The error is *2011-01-11 10:58:04 [3960] [6] ERROR: AT2[abcd]: Generic error: ERROR* Has anyone ever encountered this issue? I really appreciate for your help. Thank you. I'm using Kannel 1.4.3 installed on Ubuntu 10.04 LTS. I use a wavecom modem whose model is WAVECOM FASTRACK type DUAL BRANCH MODEM connected to kannel via serial port. This is the command I use to send SMS from a web browser * http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarfrom=+85516872490to=+6597379814text=TestSendingAnSMSFromTheSystem * Below are my config file and log files. Should you need further detail, please let me know. Thanks, Sambath *Config file: kannel.conf* group = core admin-port = 13000 admin-password = bar smsbox-port = 13001 smsbox-port-ssl = false log-file = /home/sambath/Documents/softwares/kannel/kannel.log log-level = 0 access-log = /home/sambath/Documents/softwares/kannel/access.log access-log-clean = true sms-resend-retry = 0 # SMSC GSM group = smsc smsc = at smsc-id = abcd modemtype = wavecom device = /dev/ttyUSB0 pin = alt-charset = ASCII group = modems id = wavecom name = wavecom detect-string = wavecom message-storage = sm speed = 115200 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 sendsms-chars = 0123456789 +- log-file = /home/sambath/Documents/softwares/kannel/smsbox.log access-log = /home/sambath/Documents/softwares/kannel/access.log mo-recode = true # SEND-SMS USERS group = sendsms-user username = tester password = foobar # SMS SERVICES group = sms-service keyword = default get-url = http://localhost:8080/ReceiveSms.php?sender=%ptext=%a; catch-all = true max-messages = 0 *Log file: kannel.log *2011-01-11 10:57:44 [3960] [0] INFO: Added logfile `/home/sambath/Documents/softwares/kannel/kannel.log' with level `0'. 2011-01-11 10:57:44 [3960] [0] INFO: Started access logfile `/home/sambath/Documents/softwares/kannel/access.log'. 2011-01-11 10:57:44 [3960] [0] INFO: SSL not supported, no SSL initialization done. 2011-01-11 10:57:44 [3960] [0] INFO: HTTP: Opening server at port 13000. 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2011-01-11 10:57:44 [3960] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2011-01-11 10:57:44 [3960] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] DEBUG: starting smsbox connection module 2011-01-11 10:57:44 [3960] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2011-01-11 10:57:44 [3960] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3960. 2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2011-01-11 10:57:44 [3960] [5] DEBUG: Thread 5 (gw
Re: Modem
Depends what is your phone, what do you want to do with? For instance Nokia Nseries can't forward SMS to kannel (as I see) because it does not support 'AT+CNMI' command Nokia 6230 for instance works well with Kannel :) BR Emmanuel 2011/1/12 atulra...@gmail.com How to configure modem to work as smsc for sending and receiving sms I have a nokia phone with usb cable can it work Pl help Sent from my BlackBerry® wireless device
Re: Kannel and Opensmppbox - incomming sms
I did something like this for that kind of purpose, it may help you: HTTP cgi -- smsbox -- bearerbox --- loopback smsc --- opensmppbox --- smpp client So you should be able to route them as well to your smpp client :) by using a smsbox-route that forward all sms coming from loopback smsc to opensmppbox client id. Regards, Emmanuel 2010/10/25 XEN-Housing s.r.o. i...@xen-housing.sk Hallo there. We have at our smpp provider rent virtual numbers. Now all incoming sms that came from smpp connection are processed via service like http call and directly parsed on our side. Some of them we want to forward them via smpp to our clients, that are connected to opensmppbox. Is routing like that possible? And if yes, how. Thank you for your advice. Slavoj.
Re: Kannel and Opensmppbox - incomming sms
It should be possible as smsbox-route can handle shortcodes: *group = smsbox-route smsbox-id = smppclient-id_used_in_smppbox_1 smsc-id = loopbacksmsc1 shortcode = * *group = smsbox-route smsbox-id = smppclient-id_used_in_smppbox_2 smsc-id = loopbacksmsc1 shortcode = * Detailed in user guide Emmanuel 2010/10/25 XEN-Housing s.r.o. i...@xen-housing.sk Hello Emmanuel, thnx for short view. I thought that there must be an http script that will drive incoming sms back to smsbox, but i am still missing an idea, how to route different sms to different smpp clients. for example. we will get sms to number 1234 and that number belonge to smpp client1, but sms that came to number 1212 belonge to diferent smpp client. Is that possible? If yes, how. And additional question. What will happend with sms forwarder to opensmppbox, if client is not connected right now. will that sms stay in some queue and will be delivered to client when he will connect ? Thank you for your patience and advice ;) Slavoj. Dňa 25. 10. 2010 10:58, Emmanuel CHANSON wrote / napísal(a): I did something like this for that kind of purpose, it may help you: HTTP cgi -- smsbox -- bearerbox --- loopback smsc --- opensmppbox --- smpp client So you should be able to route them as well to your smpp client :) by using a smsbox-route that forward all sms coming from loopback smsc to opensmppbox client id. Regards, Emmanuel 2010/10/25 XEN-Housing s.r.o. i...@xen-housing.sk Hallo there. We have at our smpp provider rent virtual numbers. Now all incoming sms that came from smpp connection are processed via service like http call and directly parsed on our side. Some of them we want to forward them via smpp to our clients, that are connected to opensmppbox. Is routing like that possible? And if yes, how. Thank you for your advice. Slavoj.
Re: Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smppclient), more message than ordered sent from smppbox
I am still trying to understand the issue. Running a test where fakesmsc sent 20+50+500 SMS I got a freeze on smppbox after lets's 5 minutes: smppbox only sent 394 SMS to smppclient # ./stat.sh Bearerbox - Received SMS: 570 Bearerbox - Sent SMS: 294 Access - Receive SMS: 570 Access - Sent SMS: 294 Smppbox - Deliver_sm: 394 Smppbox - Deliver_sm_resp: 394 Smppbox - Submit_sm: 294 Smppbox - Submit_sm_resp: 294 # Suddenly I saw all the remaining SMS sent from smppbox to smppclient in one two seconds, and 100 SMS more than what I have ordered (with message from the first (20 SMS) and second (50 SMS) test. # ./stat.sh Bearerbox - Received SMS: 570 Bearerbox - Sent SMS: 394 Access - Receive SMS: 570 Access - Sent SMS: 394 Smppbox - Deliver_sm: 670 Smppbox - Deliver_sm_resp: 670 Smppbox - Submit_sm: 394 Smppbox - Submit_sm_resp: 394 # At the end I got 100 unordered SMS sent arrived on fakesmsc (because smppbox sent these new 100 SMS to my smppclient and answer back for each SMS received): Bearerbox - Received SMS: 570 Bearerbox - Sent SMS: 670 Access - Receive SMS: 570 Access - Sent SMS: 670 Smppbox - Deliver_sm: 670 Smppbox - Deliver_sm_resp: 670 Smppbox - Submit_sm: 670 Smppbox - Submit_sm_resp: 670 Please can someone confirm this behavior ? It is an issue and load testing can not be done using SMPPbox Or something is wrong in my Kannel architecture. Can you give me some pointers in order to investiguate more if no one can reproduce this ? Regards, Emmanuel 2010/10/13 Emmanuel CHANSON emmanuelchan...@gmail.com Yes Nikos, I downloaded and installed kannel opensmppbox this week from SVN site. Emmanuel 2010/10/13 Nikos Balkanas nbalka...@gmail.com Hi, Do you use latest smppbox svn? I remember that sometime back it had some ACK issues and bb would resend SMS. But it has been fixed since. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Wednesday, October 13, 2010 7:21 AM Subject: Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smppclient), more message than ordered sent from smppbox Using Fakesmsc and Opensmppbox for load testing of an SMPP application I notice strange behavior of Kannel (surrely bad configuration, I hope) Fakesmsc -- Bearerbox -- Opensmppbox -- Smpp client Config file at the end: Test: When I send 1 SMS from Fakesmsc (5656) to my SMPP application (1065) this application answer back with a SMS to the original sender. ie for 1 SMS sent from fakesmsc 1 should be received. From fakesmsc I send 50 SMS with this command: # /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS Below output from a script that parse the log file under /var/log: So I see exactly the 50 SMS sent to my smpp application (50 SMS also on its side) # /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS 2010-10-13 14:31:08 [29344] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2010-10-13 14:31:08 [29344] [0] INFO: Host 127.0.0.1 Port 10001 interval 0.200 max-messages 50 2010-10-13 14:31:08 [29344] [0] INFO: fakesmsc starting 2010-10-13 14:31:08 [29344] [0] DEBUG: Connecting to 127.0.0.1 2010-10-13 14:31:08 [29344] [0] DEBUG: fakesmsc: sent message 1 2010-10-13 14:31:08 [29344] [0] DEBUG: fakesmsc: sent message 2 ... 2010-10-13 14:31:18 [29344] [0] DEBUG: fakesmsc: sent message 49 2010-10-13 14:31:18 [29344] [0] INFO: fakesmsc: sent message 50 2010-10-13 14:31:19 [29344] [0] DEBUG: Got message 1: 1065 5656 text 50 SMS 2010-10-13 14:31:20 [29344] [0] DEBUG: Got message 2: 1065 5656 text 50 SMS ... 2010-10-13 14:32:07 [29344] [0] DEBUG: Got message 49: 1065 5656 text 50 SMS 2010-10-13 14:32:08 [29344] [0] INFO: Got message 50: 1065 5656 text 50 SMS # ./stat.sh Bearerbox - Received SMS: 50 (cat bearerbox.log | grep new message | wc -l) Bearerbox - Sent SMS: 50 (cat bearerbox.log | grep sending message | wc -l) Access - Receive SMS: 50 (cat access.log | grep Receive SMS | wc -l) Access - Sent SMS: 50 (cat access.log | grep Sent SMS | wc -l) Smppbox - Deliver_sm: 50(cat opensmppbox.log | grep deliver_sm | wc -l) Smppbox - Submit_sm: 50 (cat opensmppbox.log | grep submit_sm | wc -l) But some minutes after I see new messages sent from kannel (not from fakesmsc), 31 more !! ... 2010-10-13 14:37:31 [29344] [0] DEBUG: Got message 51: 1065 5656 text 50 SMS 2010-10-13 14:37:32 [29344] [0] DEBUG: Got message 52: 1065 5656 text 50 SMS ... 2010-10-13 14:38:00 [29344] [0] DEBUG: Got message 80: 1065 5656 text 50 SMS 2010-10-13 14:38:01 [29344] [0] DEBUG: Got message 81: 1065 5656 text 50 SMS I close fakesmsc: ^C2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: 50 messages sent and 81 received 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: total running time 1490.5 seconds 2010-10-13 14:55:59 [29344] [0
Re: Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smppclient), more message than ordered sent from smppbox
Ok Nikos, I followed your suggestion and tried using smsbox CGI script that should send normal packet to opensmppbox, in this case I used a different architecture: cgi -- smsbox -- bearerbox --- loopback smsc --- opensmppbox --- smpp client and when my smpp client answer back: smpp client --- opensmppbox --- Fake SMSC --- bearerbox --- fake smsc client It seems to to the trick and I dont have any more additionnal SMS sent from opensmppbox :) The thing is with fakesmsc client I could control the throuput of SMS sent. Do you think throuput parameter works with loopback smsc ? Otherwise I can use a delay in my cgi script :). In any case thanks to have pointed this issue with fakesmsc/fakesmsc client that seems to send malformed packet. I succeed to build my lab using all this kannel modules :) Emmanuel 2010/10/14 Nikos Balkanas nbalka...@gmail.com Emmanuel, You are running FAKE smsc in a non-standard way. It will only work when the fakesmsc client is connected, and when sending from the client, it is meant to send them back to the client. Instead you are redirecting to smppbox. I don't know if that will work. I think that the client doesn't send normal packets to FAKE smsc. It would stand to reason that fakesmsc doesn't respond with normal packages to the client, or in this case smppbox. Poor smppbox could get fits over it ;-). Check your packets and smppbox logs. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas ; users Sent: Thursday, October 14, 2010 12:32 AM Subject: Re: Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smppclient), more message than ordered sent from smppbox I am still trying to understand the issue. Running a test where fakesmsc sent 20+50+500 SMS I got a freeze on smppbox after lets's 5 minutes: smppbox only sent 394 SMS to smppclient # ./stat.sh Bearerbox - Received SMS: 570 Bearerbox - Sent SMS: 294 Access - Receive SMS: 570 Access - Sent SMS: 294 Smppbox - Deliver_sm: 394 Smppbox - Deliver_sm_resp: 394 Smppbox - Submit_sm: 294 Smppbox - Submit_sm_resp: 294 # Suddenly I saw all the remaining SMS sent from smppbox to smppclient in one two seconds, and 100 SMS more than what I have ordered (with message from the first (20 SMS) and second (50 SMS) test. # ./stat.sh Bearerbox - Received SMS: 570 Bearerbox - Sent SMS: 394 Access - Receive SMS: 570 Access - Sent SMS: 394 Smppbox - Deliver_sm: 670 Smppbox - Deliver_sm_resp: 670 Smppbox - Submit_sm: 394 Smppbox - Submit_sm_resp: 394 # At the end I got 100 unordered SMS sent arrived on fakesmsc (because smppbox sent these new 100 SMS to my smppclient and answer back for each SMS received): Bearerbox - Received SMS: 570 Bearerbox - Sent SMS: 670 Access - Receive SMS: 570 Access - Sent SMS: 670 Smppbox - Deliver_sm: 670 Smppbox - Deliver_sm_resp: 670 Smppbox - Submit_sm: 670 Smppbox - Submit_sm_resp: 670 Please can someone confirm this behavior ? It is an issue and load testing can not be done using SMPPbox Or something is wrong in my Kannel architecture. Can you give me some pointers in order to investiguate more if no one can reproduce this ? Regards, Emmanuel 2010/10/13 Emmanuel CHANSON emmanuelchan...@gmail.com Yes Nikos, I downloaded and installed kannel opensmppbox this week from SVN site. Emmanuel 2010/10/13 Nikos Balkanas nbalka...@gmail.com Hi, Do you use latest smppbox svn? I remember that sometime back it had some ACK issues and bb would resend SMS. But it has been fixed since. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Wednesday, October 13, 2010 7:21 AM Subject: Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smppclient), more message than ordered sent from smppbox Using Fakesmsc and Opensmppbox for load testing of an SMPP application I notice strange behavior of Kannel (surrely bad configuration, I hope) Fakesmsc -- Bearerbox -- Opensmppbox -- Smpp client Config file at the end: Test: When I send 1 SMS from Fakesmsc (5656) to my SMPP application (1065) this application answer back with a SMS to the original sender. ie for 1 SMS sent from fakesmsc 1 should be received. From fakesmsc I send 50 SMS with this command: # /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS Below output from a script that parse the log file under /var/log: So I see exactly the 50 SMS sent to my smpp application (50 SMS also on its side) # /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS 2010-10-13 14:31:08 [29344] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2010-10-13 14:31:08 [29344] [0] INFO: Host 127.0.0.1 Port 10001 interval 0.200 max-messages 50 2010-10-13 14:31:08 [29344] [0] INFO: fakesmsc starting 2010-10-13 14:31:08 [29344] [0] DEBUG: Connecting to 127.0.0.1 2010-10-13 14:31:08 [29344] [0] DEBUG: fakesmsc: sent message 1
Re: smsbox to opensmppbox routing
Thanks Nikos, I succeed finally to complete my purpose (send SMS to an smpp client and receive from it) by using fakesmsc and smsbox-route to route SMS to opensmppbox, for DLRs I will work without them. opensmppbox can route sms to fakesmsc with route-smsc parameter. It is for load testing. With fakesms I can control throuput whereas with smsbox cgi script I need to use loopback and for the moment it does not work for incoming SMS coming from smppclient. And for AO-AT (send and receive by using 2 smpp client and loopback smsc I will do more tests using allowed-smsc as you advise, to check if it works. Emmanuel 2010/10/12 Nikos Balkanas nbalka...@gmail.com Sorry, missed the other part of your question. I see it creating the dlr_entry, however, it is not doing anything with it. If you want DLRs you should go with http smsc and system kannel. BR, Nikos - Original Message - From: Nikos Balkanas nbalka...@gmail.com To: Emmanuel CHANSON emmanuelchan...@gmail.com; users users@kannel.org Sent: Tuesday, October 12, 2010 10:48 AM Subject: Re: smsbox to opensmppbox routing Hi, To force SMS delivery to desired smsc you have to use allowed-smsc-id in each one to only itself. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas ; users Sent: Tuesday, October 12, 2010 7:10 AM Subject: Re: smsbox to opensmppbox routing One more question, Is loopback SMS able to handle DLRs ? I dont see anything about this in user guide. I made test and DLRs are not sent to smsbox in order to trigg DLR-URL Emmanuel 2010/10/12 Emmanuel CHANSON emmanuelchan...@gmail.com Ok here I got a problem, For understanding below the purpose and test conditions: Purpose of the test: I need to send SMS from smsbox cgi script to 1 smpp application. For this I have smsbox --- sqlbox (not mandatory here) --- bearerbox I have configured 2 smscs: group = smsc smsc = loopback smsc-id = loop1 group = smsc smsc = loopback smsc-id = loop2 and 2 smsbox-route associated where all SMS from loop1 are fwd to smppclient1=mmg: second route if when smppclient1 answer back to my cgi script group = smsbox-route smsbox-id = sqlbox-mo smsc-id = loop2 group = smsbox-route smsbox-id = mmg smsc-id = loop1 Then I have connected to bearerbox an opensmppbox with 1 SMPP application with a route to loop2 when application will answer back to my SMS sent from the CGI script. bearerbox --- opensmppbox --- smpp_client1 group = opensmppbox opensmppbox-id = smppbox opensmppbox-port = 6201 bearerbox-host = localhost bearerbox-port = 13001 log-level = 0 log-file = /var/log/kannel/opensmppbox.log our-system-id = opensmppbox route-to-smsc = loop2 smpp-logins = /etc/kannel/smpplogins.txt smsbox.conf: group = sendsms-user username = xxx password = xxx #user-deny-ip = #user-allow-ip = default-smsc = loop1 #forced-smsc = loop1 max-messages = 4 concatenation = true CGI script - smsbox - sqlbox - bearerbox - loop1 - bearerbox - opensmppbox - smppclient1 then smppclient1 make an action it send back a SMS smppclient1 -- opensmppbox -- bearerbox -- loop2 -- bearerbox -- sqlbox -- smsbox But I got a problem at the begining, about smsc routing, Just after smsbox sqlbox, I see bearerbox forwarding SMS either to smsc loop1 or smsc loop2 ramdomly although I have specified in url the value smsc=loop1 to inject sms only to loop1 in order to trigg opensmppbox . Where is the problem ? Is it a bug ? I made a test with 2 fakesmsc only connected to bearerbox, calling smsbox cgi script it works well when invoking smsc=fake1 or smsc=fake2 but if I add or use only loop smsc, bearerbox start to send sms randomly to loop 1 or others smscs. Logs with 2 tests done one after the other through sendsms script with smsc=loop1 that should forward to mmg smpp client and not send back to to sqlbox, 1 is nok, 2 is ok but this is not normal. bearerbox.log: ... 2010-10-12 11:38:35 [9021] [18] DEBUG: boxc_receiver: sms received 2010-10-12 11:38:35 [9021] [15] DEBUG: send_msg: sending msg to boxc: sqlbox-mo 2010-10-12 11:38:35 [9021] [15] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-10-12 11:38:35 [9021] [14] DEBUG: boxc_receiver: got ack 2010-10-12 11:38:35 [9021] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-12 11:38:49 [9021] [18] DEBUG: boxc_receiver: sms received 2010-10-12 11:38:49 [9021] [21] DEBUG: send_msg: sending msg to boxc: mmg 2010-10-12 11:38:49 [9021] [21] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-10-12 11:38:49 [9021] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-12 11:38:49 [9021] [24] ERROR: BOXC: Got ack for nonexistend message! 2010-10-12 11:38:49 [9021] [24] DEBUG: Msg object at 0xb5600b38: 2010-10-12 11:38:49 [9021] [24] DEBUG: type: ack 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.nack: 0 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.time: 1286843929
Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smpp client), more message than ordered sent from smppbox
Using Fakesmsc and Opensmppbox for load testing of an SMPP application I notice strange behavior of Kannel (surrely bad configuration, I hope) Fakesmsc -- Bearerbox -- Opensmppbox -- Smpp client Config file at the end: Test: When I send 1 SMS from Fakesmsc (5656) to my SMPP application (1065) this application answer back with a SMS to the original sender. ie for 1 SMS sent from fakesmsc 1 should be received. From fakesmsc I send 50 SMS with this command: *# /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS* Below output from a script that parse the log file under /var/log: So I see exactly the 50 SMS sent to my smpp application (50 SMS also on its side) *# /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS 2010-10-13 14:31:08 [29344] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2010-10-13 14:31:08 [29344] [0] INFO: Host 127.0.0.1 Port 10001 interval 0.200 max-messages 50 2010-10-13 14:31:08 [29344] [0] INFO: fakesmsc starting 2010-10-13 14:31:08 [29344] [0] DEBUG: Connecting to 127.0.0.1 2010-10-13 14:31:08 [29344] [0] DEBUG: fakesmsc: sent message 1 2010-10-13 14:31:08 [29344] [0] DEBUG: fakesmsc: sent message 2* ... 2010-10-13 14:31:18 [29344] [0] DEBUG: fakesmsc: sent message 49 2010-10-13 14:31:18 [29344] [0] INFO: fakesmsc: sent message 50 2010-10-13 14:31:19 [29344] [0] DEBUG: Got message 1: 1065 5656 text 50 SMS 2010-10-13 14:31:20 [29344] [0] DEBUG: Got message 2: 1065 5656 text 50 SMS ... 2010-10-13 14:32:07 [29344] [0] DEBUG: Got message 49: 1065 5656 text 50 SMS 2010-10-13 14:32:08 [29344] [0] INFO: Got message 50: 1065 5656 text 50 SMS # ./stat.sh Bearerbox - Received SMS: 50 (cat bearerbox.log | grep new message | wc -l) Bearerbox - Sent SMS: 50 (cat bearerbox.log | grep sending message | wc -l) Access - Receive SMS: 50 (cat access.log | grep Receive SMS | wc -l) Access - Sent SMS: 50 (cat access.log | grep Sent SMS | wc -l) Smppbox - Deliver_sm: 50(cat opensmppbox.log | grep deliver_sm | wc -l) Smppbox - Submit_sm: 50 (cat opensmppbox.log | grep submit_sm | wc -l) But some minutes after I see new messages sent from kannel (not from fakesmsc), 31 more !! ... 2010-10-13 14:37:31 [29344] [0] DEBUG: Got message 51: 1065 5656 text 50 SMS 2010-10-13 14:37:32 [29344] [0] DEBUG: Got message 52: 1065 5656 text 50 SMS ... 2010-10-13 14:38:00 [29344] [0] DEBUG: Got message 80: 1065 5656 text 50 SMS 2010-10-13 14:38:01 [29344] [0] DEBUG: Got message 81: 1065 5656 text 50 SMS I close fakesmsc: *^C2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: 50 messages sent and 81 received 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: total running time 1490.5 seconds 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: from first to last sent message 9.8 s, 5.0 msgs/s 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: from first to last received message 402.0 s, 0.2 msgs/s 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: terminating #* logs parsed by the script stat.sh # ./stat.sh Bearerbox - Received SMS: 50 Bearerbox - Sent SMS: 81 -- bearerbox sent 31 new messages to fakesmsc Access - Receive SMS: 50 Access - Sent SMS: 81 -- 31 new messages logged in access.log Smppbox - Deliver_sm: 81 -- smppbox received these 31 new messages forward them to smpp client Smppbox - Submit_sm: 81 -- and smppclient answer back with 31 new message going to fakesmsc *From where comes theses messages ? It seems it is smppbox that seems to receive 31 new messages but from where !* I check in detail opensmppbox.log: Ifound that smppbox shutdown and restarted after the 50 messages have been sent at 14:32, 4 minutes later it restarted: *2010-10-13 14:32:08 [25805] [267] DEBUG: message_id: b91ac635 2010-10-13 14:32:08 [25805] [267] DEBUG: SMPP PDU dump ends. 2010-10-13 14:36:21 [25805] [266] DEBUG: Thread 266 (opensmppbox.c:smpp_to_bearerbox) terminates. 2010-10-13 14:36:21 [25805] [265] DEBUG: Thread 265 (opensmppbox.c:function) terminates. 2010-10-13 14:36:21 [25805] [0] DEBUG: Started thread 269 (opensmppbox.c:function) 2010-10-13 14:36:21 [25805] [269] DEBUG: Thread 269 (opensmppbox.c:function) maps to pid 25805. 2010-10-13 14:36:21 [25805] [269] INFO: Client connected from 163.176.17.238 2010-10-13 14:36:21 [25805] [269] DEBUG: Connecting to 127.0.0.1 2010-10-13 14:36:21 [25805] [269] INFO: Connected to bearerbox at localhost port 13001. 2010-10-13 14:36:21 [25805] [269] DEBUG: Started thread 270 (opensmppbox.c:smpp_to_bearerbox) 2010-10-13 14:36:21 [25805] [270] DEBUG: Thread 270 (opensmppbox.c:smpp_to_bearerbox) maps to pid 25805. 2010-10-13 14:36:26 [25805] [270] DEBUG: SMPP[smppbox]: Got PDU: 2010-10-13 14:36:26 [25805] [270] DEBUG: SMPP PDU 0xb2f814b0 dump: 2010-10-13 14:36:26 [25805] [270] DEBUG: type_name: bind_receiver 2010-10-13 14:36:26 [25805] [270] DEBUG: command_id: 1 = 0x0001
Re: Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smppclient), more message than ordered sent from smppbox
Yes Nikos, I downloaded and installed kannel opensmppbox this week from SVN site. Emmanuel 2010/10/13 Nikos Balkanas nbalka...@gmail.com Hi, Do you use latest smppbox svn? I remember that sometime back it had some ACK issues and bb would resend SMS. But it has been fixed since. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Wednesday, October 13, 2010 7:21 AM Subject: Strange behavior on kannel (fakesmsc + bearerbox + opensmppbox + smppclient), more message than ordered sent from smppbox Using Fakesmsc and Opensmppbox for load testing of an SMPP application I notice strange behavior of Kannel (surrely bad configuration, I hope) Fakesmsc -- Bearerbox -- Opensmppbox -- Smpp client Config file at the end: Test: When I send 1 SMS from Fakesmsc (5656) to my SMPP application (1065) this application answer back with a SMS to the original sender. ie for 1 SMS sent from fakesmsc 1 should be received. From fakesmsc I send 50 SMS with this command: # /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS Below output from a script that parse the log file under /var/log: So I see exactly the 50 SMS sent to my smpp application (50 SMS also on its side) # /usr/bin/fakesmsc -r 10001 -H 127.0.0.1 -i 0.2 -m 50 5656 1065 text 50 SMS 2010-10-13 14:31:08 [29344] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2010-10-13 14:31:08 [29344] [0] INFO: Host 127.0.0.1 Port 10001 interval 0.200 max-messages 50 2010-10-13 14:31:08 [29344] [0] INFO: fakesmsc starting 2010-10-13 14:31:08 [29344] [0] DEBUG: Connecting to 127.0.0.1 2010-10-13 14:31:08 [29344] [0] DEBUG: fakesmsc: sent message 1 2010-10-13 14:31:08 [29344] [0] DEBUG: fakesmsc: sent message 2 ... 2010-10-13 14:31:18 [29344] [0] DEBUG: fakesmsc: sent message 49 2010-10-13 14:31:18 [29344] [0] INFO: fakesmsc: sent message 50 2010-10-13 14:31:19 [29344] [0] DEBUG: Got message 1: 1065 5656 text 50 SMS 2010-10-13 14:31:20 [29344] [0] DEBUG: Got message 2: 1065 5656 text 50 SMS ... 2010-10-13 14:32:07 [29344] [0] DEBUG: Got message 49: 1065 5656 text 50 SMS 2010-10-13 14:32:08 [29344] [0] INFO: Got message 50: 1065 5656 text 50 SMS # ./stat.sh Bearerbox - Received SMS: 50 (cat bearerbox.log | grep new message | wc -l) Bearerbox - Sent SMS: 50 (cat bearerbox.log | grep sending message | wc -l) Access - Receive SMS: 50 (cat access.log | grep Receive SMS | wc -l) Access - Sent SMS: 50 (cat access.log | grep Sent SMS | wc -l) Smppbox - Deliver_sm: 50(cat opensmppbox.log | grep deliver_sm | wc -l) Smppbox - Submit_sm: 50 (cat opensmppbox.log | grep submit_sm | wc -l) But some minutes after I see new messages sent from kannel (not from fakesmsc), 31 more !! ... 2010-10-13 14:37:31 [29344] [0] DEBUG: Got message 51: 1065 5656 text 50 SMS 2010-10-13 14:37:32 [29344] [0] DEBUG: Got message 52: 1065 5656 text 50 SMS ... 2010-10-13 14:38:00 [29344] [0] DEBUG: Got message 80: 1065 5656 text 50 SMS 2010-10-13 14:38:01 [29344] [0] DEBUG: Got message 81: 1065 5656 text 50 SMS I close fakesmsc: ^C2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: 50 messages sent and 81 received 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: total running time 1490.5 seconds 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: from first to last sent message 9.8 s, 5.0 msgs/s 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: from first to last received message 402.0 s, 0.2 msgs/s 2010-10-13 14:55:59 [29344] [0] INFO: fakesmsc: terminating # logs parsed by the script stat.sh # ./stat.sh Bearerbox - Received SMS: 50 Bearerbox - Sent SMS: 81 -- bearerbox sent 31 new messages to fakesmsc Access - Receive SMS: 50 Access - Sent SMS: 81 -- 31 new messages logged in access.log Smppbox - Deliver_sm: 81 -- smppbox received these 31 new messages forward them to smpp client Smppbox - Submit_sm: 81 -- and smppclient answer back with 31 new message going to fakesmsc From where comes theses messages ? It seems it is smppbox that seems to receive 31 new messages but from where ! I check in detail opensmppbox.log: Ifound that smppbox shutdown and restarted after the 50 messages have been sent at 14:32, 4 minutes later it restarted: 2010-10-13 14:32:08 [25805] [267] DEBUG: message_id: b91ac635 2010-10-13 14:32:08 [25805] [267] DEBUG: SMPP PDU dump ends. 2010-10-13 14:36:21 [25805] [266] DEBUG: Thread 266 (opensmppbox.c:smpp_to_bearerbox) terminates. 2010-10-13 14:36:21 [25805] [265] DEBUG: Thread 265 (opensmppbox.c:function) terminates. 2010-10-13 14:36:21 [25805] [0] DEBUG: Started thread 269 (opensmppbox.c:function) 2010-10-13 14:36:21 [25805] [269] DEBUG: Thread 269 (opensmppbox.c:function) maps to pid 25805. 2010-10-13 14:36:21 [25805] [269] INFO: Client connected from
Re: smsbox to opensmppbox routing
Ok I understand a little more, Is it relevant if I use only one bearerbox and configure this bearerbox to be a client, to connect to smppbox using smsc = smpp ? Then add a routing ? Or do I have to use 2 differents bearerbox for this like you advise? Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Hi, You cannot use it that way. openSMPPbox is an SMPP proxy. It connects to bearerbox as another smsbox, but it cannot connect to directly to smsbox. You can connect an SMPP client (ie ESME - another bearerbox) to it, and it will forward SMS to bearerbox for routing to an smsc. HTH, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Monday, October 11, 2010 8:34 AM Subject: smsbox to opensmppbox routing Hello, I am just discovering opensmppbox (latest svn release compiled and installed with kannel sqlbox svn) My purpose is to send SMS to an smpp application for tests. For this I want to use smsbox cgi script but I got a problem of routing from bearerbox. How can I route these SMS from smsbox to opensmppbox (itself linked to a smpp application), do I have to use smsbox-route ? Below my config and logs: bearerbox.log: ... 2010-10-11 16:24:48 [27991] [17] DEBUG: boxc_receiver: sms received 2010-10-11 16:24:48 [27991] [17] WARNING: Cannot find SMSCConn for message to 1065, rejected. 2010-10-11 16:24:48 [27991] [17] WARNING: Message rejected by bearerbox, no router! 2010-10-11 16:24:48 [27991] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 kannel.conf: - group = core admin-port = 13000 admin-password = xxx status-password = xxx #admin-deny-ip = #admin-allow-ip = log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/access.log #http-proxy-host = 127.0.0.1 #http-proxy-port = 8080 #http-proxy-exceptions = 127.0.0.1 #http-proxy-username = user #http-proxy-password = password #ssl-certkey-file = mycertandprivkeyfile.pem #store-type = file store-type = spool #store-location = /var/log/kannel/kannel.store store-location = /var/spool/kannel dlr-storage = mysql #black-list = http://127.0.0.1/kannel/black-list.txt; white-list-regex = ^\+xxx[0-9]{6}$ # # Smsbox related # Sqlbox at that moment smsbox-port = 13001 # # Wapbox related wapbox-port = 13002 #udp-deny-ip = *.*.*.* udp-allow-ip = 127.0.0.1 #wdp-interface-name = * # Wapbox group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log log-level = 0 syslog-level = none # PPG group = ppg #ppg-url = /wappush ppg-url = /kannel/php-admin/wappush.php ppg-port = 8080 concurrent-pushes = 100 users = 1024 ppg-allow-ip = 127.0.0.1 trusted-pi = true service-name = ppg1 group = wap-push-user wap-push-user = wappush ppg-username = xxx ppg-password = xxx allow-ip = 127.0.0.1 # SMSC CONNECTIONS - GLOBAL FIELDS # SMSC Fake group = smsc smsc = fake smsc-id = FakeSMSC-1 allowed-smsc-id = FakeSMSC-1 host = localhost port = 10001 connect-allow-ip = 127.0.0.1 # # DLR with MySQL support configuration group = mysql-connection id = mydlr host = localhost username = password = xx database = kanneldlr # max count of connections that will be opened for dbpool # default is 1 max-connections = 1 # MySQL Group group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc # # SMSBOX SETUP # NOT USED group = smsbox bearerbox-host = localhost sendsms-port = 13013 #sendsms-chars = 0123456789 +- global-sender = +x log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # group = smsbox-route smsbox-id = mmg opensmppbox.conf: - # sample opensmppbox.conf group = core dlr-storage = mysql # this group defines your opensmppbox group = opensmppbox # our boxc type opensmppbox-id = smppbox # the port to listen on for smpp connections opensmppbox-port = 6201 # we connect to the following host as a box bearerbox-host = localhost bearerbox-port = 13001 log-level = 0 log-file = /var/log/kannel/opensmppbox.log our-system-id = opensmppbox #route-to-smsc = smpp # see sample smpplogins.txt smpp-logins = /etc/kannel/smpplogins.txt # the following is just standard dlr configuration group = mysql-connection id = mydlr host = localhost username = password = xx database = kanneldlr # you can increase this upon a higher load max-connections = 1 group = dlr-db
Re: smsbox to opensmppbox routing
Understood... so I need a second bearerbox to do AO-AT ie Application Originated (smpp client 1) - Application terminated (smpp client 2) I tought smppbox could forward from one client to another but it can not, it forward all SMS to bearerbox that routes SMS. Thanks, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com (Please use list) I don't understand AO-AT. You can get infinite loop if you use careless routing: smsbox - bb - SMSc smppbox--smppbox If you just want to send SMS to SMSc, you don't need smppbox. If you route SMS to smppbox, and smppbox connects to same bb, it will feed again the SMS to the bb, which in turn can feed it again to smppbox, and so on. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Sent: Monday, October 11, 2010 10:24 AM Subject: Re: smsbox to opensmppbox routing So if I want to do AO-AT routing using one bearerbox I can not. This is my purpose. Here I would like to use smsbox cgi script to send SMS but let's say I want to send SMS from one application to another, both will be connected to opensmppbox but in this case I will need the fancy solution.but you said it will end p to infinite loop wy ? Otherwise have to connect second bearerbox. Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Normal way would be to use 2 bbs. Fancy way would be to use a single one, but for what purpose? You would end up with an infinite loop. The idea is to be able to connect transparently other SMPP clients to your infrastructure and appear as another aggregator. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Monday, October 11, 2010 10:00 AM Subject: Re: smsbox to opensmppbox routing Ok I understand a little more, Is it relevant if I use only one bearerbox and configure this bearerbox to be a client, to connect to smppbox using smsc = smpp ? Then add a routing ? Or do I have to use 2 differents bearerbox for this like you advise? Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Hi, You cannot use it that way. openSMPPbox is an SMPP proxy. It connects to bearerbox as another smsbox, but it cannot connect to directly to smsbox. You can connect an SMPP client (ie ESME - another bearerbox) to it, and it will forward SMS to bearerbox for routing to an smsc. HTH, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Monday, October 11, 2010 8:34 AM Subject: smsbox to opensmppbox routing Hello, I am just discovering opensmppbox (latest svn release compiled and installed with kannel sqlbox svn) My purpose is to send SMS to an smpp application for tests. For this I want to use smsbox cgi script but I got a problem of routing from bearerbox. How can I route these SMS from smsbox to opensmppbox (itself linked to a smpp application), do I have to use smsbox-route ? Below my config and logs: bearerbox.log: ... 2010-10-11 16:24:48 [27991] [17] DEBUG: boxc_receiver: sms received 2010-10-11 16:24:48 [27991] [17] WARNING: Cannot find SMSCConn for message to 1065, rejected. 2010-10-11 16:24:48 [27991] [17] WARNING: Message rejected by bearerbox, no router! 2010-10-11 16:24:48 [27991] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 kannel.conf: - group = core admin-port = 13000 admin-password = xxx status-password = xxx #admin-deny-ip = #admin-allow-ip = log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/access.log #http-proxy-host = 127.0.0.1 #http-proxy-port = 8080 #http-proxy-exceptions = 127.0.0.1 #http-proxy-username = user #http-proxy-password = password #ssl-certkey-file = mycertandprivkeyfile.pem #store-type = file store-type = spool #store-location = /var/log/kannel/kannel.store store-location = /var/spool/kannel dlr-storage = mysql #black-list = http://127.0.0.1/kannel/black-list.txt; white-list-regex = ^\+xxx[0-9]{6}$ # # Smsbox related # Sqlbox at that moment smsbox-port = 13001 # # Wapbox related wapbox-port = 13002 #udp-deny-ip = *.*.*.* udp-allow-ip = 127.0.0.1 #wdp-interface-name = * # Wapbox group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log log-level = 0 syslog-level = none # PPG group = ppg #ppg-url = /wappush ppg-url = /kannel/php-admin/wappush.php ppg-port = 8080 concurrent-pushes = 100 users = 1024 ppg-allow-ip = 127.0.0.1 trusted-pi = true service-name = ppg1 group = wap-push-user wap-push-user = wappush ppg-username = xxx ppg-password = xxx allow-ip = 127.0.0.1 # SMSC CONNECTIONS - GLOBAL FIELDS # SMSC Fake group = smsc smsc = fake smsc-id = FakeSMSC-1 allowed-smsc-id = FakeSMSC-1 host = localhost port = 10001 connect-allow-ip = 127.0.0.1 # # DLR with MySQL support
Re: smsbox to opensmppbox routing
To clarify about the solution to use 2 BB is it possible? I don't understand in your last mail if you talk about fancy way or normal way, or if it is not possible at all to do AO-AT routing :s Regards, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Nope. BB is an SMPP client and can send only to an SMPP server. If your applications are clients, you cannot connect to them with bb. SMPPbox cannot help you either, because it cannot route between 2 SMPP clients. You may be able to connect both applications to SMPPbox and then use either the loopback smsc or the http smsc (system kannel) to force a loopback on bb. However I am not sure how you will do the routing from one application to the other (smsbox in this case). You see, loopback and http smsc send back only to the originating smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users@kannel.org Sent: Monday, October 11, 2010 11:21 AM Subject: Re: smsbox to opensmppbox routing Understood... so I need a second bearerbox to do AO-AT ie Application Originated (smpp client 1) - Application terminated (smpp client 2) I tought smppbox could forward from one client to another but it can not, it forward all SMS to bearerbox that routes SMS. Thanks, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com (Please use list) I don't understand AO-AT. You can get infinite loop if you use careless routing: smsbox - bb - SMSc smppbox--smppbox If you just want to send SMS to SMSc, you don't need smppbox. If you route SMS to smppbox, and smppbox connects to same bb, it will feed again the SMS to the bb, which in turn can feed it again to smppbox, and so on. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Sent: Monday, October 11, 2010 10:24 AM Subject: Re: smsbox to opensmppbox routing So if I want to do AO-AT routing using one bearerbox I can not. This is my purpose. Here I would like to use smsbox cgi script to send SMS but let's say I want to send SMS from one application to another, both will be connected to opensmppbox but in this case I will need the fancy solution.but you said it will end p to infinite loop wy ? Otherwise have to connect second bearerbox. Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Normal way would be to use 2 bbs. Fancy way would be to use a single one, but for what purpose? You would end up with an infinite loop. The idea is to be able to connect transparently other SMPP clients to your infrastructure and appear as another aggregator. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Monday, October 11, 2010 10:00 AM Subject: Re: smsbox to opensmppbox routing Ok I understand a little more, Is it relevant if I use only one bearerbox and configure this bearerbox to be a client, to connect to smppbox using smsc = smpp ? Then add a routing ? Or do I have to use 2 differents bearerbox for this like you advise? Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Hi, You cannot use it that way. openSMPPbox is an SMPP proxy. It connects to bearerbox as another smsbox, but it cannot connect to directly to smsbox. You can connect an SMPP client (ie ESME - another bearerbox) to it, and it will forward SMS to bearerbox for routing to an smsc. HTH, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Monday, October 11, 2010 8:34 AM Subject: smsbox to opensmppbox routing Hello, I am just discovering opensmppbox (latest svn release compiled and installed with kannel sqlbox svn) My purpose is to send SMS to an smpp application for tests. For this I want to use smsbox cgi script but I got a problem of routing from bearerbox. How can I route these SMS from smsbox to opensmppbox (itself linked to a smpp application), do I have to use smsbox-route ? Below my config and logs: bearerbox.log: ... 2010-10-11 16:24:48 [27991] [17] DEBUG: boxc_receiver: sms received 2010-10-11 16:24:48 [27991] [17] WARNING: Cannot find SMSCConn for message to 1065, rejected. 2010-10-11 16:24:48 [27991] [17] WARNING: Message rejected by bearerbox, no router! 2010-10-11 16:24:48 [27991] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 kannel.conf: - group = core admin-port = 13000 admin-password = xxx status-password = xxx #admin-deny-ip = #admin-allow-ip = log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/access.log #http-proxy-host = 127.0.0.1 #http-proxy-port = 8080 #http-proxy-exceptions = 127.0.0.1 #http-proxy-username = user #http-proxy-password = password #ssl-certkey-file = mycertandprivkeyfile.pem #store-type = file store-type = spool #store-location = /var/log/kannel/kannel.store store-location = /var/spool/kannel dlr-storage = mysql #black-list = http://127.0.0.1/kannel/black-list.txt; white-list-regex = ^\+xxx[0-9
Re: smsbox to opensmppbox routing
OK will try this new approach Thanks Nikos, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Nope. I am not talking about either solution. I am describing a new approach. You will need 1 bb and 1 smppbox. Connect both apps to smppbox, and smppbox to bearerbox. Then send to loopback smsc or http smsc for MT2MO redirection. Specify with an smsbox-route rule that all incoming MO from looopback smsc should go to AT smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users@kannel.org Sent: Monday, October 11, 2010 1:46 PM Subject: Re: smsbox to opensmppbox routing To clarify about the solution to use 2 BB is it possible? I don't understand in your last mail if you talk about fancy way or normal way, or if it is not possible at all to do AO-AT routing :s Regards, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Nope. BB is an SMPP client and can send only to an SMPP server. If your applications are clients, you cannot connect to them with bb. SMPPbox cannot help you either, because it cannot route between 2 SMPP clients. You may be able to connect both applications to SMPPbox and then use either the loopback smsc or the http smsc (system kannel) to force a loopback on bb. However I am not sure how you will do the routing from one application to the other (smsbox in this case). You see, loopback and http smsc send back only to the originating smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users@kannel.org Sent: Monday, October 11, 2010 11:21 AM Subject: Re: smsbox to opensmppbox routing Understood... so I need a second bearerbox to do AO-AT ie Application Originated (smpp client 1) - Application terminated (smpp client 2) I tought smppbox could forward from one client to another but it can not, it forward all SMS to bearerbox that routes SMS. Thanks, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com (Please use list) I don't understand AO-AT. You can get infinite loop if you use careless routing: smsbox - bb - SMSc smppbox--smppbox If you just want to send SMS to SMSc, you don't need smppbox. If you route SMS to smppbox, and smppbox connects to same bb, it will feed again the SMS to the bb, which in turn can feed it again to smppbox, and so on. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Sent: Monday, October 11, 2010 10:24 AM Subject: Re: smsbox to opensmppbox routing So if I want to do AO-AT routing using one bearerbox I can not. This is my purpose. Here I would like to use smsbox cgi script to send SMS but let's say I want to send SMS from one application to another, both will be connected to opensmppbox but in this case I will need the fancy solution.but you said it will end p to infinite loop wy ? Otherwise have to connect second bearerbox. Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Normal way would be to use 2 bbs. Fancy way would be to use a single one, but for what purpose? You would end up with an infinite loop. The idea is to be able to connect transparently other SMPP clients to your infrastructure and appear as another aggregator. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Monday, October 11, 2010 10:00 AM Subject: Re: smsbox to opensmppbox routing Ok I understand a little more, Is it relevant if I use only one bearerbox and configure this bearerbox to be a client, to connect to smppbox using smsc = smpp ? Then add a routing ? Or do I have to use 2 differents bearerbox for this like you advise? Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Hi, You cannot use it that way. openSMPPbox is an SMPP proxy. It connects to bearerbox as another smsbox, but it cannot connect to directly to smsbox. You can connect an SMPP client (ie ESME - another bearerbox) to it, and it will forward SMS to bearerbox for routing to an smsc. HTH, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Monday, October 11, 2010 8:34 AM Subject: smsbox to opensmppbox routing Hello, I am just discovering opensmppbox (latest svn release compiled and installed with kannel sqlbox svn) My purpose is to send SMS to an smpp application for tests. For this I want to use smsbox cgi script but I got a problem of routing from bearerbox. How can I route these SMS from smsbox to opensmppbox (itself linked to a smpp application), do I have to use smsbox-route ? Below my config and logs: bearerbox.log: ... 2010-10-11 16:24:48 [27991] [17] DEBUG: boxc_receiver: sms received 2010-10-11 16:24:48 [27991] [17] WARNING: Cannot find SMSCConn for message to 1065, rejected. 2010-10-11 16:24:48 [27991] [17] WARNING: Message rejected by bearerbox, no router! 2010-10-11 16:24:48 [27991] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 kannel.conf
Re: smsbox to opensmppbox routing
It seems to work very well and even if I use smsbox (cgi script) SMS is forwarded to opensmppbox using smsbox-route, bearerbox does not send back to the originated box. One question is it possible to create 2 smsc loopback ? in order to be able to send SMS from Application 1 - Application 2 using loopback smsc 1 and smsbox-route 1 and also Application 2 - Application 1 using loopback smsc 2 and smsbox-route 2 Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Nope. I am not talking about either solution. I am describing a new approach. You will need 1 bb and 1 smppbox. Connect both apps to smppbox, and smppbox to bearerbox. Then send to loopback smsc or http smsc for MT2MO redirection. Specify with an smsbox-route rule that all incoming MO from looopback smsc should go to AT smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users@kannel.org Sent: Monday, October 11, 2010 1:46 PM Subject: Re: smsbox to opensmppbox routing To clarify about the solution to use 2 BB is it possible? I don't understand in your last mail if you talk about fancy way or normal way, or if it is not possible at all to do AO-AT routing :s Regards, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Nope. BB is an SMPP client and can send only to an SMPP server. If your applications are clients, you cannot connect to them with bb. SMPPbox cannot help you either, because it cannot route between 2 SMPP clients. You may be able to connect both applications to SMPPbox and then use either the loopback smsc or the http smsc (system kannel) to force a loopback on bb. However I am not sure how you will do the routing from one application to the other (smsbox in this case). You see, loopback and http smsc send back only to the originating smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users@kannel.org Sent: Monday, October 11, 2010 11:21 AM Subject: Re: smsbox to opensmppbox routing Understood... so I need a second bearerbox to do AO-AT ie Application Originated (smpp client 1) - Application terminated (smpp client 2) I tought smppbox could forward from one client to another but it can not, it forward all SMS to bearerbox that routes SMS. Thanks, Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com (Please use list) I don't understand AO-AT. You can get infinite loop if you use careless routing: smsbox - bb - SMSc smppbox--smppbox If you just want to send SMS to SMSc, you don't need smppbox. If you route SMS to smppbox, and smppbox connects to same bb, it will feed again the SMS to the bb, which in turn can feed it again to smppbox, and so on. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Sent: Monday, October 11, 2010 10:24 AM Subject: Re: smsbox to opensmppbox routing So if I want to do AO-AT routing using one bearerbox I can not. This is my purpose. Here I would like to use smsbox cgi script to send SMS but let's say I want to send SMS from one application to another, both will be connected to opensmppbox but in this case I will need the fancy solution.but you said it will end p to infinite loop wy ? Otherwise have to connect second bearerbox. Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Normal way would be to use 2 bbs. Fancy way would be to use a single one, but for what purpose? You would end up with an infinite loop. The idea is to be able to connect transparently other SMPP clients to your infrastructure and appear as another aggregator. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Monday, October 11, 2010 10:00 AM Subject: Re: smsbox to opensmppbox routing Ok I understand a little more, Is it relevant if I use only one bearerbox and configure this bearerbox to be a client, to connect to smppbox using smsc = smpp ? Then add a routing ? Or do I have to use 2 differents bearerbox for this like you advise? Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Hi, You cannot use it that way. openSMPPbox is an SMPP proxy. It connects to bearerbox as another smsbox, but it cannot connect to directly to smsbox. You can connect an SMPP client (ie ESME - another bearerbox) to it, and it will forward SMS to bearerbox for routing to an smsc. HTH, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Monday, October 11, 2010 8:34 AM Subject: smsbox to opensmppbox routing Hello, I am just discovering opensmppbox (latest svn release compiled and installed with kannel sqlbox svn) My purpose is to send SMS to an smpp application for tests. For this I want to use smsbox cgi script but I got a problem of routing from bearerbox. How can I route these SMS from smsbox to opensmppbox (itself linked to a smpp application), do I have to use smsbox-route ? Below my config and logs: bearerbox.log
Re: smsbox to opensmppbox routing
Ok here I got a problem, For understanding below the purpose and test conditions: Purpose of the test: I need to send SMS from smsbox cgi script to 1 smpp application. For this I have smsbox --- sqlbox (not mandatory here) --- bearerbox I have configured 2 smscs: *group = smsc smsc = loopback smsc-id = loop1 group = smsc smsc = loopback smsc-id = loop2* and 2 smsbox-route associated where all SMS from loop1 are fwd to smppclient1=mmg: second route if when smppclient1 answer back to my cgi script *group = smsbox-route smsbox-id = sqlbox-mo smsc-id = loop2 group = smsbox-route smsbox-id = mmg smsc-id = loop1* Then I have connected to bearerbox an opensmppbox with 1 SMPP application with a route to loop2 when application will answer back to my SMS sent from the CGI script. bearerbox --- opensmppbox --- smpp_client1 * group = opensmppbox opensmppbox-id = smppbox opensmppbox-port = 6201 bearerbox-host = localhost bearerbox-port = 13001 log-level = 0 log-file = /var/log/kannel/opensmppbox.log our-system-id = opensmppbox route-to-smsc = loop2 smpp-logins = /etc/kannel/smpplogins.txt* smsbox.conf: group = sendsms-user username = xxx password = xxx #user-deny-ip = #user-allow-ip = *default-smsc = loop1* #forced-smsc = loop1 max-messages = 4 concatenation = true CGI script - smsbox - sqlbox - bearerbox - loop1 - bearerbox - opensmppbox - smppclient1 then smppclient1 make an action it send back a SMS smppclient1 -- opensmppbox -- bearerbox -- loop2 -- bearerbox -- sqlbox -- smsbox *But I got a problem at the begining, about smsc routing, Just after smsbox sqlbox, I see bearerbox forwarding SMS either to smsc loop1 or smsc loop2 ramdomly although I have specified in url the value smsc=loop1 to inject sms only to loop1 in order to trigg opensmppbox . Where is the problem ?* Is it a bug ? *I made a test with 2 fakesmsc only connected to bearerbox, calling smsbox cgi script it works well when invoking smsc=fake1 or smsc=fake2 but if I add or use only loop smsc, bearerbox start to send sms randomly to loop 1 or others smscs.* Logs with 2 tests done one after the other through sendsms script with smsc=loop1 that should forward to mmg smpp client and not send back to to sqlbox, 1 is nok, 2 is ok but this is not normal. bearerbox.log: ... 2010-10-12 11:38:35 [9021] [18] DEBUG: boxc_receiver: sms received 2010-10-12 11:38:35 [9021] [15] DEBUG: *send_msg: sending msg to boxc: sqlbox-mo* 2010-10-12 11:38:35 [9021] [15] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-10-12 11:38:35 [9021] [14] DEBUG: boxc_receiver: got ack 2010-10-12 11:38:35 [9021] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-12 11:38:49 [9021] [18] DEBUG: boxc_receiver: sms received 2010-10-12 11:38:49 [9021] [21] DEBUG: *send_msg: sending msg to boxc: mmg * 2010-10-12 11:38:49 [9021] [21] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-10-12 11:38:49 [9021] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-12 11:38:49 [9021] [24] ERROR: BOXC: Got ack for nonexistend message! 2010-10-12 11:38:49 [9021] [24] DEBUG: Msg object at 0xb5600b38: 2010-10-12 11:38:49 [9021] [24] DEBUG: type: ack 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.nack: 0 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.time: 1286843929 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.id: 8634c78a-7f2e-403a-b1d6-02c717bb753a 2010-10-12 11:38:49 [9021] [24] DEBUG: Msg object ends. 2010-10-12 11:38:49 [9021] [24] DEBUG: boxc_receiver: got ack Regards, Emmanuel 2010/10/12 Nikos Balkanas nbalka...@gmail.com Yeap. It behaves like any other smsc. Just use different smsc-ids. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Tuesday, October 12, 2010 1:07 AM Subject: Re: smsbox to opensmppbox routing It seems to work very well and even if I use smsbox (cgi script) SMS is forwarded to opensmppbox using smsbox-route, bearerbox does not send back to the originated box. One question is it possible to create 2 smsc loopback ? in order to be able to send SMS from Application 1 - Application 2 using loopback smsc 1 and smsbox-route 1 and also Application 2 - Application 1 using loopback smsc 2 and smsbox-route 2 Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Nope. I am not talking about either solution. I am describing a new approach. You will need 1 bb and 1 smppbox. Connect both apps to smppbox, and smppbox to bearerbox. Then send to loopback smsc or http smsc for MT2MO redirection. Specify with an smsbox-route rule that all incoming MO from looopback smsc should go to AT smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users@kannel.org Sent: Monday, October 11, 2010 1:46 PM Subject: Re: smsbox to opensmppbox routing To clarify about the solution to use 2 BB is it possible? I don't understand in your last mail if you talk about fancy way or normal way, or if it is not possible at all to do
Re: smsbox to opensmppbox routing
One more question, Is loopback SMS able to handle DLRs ? I dont see anything about this in user guide. I made test and DLRs are not sent to smsbox in order to trigg DLR-URL Emmanuel 2010/10/12 Emmanuel CHANSON emmanuelchan...@gmail.com Ok here I got a problem, For understanding below the purpose and test conditions: Purpose of the test: I need to send SMS from smsbox cgi script to 1 smpp application. For this I have smsbox --- sqlbox (not mandatory here) --- bearerbox I have configured 2 smscs: *group = smsc smsc = loopback smsc-id = loop1 group = smsc smsc = loopback smsc-id = loop2* and 2 smsbox-route associated where all SMS from loop1 are fwd to smppclient1=mmg: second route if when smppclient1 answer back to my cgi script *group = smsbox-route smsbox-id = sqlbox-mo smsc-id = loop2 group = smsbox-route smsbox-id = mmg smsc-id = loop1* Then I have connected to bearerbox an opensmppbox with 1 SMPP application with a route to loop2 when application will answer back to my SMS sent from the CGI script. bearerbox --- opensmppbox --- smpp_client1 * group = opensmppbox opensmppbox-id = smppbox opensmppbox-port = 6201 bearerbox-host = localhost bearerbox-port = 13001 log-level = 0 log-file = /var/log/kannel/opensmppbox.log our-system-id = opensmppbox route-to-smsc = loop2 smpp-logins = /etc/kannel/smpplogins.txt * smsbox.conf: group = sendsms-user username = xxx password = xxx #user-deny-ip = #user-allow-ip = *default-smsc = loop1* #forced-smsc = loop1 max-messages = 4 concatenation = true CGI script - smsbox - sqlbox - bearerbox - loop1 - bearerbox - opensmppbox - smppclient1 then smppclient1 make an action it send back a SMS smppclient1 -- opensmppbox -- bearerbox -- loop2 -- bearerbox -- sqlbox -- smsbox *But I got a problem at the begining, about smsc routing, Just after smsbox sqlbox, I see bearerbox forwarding SMS either to smsc loop1 or smsc loop2 ramdomly although I have specified in url the value smsc=loop1 to inject sms only to loop1 in order to trigg opensmppbox . Where is the problem ?* Is it a bug ? *I made a test with 2 fakesmsc only connected to bearerbox, calling smsbox cgi script it works well when invoking smsc=fake1 or smsc=fake2 but if I add or use only loop smsc, bearerbox start to send sms randomly to loop 1 or others smscs.* Logs with 2 tests done one after the other through sendsms script with smsc=loop1 that should forward to mmg smpp client and not send back to to sqlbox, 1 is nok, 2 is ok but this is not normal. bearerbox.log: ... 2010-10-12 11:38:35 [9021] [18] DEBUG: boxc_receiver: sms received 2010-10-12 11:38:35 [9021] [15] DEBUG: *send_msg: sending msg to boxc: sqlbox-mo* 2010-10-12 11:38:35 [9021] [15] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-10-12 11:38:35 [9021] [14] DEBUG: boxc_receiver: got ack 2010-10-12 11:38:35 [9021] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-12 11:38:49 [9021] [18] DEBUG: boxc_receiver: sms received 2010-10-12 11:38:49 [9021] [21] DEBUG: *send_msg: sending msg to boxc: mmg* 2010-10-12 11:38:49 [9021] [21] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-10-12 11:38:49 [9021] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-12 11:38:49 [9021] [24] ERROR: BOXC: Got ack for nonexistend message! 2010-10-12 11:38:49 [9021] [24] DEBUG: Msg object at 0xb5600b38: 2010-10-12 11:38:49 [9021] [24] DEBUG: type: ack 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.nack: 0 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.time: 1286843929 2010-10-12 11:38:49 [9021] [24] DEBUG: ack.id: 8634c78a-7f2e-403a-b1d6-02c717bb753a 2010-10-12 11:38:49 [9021] [24] DEBUG: Msg object ends. 2010-10-12 11:38:49 [9021] [24] DEBUG: boxc_receiver: got ack Regards, Emmanuel 2010/10/12 Nikos Balkanas nbalka...@gmail.com Yeap. It behaves like any other smsc. Just use different smsc-ids. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Tuesday, October 12, 2010 1:07 AM Subject: Re: smsbox to opensmppbox routing It seems to work very well and even if I use smsbox (cgi script) SMS is forwarded to opensmppbox using smsbox-route, bearerbox does not send back to the originated box. One question is it possible to create 2 smsc loopback ? in order to be able to send SMS from Application 1 - Application 2 using loopback smsc 1 and smsbox-route 1 and also Application 2 - Application 1 using loopback smsc 2 and smsbox-route 2 Emmanuel 2010/10/11 Nikos Balkanas nbalka...@gmail.com Nope. I am not talking about either solution. I am describing a new approach. You will need 1 bb and 1 smppbox. Connect both apps to smppbox, and smppbox to bearerbox. Then send to loopback smsc or http smsc for MT2MO redirection. Specify with an smsbox-route rule that all incoming MO from looopback smsc should go to AT smsbox. BR, Nikos - Original Message
Re: Re : SMSC returned error code 0x0000000b (Invalid Destination Address) in response to submit_sm.
Finally Kidi did you solve this issue ? Me no, I found out my issue maybe linked to ESM_CLASS, will try the patch below as maybe my SMS-C does not accept the default message mode Kannel uses: 0x03 (Store and Forward), Most SMS-C use 0x00 (Default Mode). Well, regarding esm_class, I always have to modify smsc_smpp.c on line: pdu-u.submit_sm.esm_class = ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE to pdu-u.submit_sm.esm_class = ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE In order for my operator's SMSCs being able to process my messages. They seem to like a 0 instead of a 3 on esm_class. I'd love to be able to do that without patching Kannel! I think a config directive would suffice for me, but I think that maybe there are some people that would also like to do that on a message basis... Regards, BTW, I am not not in France Elton :), but thanks for your help BR, Emmanuel 2010/10/8 Elton Hoxha elt...@gmail.com Both of you guys are posting from France, probably connected to the same SMSC :) Maybe operator is having any night activity and destination tables of SMSC have been affected. On Fri, Oct 8, 2010 at 1:28 AM, Kidi Kidi kidi...@yahoo.fr wrote: either i use the parameters below or not i get the same result. i have a shortcode 2845 and i want to sent a message to a long phone number. source-addr-ton=1 source-addr-npi=1 dest-addr-ton=1 dest-addr-npi=1 bind-addr-ton=1 bind-addr-npi=1 -- *De :* Emmanuel CHANSON emmanuelchan...@gmail.com *À :* Kidi Kidi kidi...@yahoo.fr *Cc :* users@kannel.org *Envoyé le :* Jeu 7 octobre 2010, 23h 12min 58s *Objet :* Re: SMSC returned error code 0x000b (Invalid Destination Address) in response to submit_sm. I have exactly the same issue at the moment and I try to determine if it is a Kannel or SMSC issue: I try different combination of TON NPI without success. For the moment I would say it is a SMSC configuration issue...but bearerbox.log - 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: Got PDU: 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP PDU 0xb3802be0 dump: 2010-10-07 10:54:34 [16729] [6] DEBUG: type_name: enquire_link_resp 2010-10-07 10:54:34 [16729] [6] DEBUG: command_id: 2147483669 = 0x8015 2010-10-07 10:54:34 [16729] [6] DEBUG: command_status: 0 = 0x 2010-10-07 10:54:34 [16729] [6] DEBUG: sequence_number: 37 = 0x0025 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP PDU dump ends. 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:55:00 [16729] [18] DEBUG: boxc_receiver: sms received 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: Sending PDU: 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP PDU 0xb3803980 dump: 2010-10-07 10:55:00 [16729] [6] DEBUG: type_name: submit_sm 2010-10-07 10:55:00 [16729] [6] DEBUG: command_id: 4 = 0x0004 2010-10-07 10:55:00 [16729] [6] DEBUG: command_status: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: sequence_number: 38 = 0x0026 2010-10-07 10:55:00 [16729] [6] DEBUG: service_type: NULL 2010-10-07 10:55:00 [16729] [6] DEBUG: source_addr_ton: 2 = 0x0002 2010-10-07 10:55:00 [16729] [6] DEBUG: source_addr_npi: 1 = 0x0001 2010-10-07 10:55:00 [16729] [6] DEBUG: source_addr: 5656 2010-10-07 10:55:00 [16729] [6] DEBUG: dest_addr_ton: 1 = 0x0001 2010-10-07 10:55:00 [16729] [6] DEBUG: dest_addr_npi: 1 = 0x0001 2010-10-07 10:55:00 [16729] [6] DEBUG: destination_addr: x 2010-10-07 10:55:00 [16729] [6] DEBUG: esm_class: 3 = 0x0003 2010-10-07 10:55:00 [16729] [6] DEBUG: protocol_id: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: priority_flag: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: schedule_delivery_time: NULL 2010-10-07 10:55:00 [16729] [6] DEBUG: validity_period: NULL 2010-10-07 10:55:00 [16729] [6] DEBUG: registered_delivery: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: replace_if_present_flag: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: data_coding: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: sm_default_msg_id: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: sm_length: 4 = 0x0004 2010-10-07 10:55:00 [16729] [6] DEBUG: short_message: test 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP PDU dump ends. 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: throughput (1.00,0.00) 2010-10-07 10:55:00 [16729] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: throughput (1.00,0.00) 2010-10-07 10:55:00 [16729] [6] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: Got PDU: 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP PDU
smsbox to opensmppbox routing
Hello, I am just discovering opensmppbox (latest svn release compiled and installed with kannel sqlbox svn) My purpose is to send SMS to an smpp application for tests. For this I want to use smsbox cgi script but I got a problem of routing from bearerbox. *How can I route these SMS from smsbox to opensmppbox (itself linked to a smpp application), do I have to use smsbox-route ?* Below my config and logs: bearerbox.log: ... 2010-10-11 16:24:48 [27991] [17] DEBUG: boxc_receiver: sms received 2010-10-11 16:24:48 [27991] [17] WARNING: Cannot find SMSCConn for message to 1065, rejected. 2010-10-11 16:24:48 [27991] [17] WARNING: Message rejected by bearerbox, no router! 2010-10-11 16:24:48 [27991] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 kannel.conf: - group = core admin-port = 13000 admin-password = xxx status-password = xxx #admin-deny-ip = #admin-allow-ip = log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/access.log #http-proxy-host = 127.0.0.1 #http-proxy-port = 8080 #http-proxy-exceptions = 127.0.0.1 #http-proxy-username = user #http-proxy-password = password #ssl-certkey-file = mycertandprivkeyfile.pem #store-type = file store-type = spool #store-location = /var/log/kannel/kannel.store store-location = /var/spool/kannel dlr-storage = mysql #black-list = http://127.0.0.1/kannel/black-list.txt; white-list-regex = ^\+xxx[0-9]{6}$ # # Smsbox related # Sqlbox at that moment smsbox-port = 13001 # # Wapbox related wapbox-port = 13002 #udp-deny-ip = *.*.*.* udp-allow-ip = 127.0.0.1 #wdp-interface-name = * # Wapbox group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log log-level = 0 syslog-level = none # PPG group = ppg #ppg-url = /wappush ppg-url = /kannel/php-admin/wappush.php ppg-port = 8080 concurrent-pushes = 100 users = 1024 ppg-allow-ip = 127.0.0.1 trusted-pi = true service-name = ppg1 group = wap-push-user wap-push-user = wappush ppg-username = xxx ppg-password = xxx allow-ip = 127.0.0.1 # SMSC CONNECTIONS - GLOBAL FIELDS # SMSC Fake group = smsc smsc = fake smsc-id = FakeSMSC-1 allowed-smsc-id = FakeSMSC-1 host = localhost port = 10001 connect-allow-ip = 127.0.0.1 # # DLR with MySQL support configuration group = mysql-connection id = mydlr host = localhost username = password = xx database = kanneldlr # max count of connections that will be opened for dbpool # default is 1 max-connections = 1 # MySQL Group group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc # # SMSBOX SETUP # NOT USED group = smsbox bearerbox-host = localhost sendsms-port = 13013 #sendsms-chars = 0123456789 +- global-sender = +x log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # group = smsbox-route smsbox-id = mmg opensmppbox.conf: - # sample opensmppbox.conf group = core dlr-storage = mysql # this group defines your opensmppbox group = opensmppbox # our boxc type opensmppbox-id = smppbox # the port to listen on for smpp connections opensmppbox-port = 6201 # we connect to the following host as a box bearerbox-host = localhost bearerbox-port = 13001 log-level = 0 log-file = /var/log/kannel/opensmppbox.log our-system-id = opensmppbox #route-to-smsc = smpp # see sample smpplogins.txt smpp-logins = /etc/kannel/smpplogins.txt # the following is just standard dlr configuration group = mysql-connection id = mydlr host = localhost username = password = xx database = kanneldlr # you can increase this upon a higher load max-connections = 1 group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxcid opensmpplogin.txt: --- mmgmmgmmg Regards, Emmanuel
Re: SMSC returned error code 0x0000000b (Invalid Destination Address) in response to submit_sm.
I have exactly the same issue at the moment and I try to determine if it is a Kannel or SMSC issue: I try different combination of TON NPI without success. For the moment I would say it is a SMSC configuration issue...but bearerbox.log - 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: Got PDU: 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP PDU 0xb3802be0 dump: 2010-10-07 10:54:34 [16729] [6] DEBUG: type_name: enquire_link_resp 2010-10-07 10:54:34 [16729] [6] DEBUG: command_id: 2147483669 = 0x8015 2010-10-07 10:54:34 [16729] [6] DEBUG: command_status: 0 = 0x 2010-10-07 10:54:34 [16729] [6] DEBUG: sequence_number: 37 = 0x0025 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP PDU dump ends. 2010-10-07 10:54:34 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:55:00 [16729] [18] DEBUG: boxc_receiver: sms received 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: throughput (0.00,0.00) 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: Sending PDU: 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP PDU 0xb3803980 dump: 2010-10-07 10:55:00 [16729] [6] DEBUG: type_name: submit_sm 2010-10-07 10:55:00 [16729] [6] DEBUG: command_id: 4 = 0x0004 2010-10-07 10:55:00 [16729] [6] DEBUG: command_status: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: sequence_number: 38 = 0x0026 2010-10-07 10:55:00 [16729] [6] DEBUG: service_type: NULL 2010-10-07 10:55:00 [16729] [6] DEBUG: source_addr_ton: 2 = 0x0002 2010-10-07 10:55:00 [16729] [6] DEBUG: source_addr_npi: 1 = 0x0001 2010-10-07 10:55:00 [16729] [6] DEBUG: source_addr: 5656 2010-10-07 10:55:00 [16729] [6] DEBUG: dest_addr_ton: 1 = 0x0001 2010-10-07 10:55:00 [16729] [6] DEBUG: dest_addr_npi: 1 = 0x0001 2010-10-07 10:55:00 [16729] [6] DEBUG: destination_addr: x 2010-10-07 10:55:00 [16729] [6] DEBUG: esm_class: 3 = 0x0003 2010-10-07 10:55:00 [16729] [6] DEBUG: protocol_id: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: priority_flag: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: schedule_delivery_time: NULL 2010-10-07 10:55:00 [16729] [6] DEBUG: validity_period: NULL 2010-10-07 10:55:00 [16729] [6] DEBUG: registered_delivery: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: replace_if_present_flag: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: data_coding: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: sm_default_msg_id: 0 = 0x 2010-10-07 10:55:00 [16729] [6] DEBUG: sm_length: 4 = 0x0004 2010-10-07 10:55:00 [16729] [6] DEBUG: short_message: test 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP PDU dump ends. 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: throughput (1.00,0.00) 2010-10-07 10:55:00 [16729] [18] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: throughput (1.00,0.00) 2010-10-07 10:55:00 [16729] [6] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: Got PDU: 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP PDU 0xb3802f50 dump: 2010-10-07 10:55:00 [16729] [6] DEBUG: type_name: submit_sm_resp 2010-10-07 10:55:00 [16729] [6] DEBUG: command_id: 2147483652 = 0x8004 2010-10-07 10:55:00 [16729] [6] DEBUG: command_status: 11 = 0x000b 2010-10-07 10:55:00 [16729] [6] DEBUG: sequence_number: 38 = 0x0026 2010-10-07 10:55:00 [16729] [6] DEBUG: message_id: NULL 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP PDU dump ends. 2010-10-07 10:55:00 [16729] [6] ERROR: SMPP[m]: *SMSC returned error code 0x000b (Invalid Destination Address) in response to submit_sm.* 2010-10-07 10:55:00 [16729] [6] DEBUG: SMPP[m]: throughput (1.00,0.00) Regards, Emmanuel 2010/10/8 Kidi Kidi kidi...@yahoo.fr Hi, I use kannel SMPP ESME and i get this error whenever i try to send a MT message : SMSC returned error code 0x000b (Invalid Destination Address) in response to submit_sm.
Re: How To Test GSM Modem Throughput
Tests I have done gave the following results (using Huawei E220) Without DLRs: 1 SMS / 3 seconds With DLR mask = 31: 1 SMS / 7 seconds Regards, Emmanuel 2010/9/28 RIFQI a.ri...@gmail.com Dear All How is the best test for a modem for broadcasting sms? i want to know how many sms the modem can send per-minute? cause i want to create a scheduler for sending the sms. Thanks for the time
Re: How To Test GSM Modem Throughput
I just notice this during some mailling for instance to send 100 SMS it tooks about 11 minutes to send them AND to receive DLR (ACK Success) Because during these period the modem has to send and handle the delivery report that comes back from SMSC and it can only handle message one by one. I don't know if it depends from others parameters like your location from the GSM antenna, congestion, etc... Emmanuel 2010/9/28 RIFQI a.ri...@gmail.com Thanks for the replay. it mean only 8 SMS per minute? how you get the 3 second 7 second? could you tell me how to do the test? On Tue, Sep 28, 2010 at 2:27 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: Tests I have done gave the following results (using Huawei E220) Without DLRs: 1 SMS / 3 seconds With DLR mask = 31: 1 SMS / 7 seconds Regards, Emmanuel 2010/9/28 RIFQI a.ri...@gmail.com Dear All How is the best test for a modem for broadcasting sms? i want to know how many sms the modem can send per-minute? cause i want to create a scheduler for sending the sms. Thanks for the time
Re: How To Test GSM Modem Throughput
My conclusion was 7 seconds per SMS in average for the modem in order to Send, Receive ACK (to SMS-C) and Receive Delivery Report (to the recipient) so for 100 recipient you will have 300 message to be handled by the modem ( kannel) But you can configure DLR mask in order to handle or not ACK DLR, check user guide. Emmanuel 2010/9/28 RIFQI a.ri...@gmail.com 11 minute is until the message arrive to the recipient? On Tue, Sep 28, 2010 at 3:37 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: I just notice this during some mailling for instance to send 100 SMS it tooks about 11 minutes to send them AND to receive DLR (ACK Success) Because during these period the modem has to send and handle the delivery report that comes back from SMSC and it can only handle message one by one. I don't know if it depends from others parameters like your location from the GSM antenna, congestion, etc... Emmanuel 2010/9/28 RIFQI a.ri...@gmail.com Thanks for the replay. it mean only 8 SMS per minute? how you get the 3 second 7 second? could you tell me how to do the test? On Tue, Sep 28, 2010 at 2:27 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: Tests I have done gave the following results (using Huawei E220) Without DLRs: 1 SMS / 3 seconds With DLR mask = 31: 1 SMS / 7 seconds Regards, Emmanuel 2010/9/28 RIFQI a.ri...@gmail.com Dear All How is the best test for a modem for broadcasting sms? i want to know how many sms the modem can send per-minute? cause i want to create a scheduler for sending the sms. Thanks for the time
Re: how i read messages from SIM card, and how i store the message
You should: - stop kannel - use minicom to connect to your modem and use the following command AT+CMGD described here ( http://www.developershome.com/sms/cmgdCommand.asp ) to delete SMS *Here is another example. Suppose you want to delete all SMS messages stored in the message storage area. To do this, assign 4 to the flags parameter of the +CMGD AT command. The value assigned to the index parameter does not matter since it will be ignored by the GSM/GPRS modem or mobile phone. AT+CMGD=1,4 OK *- restart Kannel with message-start=0 in modems.conf on the huawei section Emmanuel 2010/9/22 Zaharia Constantin soulra...@muscel.ro no change, and when i add the message-start = 0, kannel is not starting, whay? if ai add the init string like in you config, the log is verry quiet, but i don't know how to read the message from sim, when is recived. What is you metod to read the recived message? Do you still have SMS stored in modem storage ? you should see it in bearerbox.log: * 2010-09-22 21:00:09 [1629] [20] DEBUG: AT2[huawei_e220]: -- AT+CPMS?^M 2010-09-22 21:00:09 [1629] [20] DEBUG: AT2[huawei_e220]: -- +CPMS: ME,0,255,SM,0,60,SM,0,60 2010-09-22 21:00:09 [1629] [20] DEBUG: AT2[huawei_e220]: -- OK 2010-09-22 21:00:13 [1629] [20] DEBUG: AT2[huawei_e220]: -- ^BOOT:92407792,0,0,0,6* For instance you may have sthg like +CPMS: ME,*1,255*,SM,0,60,SM,0,60 Stop Kannel, try to check this and delete it using minicom with AT+CMGD command: some help: http://www.developershome.com/sms/cmgdCommand.asp Then start Kannel my config in modems.conf group = modems id = huawei_e220 name = Huawei E220 detect-string = huawei #init-string = AT S7=45 S0=0 L1 V1 X4 c1 E1 Q0 #init-string = ATQ0 V1 E1 S0=0 D2 +FCLASS=0 init-string = AT+CNMI=2,1,2,2,0 message-storage = me speed = 460800 message-start = 0 I had the same issue but disappeared after deleting SMS in modem storage then restarting Kannel. Regards, Emmanuel 2010/9/22 Zaharia Constantin soulra...@muscel.ro yes, is in /dev/ttyUSB1. i have read the link above, but i don't know how to make this changes, or how to update the kannel using ubuntu. Which /dev do you use to attache the modem ? /dev/ttyUSB1 ? read this http://kerneltrap.org/node/17017 Regards Emmanuel 2010/9/22 Zaharia Constantin soulra...@muscel.ro hy, so, the config file is in atachment. i use a Huawei e160e(E220) on ubuntu. The problem with that is that i can't read the message from this modem, i get this error in log files: 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44^M 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=45^M 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=45 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=46^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=46 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=47^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=47 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=48^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=48 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=49^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=49 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=50^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=50 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- +CMS ERROR: 321 2010-09-21 16:04:42 [3780] [6] ERROR: AT2[huawei_E160e]: CMS ERROR: +CMS ERROR: 321 2010-09-21 16:04:42 [3780] [6] ERROR: AT2[huawei_E160e]: CMS ERROR: Invalid memory index - don't worry, just memory fragmentation. (321) 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: failed to get
Re: how i read messages from SIM card, and how i store the message
Which /dev do you use to attache the modem ? /dev/ttyUSB1 ? read this http://kerneltrap.org/node/17017 Regards Emmanuel 2010/9/22 Zaharia Constantin soulra...@muscel.ro hy, so, the config file is in atachment. i use a Huawei e160e(E220) on ubuntu. The problem with that is that i can't read the message from this modem, i get this error in log files: 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44^M 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=45^M 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=45 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=46^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=46 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=47^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=47 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=48^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=48 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=49^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=49 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=50^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=50 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- +CMS ERROR: 321 2010-09-21 16:04:42 [3780] [6] ERROR: AT2[huawei_E160e]: CMS ERROR: +CMS ERROR: 321 2010-09-21 16:04:42 [3780] [6] ERROR: AT2[huawei_E160e]: CMS ERROR: Invalid memory index - don't worry, just memory fragmentation. (321) 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: failed to get message 50. and i can't get rid of this error. after that i will need to concentrate on the script to get the message from SIM card and the messages that i have send from kannel. Hi Zaharia This http://www.mail-archive.com/users@kannel.org/msg20081.html site should be able to solve your problem. However I suggest that you post your whole configuration file(you can mask the sensitve data like passwords, ips etc) so that we have a loook. Plus if you install new programes after kannel has been compiled i think it can not use them so i suggest that you recompile Kannel. What make is your modem? Huawei? Lastly this http://www.ddj.co.za/kannel-for-windows site has got a nice and easy installer of kannel. I hope this helps. 2010/9/21 Zaharia Constantin soulra...@muscel.ro is not working with message-start = 0 what i have to do, to read the sms from sim card? is any problem in init string?or something else? i have a USB modem E160e(E220) Hi, Try to add: message-start = 0 to your group = modems section BR, Tomasz W Twoim liście datowanym 20 września 2010 (14:56:44) można przeczytać: i have restart the machine, but nothing, the seam error...what is wrong? offtopic: and the sqlbox, when i starting sqlbox /etc/kannel/sqlbox.config segmentation fault whay:( Constantin Zaharia try restarting your machine 2010/9/20 Zaharia Constantin soulra...@muscel.ro How i setup the sqlbox? i have installed using apt-get, but now i don't know what i have to do... is necessary to start some application? and now i get another error, regarding the read of sms from sim 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=43^M 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=43 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44^M 2010-09-14 23:51:37 [10621] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44 2010-09-14 23:51:37
Re: how i read messages from SIM card, and how i store the message
Do you still have SMS stored in modem storage ? you should see it in bearerbox.log: * 2010-09-22 21:00:09 [1629] [20] DEBUG: AT2[huawei_e220]: -- AT+CPMS?^M 2010-09-22 21:00:09 [1629] [20] DEBUG: AT2[huawei_e220]: -- +CPMS: ME,0,255,SM,0,60,SM,0,60 2010-09-22 21:00:09 [1629] [20] DEBUG: AT2[huawei_e220]: -- OK 2010-09-22 21:00:13 [1629] [20] DEBUG: AT2[huawei_e220]: -- ^BOOT:92407792,0,0,0,6* For instance you may have sthg like +CPMS: ME,*1,255*,SM,0,60,SM,0,60 Stop Kannel, try to check this and delete it using minicom with AT+CMGD command: some help: http://www.developershome.com/sms/cmgdCommand.asp Then start Kannel my config in modems.conf group = modems id = huawei_e220 name = Huawei E220 detect-string = huawei #init-string = AT S7=45 S0=0 L1 V1 X4 c1 E1 Q0 #init-string = ATQ0 V1 E1 S0=0 D2 +FCLASS=0 init-string = AT+CNMI=2,1,2,2,0 message-storage = me speed = 460800 message-start = 0 I had the same issue but disappeared after deleting SMS in modem storage then restarting Kannel. Regards, Emmanuel 2010/9/22 Zaharia Constantin soulra...@muscel.ro yes, is in /dev/ttyUSB1. i have read the link above, but i don't know how to make this changes, or how to update the kannel using ubuntu. Which /dev do you use to attache the modem ? /dev/ttyUSB1 ? read this http://kerneltrap.org/node/17017 Regards Emmanuel 2010/9/22 Zaharia Constantin soulra...@muscel.ro hy, so, the config file is in atachment. i use a Huawei e160e(E220) on ubuntu. The problem with that is that i can't read the message from this modem, i get this error in log files: 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44^M 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=44 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=45^M 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=45 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:41 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=46^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=46 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=47^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=47 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=48^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=48 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=49^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=49 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- OK 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: not deleted. 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=50^M 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- AT+CMGR=50 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: -- +CMS ERROR: 321 2010-09-21 16:04:42 [3780] [6] ERROR: AT2[huawei_E160e]: CMS ERROR: +CMS ERROR: 321 2010-09-21 16:04:42 [3780] [6] ERROR: AT2[huawei_E160e]: CMS ERROR: Invalid memory index - don't worry, just memory fragmentation. (321) 2010-09-21 16:04:42 [3780] [6] DEBUG: AT2[huawei_E160e]: failed to get message 50. and i can't get rid of this error. after that i will need to concentrate on the script to get the message from SIM card and the messages that i have send from kannel. Hi Zaharia This http://www.mail-archive.com/users@kannel.org/msg20081.html site should be able to solve your problem. However I suggest that you post your whole configuration file(you can mask the sensitve data like passwords, ips etc) so that we have a loook. Plus if you install new programes after kannel has been compiled i think it can not use them so i suggest that you recompile Kannel. What make is your modem? Huawei? Lastly this http://www.ddj.co.za/kannel-for-windows site has got a nice and easy installer of kannel. I hope this helps. 2010/9/21 Zaharia Constantin soulra...@muscel.ro is not working with message-start = 0 what i have to do, to read the sms from sim card? is any problem in init string?or something else? i have a USB modem E160e(E220) Hi, Try to add:
Re: Broadcast SMS with Kannel.... help please.
Hello Aldo, For this you can create some shell/PHP/ script that use the HTTP CGI interface of smsbox to send broadcast SMS or use a Web GUI that have this functionnality. Elite SMS (licensed): http://www.elite-sms-software.com PlaySMS (free) 0.9.5 http://playsms.sourceforge.net/ or http://playsms-km2.mediacom.nc/ Others.. Emmanuel 2010/9/20 Aldo Zavala a...@cleartalk.net Hi, Is there some script already done or a built in function that allows Kannel to send a broadcast SMS? I am not sure if my previous email was blocked so I am sending it again. Sorry if you received this twice... Aldo
Re: is there any FREE Billing and graphical interface
You should download it from SVN: http://sourceforge.telkomspeedy.com/scm/?group_id=8 Docs are under sources Please for others question about PlaySMS join the mailling list. Regards, Emmanuel 2010/9/12 Ayman Khalaf ay...@iboon.net Hi Is there any Manual that explain how install it with Kannal cause I'm still starter , and is it possible to install it with Kannel on shard hosting , and I try to find v 0.9.5 but I didn't find it , the available is 0.9.4 thanks and waiting On Sep 12, 2010, at 8:22 AM, Emmanuel CHANSON wrote: PlaySMS may be your solution, 0.9.5-rc1 has a billing and rating module available. Main project: http://playsms.sourceforge.net/ Mailling list: http://groups.yahoo.com/group/playsms-devel/ Other branch more dedicated to Kannel Mbuni: http://playsms-km2.mediacom.nc/?lang=en 2010/9/11 Ayman Khalaf ay...@iboon.net Hi All I just want to become SMS Provider and I still in began and can't stand a big cost for shareware cause I'm living in low income country and most software programing in high income country so I choose Kannel Gateway But I still need Billing System and graphical interface that can my customer send by it or by Http and SMPP and let me put differential prices for different country and different network etc Could you advice me Thanks and waiting *Dr. Ayman Khalaf* AHTeam Co Ltd Managing Director Mobile *+963 988 539344* E-mail *ay...@iboon.net* *Website* *www.iBoon.net*
Re: is there any FREE Billing and graphical interface
PlaySMS may be your solution, 0.9.5-rc1 has a billing and rating module available. Main project: http://playsms.sourceforge.net/ Mailling list: http://groups.yahoo.com/group/playsms-devel/ Other branch more dedicated to Kannel Mbuni: http://playsms-km2.mediacom.nc/?lang=en 2010/9/11 Ayman Khalaf ay...@iboon.net Hi All I just want to become SMS Provider and I still in began and can't stand a big cost for shareware cause I'm living in low income country and most software programing in high income country so I choose Kannel Gateway But I still need Billing System and graphical interface that can my customer send by it or by Http and SMPP and let me put differential prices for different country and different network etc Could you advice me Thanks and waiting
Re: Nokia 2650 with Kannel
You have open 3 times a thread to ask almost the same question... Not very usefull 2010/9/6 Praveena Sarathchandra pravee...@gmail.com Hello, Has anyone used Nokia 2650 successfully with Kannel? Will this work with all the functionality? Thanks in advance. Best Regards, Praveena J. Sarathchandra Freelance Web Designer/Developer [...@] pravee...@gmail.com [M] +94-77-6275266 [W] www.myBiz.lk
Re: Using Siemens S45 with Kannel
Hello, You can try to use your modem with minicom (or others tools) and AT command especially *AT+CNMI=?* to see if your modem is able to send and receive SMS. BR, Emmanuel 2010/9/5 Praveena Sarathchandra pravee...@gmail.com Hi, Is it possible to have Siemens S45 working with Kannel (to send and receive messages for a 2-way SMS Gateway) Thanks in advance Best Regards, Praveena J. Sarathchandra Freelance Web Designer/Developer [...@] pravee...@gmail.com [M] +94-77-6275266 [W] www.myBiz.lk
Re: Using Siemens S45 with Kannel
AT+CNMI will give some output and if no error then your modem should be able to transfer incoming SMS to Kannel (if I am not wrong) Emmanuel 2010/9/5 Emmanuel CHANSON emmanuelchan...@gmail.com AT+CNMI will give some output and if no error then your modem should be able to transfer incoming SMS to Kannel (if I am not wrong) Emmanuel 2010/9/5 Praveena Sarathchandra pravee...@gmail.com Hi Thanks for your instant reply. I'll give it a try. btw, what does ? stand for in *AT+CNMI=? ?* ** Best Regards, Praveena J. Sarathchandra Freelance Web Designer/Developer [...@] pravee...@gmail.com [M] +94-77-6275266 [W] www.myBiz.lk On Sun, Sep 5, 2010 at 11:54 AM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: Hello, You can try to use your modem with minicom (or others tools) and AT command especially *AT+CNMI=?* to see if your modem is able to send and receive SMS. BR, Emmanuel 2010/9/5 Praveena Sarathchandra pravee...@gmail.com Hi, Is it possible to have Siemens S45 working with Kannel (to send and receive messages for a 2-way SMS Gateway) Thanks in advance Best Regards, Praveena J. Sarathchandra Freelance Web Designer/Developer [...@] pravee...@gmail.com [M] +94-77-6275266 [W] www.myBiz.lk
Re: help with kannel linking with mysql
From where did you get the rpm package ? 2010/9/2 Rene Kluwen rene.klu...@chimit.nl What do you mean linking Kannel with mysql? I am not sure what your purpose is. But maybe the documentation on http://www.blogalex.com/archives/46 will help. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of mac...@fastermail.com Sent: Wednesday, 01 September, 2010 18:11 To: users@kannel.org Subject: help with kannel linking with mysql hi.i installed kannel from an rpm package and i have asked this question to the mailing list members but nobody seems to offer me any help because they always tell me to read the user guide which i have read on many occassions to know avail.anyone who has experiance of configuring kannel with mysql support please provide with the steps that you took bearing in mind that kannel installation was done from an rpm package and that i want to use the mysql that comes with fedora 13.
Re: help with kannel linking with mysql
Answer Kannel 1.4.3.. A new post have been open help on huawei e160 gsm modem with the same subject. 2010/9/2 Emmanuel CHANSON emmanuelchan...@gmail.com From where did you get the rpm package ? 2010/9/2 Rene Kluwen rene.klu...@chimit.nl What do you mean linking Kannel with mysql? I am not sure what your purpose is. But maybe the documentation on http://www.blogalex.com/archives/46 will help. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of mac...@fastermail.com Sent: Wednesday, 01 September, 2010 18:11 To: users@kannel.org Subject: help with kannel linking with mysql hi.i installed kannel from an rpm package and i have asked this question to the mailing list members but nobody seems to offer me any help because they always tell me to read the user guide which i have read on many occassions to know avail.anyone who has experiance of configuring kannel with mysql support please provide with the steps that you took bearing in mind that kannel installation was done from an rpm package and that i want to use the mysql that comes with fedora 13.
Re: Reading received sms
Check PlaySMS http://playsms.sourceforge.net/, *- SMS autoreply, for easy autoreplying formatted incoming SMS* Integrated with Kannel it will make your life easier :) Emmanuel 2010/8/31 Alex nomu...@gmail.com Hi all I am developing an sms app in php using this wonderful gateway. I need to receive an sms process it and then send an auto reply but i am a bit stuck. I been reading the sms-service section of the user guide but Imust admit I am yet to understand it. Does any one have an exaple implemenation for exaple a service that listens for sms and just dumps them in a mysql database. Thanks. -- Best regards, Alex
Re: have some questions
For PlaySMS, there is users list you can subscribe in order to get help: Send empty email to *playsms*-*devel*-subscr...@yahoogroups.com to join the group and tutorial are include in sources (in order to integrate it with Kannel). BR, Emmanuel 2010/9/1 Rene Kluwen rene.klu...@chimit.nl I suggest you read through the users guide. You can find it on http://www.kannel.org/. It’s why it is there. == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Ayman Khalaf *Sent:* Tuesday, 31 August, 2010 14:13 *To:* Emmanuel CHANSON; users@kannel.org *Subject:* Re: have some questions Hi Thanks for your reply How can I setup this Playsms version with Kannel on my website , I still don't install Kannel , so I hope to get helping to install Kannel with playsms ( version that you spoke about it ) on my website , if there is any guide or some thing like that I hope to get it , Cause I don't have much experience on that , I stell starter Thanks and waiting your reply Best Regards Ayman On Aug 31, 2010, at 3:34 AM, Emmanuel CHANSON wrote: Depending what you are looking for, PlaySMS 0.9.5-svn : A Credit SMS Rate option is present Current Features - Multiple database engine supported (using PHP PEAR DB) - Send SMS to single mobile phone (web2mobile) - Send SMS broadcasted to a group of mobile phones (web2mobiles) - Support sending flash and unicode message - Receive private SMS to Inbox (mobile2web) - Forward single SMS from mobile to a group of mobile phones (mobile2mobiles) - SMS autoreply, for easy autoreplying formatted incoming SMS - SMS board, forward received SMS to email,html and/or xml page - SMS command, execute server side shell script using SMS - SMS custom, forward incoming SMS to custom SMS application - SMS poll, manage polling system using SMS - SMS quiz, serve quizzes on SMS - SMS subscribe, manage user subscribes to a service using SMS - SMS autosend, automatically send SMS once or repeated - Create your own features, themes and gateway modules as a plugin - Support Gnokii, Kannel, SMS Server Tools or Clickatell - Simple webservices for sending SMS and retrieving delivery reports (input.php) - Long SMS support, length of text configurable on config file - Rate SMS by detination prefix - SMS credit system per user - Web-based interface More dedicated to Kannel ( Mbuni), I have a PlaySMS version where the difference with main project is the following (we are going to merge them for some features, MMS capabilities and others will be addons): Feature added: - Scheduled SMS (use SQLbox) - Mailling SMS (use SQbox instead of SMSbox) - Statistics page - Translation (fr,en) of the GUI - Themes template config from admin panel - Contacts import in CSV now handles UTF-8 characters. - PHP syntaxes fixed (a lot of variable $var['field'] miss simple quote). - Timestamp configuration for Incoming MO from Kannel (geturl.php). - Option to share a subscription service list to a Contact user for Bulk SMS. - Enabling Public visibility for an Admin Contacts group created. - Option to configure a max number of SMS to send in a Bulk SMS. - Statistics page added for users. - Global statistics page for admins. - User guide page added. - Kannel SMS status code displayed in ‘GW Status’ in all_incoming/outgoing_sms (admin) - New theme. - Option to forward message by SMS also in BOARD service (SMS-Mail+SMS). - SMS-C selection on Kannel config (list in MySQL table). This version is not prepared to be distributed but at least it exists, so that you all know the features available and what can be done using PlaySMS, Kannel and Mbuni. Regards, Emmanuel 2010/8/31 Ayman Khalaf ay...@iboon.net Hi Thanks for your reply I hope that I can get your helping to find how I can put Billing and fornt-end graphical system to become sms provider , is playsms use full for me in this case Thanks and waiting On Aug 31, 2010, at 2:38 AM, Nikos Balkanas wrote: Hi, Kannel provides for HTTP/SMPP connectivity to other SMScs. It even provides text-based configuration of sendsms-user for administrator to manage accounts. It doesn't provide billing or front-end graphical app for creating an managing sendsms-user accounts. This will require hiring a consultant to make them for you. BR, Nikos - Original Message - From: Ayman Khalaf To: users@kannel.org ; commerc...@kannel.org Sent: Monday, August 30, 2010 9:57 PM Subject: have some questions Dear Sir I want ask you some question I want to be provider for sms that I can link my APP with another provider by SMPP and HTTP API and let my customer link their APP with my APP by SMPP and HTTP API so I want APP have below features Can create user account and setup prices for every user and every network Can link with other sms provider by SMPP and HTTP API let my customer link
Re: Nokia N73
Hello Zak, What's report 'AT+CNMI' command when using your mobile with minicom ? My Nokia gives the following output (Nokia 6230) *AT+CNMI=? +CNMI: (0-2),(0-3),(0,2,3),(0-2),(0,1) OK* If your gives ERROR then I think you won't be able to use it with Kannel BR, Emmanuel 2010/8/30 Zak xi...@netscape.net Hi All, Anyone at all who used a Nokia N93 or N95 or N97 that can share their config with me? If the phones work on minicom and vwdial, am I correct to assume they should work with kannel as well? but need the correct init string? thanks, Zak -Original Message- From: Gjergji Guri gjergji.g...@facilization.com To: Zak xi...@netscape.net Cc: nbalka...@gmail.com; users@kannel.org Sent: Sun, Aug 29, 2010 10:24 am Subject: Re: Nokia N73 Hi Zak, Have you checked the init string? you can use wvdialconf from the command prompt to find out the inits string of your modem. Are you able to send SMS using the AT commands. You can use minicom program. Cheers, Gjergji On Sun, Aug 29, 2010 at 10:32 AM, Zak xi...@netscape.net wrote: Here's more log from kannel: 2010-08-28 21:28:41 [4145] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2010-08-28 21:28:41 [4145] [0] WARNING: DLR: using default 'internal' for storage type. 2010-08-28 21:28:41 [4145] [0] INFO: DLR using storage type: internal 2010-08-28 21:28:41 [4145] [0] INFO: Added logfile `/usr/local/kannel/logs/kannel.log' with level `0'. 2010-08-28 21:28:41 [4145] [0] INFO: Started access logfile `/usr/local/kannel/logs/core_access.log'. 2010-08-28 21:28:41 [4145] [0] INFO: HTTP: Opening server at port 13000. 2010-08-28 21:28:41 [4145] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-08-28 21:28:41 [4145] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-08-28 21:28:41 [4145] [0] INFO: SMS resend retry set to unlimited. 2010-08-28 21:28:41 [4145] [0] INFO: DLR rerouting for smsc id modem disabled. 2010-08-28 21:28:41 [4145] [0] INFO: Added logfile `/usr/local/kannel/logs/modem.log' with level `1'. 2010-08-28 21:28:41 [4145] [0] INFO: AT2[modem]: configuration shows modemtype Nokia 2010-08-28 21:28:41 [4145] [0] INFO: AT2[modem]: read modem definition for Nokia 2010-08-28 21:28:41 [4145] [0] INFO: 2010-08-28 21:28:41 [4145] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2010-08-28 21:28:41 [4145] [0] INFO: MAIN: Start-up done, entering mainloop 2010-08-28 21:28:41 [4145] [6] INFO: Logging thread `6' to logfile `/usr/local/kannel/logs/modem.log' with level `1'. 2010-08-28 21:28:51 [4145] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2010-08-28 21:28:54 [4145] [0] INFO: All flow threads have died, killing core 2010-08-28 21:28:54 [4145] [0] INFO: Total WDP messages: received 0, sent 0 2010-08-28 21:28:54 [4145] [0] INFO: Total SMS messages: received 0, sent 0 -Original Message- From: Nikos Balkanas nbalka...@gmail.com To: users@kannel.org; Zak xi...@netscape.net Sent: Sun, Aug 29, 2010 1:24 am Subject: Re: Nokia N73 Please repost same logs at maximum detail. BR, Nikos - Original Message - From: Zak To: users@kannel.org Sent: Saturday, August 28, 2010 11:43 PM Subject: Nokia N73 Hi All, I have a Nokia N73 that I could use to send SMS with minicom and also managed to get the init string using wvdial. But not been able to use kannel to get it send or receive SMS. The log from kannel is below and it just keeps on openning and closing device. 2010-08-28 21:28:41 [4145] [6] INFO: AT2[modem]: opening device 2010-08-28 21:28:42 [4145] [6] INFO: AT2[modem]: Logging in 2010-08-28 21:28:42 [4145] [6] INFO: AT2[modem]: init device 2010-08-28 21:28:42 [4145] [6] INFO: AT2[modem]: speed set to 460800 2010-08-28 21:28:43 [4145] [6] INFO: AT2[modem]: AT SMSC successfully opened. 2010-08-28 21:28:45 [4145] [6] INFO: AT2[modem]: Closing device 2010-08-28 21:28:45 [4145] [6] ERROR: AT2[modem]: Couldn't connect (retrying in 10 seconds). My modem config is: group = modems id = Nokia name = Nokia detect-string = Nokia Mobile Phones detect-string2 = N93 need-sleep = true init-string=ATZ enable-mms = true and SMSC group = smsc smsc = at smsc-id = modem modemtype = Nokia device = /dev/ttyACM0 speed = 460800 sim-buffering = true keepalive = 180 idle-timeout = 160 denied-prefix = 633;213;286;200;633;8001;277 log-file = /usr/local/kannel/logs/modem.log log-level=1 My wvdialconf file generated: [Dialer Defaults] Modem = /dev/ttyACM0 Baud = 460800 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ISDN = 0 Modem Type = USB Modem ; Phone = Target Phone Number ; Username = Your Login Name ; Password = Your Password Any help appreciated. Thanks, Zak
Re: Nokia N73
Yes it works perfectly with Kannel for incoming and outgoing SMS. For yours as I said in a previous post for a N70: *For newer models of Nokia phones, e.g., N70, N80, the +CNMI is not supported, and you have no way of detecting incoming SMS. *from this urlhttp://webcache.googleusercontent.com/search?q=cache:ILAJeyI50cAJ:www.codeproject.com/KB/vb/phonesmsrecv.aspx+nokia+Nseries+at%2Bcnmicd=4hl=frct=clnkgl=fr * *I noticed that many nSeries phones does not support AT+CNMI command ie can not forward SMS to Kannel. Maybe someone can confirm this ? Regards, Emmanuel 2010/8/30 Zak xi...@netscape.net Hi Emmanuel, Mine gives Error when I do AT+CNMI. Is your Nokia 6230 working fine for both sending/receiving SMS? -Original Message- From: Emmanuel CHANSON emmanuelchan...@gmail.com To: Zak xi...@netscape.net Cc: gjergji.g...@facilization.com; users@kannel.org Sent: Mon, Aug 30, 2010 11:19 am Subject: Re: Nokia N73 Hello Zak, What's report 'AT+CNMI' command when using your mobile with minicom ? My Nokia gives the following output (Nokia 6230) *AT+CNMI=? +CNMI: (0-2),(0-3),(0,2,3),(0-2),(0,1) OK* If your gives ERROR then I think you won't be able to use it with Kannel BR, Emmanuel 2010/8/30 Zak xi...@netscape.net Hi All, Anyone at all who used a Nokia N93 or N95 or N97 that can share their config with me? If the phones work on minicom and vwdial, am I correct to assume they should work with kannel as well? but need the correct init string? thanks, Zak -Original Message- From: Gjergji Guri gjergji.g...@facilization.com To: Zak xi...@netscape.net Cc: nbalka...@gmail.com; users@kannel.org Sent: Sun, Aug 29, 2010 10:24 am Subject: Re: Nokia N73 Hi Zak, Have you checked the init string? you can use wvdialconf from the command prompt to find out the inits string of your modem. Are you able to send SMS using the AT commands. You can use minicom program. Cheers, Gjergji On Sun, Aug 29, 2010 at 10:32 AM, Zak xi...@netscape.net wrote: Here's more log from kannel: 2010-08-28 21:28:41 [4145] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2010-08-28 21:28:41 [4145] [0] WARNING: DLR: using default 'internal' for storage type. 2010-08-28 21:28:41 [4145] [0] INFO: DLR using storage type: internal 2010-08-28 21:28:41 [4145] [0] INFO: Added logfile `/usr/local/kannel/logs/kannel.log' with level `0'. 2010-08-28 21:28:41 [4145] [0] INFO: Started access logfile `/usr/local/kannel/logs/core_access.log'. 2010-08-28 21:28:41 [4145] [0] INFO: HTTP: Opening server at port 13000. 2010-08-28 21:28:41 [4145] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-08-28 21:28:41 [4145] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-08-28 21:28:41 [4145] [0] INFO: SMS resend retry set to unlimited. 2010-08-28 21:28:41 [4145] [0] INFO: DLR rerouting for smsc id modem disabled. 2010-08-28 21:28:41 [4145] [0] INFO: Added logfile `/usr/local/kannel/logs/modem.log' with level `1'. 2010-08-28 21:28:41 [4145] [0] INFO: AT2[modem]: configuration shows modemtype Nokia 2010-08-28 21:28:41 [4145] [0] INFO: AT2[modem]: read modem definition for Nokia 2010-08-28 21:28:41 [4145] [0] INFO: 2010-08-28 21:28:41 [4145] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2010-08-28 21:28:41 [4145] [0] INFO: MAIN: Start-up done, entering mainloop 2010-08-28 21:28:41 [4145] [6] INFO: Logging thread `6' to logfile `/usr/local/kannel/logs/modem.log' with level `1'. 2010-08-28 21:28:51 [4145] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2010-08-28 21:28:54 [4145] [0] INFO: All flow threads have died, killing core 2010-08-28 21:28:54 [4145] [0] INFO: Total WDP messages: received 0, sent 0 2010-08-28 21:28:54 [4145] [0] INFO: Total SMS messages: received 0, sent 0 -Original Message- From: Nikos Balkanas nbalka...@gmail.com To: users@kannel.org; Zak xi...@netscape.net Sent: Sun, Aug 29, 2010 1:24 am Subject: Re: Nokia N73 Please repost same logs at maximum detail. BR, Nikos - Original Message - From: Zak To: users@kannel.org Sent: Saturday, August 28, 2010 11:43 PM Subject: Nokia N73 Hi All, I have a Nokia N73 that I could use to send SMS with minicom and also managed to get the init string using wvdial. But not been able to use kannel to get it send or receive SMS. The log from kannel is below and it just keeps on openning and closing device. 2010-08-28 21:28:41 [4145] [6] INFO: AT2[modem]: opening device 2010-08-28 21:28:42 [4145] [6] INFO: AT2[modem]: Logging in 2010-08-28 21:28:42 [4145] [6] INFO: AT2[modem]: init device 2010-08-28 21:28:42 [4145] [6] INFO: AT2[modem]: speed set to 460800 2010-08-28 21:28:43 [4145] [6] INFO: AT2[modem]: AT SMSC successfully opened. 2010-08-28 21:28:45 [4145] [6] INFO: AT2[modem]: Closing device 2010-08-28 21:28:45 [4145] [6] ERROR
Re: Nokia N73
Yes USB cable, bluetooth should also work. Nokia 6230 config with Kannel: modem.conf: --- ... group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,2,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = SM kannel.conf: -- ... # SMSC GSM group = smsc smsc = at #SMSC: NOKIA 6230 device = /dev/ttyACM0 smsc-id = nokiaphone modemtype = nokiaphone allowed-smsc-id = nokiaphone sms-center = +x #mynumber = x pin = validityperiod = 167 sim-buffering = true log-file = /var/log/kannel/smsc.log log-level = 0 include = /etc/kannel/modems.conf ... BR, Emmanuel 2010/8/30 Zak xi...@netscape.net Thanks a lot. I think it's better for me to just get an old Nokia 6230 and work with that. Do you use a USB data cable for the Nokia 6230? And also could you share your modem and smsc config for it? Zak. -Original Message- From: Emmanuel CHANSON emmanuelchan...@gmail.com To: Zak xi...@netscape.net Cc: gjergji.g...@facilization.com; users@kannel.org Sent: Mon, Aug 30, 2010 12:07 pm Subject: Re: Nokia N73 Yes it works perfectly with Kannel for incoming and outgoing SMS. For yours as I said in a previous post for a N70: *For newer models of Nokia phones, e.g., N70, N80, the +CNMI is not supported, and you have no way of detecting incoming SMS. *from this urlhttp://webcache.googleusercontent.com/search?q=cache:ILAJeyI50cAJ:www.codeproject.com/KB/vb/phonesmsrecv.aspx+nokia+Nseries+at%2Bcnmicd=4hl=frct=clnkgl=fr * *I noticed that many nSeries phones does not support AT+CNMI command ie can not forward SMS to Kannel. Maybe someone can confirm this ? Regards, Emmanuel 2010/8/30 Zak xi...@netscape.net Hi Emmanuel, Mine gives Error when I do AT+CNMI. Is your Nokia 6230 working fine for both sending/receiving SMS? -Original Message- From: Emmanuel CHANSON emmanuelchan...@gmail.com To: Zak xi...@netscape.net Cc: gjergji.g...@facilization.com; users@kannel.org Sent: Mon, Aug 30, 2010 11:19 am Subject: Re: Nokia N73 Hello Zak, What's report 'AT+CNMI' command when using your mobile with minicom ? My Nokia gives the following output (Nokia 6230) *AT+CNMI=? +CNMI: (0-2),(0-3),(0,2,3),(0-2),(0,1) OK* If your gives ERROR then I think you won't be able to use it with Kannel BR, Emmanuel 2010/8/30 Zak xi...@netscape.net Hi All, Anyone at all who used a Nokia N93 or N95 or N97 that can share their config with me? If the phones work on minicom and vwdial, am I correct to assume they should work with kannel as well? but need the correct init string? thanks, Zak -Original Message- From: Gjergji Guri gjergji.g...@facilization.com To: Zak xi...@netscape.net Cc: nbalka...@gmail.com; users@kannel.org Sent: Sun, Aug 29, 2010 10:24 am Subject: Re: Nokia N73 Hi Zak, Have you checked the init string? you can use wvdialconf from the command prompt to find out the inits string of your modem. Are you able to send SMS using the AT commands. You can use minicom program. Cheers, Gjergji On Sun, Aug 29, 2010 at 10:32 AM, Zak xi...@netscape.net wrote: Here's more log from kannel: 2010-08-28 21:28:41 [4145] [0] INFO: Debug_lvl = 1, log_file = none, log_lvl = 0 2010-08-28 21:28:41 [4145] [0] WARNING: DLR: using default 'internal' for storage type. 2010-08-28 21:28:41 [4145] [0] INFO: DLR using storage type: internal 2010-08-28 21:28:41 [4145] [0] INFO: Added logfile `/usr/local/kannel/logs/kannel.log' with level `0'. 2010-08-28 21:28:41 [4145] [0] INFO: Started access logfile `/usr/local/kannel/logs/core_access.log'. 2010-08-28 21:28:41 [4145] [0] INFO: HTTP: Opening server at port 13000. 2010-08-28 21:28:41 [4145] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-08-28 21:28:41 [4145] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-08-28 21:28:41 [4145] [0] INFO: SMS resend retry set to unlimited. 2010-08-28 21:28:41 [4145] [0] INFO: DLR rerouting for smsc id modem disabled. 2010-08-28 21:28:41 [4145] [0] INFO: Added logfile `/usr/local/kannel/logs/modem.log' with level `1'. 2010-08-28 21:28:41 [4145] [0] INFO: AT2[modem]: configuration shows modemtype Nokia 2010-08-28 21:28:41 [4145] [0] INFO: AT2[modem]: read modem definition for Nokia 2010-08-28 21:28:41 [4145] [0] INFO: 2010-08-28 21:28:41 [4145] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2010-08-28 21:28:41 [4145] [0] INFO: MAIN: Start-up done, entering mainloop 2010-08-28 21:28:41 [4145] [6] INFO: Logging thread `6' to logfile `/usr/local/kannel/logs/modem.log' with level `1'. 2010-08-28 21:28:51 [4145] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2010-08-28 21:28:54 [4145] [0] INFO: All flow threads have died, killing core 2010-08-28 21:28:54
Re: have some questions
Depending what you are looking for, PlaySMS 0.9.5-svn : A Credit SMS Rate option is present Current Features - Multiple database engine supported (using PHP PEAR DB) - Send SMS to single mobile phone (web2mobile) - Send SMS broadcasted to a group of mobile phones (web2mobiles) - Support sending flash and unicode message - Receive private SMS to Inbox (mobile2web) - Forward single SMS from mobile to a group of mobile phones (mobile2mobiles) - SMS autoreply, for easy autoreplying formatted incoming SMS - SMS board, forward received SMS to email,html and/or xml page - SMS command, execute server side shell script using SMS - SMS custom, forward incoming SMS to custom SMS application - SMS poll, manage polling system using SMS - SMS quiz, serve quizzes on SMS - SMS subscribe, manage user subscribes to a service using SMS - SMS autosend, automatically send SMS once or repeated - Create your own features, themes and gateway modules as a plugin - Support Gnokii, Kannel, SMS Server Tools or Clickatell - Simple webservices for sending SMS and retrieving delivery reports (input.php) - Long SMS support, length of text configurable on config file - Rate SMS by detination prefix - SMS credit system per user - Web-based interface More dedicated to Kannel ( Mbuni), I have a PlaySMS version where the difference with main project is the following (we are going to merge them for some features, MMS capabilities and others will be addons): Feature added: - Scheduled SMS (use SQLbox) - Mailling SMS (use SQbox instead of SMSbox) - Statistics page - Translation (fr,en) of the GUI - Themes template config from admin panel - Contacts import in CSV now handles UTF-8 characters. - PHP syntaxes fixed (a lot of variable $var['field'] miss simple quote). - Timestamp configuration for Incoming MO from Kannel (geturl.php). - Option to share a subscription service list to a Contact user for Bulk SMS. - Enabling Public visibility for an Admin Contacts group created. - Option to configure a max number of SMS to send in a Bulk SMS. - Statistics page added for users. - Global statistics page for admins. - User guide page added. - Kannel SMS status code displayed in ‘GW Status’ in all_incoming/outgoing_sms (admin) - New theme. - Option to forward message by SMS also in BOARD service (SMS-Mail+SMS). - SMS-C selection on Kannel config (list in MySQL table). This version is not prepared to be distributed but at least it exists, so that you all know the features available and what can be done using PlaySMS, Kannel and Mbuni. Regards, Emmanuel 2010/8/31 Ayman Khalaf ay...@iboon.net Hi Thanks for your reply I hope that I can get your helping to find how I can put Billing and fornt-end graphical system to become sms provider , is playsms use full for me in this case Thanks and waiting On Aug 31, 2010, at 2:38 AM, Nikos Balkanas wrote: Hi, Kannel provides for HTTP/SMPP connectivity to other SMScs. It even provides text-based configuration of sendsms-user for administrator to manage accounts. It doesn't provide billing or front-end graphical app for creating an managing sendsms-user accounts. This will require hiring a consultant to make them for you. BR, Nikos - Original Message - From: Ayman Khalaf To: users@kannel.org ; commerc...@kannel.org Sent: Monday, August 30, 2010 9:57 PM Subject: have some questions Dear Sir I want ask you some question I want to be provider for sms that I can link my APP with another provider by SMPP and HTTP API and let my customer link their APP with my APP by SMPP and HTTP API so I want APP have below features Can create user account and setup prices for every user and every network Can link with other sms provider by SMPP and HTTP API let my customer link with my APP by SMPP and HTTP API does KANNEL have these features and how can I setup it on my hosting server , cause I have space in JustHost.com and want to setup Kannel on it , and I heard that I can link Playsms with Kannel in the same host space does that will usefull for me ? and how can do that Thanks in advance Best Regards Dr. Ayman Khalaf AHTeam Co Ltd Managing Director Mobile+963 988 539344 e-mailay...@iboon.net Websitewww.iBoon.net Kannel: Open Source WAP and SMS gateway commercial mailing list commerc...@kannel.org NONE OF THE INCLUDED COMMERCIAL OFFERINGS WIHTIN THIS TRANSMITTED INFORMATION IS RELATED TO THE KANNEL GROUP OR THE KANNEL SOFTWARE FOUNDATION. THE SENDER IS RESPONSIBLE FOR THE OFFERING STATEMENTS WITHIN. The information transmitted may be intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. The Kannel Group nor The Kannel Software Foundation are responsible in any way or form if this information is transmitted to any non inteded recipient. Any review, retransmission, dissemination or other use
Re: please recommend
Yes it is, I use it with Kannel SVN and Fedora 13, 64 32 bits. BR, Emmanuel 2010/8/23 Harbhag Singh Sohal harbhag.so...@gmail.com Thanks for the information . One last question , is Huawei e220 modem compatible with kannel and Linux ? 2010/8/22 Nikos Balkanas nbalka...@gmail.com A dedicated modem is a better choice, more stable and higher troughput. In addition, several phones have problems receiving DLRs. BR, Nikos - Original Message - From: Harbhag Singh Sohal To: users@kannel.org Sent: Saturday, August 21, 2010 8:23 PM Subject: please recommend I just want to know if I should use Huawei e220 modem or Nokia handset as GSM modem ?. What is the basic difference between the two ? What are the advantages of modem over cell phone ? or the both will deliver same performance ? If these questions are already answered them pls refer to them as I couldnot find what I am looking for . Thanks so much in advance . -- Harbhag Singh Sohal Website : http://harbhag.wordpress.com/ -- Harbhag Singh Sohal Website : http://harbhag.wordpress.com/ -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Cannot receive sms in kannel and playsms
.htmlhttp://old.nabble.com/Cannot-receive-sms-in-kannel-and-playsms-tp29449251p29%0A449251.html Sent from the Kannel - User mailing list archive at Nabble.com. -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Kannel and mods design question
Hello Nikos, By ACK you mean DLRs coming back ? It seems that if I set the field 'box_id' in the sqlbox table 'send_sms' to my 'smsbox-id' (the one connected to sqlbox-mo) all DLRs coming to bb are forwarded to my smsbox so I can handle correctly on application side all MT sent through sqlbox-mt and the DLRs coming back on the other side. Or I did not understand what you mean... by *sqlbox doesn't send ACKs to bearerbox* Emmanuel 2010/8/12 Nikos Balkanas nbalka...@gmail.com Hi Emmanuel, It just ocured to me that SQLbox-MT will not work. It turns out that sqlbox doesn't send ACKs to bearerbox, so all dlrs received remain in storage and are continuously resent by bb. You have to fudge it by connecting another smsbox to it to supply the missing ACKs. BR, Nikos - Original Message - From: Nikos Balkanas nbalka...@gmail.com To: Emmanuel CHANSON emmanuelchan...@gmail.com Cc: users users@kannel.org Sent: Thursday, August 12, 2010 5:39 AM Subject: Re: Kannel and mods design question Just one more point. I imagine you use sqlbox-MO just for billing. Otherwise an smsbox--besarerbox-modem would be better. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Thursday, August 12, 2010 2:50 AM Subject: Re: Kannel and mods design question Thanks Nikos, You understand well my questions. - 1) For individual SMS pushed better to use smsbox HTTP API - 2) For batch SMS ( AO-MT I mean ) better to use sqlbox injection. - 3) MO and DLRs handled by sqlbox-mo and smsbox I have separated the MO and MT flow by connecting two sqlbox (one for MO and DLRs and the others for MT injection) I know we can think differently (work with just one sqlbox) but I will work like this for my purpose that is to use a GUI ( new PlaySMS branch created called PlaySMS-KMΒ² who can use smsbox HTTP API for single SMS and sqlbox MT injection for batch, with some others things). Regards, Emmanuel 2010/8/12 Nikos Balkanas nbalka...@gmail.com Hi Emmanuel, I don't quite understand what you mean. Can you elaborate? 1) Unitary SMS. You mean individual SMS pushed on demand? Definitely the smsbox HTTP API. You will need some kind of fancy HTTP interface for the client. You may need also online accounting/billing. 2) batch/mailing? You mean batch submit SMS over SMTP? You can definitely use sqlbox for the batch part, you will need some fancy footwork to extract SMS into the DB. 3) MO and DLRs. The scheme you describe will handle both MOs and DLRs. I am not sure what you mean by the distinction of MT-sqlbox and MO-sqlbox, I don't have that much experience with it, and maybe someone can add if it needs something else. AFAIK sqlbox can handle both kinds of traffic, without the need of anything external. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Thursday, August 12, 2010 12:10 AM Subject: Re: Kannel and mods design question Hello, Any advises about this question below ? Regards, Emmanuel 2010/8/11 Emmanuel CHANSON emmanuelchan...@gmail.com I post this question just to get feedback from you experts about the best way to design a kannel system where needs are: - unitary SMS ( CGI script from smsbox in this case is recommended ?) - batch/mailling SMS (MT injection in sqlbox-mt in this case ?) - MOs and DLRs to receives (sqlbox-mo and smsbox in this case ?) Traffic is not high for MO (1 SMS / minute) , a little bit more for MT mailling ( batch of 5000 per day, so DLRs comming back have to be handled) My actuel config: HTTP CGI script -- SMSBOX --- SQLBOX-MO --- BEARERBOX --- MODEM/SMS-C Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | HTTP SCRIPT for MT Injection - SQLBOX-MT--- Question is this relevant to configure Kannel like this for my purposes ? Best Regards, -- Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-CalΞΉdonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-CalΓ©donie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: GSM characters
FYI, I tested your command with lastest Kannel SVN and I got: @£$¥?_?^{}\[~]|???!#¤%'()*+,-./0123456789:;=?¡ABCDEFGHIJKLMNOPQRSTUVWXYZ?? §¿abcdefghijklmnopqrstuvwxyz?ü *Note: I have in my case cgi-script - smsbox - sqlbox - bearerbox* Regards, Emmanuel 2010/8/11 Rene Kluwen rene.klu...@chimit.nl The weird thing is: This string works in Kannel 1.4.1. Kannel 1.4.3 and further do some kind of character set processing. Does that mean that greek characters in these versions cannot be sent anymore? Requirement is to have gsm encoding in the sendsms url. How do I do that? == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Rene Kluwen *Sent:* Wednesday, 11 August, 2010 18:02 *To:* users@kannel.org *Subject:* GSM characters Suppose I send the following text to Kannel’s sendsms url (the complete GSM character set): text=%40%A3%24%A5%E8%E9%F9%EC%F2%C7%D8%F8%C5%E5%10_%12%13%14%15%16%17%18%19%1A%5E%7B%7D%5B%7E%5D%7C%80%C6%E6%DF%C9%21%22%23%A4%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%A1ABCDEFGHIJKLMNOPQRSTUVWXYZ%C4%D6%D1%DC%A7%BFabcdefghijklmnopqrstuvwxyz%E4%F6%F1%FC%E0 Then I should get the following text on my phone: @£$¥èéùìòÇØøÅåΔ_ΦΓΛΩΠΨΣΘΞ^{}\[~]|€ÆæßÉ!#¤%'()*+,-./0123456789:;=?¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà However, I get a different display string. The Greek characters are substituted for question marks. Is this my phone that is acting up? Maybe somebody can test this string for me? My upstream connection is SMPP that accepts the GSM character set. So alt-charset is not needed. == Rene -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Kannel and mods design question
Thanks Nikos, You understand well my questions. - 1) For individual SMS pushed better to use smsbox HTTP API - 2) For batch SMS ( AO-MT I mean ) better to use sqlbox injection. - 3) MO and DLRs handled by sqlbox-mo and smsbox I have separated the MO and MT flow by connecting two sqlbox (one for MO and DLRs and the others for MT injection) I know we can think differently (work with just one sqlbox) but I will work like this for my purpose that is to use a GUI ( new PlaySMS branch created called PlaySMS-KM² who can use smsbox HTTP API for single SMS and sqlbox MT injection for batch, with some others things). Regards, Emmanuel 2010/8/12 Nikos Balkanas nbalka...@gmail.com Hi Emmanuel, I don't quite understand what you mean. Can you elaborate? 1) Unitary SMS. You mean individual SMS pushed on demand? Definitely the smsbox HTTP API. You will need some kind of fancy HTTP interface for the client. You may need also online accounting/billing. 2) batch/mailing? You mean batch submit SMS over SMTP? You can definitely use sqlbox for the batch part, you will need some fancy footwork to extract SMS into the DB. 3) MO and DLRs. The scheme you describe will handle both MOs and DLRs. I am not sure what you mean by the distinction of MT-sqlbox and MO-sqlbox, I don't have that much experience with it, and maybe someone can add if it needs something else. AFAIK sqlbox can handle both kinds of traffic, without the need of anything external. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Thursday, August 12, 2010 12:10 AM Subject: Re: Kannel and mods design question Hello, Any advises about this question below ? Regards, Emmanuel 2010/8/11 Emmanuel CHANSON emmanuelchan...@gmail.com I post this question just to get feedback from you experts about the best way to design a kannel system where needs are: - unitary SMS ( CGI script from smsbox in this case is recommended ?) - batch/mailling SMS (MT injection in sqlbox-mt in this case ?) - MOs and DLRs to receives (sqlbox-mo and smsbox in this case ?) Traffic is not high for MO (1 SMS / minute) , a little bit more for MT mailling ( batch of 5000 per day, so DLRs comming back have to be handled) My actuel config: HTTP CGI script -- SMSBOX --- SQLBOX-MO --- BEARERBOX --- MODEM/SMS-C | | | HTTP SCRIPT for MT Injection - SQLBOX-MT--- Question is this relevant to configure Kannel like this for my purposes ? Best Regards, -- Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calιdonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Kannel and mods design question
I post this question just to get feedback from you experts about the best way to design a kannel system where needs are: - unitary SMS ( CGI script from smsbox in this case is recommended ?) - batch/mailling SMS (MT injection in sqlbox-mt in this case ?) - MOs and DLRs to receives (sqlbox-mo and smsbox in this case ?) Traffic is not high for MO (1 SMS / minute) , a little bit more for MT mailling ( batch of 5000 per day, so DLRs comming back have to be handled) My actuel config: * HTTP CGI script -- SMSBOX --- SQLBOX-MO --- BEARERBOX --- MODEM/SMS-C | * * ** | ** ** | HTTP SCRIPT for MT Injection - SQLBOX-MT---* Question is this relevant to configure Kannel like this for my purposes ? Best Regards, -- Emmanuel
Re: Keyword triggering
Can you post your configuration? Emmanuel 2010/8/7 ha...@aeon.pk ha...@aeon.pk Hi, I have configured kannel to trigger a page on keyword 'm'. But it triggers the same page on other words starting with m, like more or money, etc. Can we restrict it to inspect the first letter only? Regards, Hamza
Re: How to config kannel
Hello Pham, What don't you post your question to kannel mailling list ? at ' users@kannel.org' ? Please post your config file kannel.conf, modems.conf and relevant logs (bearerbox.log at least). Didi you read the User's guide of Kannel ? Regards, Emmanuel 2010/7/18 Pham Anh Tuan pat.p...@gmail.com Dear Mr.Emmanuel My name is Pham Anh Tuan. I'm configuring my phone (Nokia E63) with kannel. It could send SMS from my PC, but i couldn't receive SMS. Please help me how to config kannel to receive SMS. And can I ask you a question, what kind of yor mobile did you use? Thank you very much for reading my email. -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Kannel system with 2 sqlbox and DLRs-URL
My config: HTTP CGI script -- SMSBOX --- SQLBOX-MO --- BEARERBOX --- MODEM | | HTTP SCRIPT for MT Injection - SQLBOX-MT Basically I would like to use sqlbox-mt to send mailling SMS and sqlbox-mo to receive incoming MO. Therefore I would like to handle DLR reports for all MTs sent by SQLBOX-MT. I come to you to get some advises on how to configure the system to handle MOs, MTs and DLRs DLRs can comes from MTs sent by SQLBOX-MT (MT injection) and CGI Script interface of SMSBOX so my question is to know if SQLBOX-MT can fetch DLR URL is no SMSBOX are connected to it, I think the answer is NO ? So I need to route incoming DLRs to SQLBOX-MO ? I notice something strange when I made some tests. What is the purpose of 'boxc_id' in sqlbox ? When sending a SMS from CGI interface, sqlbox-mo insert 'smsbox' in the sent_sms table for this case. DLR-URL is fetched. When sending a SMS with an MT injection (done with sqlbox-mo), sqlbo-mo insert 'sqlbox-mo' (its id in fact) in the boxc_id field, but the DLR URL is not fetched at all, AND if I made the same test but I force to insert 'smsbox' in boxc_id field this time DLR_URL is fetched. An idea ? boxc_id from sqlbox doc: *The bearerbox ID that should handle this message. You can usually leave this one alone* Is it a normal behavior to force this parameter to be 'smsbox' in my case in order to fetch the DLR-URL ? How to handle DLRs correctly in the case where I have 2 sqlbox ? It seems to work with this config below where I route all incoming MO to sqlbox-mo (I think DLRs are incoming MO too) and insert MT in sqlbox-mt using 'boxc_id' = 'smsbox' in order to fetch the DLR-URL when the DLR comes into sqlbox-mo database. sqlbox-mo.conf: -- ### # SQLBOX group = sqlbox id = sqlbox-db #global-sender = bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13005 smsbox-id = sqlbox-mo smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /var/log/kannel/sqlbox.log log-level = 0 group = mysql-connection id = sqlbox-db host = localhost username = root password = m...@c0m! database = kannelsql max-connections = 1 sqlbox-mt.conf: -- ### # SQLBOX group = sqlbox id = sqlbox-mt #global-sender = bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13006 smsbox-id = sqlbox-mt smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /var/log/kannel/sqlbox-mt.log log-level = 0 group = mysql-connection id = sqlbox-mt host = localhost username = root password = m...@c0m! database = sqlboxmt max-connections = 1 kannel.conf: - ... # group = smsbox-route smsbox-id = sqlbox-mo smsc-id = huawei_e220 Regards, -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Huawei E220 / +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321)
A little question about Huawei E220 and this issue: +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) The only solution I have is to connect using minicom to the modem and delete the message. Do you know why does this happen on this modem ? 2010-07-08 09:01:01 [7101] [18] DEBUG: AT2[huawei_e220]: -- ^BOOT:92407792,0,0,0,6 2010-07-08 09:01:31 [7101] [18] DEBUG: AT2[huawei_e220]: -- ^BOOT:92407792,0,0,0,6 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CPMS?^M 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- +CPMS: SM,1,60,SM,1,60,SM,1,60 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- OK 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: 1 messages waiting in memory 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=1^M 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- OK 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=2^M ... ... 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=59^M 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- OK 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=60^M 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- +CMS ERROR: 321 2010-07-08 09:01:53 [7101] [18] ERROR: AT2[huawei_e220]: +CMS ERROR: +CMS ERROR: 321 2010-07-08 09:01:53 [7101] [18] ERROR: AT2[huawei_e220]: +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: failed to get message 60. My modems config: group = modems id = huawei_e220 name = Huawei E220 detect-string = huawei init-string = AT+CNMI=2,1,2,2,0 message-storage = sm speed = 460800 kannel.conf: ... # SMSC GSM group = smsc smsc = at #SMSC: HUAWEI E220 device = /dev/ttyUSB1 smsc-id = huawei_e220 modemtype = huawei_e220 allowed-smsc-id = huawei_e220 sms-center = +687xx #mynumber = 687xx pin = validityperiod = 167 sim-buffering = true log-file = /var/log/kannel/smsc.log log-level = 0 include = /etc/kannel/modems.conf ... Regards, -- Emmanuel
Re: Huawei E220 / +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321)
Thanks Rene, I have modified for 'ME', deleted the remaining SMS and restarted Kannel, will check if it happens again. If Alvajo or someone else have an idea why this error occurs using Huawei E220... BR, Emmanuel 2010/7/8 Rene Kluwen rene.klu...@chimit.nl Don’t know why this is occurs or how to solve it. But a workaround might be using “me” memory instead of “sm”? It may speed up things a little bit as well and probably you will have more memory indices. == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Emmanuel CHANSON *Sent:* donderdag 8 juli 2010 0:07 *To:* users *Subject:* Huawei E220 / +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) A little question about Huawei E220 and this issue: +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) The only solution I have is to connect using minicom to the modem and delete the message. Do you know why does this happen on this modem ? 2010-07-08 09:01:01 [7101] [18] DEBUG: AT2[huawei_e220]: -- ^BOOT:92407792,0,0,0,6 2010-07-08 09:01:31 [7101] [18] DEBUG: AT2[huawei_e220]: -- ^BOOT:92407792,0,0,0,6 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CPMS?^M 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- +CPMS: SM,1,60,SM,1,60,SM,1,60 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- OK 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: 1 messages waiting in memory 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=1^M 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- OK 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:47 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=2^M ... ... 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=59^M 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- OK 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: not deleted. 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- AT+CMGR=60^M 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: -- +CMS ERROR: 321 2010-07-08 09:01:53 [7101] [18] ERROR: AT2[huawei_e220]: +CMS ERROR: +CMS ERROR: 321 2010-07-08 09:01:53 [7101] [18] ERROR: AT2[huawei_e220]: +CMS ERROR: The memory/message storage index assigned to the AT command is invalid (321) 2010-07-08 09:01:53 [7101] [18] DEBUG: AT2[huawei_e220]: failed to get message 60. My modems config: group = modems id = huawei_e220 name = Huawei E220 detect-string = huawei init-string = AT+CNMI=2,1,2,2,0 message-storage = sm speed = 460800 kannel.conf: ... # SMSC GSM group = smsc smsc = at #SMSC: HUAWEI E220 device = /dev/ttyUSB1 smsc-id = huawei_e220 modemtype = huawei_e220 allowed-smsc-id = huawei_e220 sms-center = +687xx #mynumber = 687xx pin = validityperiod = 167 sim-buffering = true log-file = /var/log/kannel/smsc.log log-level = 0 include = /etc/kannel/modems.conf ... Regards, -- Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Sending SMS from a remote host !!!
Your remote host can not access the dlr.php script placed on your 196.xxx.xxx.xxx server so DLR can not routed until Kannel. BR, Emmanuel 2010/6/28 ramous ram...@live.fr Good morning; I have tried for a long period to find a solution but without succes. My problem is; when I send an SMS directly from kannel everything works fine, but if I access to kannel from a remote host belong to another network, I recieve the following error although the SMS was successfully sent. 2010-04-01 11:43:23 [24388] [9] DEBUG: HTTP: Opening connection to `196.xxx.xxx.xxx:80' (fd=28). 2010-04-01 11:43:23 [24388] [9] DEBUG: Socket connecting 2010-04-01 11:46:32 [24388] [8] DEBUG: Get info about connecting socket 2010-04-01 11:46:32 [24388] [8] DEBUG: Socket not connected 2010-04-01 11:46:32 [24388] [8] ERROR: Couldn't fetch http://196.xxx.xxx.xxx/uvtsms/plugin/gateway/kannel/dlr.php?type=16s lid=311uid=1 Please did anyone faced this problem ?? -- View this message in context: http://old.nabble.com/Sending-SMS-from-a-remote-host-%21%21%21-tp29008530p29008530.html Sent from the Kannel - User mailing list archive at Nabble.com. -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Smsbox SMS Services -Incoming SMS datetime problem
Thanks Nikos, Of course I can handle it in PlaySMS (in the geturl.php script that process the incoming MO from smsbox). I just post to kannel users in case it was a bad behavior that can be improved, but if it was coded like that to manage such HTTP calls that can not know the timezone, Ok I understand. After that give the chance to others people to configure this option between local-time and GMT time is not stupid, at least adding this information in the documentation may help. Let me know your thought about this, for my case I can handle this on my side or I just have to replace gw_gmtime by gw_localtime in gw/urltrans.c and compile ? My sms-service config: *# PlaysSMS SERVICE Default group = sms-service keyword = default get-url = http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a; omit-empty = true* Regards, Emmanuel 2010/6/23 Nikos Balkanas nbalka...@gmail.com Absolutely, yes, it is generated by smsbox. Could you please post your sms-service configuration? Sorry for taking too much time asking about log times, but just now I realized what your problem is. I have never checked sms-service, since I've only dealt with MT traffic. There are no configuration options realting to GMT or localtime, either for smsbox or sms-service. It is code related. But I am sure you already know this. I found the problem. It is gw/urltrans.c, it calls gw_gmtime instead of gw_localtime. I guess this is done on purpose. Since these are remote http calls and you don't know the timezone beforehand, it is safer to send GMT and let receiving application handle it. I could provide a patch that introduces a configurable option in sms-service, but I have to know. Can't you handle it in playSMS? That would be preferrable to introducing a zillion parameters in sms-service. BR, Nikos - Original Message - From: Emmanuel CHANSON To: Nikos Balkanas Cc: users Sent: Wednesday, June 23, 2010 8:32 AM Subject: Re: Smsbox SMS Services -Incoming SMS datetime problem I found the bearerbox and smsc log corresponding to the test from the post and yes Nikos they are in local time not GMT The thing is I have installed Kannel using Alex's patch that create RPM maybe I have to check on this side... But Nikos do you have a good datetime in smsbox.log when you compare timestamp at the beginning of the line and the timestamp inside the parse URL (ts): 2010-06-22 15:19:26 [4807] [9] DEBUG: Parsing URL ` http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?t=2010-06-22+04:19:21q=% 2B687xxa=Kcn+info': Because here we can see the problem : t=2010-06-22+04:19:21, this URL it is generated by smsbox ? bearerbox.log 2010-06-22 15:19:26 [4760] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-06-22 15:19:26 [4760] [17] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-06-22 15:19:26 [4760] [16] DEBUG: boxc_receiver: got ack 2010-06-22 15:19:26 [4760] [16] DEBUG: boxc_receiver: sms received smsc.log 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 1,60,1,60,1,60 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGR=0^M 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- +CMGR: 0,,25 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- 069186770720F024099186773705F20160225191124408CBB11B94769BDF 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: received message from SMSC: +687YY 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: Numeric sender (international) +687XX 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: User data length read as (8) 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: Udh decoding done len=8 udhi=0 udhlen=0 udh='' 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGD=0^M 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- AT+CPMS=sm^M 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 0,60,0,60,0,60 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK BR Emmanuel 2010/6/23 Nikos Balkanas nbalka...@gmail.com Hi, No. Bearerbox will always print timestamps in application logs, regardless to level. Access logs can be customized. You posted bb logs, but didn't mention if they are localtime or GMT. If they too are with GMT, probably you compiled it --disable-localtime for whatever reason. Have you checked your server's time? Maybe it is out of sync. I have had no problems with time with either bearerbox or smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Wednesday, June 23, 2010 12:33 AM Subject: Re: Smsbox SMS Services -Incoming SMS datetime problem So it seems to be clearly a bug ? isn't it ? The workaround can be like Alvajo said
Re: Smsbox SMS Services -Incoming SMS datetime problem
So it seems to be clearly a bug ? isn't it ? The workaround can be like Alvajo said of course to handle the TS in the application. But do you know if the smsbox behavior can be improved? by a patch ? The bearerbox logs does not show any timestamps unless I have to set higher log level in the modem config ? Example for another test: bearerbox.log: 2010-06-23 08:29:56 [11204] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-06-23 08:29:56 [11204] [17] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-06-23 08:29:56 [11204] [16] DEBUG: boxc_receiver: got ack 2010-06-23 08:30:09 [11204] [16] DEBUG: boxc_receiver: heartbeat with load value 0 received smsc.log 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CPMS=SM^M 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 1,60,1,60,1,60 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGR=0^M 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- +CMGR: 0,,28 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- 069186770720F124099186773705F2016032809205440B503B683D7683E8E5391D 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: received message from SMSC: +687YY 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: Numeric sender (international) +687XX 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: User data length read as (11) 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: Udh decoding done len=11 udhi=0 udhlen=0 udh='' 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGD=0^M 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CPMS=sm^M 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 0,60,0,60,0,60 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK Regards, Emmanuel 2010/6/22 Alvaro Cornejo cornejo.alv...@gmail.com I had this problem also and after many unsuccessfully tries and retries, I decided to handle the arrival time of the MO in my app -I replace TS from kannel with my server local time-. In addition, as my server is in sync with a ntp server, and all my time logs settings are based on my time, I can safely work like that 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.NET www.smsglobal.com.mx y www.pravcom.com 2010/6/22 Nikos Balkanas nbalka...@gmail.com: Hi, How are bearerbox timestamps? By default kannel will use localtime. Unless configured to use GMT: ./configure --disable-localtime Check also access-log-time in configuration. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Tuesday, June 22, 2010 7:55 AM Subject: Smsbox SMS Services -Incoming SMS datetime problem Hello, I am using Kannel SVN freshly installed from today and I made a simple test where the SMS is received by Kannel and then through smsbox, trigger an SMS service url (PlaySMS): get-url = http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a bearerbox - sqlbox - smsbox - PlaySMS When I check the PlaySMS database for Incoming MO I see the date equal to: 2010-06-22 04:19:21 corresponding timestamp is 127718036 but here it is 15H19: New Caledonia Standard Time is GMT (UTC) + 11 hours. Checking sqlbox database I see for this incoming MO: time: 1277180361, corresponding date is: 2010-06-22 15:19:21 so SQLBox do its job ie 04H19 + 11 = 15H19 When checking smsbox.log I see: 2010-06-22 15:19:26 [4807] [9] DEBUG: Parsing URL ` http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?t=2010-06-22+04:19:21q=%2B687773502a=Kcn+info ': So smsbox give a different datetime to the SMS Service, is it normal? Is there a timezone configuration to set in smsbox ? smsbox.log: 2010-06-22 15:19:26 [4807] [4] INFO: Starting to service Kcn info from +68xx to 1234 2010-06-22 15:19:26 [4807] [9] DEBUG: Queue contains 0 pending requests. 2010-06-22 15:19:26 [4807] [9] DEBUG: Parsing URL ` http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?t=2010-06-22+04:19:21q=%2B687xxa=Kcn+info ': 2010-06-22 15:19:26 [4807] [9] DEBUG: Scheme: http:// 2010-06-22 15:19:26 [4807] [9] DEBUG: Host: 192.168.0.41 2010-06-22 15:19:26 [4807] [9] DEBUG: Port: 80 2010-06-22 15:19:26 [4807] [9] DEBUG: Username: (null) 2010-06-22 15:19:26 [4807] [9] DEBUG: Password: (null) 2010-06-22 15:19:26 [4807] [9] DEBUG: Path: /playsms/plugin/gateway/kannel/geturl.php
Re: Smsbox SMS Services -Incoming SMS datetime problem
I found the bearerbox and smsc log corresponding to the test from the post and yes Nikos they are in local time not GMT The thing is I have installed Kannel using Alex's patch that create RPM maybe I have to check on this side... But Nikos do you have a good datetime in smsbox.log when you compare timestamp at the beginning of the line and the timestamp inside the parse URL (ts): 2010-06-22 15:19:26 [4807] [9] DEBUG: Parsing URL ` http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?* t=2010-06-22+04:19:21*q=% 2B687xxa=Kcn+info': Because here we can see the problem : *t=2010-06-22+04:19:21, this URL *it is generated by smsbox ?* * bearerbox.log 2010-06-22 15:19:26 [4760] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-06-22 15:19:26 [4760] [17] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-06-22 15:19:26 [4760] [16] DEBUG: boxc_receiver: got ack 2010-06-22 15:19:26 [4760] [16] DEBUG: boxc_receiver: sms received smsc.log 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 1,60,1,60,1,60 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGR=0^M 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- +CMGR: 0,,25 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- 069186770720F024099186773705F20160225191124408CBB11B94769BDF 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: received message from SMSC: +687YY 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: Numeric sender (international) +687XX 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: User data length read as (8) 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: Udh decoding done len=8 udhi=0 udhlen=0 udh='' 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGD=0^M 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- AT+CPMS=sm^M 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 0,60,0,60,0,60 2010-06-22 15:19:26 [4760] [6] DEBUG: AT2[huawei_e220]: -- OK BR Emmanuel 2010/6/23 Nikos Balkanas nbalka...@gmail.com Hi, No. Bearerbox will always print timestamps in application logs, regardless to level. Access logs can be customized. You posted bb logs, but didn't mention if they are localtime or GMT. If they too are with GMT, probably you compiled it --disable-localtime for whatever reason. Have you checked your server's time? Maybe it is out of sync. I have had no problems with time with either bearerbox or smsbox. BR, Nikos - Original Message - From: Emmanuel CHANSON To: users Sent: Wednesday, June 23, 2010 12:33 AM Subject: Re: Smsbox SMS Services -Incoming SMS datetime problem So it seems to be clearly a bug ? isn't it ? The workaround can be like Alvajo said of course to handle the TS in the application. But do you know if the smsbox behavior can be improved? by a patch ? The bearerbox logs does not show any timestamps unless I have to set higher log level in the modem config ? Example for another test: bearerbox.log: 2010-06-23 08:29:56 [11204] [17] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-06-23 08:29:56 [11204] [17] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-06-23 08:29:56 [11204] [16] DEBUG: boxc_receiver: got ack 2010-06-23 08:30:09 [11204] [16] DEBUG: boxc_receiver: heartbeat with load value 0 received smsc.log 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CPMS=SM^M 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 1,60,1,60,1,60 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGR=0^M 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- +CMGR: 0,,28 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- 069186770720F124099186773705F2016032809205440B503B683D7683E8E5391D 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: received message from SMSC: +687YY 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: Numeric sender (international) +687XX 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: User data length read as (11) 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: Udh decoding done len=11 udhi=0 udhlen=0 udh='' 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-23 08:29:56 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CMGD=0^M 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- AT+CPMS=sm^M 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- +CPMS: 0,60,0,60,0,60 2010-06-23 08:29:57 [11204] [6] DEBUG: AT2[huawei_e220]: -- OK Regards, Emmanuel 2010/6/22 Alvaro Cornejo cornejo.alv...@gmail.com I had this problem also and after many unsuccessfully tries and retries
Kannel SVN and Alex RPM patch
Hello Kannel community, This post just to inform you that by modifying Alejandro's patch available on its blog, dedicated to create RPM from kannel CVS sources, I successfully create Kannel SVN RPMs: kannel-debuginfo-svn-r4833M.i686.rpm kannel-devel-svn-r4833M.i686.rpm kannel-svn-r4833M.i686.rpm The trick is to replace all occurences of 'kannel-cvs' by 'kannel-svn' in the patch file called *kannel-rpm.patch* and in the patch folder *kannel-rpm * then patch the sources and run the autoconf, configure and make rpm command. After talking with Alex, he will make an update of its patch for Kannel SVN soon. This works for me on Fedora 12. Alex'blog: http://www.blogalex.com/archives/23 Regards, -- Emmanuel
Smsbox SMS Services -Incoming SMS datetime problem
Hello, I am using Kannel SVN freshly installed from today and I made a simple test where the SMS is received by Kannel and then through smsbox, trigger an SMS service url (PlaySMS): *get-url = http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a; * bearerbox - sqlbox - smsbox - PlaySMS When I check the PlaySMS database for Incoming MO I see the date equal to: *2010-06-22 04:19:21* corresponding timestamp is 127718036 but here it is 15H19: *New Caledonia Standard Time is GMT (UTC) + 11 hours.* Checking sqlbox database I see for this incoming MO: time: 1277180361, corresponding date is: *2010-06-22 15:19:21* so SQLBox do its job ie 04H19 + 11 = 15H19 When checking smsbox.log I see: *2010-06-22 15:19:26* [4807] [9] DEBUG: Parsing URL ` http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?* t=2010-06-22+04:19:21*q=%2B687773502a=Kcn+info': So smsbox give a different datetime to the SMS Service, is it normal? Is there a timezone configuration to set in smsbox ? smsbox.log: 2010-06-22 15:19:26 [4807] [4] INFO: Starting to service Kcn info from +68xx to 1234 2010-06-22 15:19:26 [4807] [9] DEBUG: Queue contains 0 pending requests. 2010-06-22 15:19:26 [4807] [9] DEBUG: Parsing URL ` http://192.168.0.41/playsms/plugin/gateway/kannel/geturl.php?* t=2010-06-22+04:19:21*q=%2B687xxa=Kcn+info': 2010-06-22 15:19:26 [4807] [9] DEBUG: Scheme: http:// 2010-06-22 15:19:26 [4807] [9] DEBUG: Host: 192.168.0.41 2010-06-22 15:19:26 [4807] [9] DEBUG: Port: 80 2010-06-22 15:19:26 [4807] [9] DEBUG: Username: (null) 2010-06-22 15:19:26 [4807] [9] DEBUG: Password: (null) 2010-06-22 15:19:26 [4807] [9] DEBUG: Path: /playsms/plugin/gateway/kannel/geturl.php 2010-06-22 15:19:26 [4807] [9] DEBUG: Query: t=2010-06-22+04:19:21q=%2B687xxa=Kcn+info 2010-06-22 15:19:26 [4807] [9] DEBUG: Fragment: (null) 2010-06-22 15:19:26 [4807] [9] DEBUG: Connecting nonblocking to 192.168.0.41 2010-06-22 15:19:26 [4807] [9] DEBUG: HTTP: Opening connection to ` 192.168.0.41:80' (fd=28). 2010-06-22 15:19:26 [4807] [9] DEBUG: Socket connecting 2010-06-22 15:19:26 [4807] [8] DEBUG: Get info about connecting socket 2010-06-22 15:19:26 [4807] [8] DEBUG: HTTP: Sending request: 2010-06-22 15:19:26 [4807] [8] DEBUG: Octet string at 0xb2e006c8: 2010-06-22 15:19:26 [4807] [8] DEBUG: len: 176 2010-06-22 15:19:26 [4807] [8] DEBUG: size: 1024 2010-06-22 15:19:26 [4807] [8] DEBUG: immutable: 0 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 47 45 54 20 2f 70 6c 61 79 73 6d 73 2f 70 6c 75 GET /playsms/plu 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 67 69 6e 2f 67 61 74 65 77 61 79 2f 6b 61 6e 6e gin/gateway/kann 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 65 6c 2f 67 65 74 75 72 6c 2e 70 68 70 3f 74 3d el/geturl.php?t= 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 32 30 31 30 2d 30 36 2d 32 32 2b 30 34 3a 31 39 2010-06-22+04:19 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 3a 32 31 26 71 3d 25 32 42 36 38 37 37 37 33 35 :21q=%2B687 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 30 32 26 61 3d 4b 63 6e 2b 69 6e 66 6f 20 48 54 xxa=Kcn+info HT 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a 20 31 39 TP/1.1..Host: 19 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 32 2e 31 36 38 2e 30 2e 34 31 0d 0a 43 6f 6e 6e 2.168.0.41..Conn 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 ection: keep-ali 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 76 65 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 ve..User-Agent: 2010-06-22 15:19:26 [4807] [8] DEBUG: data: 4b 61 6e 6e 65 6c 2f 73 76 6e 2d 72 0d 0a 0d 0a Kannel/svn-r 2010-06-22 15:19:26 [4807] [8] DEBUG: Octet string dump ends. 2010-06-22 15:19:26 [4807] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.41'. 2010-06-22 15:19:26 [4807] [2] DEBUG: HTTP: Created HTTPClient area 0xb2e00628. Regards -- Emmanuel
Re: [PATCH] RE: Messages with php stripslashes
15:10 To: Kannel list Subject: Re: Messages with php stripslashes Hi, I've got the same issue - when we send MT message by CGI which contains ' sign, the recipient gets \' (escaped '). When we inject MT directly to MySQL Database, recipient get only ' sing (valid!). Our configuration is: PHP MT PUSH - SMSBOX - SQLBOX - BEARERBOX - SMSC The problem is caused probably by SQLBOX - somewhere there must be some kind of addslashes function. Escaped sign is being delivered to BEARERBOX. I've tried to find this is source code but I was unable. Have someone fixed this problem yet? Thanks Tomasz W Twoim liście datowanym 24 maja 2010 (02:05:22) można przeczytać: I have posted some weeks ago a similar issue with sqlbox but it is not resolved for the moment, Alejandro to check on his side to reproduce the issue. Check my post in the mailling list archive to see if it the same problem: Object: *Quote and backslash issue* As you when using CGI interface to send a SMS I got the quote escaped on the mobile, BUT when using directly SQL injection on sqlbox it works correctly. Regards, Emmanuel sql-escape.patch -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: [PATCH] RE: Messages with php stripslashes
gw_sql_save_msg function? What difference does it make? Or maybe msg_duplicate does some escaping magic I'm not aware of? If msg_duplicate does what the name says, I don't see what's changed. Regards, Alex -- Alejandro Guerrieri aguerri...@kannel.org On 11/06/2010, at 23:25, Rene Kluwen wrote: Sorry for crossposting. But I think the users are allowed to know what is going on, even if this is a developers matter. I think I found the solution to the problem below, which affects all smsbox-sqlbox-bearerbox users. I must admit: Haven't tested it yet. But it should work. See attached patch. Votes? -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Tomasz Sent: vrijdag 11 juni 2010 15:10 To: Kannel list Subject: Re: Messages with php stripslashes Hi, I've got the same issue - when we send MT message by CGI which contains ' sign, the recipient gets \' (escaped '). When we inject MT directly to MySQL Database, recipient get only ' sing (valid!). Our configuration is: PHP MT PUSH - SMSBOX - SQLBOX - BEARERBOX - SMSC The problem is caused probably by SQLBOX - somewhere there must be some kind of addslashes function. Escaped sign is being delivered to BEARERBOX. I've tried to find this is source code but I was unable. Have someone fixed this problem yet? Thanks Tomasz W Twoim liście datowanym 24 maja 2010 (02:05:22) można przeczytać: I have posted some weeks ago a similar issue with sqlbox but it is not resolved for the moment, Alejandro to check on his side to reproduce the issue. Check my post in the mailling list archive to see if it the same problem: Object: *Quote and backslash issue* As you when using CGI interface to send a SMS I got the quote escaped on the mobile, BUT when using directly SQL injection on sqlbox it works correctly. Regards, Emmanuel sql-escape.patch -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: [PATCH] RE: Messages with php stripslashes
Ok I have tested with the sqlbox.c file patched as below, then tested using CGI interface and a SMS with a quote and it works ! Quote not escaped any more... Thanks to Rene, Alex, and others ... Regards, Emmanuel 2010/6/14 Emmanuel CHANSON emmanuelchan...@gmail.com I have tried to patch the svn source just downloaded but same errors displayed, sqlbox.c seems to be patchedso [r...@kannel gw]# patch -p0 sqlbox.c sql-escape.patch patching file sqlbox.c patching file sqlbox.c Hunk #1 FAILED at 82. 1 out of 1 hunk FAILED -- saving rejects to file sqlbox.c.rej patching file sqlbox.c Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] y Hunk #1 FAILED at 252. Hunk #2 FAILED at 269. Hunk #3 FAILED at 375. Hunk #4 FAILED at 398. 4 out of 4 hunks FAILED -- saving rejects to file sqlbox.c.rej [r...@kannel gw]# [r...@kannel gw]# [r...@kannel gw]# cat sqlbox.c.rej Index: sb-config.h.in --- sb-config.h.in (revision 28) +++ sb-config.h.in (working copy) @@ -82,10 +82,6 @@ /* Define to 1 if you have the unistd.h header file. */ #undef HAVE_UNISTD_H -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - /* Name of package */ #undef PACKAGE Index: gw/sqlbox.c --- gw/sqlbox.c (revision 28) +++ gw/sqlbox.c (working copy) @@ -252,7 +252,7 @@ static void smsbox_to_bearerbox(void *arg) { Boxc *conn = arg; -Msg *msg; +Msg *msg, *msg_escaped; /* remove messages from socket until it is closed */ while (sqlbox_status != SQL_DEAD conn-alive) { @@ -269,7 +269,9 @@ if (msg_type(msg) == sms) { debug(sqlbox, 0, smsbox_to_bearerbox: sms received); -gw_sql_save_msg(msg, octstr_imm(MT)); + msg_escaped = msg_duplicate(msg); +gw_sql_save_msg(msg_escaped, octstr_imm(MT)); + msg_destroy(msg_escaped); } send_msg(conn-bearerbox_connection, conn, msg); @@ -375,7 +377,7 @@ static void bearerbox_to_smsbox(void *arg) { -Msg *msg; +Msg *msg, *msg_escaped; Boxc *conn = arg; while (sqlbox_status != SQL_DEAD conn-alive) { @@ -398,10 +400,12 @@ break; } if ((msg_type(msg) == sms) (strcmp(octstr_get_cstr(msg-sms.msgdata),ACK/) != 0)) { + msg_escaped = msg_duplicate(msg); if (msg-sms.sms_type != report_mo) -gw_sql_save_msg(msg, octstr_imm(MO)); +gw_sql_save_msg(msg_escaped, octstr_imm(MO)); else -gw_sql_save_msg(msg, octstr_imm(DLR)); +gw_sql_save_msg(msg_escaped, octstr_imm(DLR)); + msg_destroy(msg_escaped); } send_msg(conn-smsbox_connection, conn, msg); msg_destroy(msg); [r...@kannel gw]# 2010/6/14 Alejandro Guerrieri aguerri...@kannel.org svn co https://svn.kannel.org/sqlbox/trunk Regards, -- Alejandro Guerrieri aguerri...@kannel.org On 14/06/2010, at 12:38, Emmanuel CHANSON wrote: And what is the cvs/svn url for sqlbox? :) Emmanuel 2010/6/14 Alejandro Guerrieri aguerri...@kannel.org Maybe Renee applied the patch against latest CVS/SVN instead? There's some updates on SVN that are not on 0.7.2. -- Alejandro Guerrieri aguerri...@kannel.org On 14/06/2010, at 12:31, Emmanuel CHANSON wrote: Using Assume -R equal to yes it seems the patch is not applied (I checked the sqlbox.c file after and no occurence of msg_escaped for instance). Alex where to downloaded the latest version of sqlbox? The one I got was from your website. BTW I try to apply the patch on the original source I have kept (sqlbox-0.7.2.tar.gz) but I got the same error. BR, Emmanuel 2010/6/14 Tomasz ad...@impexrur.pl Hi, Try to use -R option with path or press y when Assume -R? [n] displays. Regards, Tomasz W Twoim liście datowanym 14 czerwca 2010 (11:46:40) można przeczytać: Hello Rene, Trying to patch gw/sqlbox.c I got this error, is it an issue? [r...@kannel gw]# patch -p0 sqlbox.c sql-escape.patch patching file sqlbox.c patching file sqlbox.c Hunk #1 FAILED at 82. 1 out of 1 hunk FAILED -- saving rejects to file sqlbox.c.rej patching file sqlbox.c Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] y Hunk #1 FAILED at 252. Hunk #2 FAILED at 269. Hunk #3 FAILED at 375. Hunk #4 FAILED at 398. 4 out of 4 hunks FAILED -- saving rejects to file sqlbox.c.rej [r...@kannel gw]# [r...@kannel gw]# cat sqlbox.c.rej Index: sb-config.h.in --- sb-config.h.in (revision 28) +++ sb-config.h.in (working copy) @@ -82,10 +82,6 @@ /* Define to 1 if you have the unistd.h header file. */ #undef HAVE_UNISTD_H -/* Define to the sub-directory in which libtool stores uninstalled libraries. - */ -#undef LT_OBJDIR - /* Name of package */ #undef PACKAGE Index: gw/sqlbox.c --- gw/sqlbox.c (revision 28) +++ gw/sqlbox.c (working
SQLbox and MySQL database charset
Hello, I would like to ask the community which mysql charset/collation to use ? I have created a mysql database for sqlbox by setting the collation to utf8_unicode_ci and the charset to utf8_general_ci but when inserting an entry in the database I got special character like this test: test é that is inserted like: *test é* , the text is then well decoded on the mobile, so it is ok for the service, just this database entry that is not well displayed. Is it something special to configure in sqlbox to use UTF-8 ? Or is it my mysql config that is not correct ? Regards -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Does Kannel/Sqlbox handle scheduled pushes sms ?
Hello, I wonder if Kannel and its different module can handle a scheduled pushes SMS ? I have check sqlbox doc and kannel doc but I can not find how to handle this using these modules. So is it possible to schedule a batch using Kannel or Sqlbox ? or do I have to develop my own routine to perform this ? note: I hope that deferred parameter in sqlbox could help me in this but as I used a GSM modem I don't think it can help me. Regards, -- Emmanuel
Re: Messages with php stripslashes
Barry, what is your context exactly? Are you sending SMS using a mysql injection directly ? in that case you should succeed to insert a text including a quote correctly, or like me are you using cgi interface of smsbox ? (CGI script - smsbox - sqlbox - bearerbox - mobile): in this case I have an issue and the quote is escaped. Regards, Emmanuel 2010/5/24 Cezary Siwek cza...@thebestisp.co.uk I populate the table with non slashed text with no problems. Before I do that, I'm treating the message body using mysqli-real_escapre_string. Cezary -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Barry Murphy Sent: 24 May 2010 00:45 To: Users Subject: Messages with php stripslashes Hi, I'm using sqlbox to insert text messages into kannel from our php website. Previous to using PHP stripslashes, when ever a person had a ' in a word such as it's, it would add a slash like it\'s which is understandable. We've since used php stripslashes('it\'s') which sends it's to sqlbox and then to the user. Problem is now that in place of a ' the user receives a ?, for instance it's is displayed to the user as it?s. Does anyone know what I could use in PHP to get the correct message to the end user. thanks Barry -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Messages with php stripslashes
I have posted some weeks ago a similar issue with sqlbox but it is not resolved for the moment, Alejandro to check on his side to reproduce the issue. Check my post in the mailling list archive to see if it the same problem: Object: *Quote and backslash issue* As you when using CGI interface to send a SMS I got the quote escaped on the mobile, BUT when using directly SQL injection on sqlbox it works correctly. Regards, Emmanuel 2010/5/24 Barry Murphy ba...@unix.co.nz Hi, I'm using sqlbox to insert text messages into kannel from our php website. Previous to using PHP stripslashes, when ever a person had a ' in a word such as it's, it would add a slash like it\'s which is understandable. We've since used php stripslashes('it\'s') which sends it's to sqlbox and then to the user. Problem is now that in place of a ' the user receives a ?, for instance it's is displayed to the user as it?s. Does anyone know what I could use in PHP to get the correct message to the end user. thanks Barry -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: DLR not fw to Kannel when mailling SMS is performed
As advised by Nikos, I set the message-storage = SM and I also configure store-type = spool I do see an improvement after a test of 100 SMS sent using CGI script, the modem did not block after a while like before, and I received DLRs (unfortunately not all) but at least DLR were not stored in the SM or ME but transfered to kannel. But I think something goes wrong with the reception of the STATUS-REPORT when my modem is busy, sending all the remaining MO I did the test send 100 SMS to 3 destination so 33 SMS / destination and I received only 70 STATUS-REPORTs. In mysql dlr table I see that it remains 30 DLRs not processed for all the destination (not only one). Do you think the modem may be the root cause when it is busyforMT ? I mean don't you think the modem when sending a lot a SMS-MO can not handle at the same time the reception of the DLR ? or handle in a bad way? Normally if the modem didn't acknowledge DLRs to SMS-C, SMS-C will make a retry (I know my operator doesn't drop it after 1st attempt...) and I should receive all of them after a while ? But it is not the case here... It is the modem ? I planned to use a Huawei E220 do you think it will improve the behavior instead of using a phone/modem like nokia 6230 ? Regards, Emmanuel 2010/5/19 Alvaro Cornejo cornejo.alv...@gmail.com Emmanuel Always CC users list, they can benefit from the shared info. dlrs over modems is a very tricky thing since from the operator point of view, it is not important and can klugg their network. A dlr is a special MO... they do not charge for... so most operators does not provide dlrs, and if do, they do not warranty them. Also, if the dlr can not reach the destination in the first try they drop it. This might be the problem with you. As you are sending several MT, your modem is busy and cant receive the dlr, thus the operator drop it. About dlrs stored in sim hmmm don´t know what to say. Never seen dlrs stored in sim/terminal About the modem huawei, never used but read some threads here from people that recomends it. Hope helps Alvaro On Tue, May 18, 2010 at 4:28 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: Hello Alvajo, Because you know well how modem works I ask you this question below to have your mind... I wonder why I have very few of my DLRs that are forwarded to bearerbox when I send let's say 80 SMS using cgi script. I always receive the ACKs but very few DLRs and I see they seems to be stored in the mobile right ? I am using a Nokia 6230. Do I have an issue in my modem config ? I have to test using message-storage = SM instead of ME maybe ? BTW I plan to buy a Huawei E220 is it a good choice for sending/receiving MO/MT/ACK/DLR ... Thanks by advance Emmanuel -- Forwarded message -- From: Emmanuel CHANSON emmanuelchan...@gmail.com Date: 2010/5/11 Subject: DLR not fw to Kannel when mailling SMS is performed To: users users@kannel.org Hello, I would like to ask the community about this behavior. I am using a Nokia 6230 as modem. When I send a single SMS I got the ACK and the STATUS-REPORT, behavior is Ok. 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- +CDS: 24 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- 069186770720F0067C099186773705F2015011311513440150113115134400 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: received message from SMSC: +687770020 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: got STATUS-REPORT for message 124: When I send let's say 20 SMS using cgi script, I got all the ACK but no STATUS-REPORT and I see this in smsc.log: 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- AT+CPMS?^M 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- +CPMS: ME,0,150,SM,18,60,MT,18,210 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- OK So isn't it my DLRs that are stored in the mobile ? Why aren't they forwarded to bearerbox ? My modem config for the modem is the following: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = ME Regards, Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- |-| 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.NET www.smsglobal.com.mx y www.pravcom.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02
Re:
Hello Langa, Please I invite you to read the user guide of Kannel where the running configuration procedure are described: http://www.kannel.org/userguide.shtml To start kannel when its configuration file has been properly done you may have the choice: $ service kannel start (if you have an init script called kannel in /etc/init.d/ ) or /usr/local/sbin/bearerbox -v 2 /etc/kannel.conf (for bearerbox, smsbox, wapbox, ...) These examples have to be used regarding your configuration path and so one... Regards, Emmanuel 2010/5/15 Langa Dlamini libal...@swazi.net I am new to the Linux system .I want to make a Kannel SMS gateway. I have installed theKannel-1.4.1-3.rh9.rf.i386.rpm.Ihave tried to configure the kannel bearer box and sms box. When I type the command: /etc/kannel.conf. The reply is Permission denied. Is there any way to configure the boxes or am I using the wrong command. Regars Langa -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: DLR not fw to Kannel when mailling SMS is performed
Yes I have simbuffering=true that is why some message stayed in the mobile ? And not I did not try message-storage = SM, but will try Emmanuel 2010/5/12 Nikos Balkanas nbalka...@gmail.com Hi, I imagine you have also enabled sim-buffering in your smsc definition. Have you tried setting message-storage = SM? BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* users users@kannel.org *Sent:* Wednesday, May 12, 2010 2:34 AM *Subject:* Re: DLR not fw to Kannel when mailling SMS is performed No, it is a loop done for each destination (dont know if cgi script can manage multiple destination) Regards, Emmanuel 2010/5/11 Benaiad bena...@gmail.com Hi, Are you sending those messages using one call to the send cgi with multi destinations in the to parameter? Regards. -- Benaiad On Tue, May 11, 2010 at 10:57 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: If the issue is not well described tell me...I really want to understand this behavior... Regards, Emmanuel 2010/5/11 Emmanuel CHANSON emmanuelchan...@gmail.com I am also getting the following error below during the sending of my SMS mailling and I don't know if it is linked with this. Test: 40 SMS were sent, I received the ACK (but no Success/STATUS-REPORT maybe stored in the mobile) and after that I receive the error: +CMS ERROR: An unknown error occurred (500) Alvaro told me it can be an operator restriction (I received a network error so I change the mobile but same behavior with a different error) If I stop Kannel then move the kannel.store file somewhere, restart Kannel and try to send a new single SMS it works !! So to resume I have 2 issue maybe linked: - DLR not received into bearerbox, seems blocked in modem. - SMS mailling that is blocked after let's say 40 SMS sent (I had 80 SMS to send) dont if the issue if linked to: - the fact I send concatened SMS - the AT+CNMI command that is not correct and DLR are stored in the mobile and block the MT with the ERROR 500 ? - others things.. I dont know how to investiguate... I have previously post my modem.conf This issue is linked to the post I already send about +CMS ERROR: Network out of order (38), but changing the mobile does not change anything and I don't think it is an operator restriction because if I move the kannel;store file and send a SMS it works... Regards, Emmanuel 2010/5/11 Emmanuel CHANSON emmanuelchan...@gmail.com Hello, I would like to ask the community about this behavior. I am using a Nokia 6230 as modem. When I send a single SMS I got the ACK and the STATUS-REPORT, behavior is Ok. 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- +CDS: 24 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- 069186770720F0067C099186773705F2015011311513440150113115134400 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: received message from SMSC: +687770020 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: got STATUS-REPORT for message 124: When I send let's say 20 SMS using cgi script, I got all the ACK but no STATUS-REPORT and I see this in smsc.log: 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- AT+CPMS?^M 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- +CPMS: ME,0,150,SM,18,60,MT,18,210 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- OK So isn't it my DLRs that are stored in the mobile ? Why aren't they forwarded to bearerbox ? My modem config for the modem is the following: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = ME Regards, Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calιdonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calιdonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calιdonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: DLR not fw to Kannel when mailling SMS is performed
I am also getting the following error below during the sending of my SMS mailling and I don't know if it is linked with this. Test: 40 SMS were sent, I received the ACK (but no Success/STATUS-REPORT maybe stored in the mobile) and after that I receive the error: +CMS ERROR: An unknown error occurred (500) Alvaro told me it can be an operator restriction (I received a network error so I change the mobile but same behavior with a different error) If I stop Kannel then move the kannel.store file somewhere, restart Kannel and try to send a new single SMS it works !! So to resume I have 2 issue maybe linked: - DLR not received into bearerbox, seems blocked in modem. - SMS mailling that is blocked after let's say 40 SMS sent (I had 80 SMS to send) dont if the issue if linked to: - the fact I send concatened SMS - the AT+CNMI command that is not correct and DLR are stored in the mobile and block the MT with the ERROR 500 ? - others things.. I dont know how to investiguate... I have previously post my modem.conf This issue is linked to the post I already send about +CMS ERROR: Network out of order (38), but changing the mobile does not change anything and I don't think it is an operator restriction because if I move the kannel;store file and send a SMS it works... Regards, Emmanuel 2010/5/11 Emmanuel CHANSON emmanuelchan...@gmail.com Hello, I would like to ask the community about this behavior. I am using a Nokia 6230 as modem. When I send a single SMS I got the ACK and the STATUS-REPORT, behavior is Ok. 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- +CDS: 24 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- 069186770720F0067C099186773705F2015011311513440150113115134400 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: received message from SMSC: +687770020 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: got STATUS-REPORT for message 124: When I send let's say 20 SMS using cgi script, I got all the ACK but no STATUS-REPORT and I see this in smsc.log: 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- AT+CPMS?^M 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- +CPMS: ME,0,150,SM,18,60,MT,18,210 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- OK So isn't it my DLRs that are stored in the mobile ? Why aren't they forwarded to bearerbox ? My modem config for the modem is the following: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = ME Regards, Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: DLR not fw to Kannel when mailling SMS is performed
If the issue is not well described tell me...I really want to understand this behavior... Regards, Emmanuel 2010/5/11 Emmanuel CHANSON emmanuelchan...@gmail.com I am also getting the following error below during the sending of my SMS mailling and I don't know if it is linked with this. Test: 40 SMS were sent, I received the ACK (but no Success/STATUS-REPORT maybe stored in the mobile) and after that I receive the error: +CMS ERROR: An unknown error occurred (500) Alvaro told me it can be an operator restriction (I received a network error so I change the mobile but same behavior with a different error) If I stop Kannel then move the kannel.store file somewhere, restart Kannel and try to send a new single SMS it works !! So to resume I have 2 issue maybe linked: - DLR not received into bearerbox, seems blocked in modem. - SMS mailling that is blocked after let's say 40 SMS sent (I had 80 SMS to send) dont if the issue if linked to: - the fact I send concatened SMS - the AT+CNMI command that is not correct and DLR are stored in the mobile and block the MT with the ERROR 500 ? - others things.. I dont know how to investiguate... I have previously post my modem.conf This issue is linked to the post I already send about +CMS ERROR: Network out of order (38), but changing the mobile does not change anything and I don't think it is an operator restriction because if I move the kannel;store file and send a SMS it works... Regards, Emmanuel 2010/5/11 Emmanuel CHANSON emmanuelchan...@gmail.com Hello, I would like to ask the community about this behavior. I am using a Nokia 6230 as modem. When I send a single SMS I got the ACK and the STATUS-REPORT, behavior is Ok. 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- +CDS: 24 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- 069186770720F0067C099186773705F2015011311513440150113115134400 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: received message from SMSC: +687770020 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: got STATUS-REPORT for message 124: When I send let's say 20 SMS using cgi script, I got all the ACK but no STATUS-REPORT and I see this in smsc.log: 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- AT+CPMS?^M 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- +CPMS: ME,0,150,SM,18,60,MT,18,210 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- OK So isn't it my DLRs that are stored in the mobile ? Why aren't they forwarded to bearerbox ? My modem config for the modem is the following: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = ME Regards, Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: DLR not fw to Kannel when mailling SMS is performed
No, it is a loop done for each destination (dont know if cgi script can manage multiple destination) Regards, Emmanuel 2010/5/11 Benaiad bena...@gmail.com Hi, Are you sending those messages using one call to the send cgi with multi destinations in the to parameter? Regards. -- Benaiad On Tue, May 11, 2010 at 10:57 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: If the issue is not well described tell me...I really want to understand this behavior... Regards, Emmanuel 2010/5/11 Emmanuel CHANSON emmanuelchan...@gmail.com I am also getting the following error below during the sending of my SMS mailling and I don't know if it is linked with this. Test: 40 SMS were sent, I received the ACK (but no Success/STATUS-REPORT maybe stored in the mobile) and after that I receive the error: +CMS ERROR: An unknown error occurred (500) Alvaro told me it can be an operator restriction (I received a network error so I change the mobile but same behavior with a different error) If I stop Kannel then move the kannel.store file somewhere, restart Kannel and try to send a new single SMS it works !! So to resume I have 2 issue maybe linked: - DLR not received into bearerbox, seems blocked in modem. - SMS mailling that is blocked after let's say 40 SMS sent (I had 80 SMS to send) dont if the issue if linked to: - the fact I send concatened SMS - the AT+CNMI command that is not correct and DLR are stored in the mobile and block the MT with the ERROR 500 ? - others things.. I dont know how to investiguate... I have previously post my modem.conf This issue is linked to the post I already send about +CMS ERROR: Network out of order (38), but changing the mobile does not change anything and I don't think it is an operator restriction because if I move the kannel;store file and send a SMS it works... Regards, Emmanuel 2010/5/11 Emmanuel CHANSON emmanuelchan...@gmail.com Hello, I would like to ask the community about this behavior. I am using a Nokia 6230 as modem. When I send a single SMS I got the ACK and the STATUS-REPORT, behavior is Ok. 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- +CDS: 24 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- 069186770720F0067C099186773705F2015011311513440150113115134400 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: received message from SMSC: +687770020 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: got STATUS-REPORT for message 124: When I send let's say 20 SMS using cgi script, I got all the ACK but no STATUS-REPORT and I see this in smsc.log: 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- AT+CPMS?^M 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- +CPMS: ME,0,150,SM,18,60,MT,18,210 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- OK So isn't it my DLRs that are stored in the mobile ? Why aren't they forwarded to bearerbox ? My modem config for the modem is the following: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = ME Regards, Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
DLR not fw to Kannel when mailling SMS is performed
Hello, I would like to ask the community about this behavior. I am using a Nokia 6230 as modem. When I send a single SMS I got the ACK and the STATUS-REPORT, behavior is Ok. 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- +CDS: 24 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- 069186770720F0067C099186773705F2015011311513440150113115134400 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: received message from SMSC: +687770020 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: got STATUS-REPORT for message 124: When I send let's say 20 SMS using cgi script, I got all the ACK but no STATUS-REPORT and I see this in smsc.log: 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- AT+CPMS?^M 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- +CPMS: ME,0,150,SM,18,60,MT,18,210 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- OK So isn't it my DLRs that are stored in the mobile ? Why aren't they forwarded to bearerbox ? My modem config for the modem is the following: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = ME Regards, Emmanuel
Re: SendSms (cgi) return value
Hello Bruno, It is described in the User Guide: *Table 6-15. SMS Push reply codes* StatusBodyMeaning2020: Accepted for delivery The message has been accepted and is delivered onward to a SMSC driver. Note that this status does not ensure that the intended recipient receives the message. 2023: Queued for later delivery The bearerbox accepted and stored the message, but there was temporarily no SMSC driver to accept the message so it was queued. However, it should be delivered later on. 4xx(varies) There was something wrong in the request or Kannel was so configured that the message cannot be in any circumstances delivered. Check the request and Kannel configuration. 503Temporal failure, try again later. There was temporal failure in Kannel. Try again later. Regards, Emmanuel 2010/5/8 Bruno Rey tha...@gmail.com Hi, Does anybody have a list of the possible return values for the sendsms method? (cgi-bin) I have looked through the documentation and I couldn't find anything. I've received two different messages so far: 0: Accepted for delivery Authorization failed for sendsms Thanks in advance, Bruno.
+CMS ERROR: Network out of order (38)
Hello, Has anybody already encountered this error below? I was sending 100 SMS using CGI script (sendsms user interface) and after about 60 SMS sent (ACK received) from a Sonyericsson S500i, the phone started to display the following error: FYI it was a spliited message that I sent to 100 destinations. 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: TP-Validity-Period: 24.0 hours 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- AT+CMGS=139^M 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: send command status: 1 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- 005100099186272711F50011A79005000349020240653A28EDA697E5ED02391D4ECBCB7316484AB482C8651028264382FEA0180E099A86D9EC32A8388787C76590F12D6F974141F7BC0CB286E9611D88FEAED3CB7310BB3C07A5DDE6F71C34AFCB41EC32689EA69741E432887D2A8CDFECB20E74BFDF5DEC303DED9EBFEB6C977B0C6A8198617ADA3D7DD7D9 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- ^Z 2010-05-06 20:59:42 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- *2010-05-06 20:59:42 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- +CMS ERROR: 38 2010-05-06 20:59:42 [10149] [6] ERROR: AT2[sonyericsson_s500i]: +CMS ERROR: +CMS ERROR: 38 2010-05-06 20:59:42 [10149] [6] ERROR: AT2[sonyericsson_s500i]: +CMS ERROR: Network out of order (38)* 2010-05-06 20:59:42 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: send command status: 1 modems.conf: group = modems id = sonyericsson_s500i name = Sony Ericsson S500i detect-string = S500i message-storage = ME # use this init-string for non sim-buffering #init-string = AT+CNMI=3,2,0,0 # use this init-string for sim-buffering init-string = AT+CNMI=2,3,0,1,0 reset-string = ATZ broken = true speed = 460800 kannel.conf (smsc part): # SMSC GSM group = smsc smsc = at #device = /dev/ttyS0 #smsc-id = sagem_my300X #device = /dev/ttyACM0 #smsc-id = nokiaphone #modemtype = nokiaphone #allowed-smsc-id = nokiaphone device = /dev/ttyACM1 smsc-id = sonyericsson_s500i allowed-smsc-id = sonyericsson_s500i modemtype = sonyericsson_s500i sms-center = +687xx #mynumber = 687xx pin = validityperiod = 167 sim-buffering = true log-file = /var/log/kannel/smsc.log log-level = 0 include = /etc/kannel/modems.conf Thanks by advance for your help, -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: +CMS ERROR: Network out of order (38)
Thanks Alvaro, Do you know maybe the thing/parameter to modify on the network ? I stopped kannel when I saw that this error kept generated in the log, but would Kannel/modem handle correctly the SMS not yet sent if I did not stopped it ? In fact what happen when this error occur and we let the system trying to send the SMS, does this error disappear after few time? Regards, Emmanuel 2010/5/7 Alvaro Cornejo cornejo.alv...@gmail.com This is an issue with the operator network I do have similar problems with my setup. That problem is usually related to the saturation of the cell where your modem is hooked up. Also when starting in this business, I got this problem and it was the operator who temporarily blocked my sim since it was spamming their system. Once I talked to them and explain that we have a spamming authorization ;-) from them (We have special bulk rates for the sims) they changed something in their system and get rid -almost- of the problem. We still have this issue from time to time but it is normal. Therefore I'll suggest you to talk to your operator. 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.NET www.smsglobal.com.mx y www.pravcom.com On Thu, May 6, 2010 at 7:15 AM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: Hello, Has anybody already encountered this error below? I was sending 100 SMS using CGI script (sendsms user interface) and after about 60 SMS sent (ACK received) from a Sonyericsson S500i, the phone started to display the following error: FYI it was a spliited message that I sent to 100 destinations. 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: TP-Validity-Period: 24.0 hours 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- AT+CMGS=139^M 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: send command status: 1 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- 005100099186272711F50011A79005000349020240653A28EDA697E5ED02391D4ECBCB7316484AB482C8651028264382FEA0180E099A86D9EC32A8388787C76590F12D6F974141F7BC0CB286E9611D88FEAED3CB7310BB3C07A5DDE6F71C34AFCB41EC32689EA69741E432887D2A8CDFECB20E74BFDF5DEC303DED9EBFEB6C977B0C6A8198617ADA3D7DD7D9 2010-05-06 20:59:29 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- ^Z 2010-05-06 20:59:42 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- 2010-05-06 20:59:42 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: -- +CMS ERROR: 38 2010-05-06 20:59:42 [10149] [6] ERROR: AT2[sonyericsson_s500i]: +CMS ERROR: +CMS ERROR: 38 2010-05-06 20:59:42 [10149] [6] ERROR: AT2[sonyericsson_s500i]: +CMS ERROR: Network out of order (38) 2010-05-06 20:59:42 [10149] [6] DEBUG: AT2[sonyericsson_s500i]: send command status: 1 modems.conf: group = modems id = sonyericsson_s500i name = Sony Ericsson S500i detect-string = S500i message-storage = ME # use this init-string for non sim-buffering #init-string = AT+CNMI=3,2,0,0 # use this init-string for sim-buffering init-string = AT+CNMI=2,3,0,1,0 reset-string = ATZ broken = true speed = 460800 kannel.conf (smsc part): # SMSC GSM group = smsc smsc = at #device = /dev/ttyS0 #smsc-id = sagem_my300X #device = /dev/ttyACM0 #smsc-id = nokiaphone #modemtype = nokiaphone #allowed-smsc-id = nokiaphone device = /dev/ttyACM1 smsc-id = sonyericsson_s500i allowed-smsc-id = sonyericsson_s500i modemtype = sonyericsson_s500i sms-center = +687xx #mynumber = 687xx pin = validityperiod = 167 sim-buffering = true log-file = /var/log/kannel/smsc.log log-level = 0 include = /etc/kannel/modems.conf Thanks by advance for your help, -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Quote and backslash issue
I redo the test but this time: - DLR was set to internat instead of mysql - removed dlr.php url in playsms Fakesmsc received: *2010-05-03 18:37:33 [13379] [0] DEBUG: Got message 1: +687xx +687yy text l\'e* logs: *tail -f bearerbox.log sqlbox.log smsbox.log access.log /tmp/test-2.log*: that is why you have logs generated like this == smsbox.log == 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.41'. 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Created HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.0.41 2010-05-03 18:37:32 [13316] [3] INFO: sendsms used by playsms 2010-05-03 18:37:32 [13316] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e 2010-05-03 18:37:32 [13316] [3] DEBUG: Stored UUID bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [3] DEBUG: message length 3, sending 1 messages 2010-05-03 18:37:32 [13316] [3] DEBUG: Status: 202 Answer: Sent. 2010-05-03 18:37:32 [13316] [3] DEBUG: Delayed reply - wait for bearerbox == access.log == 2010-05-03 18:37:32 send-SMS request added - sender:playsms:+687xx 192.168.0.41 target:+687yy request: *'l'e'* == smsbox.log == == sqlbox.log == 2010-05-03 18:37:32 [13307] [3] DEBUG: smsbox_to_bearerbox: sms received == bearerbox.log == 2010-05-03 18:37:32 [13269] [15] DEBUG: boxc_receiver: sms received 2010-05-03 18:37:32 [13269] [15] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-05-03 18:37:32 [13269] [6] DEBUG: smsc_fake: sending message to client == access.log == 2010-05-03 18:37:32 Sent SMS [SMSC:Fake] [SVC:playsms] [ACT:kcn] [BINF:] [FID:] [META:] [from:+687783548] [to:+687yy] [flags:1:0:-1:-1:-1] [msg:4:*l\'e*] [udh:0:] == smsbox.log == 2010-05-03 18:37:32 [13316] [0] DEBUG: Got ACK (0) of bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient for `192.168.0.41'. Regards, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Hi, I don't think so. Seems like an smsbox issue: smsbox log: 2010-05-03 13:56:46 [7684] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e Meanwhile these are tons of logs, most of them dupplicated and irrelevant. Can you please repost only relevant portions? This time include relevant access log from bb. I appreciate your effort to break up logs like that, but it is very confusing. By relevant I don't mean DLRs. BR, Nikos - Original Message - *From:* sangprabv sangpr...@gmail.com *To:* Emmanuel CHANSON emmanuelchan...@gmail.com *Cc:* users users@kannel.org *Sent:* Monday, May 03, 2010 6:18 AM *Subject:* Re: Quote and backslash issue This is more about SQLBox is trying to play safe. One tricky solution is replace ' with ` when you inject MT. sangprabv sangpr...@gmail.com On May 3, 2010, at 10:04 AM, Emmanuel CHANSON wrote: Below the logs generated during a test done with fakesmsc: 2010-05-03 13:56:47 [7886] [0] DEBUG: Got message 2: +687xx +687yy text *l\'e* bearerbox, smsbox, sqlbox .log == bearerbox.log == 2010-05-03 13:55:32 [7638] [6] DEBUG: column=source buffer_type=253 max_length=0 length=40 2010-05-03 13:55:32 [7638] [6] DEBUG: column=destination buffer_type=253 max_length=0 length=40 2010-05-03 13:55:32 [7638] [6] DEBUG: column=boxc buffer_type=253 max_length=0 length=40 2010-05-03 13:55:32 [7638] [6] DEBUG: DLR[mysql]: created DLR message for URL http://192.168.0.41/playsms/plugin/gateway/kannel/dlr.php?type=%dslid=0uid=12 2010-05-03 13:55:32 [7638] [6] DEBUG: removing DLR from database 2010-05-03 13:55:32 [7638] [6] DEBUG: sql: DELETE FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 2010-05-03 13:55:32 [7638] [16] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-05-03 13:55:32 [7638] [16] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-05-03 13:55:32 [7638] [15] DEBUG: boxc_receiver: got ack 2010-05-03 13:55:49 [7638] [15] DEBUG: boxc_receiver: heartbeat with load value 0 received == smsbox.log == 2010-05-03 13:55:32 [7684] [8] DEBUG: data: 63 68 65 2f 32 2e 32 2e 31 34 20 28 46 65 64 6f che/2.2.14 (Fedo 2010-05-03 13:55:32 [7684] [8] DEBUG: data: 72 61 29 0d 0a 58 2d 50 6f 77 65 72 65 64 2d 42 ra)..X-Powered-B 2010-05-03 13:55:32 [7684] [8] DEBUG: data: 79 3a 20 50 48 50 2f 35 2e 33 2e 32 0d 0a 50 72 y: PHP/5.3.2..Pr 2010-05-03 13:55:32 [7684] [8] DEBUG: data: 61 67 6d 61 3a 20 6e 6f 2d 63 61 63 68 65 0d 0a agma: no-cache.. 2010-05-03 13:55:32 [7684] [8] DEBUG: data: 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 Content-Length: 2010-05-03 13:55:32 [7684] [8] DEBUG: data: 30 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 63 0..Connection: c 2010-05-03 13:55:32 [7684] [8] DEBUG: data: 6c 6f 73 65 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 lose..Content-Ty 2010-05-03
Re: Quote and backslash issue
I have run the test without sqlbox and the quote is not escaped this time so something is wrong on this. I have see with Alex and I need to investiguate further... Thanks Nikos, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Hi, You needn't disable DLRs. Just skip from posted logs. It is clear. Somewhere between smsbox and bearerbox the quote is escaped. And shouldn't. Please run the same test with fakesmsc client instead of smsbox and see if problem persists. BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* users users@kannel.org *Sent:* Monday, May 03, 2010 10:43 AM *Subject:* Re: Quote and backslash issue I redo the test but this time: - DLR was set to internat instead of mysql - removed dlr.php url in playsms Fakesmsc received: *2010-05-03 18:37:33 [13379] [0] DEBUG: Got message 1: +687xx +687yy text l\'e* logs: *tail -f bearerbox.log sqlbox.log smsbox.log access.log /tmp/test-2.log*: that is why you have logs generated like this == smsbox.log == 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.41'. 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Created HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.0.41 2010-05-03 18:37:32 [13316] [3] INFO: sendsms used by playsms 2010-05-03 18:37:32 [13316] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e 2010-05-03 18:37:32 [13316] [3] DEBUG: Stored UUID bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [3] DEBUG: message length 3, sending 1 messages 2010-05-03 18:37:32 [13316] [3] DEBUG: Status: 202 Answer: Sent. 2010-05-03 18:37:32 [13316] [3] DEBUG: Delayed reply - wait for bearerbox == access.log == 2010-05-03 18:37:32 send-SMS request added - sender:playsms:+687xx 192.168.0.41 target:+687yy request: *'l'e'* == smsbox.log == == sqlbox.log == 2010-05-03 18:37:32 [13307] [3] DEBUG: smsbox_to_bearerbox: sms received == bearerbox.log == 2010-05-03 18:37:32 [13269] [15] DEBUG: boxc_receiver: sms received 2010-05-03 18:37:32 [13269] [15] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-05-03 18:37:32 [13269] [6] DEBUG: smsc_fake: sending message to client == access.log == 2010-05-03 18:37:32 Sent SMS [SMSC:Fake] [SVC:playsms] [ACT:kcn] [BINF:] [FID:] [META:] [from:+687783548] [to:+687yy] [flags:1:0:-1:-1:-1] [msg:4:*l\'e*] [udh:0:] == smsbox.log == 2010-05-03 18:37:32 [13316] [0] DEBUG: Got ACK (0) of bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient for `192.168.0.41'. Regards, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Hi, Β I don't think so. Seems like an smsbox issue: Β smsbox log: 2010-05-03 13:56:46 [7684] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e Meanwhile these are tons of logs, most of them dupplicated and irrelevant. Can you please repost only relevant portions? This time include relevant access log from bb. I appreciate your effort to break up logs like that, but it is very confusing. By relevant I don't mean DLRs. Β BR, Nikos Β [...snip...] -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-CalΓ©donie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Quote and backslash issue
Maybe you did not catch how my system is designed: I used the following implementation: PlaySMS to insert MT - smsbox - sqlbox - bearerbox - fakesmsc On sqlbox side the quote is escaped (maybe mysql config issue or sqlbox). And using tail -f it generates the log from each module when they are triggered, but you don't like this, it seems for me better to understand the call flow I thought. Regards, Emmanuel 2010/5/4 Nikos Balkanas nbalka...@gmail.com So what is the entry from access-log? It is listed under smsbox logs. Is it smsbox or sqlbox? It is not escaped. In the future please label your logs correctly, so that we do not waiste our time. BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* Nikos Balkanas nbalka...@gmail.com *Cc:* users users@kannel.org *Sent:* Monday, May 03, 2010 2:23 PM *Subject:* Re: Quote and backslash issue I have run the test without sqlbox and the quote is not escaped this time so something is wrong on this. I have see with Alex and I need to investiguate further... Thanks Nikos, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Hi, Β You needn't disable DLRs. Just skip from posted logs. Β It is clear. Somewhere between smsbox and bearerbox the quote is escaped. And shouldn't. Β PleaseΒ run the same test with fakesmsc client instead of smsbox and see if problem persists. Β BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* users users@kannel.org *Sent:* Monday, May 03, 2010 10:43 AM *Subject:* Re: Quote and backslash issue I redo the test but this time: - DLR was set to internat instead of mysql - removed dlr.php url in playsms Fakesmsc received: *2010-05-03 18:37:33 [13379] [0] DEBUG: Got message 1: +687xx +687yy text l\'e* logs: *tail -f bearerbox.log sqlbox.log smsbox.log access.log /tmp/test-2.log*: that is why you have logs generated like this == smsbox.log == 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.41'. 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Created HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.0.41 2010-05-03 18:37:32 [13316] [3] INFO: sendsms used by playsms 2010-05-03 18:37:32 [13316] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e 2010-05-03 18:37:32 [13316] [3] DEBUG: Stored UUID bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [3] DEBUG: message length 3, sending 1 messages 2010-05-03 18:37:32 [13316] [3] DEBUG: Status: 202 Answer: Sent. 2010-05-03 18:37:32 [13316] [3] DEBUG: Delayed reply - wait for bearerbox == access.log == 2010-05-03 18:37:32 send-SMS request added - sender:playsms:+687xx 192.168.0.41 target:+687yy request: *'l'e'* == smsbox.log == == sqlbox.log == 2010-05-03 18:37:32 [13307] [3] DEBUG: smsbox_to_bearerbox: sms received == bearerbox.log == 2010-05-03 18:37:32 [13269] [15] DEBUG: boxc_receiver: sms received 2010-05-03 18:37:32 [13269] [15] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-05-03 18:37:32 [13269] [6] DEBUG: smsc_fake: sending message to client == access.log == 2010-05-03 18:37:32 Sent SMS [SMSC:Fake] [SVC:playsms] [ACT:kcn] [BINF:] [FID:] [META:] [from:+687783548] [to:+687yy] [flags:1:0:-1:-1:-1] [msg:4:*l\'e*] [udh:0:] == smsbox.log == 2010-05-03 18:37:32 [13316] [0] DEBUG: Got ACK (0) of bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient for `192.168.0.41'. Regards, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Hi, Ξ’Β I don't think so. Seems like an smsbox issue: Ξ’Β smsbox log: 2010-05-03 13:56:46 [7684] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e Meanwhile these are tons of logs, most of them dupplicated and irrelevant. Can you please repost only relevant portions? This time include relevant access log from bb. I appreciate your effort to break up logs like that, but it is very confusing. By relevant I don't mean DLRs. Ξ’Β BR, Nikos Ξ’Β [...snip...] -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-CalΓ©donie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-CalΓ©donie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Quote and backslash issue
Nikos sorry but, - the 3 access.log file are in fact the same one but with informations generated not at the same time that is why you have several times access.log file and others... All informations where generated chronologically - and I did explained my system design in my first mail:* I am using Kannel CVS + sqlbox ( bearerbox - sqlbox - smsbox ). * I appreciate your help anyway Regards, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Probably not. But you didn't explain beforehand. Nevertheless, there are at least 3 access logs in your system and next time please label each one clearly. Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* Nikos Balkanas nbalka...@gmail.com *Cc:* users users@kannel.org *Sent:* Monday, May 03, 2010 10:58 PM *Subject:* Re: Quote and backslash issue Maybe you did not catch how my system is designed: I used the following implementation: PlaySMS to insert MT - smsbox - sqlbox - bearerbox - fakesmsc On sqlbox side the quote is escaped (maybe mysql config issue or sqlbox).   And using tail -f it generates the log from each module when they are triggered, but you don't like this, it seems for me better to understand the call flow I thought. Regards, Emmanuel 2010/5/4 Nikos Balkanas nbalka...@gmail.com So what is the entry from access-log? It is listed under smsbox logs. Is it smsbox or sqlbox? It is not escaped.  In the future please label your logs correctly, so that we do not waiste our time.  BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* Nikos Balkanas nbalka...@gmail.com *Cc:* users users@kannel.org *Sent:* Monday, May 03, 2010 2:23 PM *Subject:* Re: Quote and backslash issue I have run the test without sqlbox and the quote is not escaped this time so something is wrong on this. I have see with Alex and I need to investiguate further... Thanks Nikos, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Hi, Β You needn't disable DLRs. Just skip from posted logs. Β It is clear. Somewhere between smsbox and bearerbox the quote is escaped. And shouldn't. Β PleaseΒ run the same test with fakesmsc client instead of smsbox and see if problem persists. Β BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* users users@kannel.org *Sent:* Monday, May 03, 2010 10:43 AM *Subject:* Re: Quote and backslash issue I redo the test but this time: - DLR was set to internat instead of mysql - removed dlr.php url in playsms Fakesmsc received: *2010-05-03 18:37:33 [13379] [0] DEBUG: Got message 1: +687xx +687yy text l\'e* logs: *tail -f bearerbox.log sqlbox.log smsbox.log access.log /tmp/test-2.log*: that is why you have logs generated like this == smsbox.log == 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.41'. 2010-05-03 18:37:32 [13316] [2] DEBUG: HTTP: Created HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.0.41 2010-05-03 18:37:32 [13316] [3] INFO: sendsms used by playsms 2010-05-03 18:37:32 [13316] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e 2010-05-03 18:37:32 [13316] [3] DEBUG: Stored UUID bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [3] DEBUG: message length 3, sending 1 messages 2010-05-03 18:37:32 [13316] [3] DEBUG: Status: 202 Answer: Sent. 2010-05-03 18:37:32 [13316] [3] DEBUG: Delayed reply - wait for bearerbox == access.log == 2010-05-03 18:37:32 send-SMS request added - sender:playsms:+687xx 192.168.0.41 target:+687yy request: *'l'e'* == smsbox.log == == sqlbox.log == 2010-05-03 18:37:32 [13307] [3] DEBUG: smsbox_to_bearerbox: sms received == bearerbox.log == 2010-05-03 18:37:32 [13269] [15] DEBUG: boxc_receiver: sms received 2010-05-03 18:37:32 [13269] [15] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-05-03 18:37:32 [13269] [6] DEBUG: smsc_fake: sending message to client == access.log == 2010-05-03 18:37:32 Sent SMS [SMSC:Fake] [SVC:playsms] [ACT:kcn] [BINF:] [FID:] [META:] [from:+687783548] [to:+687yy] [flags:1:0:-1:-1:-1] [msg:4:*l\'e*] [udh:0:] == smsbox.log == 2010-05-03 18:37:32 [13316] [0] DEBUG: Got ACK (0) of bb89c57b-9cdd-4809-a81a-8ea5964e9aaf 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient area 0xb39005f0. 2010-05-03 18:37:32 [13316] [0] DEBUG: HTTP: Destroying HTTPClient for `192.168.0.41'. Regards, Emmanuel 2010/5/3 Nikos Balkanas nbalka...@gmail.com Hi, Π’Β I don't think so. Seems like an smsbox issue: Π’Β smsbox log: 2010-05-03 13:56:46 [7684] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687yy msg:l'e Meanwhile these are tons of logs, most of them dupplicated and irrelevant. Can you please repost only
Quote and backslash issue
Hello everybody, This time I am faced to this issue: When sending a message including a quote ' I receive \' on my mobile. I use PlaySMS to send a MT and below the url used for the test was: /cgi-bin/sendsms?username=xxpassword=xxfrom=%2B687xxto=%2B687xxaccount=xxxtext=l%27edlr-mask=31dlr-url=http%3A%2F%2F192.168.0.41%2Fplaysms%2Fplugin%2Fgateway%2Fkannel%2Fdlr.php%3Ftype%3D%25d%26slid%3D0%26uid%3D12mclass=1 so l'e was the message in this case. ( text=l%27e ). I have checked the logs: on smsbox.log: the quote is not modified *2010-05-01 11:52:03 [1724] [3] INFO: sendsms sender:playsms:+687xx (192.168.0.41) to:+687xx msg:l'e* on sqlbox the message is inserted correctly in mysql: *43* *MT* *+687xx* *+687xx* *[BLOB - 0o]* *l'e* *1272675123* *NULL* *playsms* *kcn* *NULL* *2* *1* *NULL* *0* *NULL* *NULL* *NULL* *31* * http://192.168.0.41/playsms/plugin/gateway/kannel/...* *NULL* *NULL* *NULL* *NULL* *N* on bearerbox.log: don't know how to find any clue for this message except the binary code I am using Kannel CVS + sqlbox ( bearerbox - sqlbox - smsbox ). magic quote are OFF in my php.ini. Did you ever see this? Is it bearerbox that add slash to any quote? Regards, -- Emmanuel
Re: DLR counters on status page
SOLVED, My mistakes, it works but because I generate a little traffic I did not see DLR counters incremented the DLR per second fiedl. Thanks Alex for your help :) Emmanuel 2010/3/14 Emmanuel CHANSON emmanuelchan...@gmail.com Hello, I am using the latest Kannel CVS version (installed yesterday). I would like to monitor the DLR status via the status page but counters always display 0. Do I miss something on my kannel.conf file? I am using dlr-storage=mysql Thanks by advance for your help BR, -- Emmanuel @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
DLR counters on status page
Hello, I am using the latest Kannel CVS version (installed yesterday). I would like to monitor the DLR status via the status page but counters always display 0. Do I miss something on my kannel.conf file? I am using dlr-storage=mysql Thanks by advance for your help BR, -- Emmanuel @email : emmanuelchan...@gmail.com
Re: How to use a phone connected to USB port
://www.kannel.org/pipermail/users/attachments/20100119/82245462/attachm ent.htmlhttp://www.kannel.org/pipermail/users/attachments/20100119/82245462/attachm%0Aent.html -- ___ users mailing list users@kannel.org http://www.kannel.org/mailman/listinfo/users End of users Digest, Vol 41, Issue 61 * -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: How to use a phone connected to USB port
Thanks for this explanations Nikos Emmanuel 2010/1/20 Nikos Balkanas n...@amdtelecom.net Basically all serial mobiles modems or usb, for which there are drivers by the OS, are compatible with kannel. Sometime ago the list grew so large that it became impractical to maintain. Modem configuration is an easy thing that one should do by himself. A look at the user guide modems.conf should take care of 97% of cases. BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* C. Savinovich c.savinov...@itntelecom.com *Cc:* users users@kannel.org *Sent:* Tuesday, January 19, 2010 11:51 PM *Subject:* Re: How to use a phone connected to USB port Hello, 1. What is the name of the USB port on my linux system? Is it /dev/ttyXXX what?, and then, since the computer has like 4 different USB ports, how do I know which one is it? *= for my Nokia 6230 I got a /dev/ttyACM0* 2. does anyone has a sample configuration for a usb Motorola phone ? *= try to adapt for your phone, below the configuration for my nokia: kannel.conf: #NOKIA 6230 group = smsc smsc = at smsc-id = nokia6230 modemtype = nokiaphone device = /dev/ttyACM0 #my-number = 111222 speed = 19200 connect-allow-ip = 127.0.0.1 log-level = 0 sim-buffering = true include = /etc/modems.conf modems.conf: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true keepalive-cmd = AT+CBC;+CSQ enable-mms = false #enable-mms = true message-storage = ME* BTW, don't you think (kannel users) it could be nice to create a list of compatible phone with the configuration for each phone that works on kannel ? So that we would not have question about phone compatibility on kannel? Regards, Emmanuel 2010/1/19 C. Savinovich c.savinov...@itntelecom.com Dear friends: I am a newbie and greatly will appreciate your help on the following question, since there is nothing, but nothing in terms of documentation that can give me a hint on how to use a Motorola i776 connected via the USB port. I have read the entire user's guide, and here is what I have so far: 1) On a Centos 5.4 system, I compiled and started bearerbox and smsbox... they are running beautifully. 2) I got fakesmsc to work well. 3) However, how do I know the following: 1. What is the name of the USB port on my linux system? Is it /dev/ttyXXX what?, and then, since the computer has like 4 different USB ports, how do I know which one is it? 2. does anyone has a sample configuration for a usb Motorola phone ? Thanks a lot everybody C. Savinovich -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of users-requ...@kannel.org Sent: Tuesday, January 19, 2010 10:57 AM To: users@kannel.org Subject: users Digest, Vol 41, Issue 61 Send users mailing list submissions to users@kannel.org To subscribe or unsubscribe via the World Wide Web, visit http://www.kannel.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-requ...@kannel.org You can reach the person managing the list at users-ow...@kannel.org When replying, please edit your Subject line so it is more specific than Re: Contents of users digest... Today's Topics: 1. Re: cannot recieve sms (Alvaro Cornejo) 2. Re: cannot recieve sms (Munir Ahmad) 3. Re: Count SMS units for Unicode Messages (Nikos Balkanas) -- Message: 1 Date: Tue, 19 Jan 2010 08:46:10 -0500 From: Alvaro Cornejo cornejo.alv...@gmail.com Subject: Re: cannot recieve sms To: Munir Ahmad munir.eh...@gmail.com Cc: users@kannel.org Message-ID: c8c167b01001190546m5a61fce7y5a211c46d3459...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 You need to tell your modem to pass the sms to kannel using at+cnmi command and/or tell kannel to look for the messages in the modems: sim-buffering = true... read the manual for details. 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.NET www.smsglobal.com.mx y www.pravcom.com On Tue, Jan 19, 2010 at 8:25 AM, Munir Ahmad munir.eh...@gmail.com wrote: Thankyou, my configuration file is now like this but still no luck group = core admin-port = 13330 smsbox-port = 13331 admin-password = bar log-file = ./kannel.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 group = smsc smsc = at smsc-id = MainSMSC modemtype = auto device = /dev/ttyACM0 my-number = 03214542634
Re: Best Kannel front-end
Hello Nyasha, I am using PlaySMS and I can get the DLR using it so if you have any problem with this tell me. I remember I had to make some changes in the code so we can compare mine and the original one. Feel free to ask me and give us more details about your issue. BR, Emmanuel 2010/1/5 Jovan Kostovski chomb...@gmail.com On Tue, Jan 5, 2010 at 1:17 PM, Nyasha Chasakara nchasak...@gmail.com wrote: I can now receive and send messages via my Siemens Modem. I am not very technical. I have tried Playsms as a frontend to receive messages but all i can do is send messages. In my kannel logs i can see all messages sent and received including delivery reports. I have visited a lot of sites in search of a solution but found none. Thanks Writing your own front-end would be the best thing to do. No one knows your exact needs can not write the front-end the way you like it. You can get all the relevant parameters of the messages with the get-url and can easily do some processing based on the sender, recipient, message text... BR, Jovan -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Sms-service, WAP Push and PPG
Hello, After having successfully implemented wapbox, ppg and send a wappush on ppg HTTP interface using: lynx -dump http://localhost/test/sms-wap-push-2.php?num=XX; I try now to use it through sms-service without success, I always get on the mobile the POST or GET content URL in text and not in push sms: I tested with post-url and get_url but same result ie URL displayed on the mobile as text Do I miss something ? *2009-12-28 18:45:48 Receive SMS [SMSC:nokia6230] [SVC:] [ACT:] [BINF:] [FID:] [from:+687773502] [to:1234] [flags:-1:0:-1:0:-1] [msg:6:ecosse] [udh:0:] 2009-12-28 18:45:48 SMS HTTP-request sender:+X request: 'POST /wappush HTTP/1.1 Host: localhost:8080 X-Kannel-SMSC: nokia6230 Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml Content-Length: 922 --multipart-boundary Content-type: application/xml --multipart-boundary Content-type: text/vnd.wap.si Test Google URL --multipart-boundary-- HTTP/1.1 202 Accepted Server: Kannel/1.4.3 Date: Mon, 28 Dec 2009 07:45:48 GMT Content-Length: 971 Content-Type: application/xml' url: ' http://localhost/test/sms-wap-push-2.php?num=%2BX' reply: 200 ' successful ' 2009-12-28 18:45:58 Sent SMS [SMSC:nokia6230] [SVC:^[ ]*(ecosse)[ ]*] [ACT:] [BINF:] [FID:] [from:+X] [to:+X] [flags:-1:0:-1:-1:-1] [msg:160:POST /wappush HTTP/1.1 .Host: localhost:8080 .X-Kannel-SMSC: nokia6230 .Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml .Co] [udh:0:] * My config: group = sms-service keyword = ecosse get-url = http://localhost/test/sms-wap-push-2.php?num=%p; BR, -- Emmanuel
Re: Sms-service, WAP Push and PPG
My call flow is the following: MO - keyword - Kannel sms-service match the keyword - get_url = php script that send a corresponding wap push sms to the original sender in order to fetch an url and retrieve a content (image, ...) I am just looking for a way to retrieve a content through wap triggered by a keyword sms Is that you were thinking? BR, Emmanuel 2009/12/28 Nikos Balkanas nbalka...@gmail.com Hi, As discussed in another thread in this list, you can use sms-service only with MO SMS, not for push (ppg or SMS). MO means Mobile Originated. With PPG you can push any text or URL you want, why then would you like to do an extra request to sms-service? Just send what you want from the beginning. BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* users users@kannel.org *Sent:* Monday, December 28, 2009 10:45 AM *Subject:* Sms-service, WAP Push and PPG Hello, After having successfully implemented wapbox, ppg and send a wappush on ppg HTTP interface using: lynx -dump http://localhost/test/sms-wap-push-2.php?num=XX; I try now to use it through sms-service without success, I always get on the mobile the POST or GET content URL in text and not in push sms: I tested with post-url and get_url but same result ie URL displayed on the mobile as text Do I miss something ? *2009-12-28 18:45:48 Receive SMS [SMSC:nokia6230] [SVC:] [ACT:] [BINF:] [FID:] [from:+687773502] [to:1234] [flags:-1:0:-1:0:-1] [msg:6:ecosse] [udh:0:] 2009-12-28 18:45:48 SMS HTTP-request sender:+X request: 'POST /wappush HTTP/1.1 Host: localhost:8080 X-Kannel-SMSC: nokia6230 Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml Content-Length: 922 --multipart-boundary Content-type: application/xml --multipart-boundary Content-type: text/vnd.wap.si Test Google URL --multipart-boundary-- HTTP/1.1 202 Accepted Server: Kannel/1.4.3 Date: Mon, 28 Dec 2009 07:45:48 GMT Content-Length: 971 Content-Type: application/xml' url: ' http://localhost/test/sms-wap-push-2.php?num=%2BX' reply: 200 ' successful ' 2009-12-28 18:45:58 Sent SMS [SMSC:nokia6230] [SVC:^[ ]*(ecosse)[ ]*] [ACT:] [BINF:] [FID:] [from:+X] [to:+X] [flags:-1:0:-1:-1:-1] [msg:160:POST /wappush HTTP/1.1 .Host: localhost:8080 .X-Kannel-SMSC: nokia6230 .Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml .Co] [udh:0:] * My config: group = sms-service keyword = ecosse get-url = http://localhost/test/sms-wap-push-2.php?num=%p; BR, -- Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com
Re: Sms-service, WAP Push and PPG
You are right Nikos, The issue is solved by adding: max-messages = 0 I have already used Mbuni and it works for me using mm1 :), I would just test using wap-push Many thanks, Emmanuel 2009/12/28 Nikos Balkanas n...@amdtelecom.net That should work. You need to pass MSISDN to ppg, and set max-messages to 0. However, since mobile needs to have wap enabled (and suitable SIM) to get the URL, this could be a wap call (map-url) from the start (i.e. no SMS-PPG). Or you can play MMS with mbuni. BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* Nikos Balkanas nbalka...@gmail.com *Cc:* users users@kannel.org *Sent:* Monday, December 28, 2009 10:38 PM *Subject:* Re: Sms-service, WAP Push and PPG My call flow is the following: MO - keyword - Kannel sms-service match the keyword - get_url = php script that send a corresponding wap push sms to the original sender in order to fetch an url and retrieve a content (image, ...) I am just looking for a way to retrieve a content through wap triggered by a keyword sms Is that you were thinking? BR, Emmanuel 2009/12/28 Nikos Balkanas nbalka...@gmail.com Hi, As discussed in another thread in this list, you can use sms-service only with MO SMS, not for push (ppg or SMS). MO means Mobile Originated. With PPG you can push any text or URL you want, why then would you like to do an extra request to sms-service? Just send what you want from the beginning. BR, Nikos - Original Message - *From:* Emmanuel CHANSON emmanuelchan...@gmail.com *To:* users users@kannel.org *Sent:* Monday, December 28, 2009 10:45 AM *Subject:* Sms-service, WAP Push and PPG Hello, After having successfully implemented wapbox, ppg and send a wappush on ppg HTTP interface using: lynx -dump http://localhost/test/sms-wap-push-2.php?num=XX; I try now to use it through sms-service without success, I always get on the mobile the POST or GET content URL in text and not in push sms: I tested with post-url and get_url but same result ie URL displayed on the mobile as text Do I miss something ? *2009-12-28 18:45:48 Receive SMS [SMSC:nokia6230] [SVC:] [ACT:] [BINF:] [FID:] [from:+687773502] [to:1234] [flags:-1:0:-1:0:-1] [msg:6:ecosse] [udh:0:] 2009-12-28 18:45:48 SMS HTTP-request sender:+X request: 'POST /wappush HTTP/1.1 Host: localhost:8080 X-Kannel-SMSC: nokia6230 Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml Content-Length: 922 --multipart-boundary Content-type: application/xml --multipart-boundary Content-type: text/vnd.wap.si Test Google URL --multipart-boundary-- HTTP/1.1 202 Accepted Server: Kannel/1.4.3 Date: Mon, 28 Dec 2009 07:45:48 GMT Content-Length: 971 Content-Type: application/xml' url: ' http://localhost/test/sms-wap-push-2.php?num=%2BX' reply: 200 ' successful ' 2009-12-28 18:45:58 Sent SMS [SMSC:nokia6230] [SVC:^[ ]*(ecosse)[ ]*] [ACT:] [BINF:] [FID:] [from:+X] [to:+X] [flags:-1:0:-1:-1:-1] [msg:160:POST /wappush HTTP/1.1 .Host: localhost:8080 .X-Kannel-SMSC: nokia6230 .Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml .Co] [udh:0:] * My config: group = sms-service keyword = ecosse get-url = http://localhost/test/sms-wap-push-2.php?num=%p; BR, -- Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calιdonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com