setup or configure XML POST

2013-08-08 Thread John alero
Hello,

How to setup or configure XML POST request in Kannel 1.5.0.

Kindly provide some information for the same.


Re: setup or configure XML POST

2013-08-08 Thread spameden
page 94 of user guide


2013/8/8 John alero johnale...@gmail.com

 Hello,

 How to setup or configure XML POST request in Kannel 1.5.0.

 Kindly provide some information for the same.






DLR

2013-08-08 Thread Dorin Aftenii
 Hello,
please please please help me!
I have a problem that I can't solve. 
I use Bearerbox - SMSbox - SQLBox
All works fine except DLR. I can't recieve delivery status.
Wen I send an SMS, kannel start php script from dlr-url only one time and 
return status 8 (smsc submit), after that no more responses.
But I expect from him other statuses: error, success. etc.
I will be grateful for any help.

Next I give some server configguration files and logs:

my logs:
2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] 
[FID:2518700643] [META:] [from:89021104107] [to:79257405404] 
[flags:-1:0:-1:-1:31] [msg:15:??$
2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] 
[FID:2518700643] [META:] [from:89021104107] [to:79257405404] 
[flags:-1:-1:-1:-1:8] [msg:4:ACK/$

2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received
2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc: 
mysqlbox
2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc: 
mysmsbox
2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to 127.0.0.1
2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack
2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load value 
0 received
2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store
2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called


Look at my configuration files kannel.conf and sqlbox.conf:
#KANNEL CONFIG FILE
group = core
admin-port = 13000
admin-password = **
smsbox-port = 13001
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access_kannel.log
store-file = /var/log/kannel/store_sms
dlr-storage = mysql


group = smsc
smsc = smpp
smsc-id = craftmobile
host = 89.249.18.53
port = 27703
smsc-username = **
smsc-password = **
system-type = VMA
log-file = /var/log/kannel/smpp-smsc.log log-level = 1
dest-addr-ton = 1
dest-addr-npi = 1
#alt-charset = UCS-2

group = smsbox
bearerbox-host = localhost
smsbox-id = mysmsbox
sendsms-port = 13013
log-file = /var/log/kannel/smsbox.log
log-level = 0

group = smsbox-route
smsbox-id = mysmsbox
smsc-id = craftmobile
#shortcode = 2288

group = sendsms-user
dlr-url =  http://134.0.113.138/dlr.php?type=%d;
concatenation = true
max-messages = 5
username = 
password = **
default-smsc = SMSC

group = dlr-db
id = mydlr
table = oempro_kannel_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


group = mysql-connection
id = mydlr
host = localhost
username = 
password = **
database = sender
max-connections = 1

# -- SQLBOX GROUP --
group = sqlbox
id = sqlbox-db
smsbox-id = mysqlbox
bearerbox-port = 13001
smsbox-port = 13003
smsbox-port-ssl = false
sql-log-table = oempro_kannel_sqlbox_sent_sms
sql-insert-table = oempro_kannel_sqlbox_send_sms
log-file = /var/log/kannel/sqlbox.log
log-level = 3

group = mysql-connection
id = sqlbox-db
host = localhost
username = 
password = **
database = sender
max-connections = 1

query that I use for sending an SMS:

INSERT INTO oempro_kannel_sqlbox_send_sms (
  momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url, boxc_id
) VALUES (
  'MT', '8902110', '7925740', 'Test message', 2, 31,
' 
http://134.0.113.138/dlr.php?smsc=%ifrom=%Pto=%pdlr-mask=%dsmsID=123456789 
', 
'mysmsbox'
);

Thanks!
Dorin. 


Re: DLR

2013-08-08 Thread Alejandro Guerrieri
The smsc must have dlrs enabled on their side as well, contact them and ask if 
it's enabled.


Hope it helps,
--
Alex Guerrieri

On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru wrote:

 Hello, 
 please please please help me!
 I have a problem that I can't solve. 
 I use Bearerbox - SMSbox - SQLBox
 All works fine except DLR. I can't recieve delivery status.
 Wen I send an SMS, kannel start php script from dlr-url only one time and 
 return status 8 (smsc submit), after that no more responses.
 But I expect from him other statuses: error, success. etc.
 I will be grateful for any help.
 
 Next I give some server configguration files and logs:
 
 my logs:
 2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] 
 [FID:2518700643] [META:] [from:89021104107] [to:79257405404] 
 [flags:-1:0:-1:-1:31] [msg:15:??$
 2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] 
 [FID:2518700643] [META:] [from:89021104107] [to:79257405404] 
 [flags:-1:-1:-1:-1:8] [msg:4:ACK/$
 
 2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received
 2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc: 
 mysqlbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc: 
 mysmsbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to 
 127.0.0.1
 2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack
 2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load 
 value 0 received
 2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store
 2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called
 
 
 Look at my configuration files kannel.conf and sqlbox.conf: 
 #KANNEL CONFIG FILE 
 group = core 
 admin-port = 13000 
 admin-password = ** 
 smsbox-port = 13001 
 log-file = /var/log/kannel/kannel.log 
 log-level = 0 
 access-log = /var/log/kannel/access_kannel.log 
 store-file = /var/log/kannel/store_sms 
 dlr-storage = mysql 
 
 
 group = smsc 
 smsc = smpp 
 smsc-id = craftmobile 
 host = 89.249.18.53 
 port = 27703 
 smsc-username = ** 
 smsc-password = ** 
 system-type = VMA 
 log-file = /var/log/kannel/smpp-smsc.log log-level = 1 
 dest-addr-ton = 1 
 dest-addr-npi = 1 
 #alt-charset = UCS-2 
 
 group = smsbox 
 bearerbox-host = localhost 
 smsbox-id = mysmsbox 
 sendsms-port = 13013 
 log-file = /var/log/kannel/smsbox.log 
 log-level = 0 
 
 group = smsbox-route 
 smsbox-id = mysmsbox 
 smsc-id = craftmobile 
 #shortcode = 2288 
 
 group = sendsms-user 
 dlr-url = http://134.0.113.138/dlr.php?type=%d; 
 concatenation = true 
 max-messages = 5 
 username =  
 password = ** 
 default-smsc = SMSC 
 
 group = dlr-db 
 id = mydlr 
 table = oempro_kannel_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 
 
 
 group = mysql-connection 
 id = mydlr 
 host = localhost 
 username =  
 password = ** 
 database = sender 
 max-connections = 1 
 
 # -- SQLBOX GROUP -- 
 group = sqlbox 
 id = sqlbox-db 
 smsbox-id = mysqlbox 
 bearerbox-port = 13001 
 smsbox-port = 13003 
 smsbox-port-ssl = false 
 sql-log-table = oempro_kannel_sqlbox_sent_sms 
 sql-insert-table = oempro_kannel_sqlbox_send_sms 
 log-file = /var/log/kannel/sqlbox.log 
 log-level = 3 
 
 group = mysql-connection 
 id = sqlbox-db 
 host = localhost 
 username =  
 password = ** 
 database = sender 
 max-connections = 1 
 
 query that I use for sending an SMS: 
 
 INSERT INTO oempro_kannel_sqlbox_send_sms ( 
   momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url, boxc_id 
 ) VALUES ( 
   'MT', '8902110', '7925740', 'Test message', 2, 31, 
 'http://134.0.113.138/dlr.php?smsc=%ifrom=%Pto=%pdlr-mask=%dsmsID=123456789',
  'mysmsbox' 
 ); 
 
 Thanks! 
 Dorin. 


Fwd: Re: DLR

2013-08-08 Thread dorin

Hello Alejandro!
Thank for your reply.

dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP?
They told me that they use only transceiver mode.
If dlrs are disabled on SMSC, I wouldn't receive nothing.

And I'm not shure that I recieve first dlr from SMSC.
All time when is started dlr-url by kannel, means that SMSC responded?

When I saw logs, i paid attention on
Sent SMS ...[flags:-1:0:-1:-1:*31*]...
Receive DLR ...[flags:-1:-1:-1:-1:*8*]...

When an SMS is sent, fifth falg (dlr_mask) goes like 31, and it's correct
But receiver have this flag set at 8. In this way we get the status?
on second request dlr_mask is set to 8.
Maybe this is the problem that I recieve only one time?

What do you think guys, the problem is clear and it goes only from SMSC?
or maybe problem it's in Kannel?

I understand last log message (2013-08-08 14:07:29 [11003] [9] DEBUG: 
boxc_receiver: heartbeat with load value 0 received)

like SMSC returned nothig. Or im wrong?

On 08.08.2013 14:58, Alejandro Guerrieri wrote:
The smsc must have dlrs enabled on their side as well, contact them 
and ask if it's enabled.



Hope it helps,
--
Alex Guerrieri

On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru 
mailto:dorinafte...@mail.ru wrote:



Hello,
please please please help me!
I have a problem that I can't solve.
I use Bearerbox - SMSbox - SQLBox
All works fine except DLR. I can't recieve delivery status.
Wen I send an SMS, kannel start php script from dlr-url only one time 
and return status 8 (smsc submit), after that no more responses.

But I expect from him other statuses: error, success. etc.
I will be grateful for any help.

Next I give some server configguration files and logs:

my logs:
2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] 
[FID:2518700643] [META:] [from:89021104107] [to:79257405404] 
[flags:-1:0:-1:-1:31] [msg:15:??$
2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] 
[BINF:] [FID:2518700643] [META:] [from:89021104107] [to:79257405404] 
[flags:-1:-1:-1:-1:8] [msg:4:ACK/$


2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received
2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to 
boxc: mysqlbox
2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to 
boxc: mysmsbox
2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to 
127.0.0.1

2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack
2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with 
load value 0 received

2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store
2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called


Look at my configuration files kannel.conf and sqlbox.conf:
#KANNEL CONFIG FILE
group = core
admin-port = 13000
admin-password = **
smsbox-port = 13001
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access_kannel.log
store-file = /var/log/kannel/store_sms
dlr-storage = mysql


group = smsc
smsc = smpp
smsc-id = craftmobile
host = 89.249.18.53
port = 27703
smsc-username = **
smsc-password = **
system-type = VMA
log-file = /var/log/kannel/smpp-smsc.log log-level = 1
dest-addr-ton = 1
dest-addr-npi = 1
#alt-charset = UCS-2

group = smsbox
bearerbox-host = localhost
smsbox-id = mysmsbox
sendsms-port = 13013
log-file = /var/log/kannel/smsbox.log
log-level = 0

group = smsbox-route
smsbox-id = mysmsbox
smsc-id = craftmobile
#shortcode = 2288

group = sendsms-user
dlr-url = http://134.0.113.138/dlr.php?type=%d; 
http://134.0.113.138/dlr.php?type=%d

concatenation = true
max-messages = 5
username = 
password = **
default-smsc = SMSC

group = dlr-db
id = mydlr
table = oempro_kannel_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


group = mysql-connection
id = mydlr
host = localhost
username = 
password = **
database = sender
max-connections = 1

# -- SQLBOX GROUP --
group = sqlbox
id = sqlbox-db
smsbox-id = mysqlbox
bearerbox-port = 13001
smsbox-port = 13003
smsbox-port-ssl = false
sql-log-table = oempro_kannel_sqlbox_sent_sms
sql-insert-table = oempro_kannel_sqlbox_send_sms
log-file = /var/log/kannel/sqlbox.log
log-level = 3

group = mysql-connection
id = sqlbox-db
host = localhost
username = 
password = **
database = sender
max-connections = 1

query that I use for sending an SMS:

INSERT INTO oempro_kannel_sqlbox_send_sms (
  momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url, boxc_id
) VALUES (
  'MT', '8902110', '7925740', 'Test message', 2, 31,
'http://134.0.113.138/dlr.php?smsc=%ifrom=%Pto=%pdlr-mask=%dsmsID=123456789', 
'mysmsbox'

);

Thanks!
Dorin.






Re: Re: DLR

2013-08-08 Thread Rodrigo Rocco
If your SMSC is transceiver mode, you should have transceiver-mode = true
in your *craftmobile *block. Or else it works as transmitter only.

--
Rodrigo Rocco Rubim
Cel: (21)97445317


On Thu, Aug 8, 2013 at 9:52 AM, dorin dorinafte...@mail.ru wrote:

  Hello Alejandro!
  Thank for your reply.

 dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP?
 They told me that they use only transceiver mode.
 If dlrs are disabled on SMSC, I wouldn't receive nothing.

 And I'm not shure that I recieve first dlr from SMSC.
 All time when is started dlr-url by kannel, means that SMSC responded?

 When I saw logs, i paid attention on
 Sent SMS ...[flags:-1:0:-1:-1:*31*]...
 Receive DLR ...[flags:-1:-1:-1:-1:*8*]...

 When an SMS is sent, fifth falg (dlr_mask) goes like 31, and it's correct
 But receiver have this flag set at 8. In this way we get the status?
 on second request dlr_mask is set to 8.
 Maybe this is the problem that I recieve only one time?

 What do you think guys, the problem is clear and it goes only from SMSC?
 or maybe problem it's in Kannel?

 I understand last log message (2013-08-08 14:07:29 [11003] [9] DEBUG:
 boxc_receiver: heartbeat with load value 0 received)
 like SMSC returned nothig. Or im wrong?


 On 08.08.2013 14:58, Alejandro Guerrieri wrote:

 The smsc must have dlrs enabled on their side as well, contact them and
 ask if it's enabled.


 Hope it helps,
 --
 Alex Guerrieri

 On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru wrote:

   Hello,
 please please please help me!
 I have a problem that I can't solve.
 I use Bearerbox - SMSbox - SQLBox
 All works fine except DLR. I can't recieve delivery status.
 Wen I send an SMS, kannel start php script from dlr-url only one time and
 return status 8 (smsc submit), after that no more responses.
 But I expect from him other statuses: error, success. etc.
 I will be grateful for any help.

 Next I give some server configguration files and logs:

 my logs:
 2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID:
 2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:0:-1:-1:31] [msg:15:??$
 2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:]
 [FID:2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:-1:-1:-1:8] [msg:4:ACK/$

 2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received
 2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc:
 mysqlbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc:
 mysmsbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to
 127.0.0.1
 2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack
 2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load
 value 0 received
 2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store
 2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called


 Look at my configuration files kannel.conf and sqlbox.conf:
 #KANNEL CONFIG FILE
 group = core
 admin-port = 13000
 admin-password = **
 smsbox-port = 13001
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access_kannel.log
 store-file = /var/log/kannel/store_sms
 dlr-storage = mysql


 group = smsc
 smsc = smpp
 smsc-id = craftmobile
 host = 89.249.18.53
 port = 27703
 smsc-username = **
 smsc-password = **
 system-type = VMA
 log-file = /var/log/kannel/smpp-smsc.log log-level = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 #alt-charset = UCS-2

 group = smsbox
 bearerbox-host = localhost
 smsbox-id = mysmsbox
 sendsms-port = 13013
 log-file = /var/log/kannel/smsbox.log
 log-level = 0

 group = smsbox-route
 smsbox-id = mysmsbox
 smsc-id = craftmobile
 #shortcode = 2288

 group = sendsms-user
 dlr-url = http://134.0.113.138/dlr.php?type=%d;
 concatenation = true
 max-messages = 5
 username = 
 password = **
 default-smsc = SMSC

 group = dlr-db
 id = mydlr
 table = oempro_kannel_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


 group = mysql-connection
 id = mydlr
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 # -- SQLBOX GROUP --
 group = sqlbox
 id = sqlbox-db
 smsbox-id = mysqlbox
 bearerbox-port = 13001
 smsbox-port = 13003
 smsbox-port-ssl = false
 sql-log-table = oempro_kannel_sqlbox_sent_sms
 sql-insert-table = oempro_kannel_sqlbox_send_sms
 log-file = /var/log/kannel/sqlbox.log
 log-level = 3

 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 query that I use for sending an SMS:

 INSERT INTO oempro_kannel_sqlbox_send_sms (
   momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url, boxc_id
 ) VALUES (
   'MT', '8902110', '7925740', 'Test message', 2, 31,
 '

Re: Re: DLR

2013-08-08 Thread Alejandro Guerrieri
The first dlr doesn't come from the smsc, Kannel creates that one
internally on the submit_sm_resp. As long as you set the dlr-mask to 31 you
should receive all dlrs for that message, assuming the carrier has enabled
dlrs. If they didn't you'll only receive the one from kannel.


On Thu, Aug 8, 2013 at 8:52 AM, dorin dorinafte...@mail.ru wrote:

  Hello Alejandro!
  Thank for your reply.

 dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP?
 They told me that they use only transceiver mode.
 If dlrs are disabled on SMSC, I wouldn't receive nothing.

 And I'm not shure that I recieve first dlr from SMSC.
 All time when is started dlr-url by kannel, means that SMSC responded?

 When I saw logs, i paid attention on
 Sent SMS ...[flags:-1:0:-1:-1:*31*]...
 Receive DLR ...[flags:-1:-1:-1:-1:*8*]...

 When an SMS is sent, fifth falg (dlr_mask) goes like 31, and it's correct
 But receiver have this flag set at 8. In this way we get the status?
 on second request dlr_mask is set to 8.
 Maybe this is the problem that I recieve only one time?

 What do you think guys, the problem is clear and it goes only from SMSC?
 or maybe problem it's in Kannel?

 I understand last log message (2013-08-08 14:07:29 [11003] [9] DEBUG:
 boxc_receiver: heartbeat with load value 0 received)
 like SMSC returned nothig. Or im wrong?

 On 08.08.2013 14:58, Alejandro Guerrieri wrote:

 The smsc must have dlrs enabled on their side as well, contact them and
 ask if it's enabled.


 Hope it helps,
 --
 Alex Guerrieri

 On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru wrote:

   Hello,
 please please please help me!
 I have a problem that I can't solve.
 I use Bearerbox - SMSbox - SQLBox
 All works fine except DLR. I can't recieve delivery status.
 Wen I send an SMS, kannel start php script from dlr-url only one time and
 return status 8 (smsc submit), after that no more responses.
 But I expect from him other statuses: error, success. etc.
 I will be grateful for any help.

 Next I give some server configguration files and logs:

 my logs:
 2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID:
 2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:0:-1:-1:31] [msg:15:??$
 2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:]
 [FID:2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:-1:-1:-1:8] [msg:4:ACK/$

 2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received
 2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc:
 mysqlbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc:
 mysmsbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to
 127.0.0.1
 2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack
 2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load
 value 0 received
 2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store
 2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called


 Look at my configuration files kannel.conf and sqlbox.conf:
 #KANNEL CONFIG FILE
 group = core
 admin-port = 13000
 admin-password = **
 smsbox-port = 13001
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access_kannel.log
 store-file = /var/log/kannel/store_sms
 dlr-storage = mysql


 group = smsc
 smsc = smpp
 smsc-id = craftmobile
 host = 89.249.18.53
 port = 27703
 smsc-username = **
 smsc-password = **
 system-type = VMA
 log-file = /var/log/kannel/smpp-smsc.log log-level = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 #alt-charset = UCS-2

 group = smsbox
 bearerbox-host = localhost
 smsbox-id = mysmsbox
 sendsms-port = 13013
 log-file = /var/log/kannel/smsbox.log
 log-level = 0

 group = smsbox-route
 smsbox-id = mysmsbox
 smsc-id = craftmobile
 #shortcode = 2288

 group = sendsms-user
 dlr-url = http://134.0.113.138/dlr.php?type=%d;
 concatenation = true
 max-messages = 5
 username = 
 password = **
 default-smsc = SMSC

 group = dlr-db
 id = mydlr
 table = oempro_kannel_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


 group = mysql-connection
 id = mydlr
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 # -- SQLBOX GROUP --
 group = sqlbox
 id = sqlbox-db
 smsbox-id = mysqlbox
 bearerbox-port = 13001
 smsbox-port = 13003
 smsbox-port-ssl = false
 sql-log-table = oempro_kannel_sqlbox_sent_sms
 sql-insert-table = oempro_kannel_sqlbox_send_sms
 log-file = /var/log/kannel/sqlbox.log
 log-level = 3

 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 query that I use for sending an SMS:

 INSERT INTO oempro_kannel_sqlbox_send_sms (
   momt, sender, receiver, msgdata, sms_type, 

unsubscribe

2013-08-08 Thread Sagar Deshpande

Best Regards,
Sagar Deshpande
Mob : +919738161064



Re[3]: DLR

2013-08-08 Thread Dorin Aftenii
 I have tried with transceiver-mode = true - no changes.

Четверг,  8 августа 2013, 10:11 -03:00 от Rodrigo Rocco rodri...@gmail.com:
If your SMSC is transceiver mode, you should have transceiver-mode = true in 
your  craftmobile  block. Or else it works as transmitter only.

--
Rodrigo Rocco Rubim
Cel: (21)97445317


On Thu, Aug 8, 2013 at 9:52 AM, dorin   dorinafte...@mail.ru  wrote:
Hello Alejandro! 
Thank for your reply.

dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP?
They told me that they use only transceiver mode. 
If dlrs are disabled on SMSC, I wouldn't receive nothing.

And I'm not shure that I recieve first dlr from SMSC.
All time when is started dlr-url by kannel, means that SMSC
responded?

When I saw logs, i paid attention on 
Sent SMS ...[flags:-1:0:-1:-1: 31 ]...
Receive DLR ...[flags:-1:-1:-1:-1: 8 ]...

When an SMS is sent, fifth falg (dlr_mask) goes like 31, and
it's correct
But receiver have this flag set at 8.  In this way we get the status?
on second request dlr_mask is set to 8. 
Maybe this is the problem that I recieve only one time?

What do you think guys, the problem is clear and it goes only
from SMSC? 
or maybe problem it's in Kannel?

I understand last log message (2013-08-08 14:07:29 [11003] [9]
DEBUG: boxc_receiver: heartbeat with load value 0 received)
like SMSC returned nothig. Or im wrong?


On 08.08.2013 14:58, Alejandro Guerrieri wrote:
The smsc must have dlrs enabled on their side as well,
  contact them and ask if it's enabled.


Hope it helps,
--
Alex Guerrieri

On Aug 8, 2013, at 7:42, Dorin Aftenii  dorinafte...@mail.ru 

  wrote:

Hello, 
please please please help me!
I have a problem that I can't solve. 
I use Bearerbox - SMSbox - SQLBox
All works fine except DLR. I can't recieve delivery status.
Wen I send an SMS, kannel start php script from dlr-url only
one time and return status 8 (smsc submit), after that no
more responses.
But I expect from him other statuses: error, success. etc.
I will be grateful for any
help.

Next I give some server configguration files and logs:

my logs:
2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:]
[ACT:] [BINF:] [FID: 2518700643 ] [META:] [from:89021104107]
[to:79257405404] [flags:-1:0:-1:-1:31] [msg:15:??$
2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:]
[ACT:] [BINF:] [FID: 2518700643 ] [META:] [from:89021104107]
[to:79257405404] [flags:-1:-1:-1:-1:8] [msg:4:ACK/$

2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms
received
2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending
msg to boxc: mysqlbox
2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending
msg to boxc: mysmsbox
2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent
message to 127.0.0.1
2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got
ack
2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver:
heartbeat with load value 0 received
2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to
store
2013-08-08 15:03:26 [11003] [7] DEBUG:
clear_old_concat_parts called


Look at my configuration files kannel.conf and sqlbox.conf:
#KANNEL CONFIG FILE 
group = core 
admin-port = 13000 
admin-password = ** 
smsbox-port = 13001 
log-file = /var/log/kannel/kannel.log 
log-level = 0 
access-log = /var/log/kannel/access_kannel.log 
store-file = /var/log/kannel/store_sms 
dlr-storage = mysql 


group = smsc 
smsc = smpp 
smsc-id = craftmobile 
host = 89.249.18.53 
port = 27703 
smsc-username = ** 
smsc-password = ** 
system-type = VMA 
log-file = /var/log/kannel/smpp-smsc.log log-level = 1 
dest-addr-ton = 1 
dest-addr-npi = 1 
#alt-charset = UCS-2 

group = smsbox 
bearerbox-host = localhost 
smsbox-id = mysmsbox 
sendsms-port = 13013 
log-file = /var/log/kannel/smsbox.log 
log-level = 0 

group = smsbox-route 
smsbox-id = mysmsbox 
smsc-id = craftmobile 
#shortcode = 2288 

group = sendsms-user 
dlr-url =  http://134.0.113.138/dlr.php?type=%d;
concatenation = true 
max-messages = 5 
username =  
password = ** 
default-smsc = SMSC 

group = dlr-db 
id = mydlr 
table = oempro_kannel_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 


group = mysql-connection 
id = mydlr 
host = localhost 
username =  
password = ** 
database = sender 
max-connections = 1 

# -- SQLBOX GROUP -- 
group = sqlbox 
id = sqlbox-db 
smsbox-id = mysqlbox 
bearerbox-port = 13001 
smsbox-port = 13003 
smsbox-port-ssl = false 
sql-log-table = oempro_kannel_sqlbox_sent_sms 
sql-insert-table = oempro_kannel_sqlbox_send_sms 
log-file = /var/log/kannel/sqlbox.log 
log-level = 3 

group = mysql-connection 
id = sqlbox-db 
host = 

Aw: Re: Re: Fw: SMS Accounting

2013-08-08 Thread hans joachim

Hello spameden,



can you please give me a link to the SVN where I can download the changed version ?

Im curious if your patch will give me the functionality I need :)



Gesendet:Dienstag, 06. August 2013 um 21:12 Uhr
Von:spameden spame...@gmail.com
An:hans joachim cosmos...@web.de
Cc:users@kannel.org users@kannel.org
Betreff:Re: Re: Fw: SMS Accounting


Hi

2013/8/6 hans joachim cosmos...@web.de





If I understood you right, you want to get actual smsc_id in the table through which MT was sent?





- Yes, exactly thats what I need !!



to achieve this you need to modify sqlbox and update sent_sms table MT entry when DLR arrives from SMSC-operator.we modified sqlbox to update MT entries with all relevant DLR information including parts_number which contains number of actual sms in case of concatenated message.



- Can you tell me how you did this ? Do you have changed the code of SQLBOX to archieve this behaviour ? Sounds very complicated 








Yes, Ive changed sqlbox code, ill post later my patch to the latest SVN trunk version.










Gesendet:Dienstag, 06. August 2013 um 16:04 Uhr
Von:spameden spame...@gmail.com
An:hans joachim cosmos...@web.de
Cc:users@kannel.org users@kannel.org
Betreff:Re: Fw: SMS Accounting




Hi


2013/8/6 hans joachim cosmos...@web.de




Hello,



I saw that the sending SMSC can be stored in the access-log.

I made several tests with the custom access-log-format:But the problem is that I dont get a unique ID in the access-log for every message.



access-log-format=  TS=%t SMS-ID=%F ID2=%x USER=%n TYPE=%l SMSC=%i TO=%P TEXT=%b

Neither %t nor %F give me a unique ID :(



I still need one place where every message is stored with all necessary informations.



Conclusion:

In sent_sms table of SQLBOXis no SMSC_ID (Only the virtual SMSC_ID used for routing purposes, which is not useful for accounting/billing purposes).

In access-log there is no unique ID for every message.



How can I archieve my goal, so that all necessary informations will be stored in one place ?






If I understood you right, you want to get actual smsc_id in the table through which MT was sent?

to achieve this you need to modify sqlbox and update sent_sms table MT entry when DLR arrives from SMSC-operator.






How do you account the costs for sending messages through different SMSCs ?






we modified sqlbox to update MT entries with all relevant DLR information including parts_number which contains number of actual sms in case of concatenated message.








Thank you in advance,

Florian



Gesendet:Montag, 05. August 2013 um 16:03 Uhr
Von:hans joachim cosmos...@web.de
An:users@kannel.org users@kannel.org
Betreff:SMS Accounting






Hello,

I have 3 SMSC (gsm1, gsm2, gsm3) in my Kannel-Setup and Im using sqlbox to save all kind of information about the messages in a database.

My question is how can I store the sending SMSC of every message in the database ?



For example:
If I call the webservice with the argument smsc=gsm1 and the message is sent, I see this information in the database entry :



+-++--+-+-+-+---++-+-+-+--+--++--++--+--+--+--+-+--+-+--+-+-+---+
 date sql_id  momt  sender  receiver udhdata  msgdata time smsc_idservice  account  id   sms_type  mclass  mwi  coding  compress  validity  deferred  dlr_mask  dlr_url  pid  alt_dcs  rpi  charset  boxc_id  binfo 
+-++--+-+-+-+---++-+-+-+--+--++--++--+--+--+--+-+--+-+--+-+-+---+

 2013-08-05 15:43:3110  MT   xx  xx  NULL   bla   x  gsm1 user1   NULL   NULL 2   NULL  NULL0NULLNULLNULLNULL  NULL   NULL   NULL  NULL  NULL   smsbox1  NULL 




But I configured message-routing in a way, which eventually allows me to bypass a SMSC which is not working at this given moment.
Because of this message-routing I cant call the webservice with the argument smsc= ! But if i dont use that argument, the information about the sending SMSC is not stored in the database :(

Once a month, I need to know how many messages were sent through gsm1, gsm2 and gsm3. Im not able to get this information, if the database field is not getting filled :(


Regards,
Florian

































Re: Multi modem and sms services reply problem

2013-08-08 Thread Alvaro Cornejo
Hi

Forgot to cc kannel list.

Try to specify:

http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
sms-id=YourPreferredRoute

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, Aug 8, 2013 at 3:42 PM, Cesar Arguinzones cea...@gmail.com wrote:

 Hi Alvaro.

 I'm generating the response in the sms-service
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d

 could I pass the parameter as a kannel header, the closest header that I
 think could work is *X-Kannel-SMSC*?

 So i would do something like this in php header('X-Kannel-SMSC: my_smsc2')

 Thanks



 On Thu, Aug 8, 2013 at 2:43 PM, Alvaro Cornejo 
 cornejo.alv...@gmail.comwrote:

 Hi, Kannel can't do this you need to do it in your app.

 When submitting reply, add smsc-id=my_smsc2 in your call to bearerbox.

 Hope helps

 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, Aug 8, 2013 at 9:56 AM, Cesar Arguinzones cea...@gmail.comwrote:

 Hi.

 I've searched for this in google and the list but I have not found a
 solution to my problem.


 TL;DR

 I have two gsm modems, but the replies are always getting out through
 one modem
 I would like the reply to get out through the same modem where the sms
 came from

 The reply always goes through +58424111 even when the sms comes
 from +5841


 kannel.conf
 ===


 #
 # Sample configuration file for Kannel bearerbox on Debian.
 # See the documentation for explanations of fields.
 #

 # HTTP administration is disabled by default. Make sure you set the
 # password if you enable it.

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = 123
 log-file=/tmp/core.log
 log-level=0

 group = smsc
 smsc = at
 smsc-id = my-smsc
 modemtype = huawei
 device = /dev/hw-modem-2
 my-number = +5841
 log-file=/tmp/smsc.log
 log-level=0
 sim-buffering = true


 group = smsc
 smsc = at
 smsc-id = my-smsc2
 modemtype = huawei2
 device = /dev/hw-modem-1
 my-number = +58424111
 log-file=/tmp/smsc1.log
 log-level=0
 sim-buffering = true


 group = modems
 id = huawei
 name = huawei-e5836
 detect-string = E1552
 init-string = AT+CNMI=2,1,2,2,0
 speed = 0


 group = modems
 id = huawei2
 name = huawei-e173
 detect-string = huawei
 init-string = AT+CNMI=2,1,2,2,0
 speed = 0

 group = smsbox
 bearerbox-host = localhost
 sendsms-port = 13013
 log-file=/tmp/smsbox.log
 log-level=1

 group = sms-service
 keyword = default
 catch-all = yes
 max-messages = 10
 get-url=
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
 omit-empty = true
 accepted-smsc = my-smsc2

 group = sms-service
 keyword = default
 catch-all = yes
 max-messages = 10
 get-url=
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
 omit-empty = true
 accepted-smsc = my-smsc

 group = sms-service
 keyword = default
 catch-all = yes
 max-messages = 10
 get-url=
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
 omit-empty = true




 group = sendsms-user
 username = kannelUser
 password = 123



 Thanks

 --
 Cesar Arguinzones





 --
 Cesar Arguinzones



Re: Multi modem and sms services reply problem

2013-08-08 Thread Cesar Arguinzones
Hi.

I guess I've not redacted my question clearly enough.

When any of the GSM Modem receives a sms, it's forwarded to my sms-service.

I could use your suggestion and pass the smsc-id to my service.

In my sms-service sms.php I have something like:

?php

// save sms to database
// 

//
// In here I know which modem received the sms
// the problem is, the response 'Your sms has been received' go out always
to one modem, no matter what modem received the sms
//

echo 'Your sms has been received'; // This is the text of the reply

// I was thinking on using a header here:

header('X-Kannel-SMSC: my_smsc2'), //  Will this work?

// Any way I'm going to test this tomorrow morning, when I'm back to the
office

?

Thanks


On Thu, Aug 8, 2013 at 4:20 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi

 Forgot to cc kannel list.

 Try to specify:


 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
 sms-id=YourPreferredRoute

 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, Aug 8, 2013 at 3:42 PM, Cesar Arguinzones cea...@gmail.comwrote:

 Hi Alvaro.

 I'm generating the response in the sms-service
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d

 could I pass the parameter as a kannel header, the closest header that I
 think could work is *X-Kannel-SMSC*?

 So i would do something like this in php header('X-Kannel-SMSC: my_smsc2
 ')

 Thanks



 On Thu, Aug 8, 2013 at 2:43 PM, Alvaro Cornejo 
 cornejo.alv...@gmail.comwrote:

 Hi, Kannel can't do this you need to do it in your app.

 When submitting reply, add smsc-id=my_smsc2 in your call to bearerbox.

 Hope helps

 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, Aug 8, 2013 at 9:56 AM, Cesar Arguinzones cea...@gmail.comwrote:

 Hi.

 I've searched for this in google and the list but I have not found a
 solution to my problem.


 TL;DR

 I have two gsm modems, but the replies are always getting out through
 one modem
 I would like the reply to get out through the same modem where the sms
 came from

 The reply always goes through +58424111 even when the sms comes
 from +5841


 kannel.conf
 ===


 #
 # Sample configuration file for Kannel bearerbox on Debian.
 # See the documentation for explanations of fields.
 #

 # HTTP administration is disabled by default. Make sure you set the
 # password if you enable it.

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = 123
 log-file=/tmp/core.log
 log-level=0

 group = smsc
 smsc = at
 smsc-id = my-smsc
 modemtype = huawei
 device = /dev/hw-modem-2
 my-number = +5841
 log-file=/tmp/smsc.log
 log-level=0
 sim-buffering = true


 group = smsc
 smsc = at
 smsc-id = my-smsc2
 modemtype = huawei2
 device = /dev/hw-modem-1
 my-number = +58424111
 log-file=/tmp/smsc1.log
 log-level=0
 sim-buffering = true


 group = modems
 id = huawei
 name = huawei-e5836
 detect-string = E1552
 init-string = AT+CNMI=2,1,2,2,0
 speed = 0


 group = modems
 id = huawei2
 name = huawei-e173
 detect-string = huawei
 init-string = AT+CNMI=2,1,2,2,0
 speed = 0

 group = smsbox
 bearerbox-host = localhost
 sendsms-port = 13013
 log-file=/tmp/smsbox.log
 log-level=1

 group = sms-service
 keyword = default
 catch-all = yes
 max-messages = 10
 get-url=
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
 omit-empty = true
 accepted-smsc = my-smsc2

 group = sms-service
 keyword = default
 catch-all = yes
 max-messages = 10
 get-url=
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
 omit-empty = true
 accepted-smsc = my-smsc

 group = sms-service
 keyword = default
 catch-all = yes
 max-messages = 10
 get-url=
 http://localhost/sms.php?keyword=%kseckeyword=%sregtime=%tsender=%preceiver=%Ptext=%adlrvalue=%d
 omit-empty = true




 group = sendsms-user
 username = kannelUser
 password = 123



 Thanks

 --
 Cesar Arguinzones





 --
 Cesar Arguinzones





-- 
Cesar Arguinzones