Re: Message identifier for returning DLR

2014-09-30 Thread Alvaro Cornejo
Hi

Check sms routing group /smsc-id it should match that of the route used

Regards

Alvaro

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

On Mon, Sep 29, 2014 at 5:02 PM, ha...@aeon.pk ha...@aeon.pk wrote:

 Hi,

 My DLRs are being buffered at Kannel and not hitting the URL specified in
 dlr_url paratmeter in SQLBOX while sending SMS. Can someone please help to
 figure out what's wrong? I am using following statement:

 INSERT INTO `kannel`.`send_sms`
 (momt,charset,coding,sender,receiver,msgdata,smsc_id,sms_type,dlr_mask,dlr_url)
 VALUES ('MT','','','03xxyyy','03aabbb','Hello. This is test DLR
 message.','my-smsc','2','63','
 http://127.0.0.1/testdlr/dlr.php?dlrid=3status=%d')

 The DLR is received by kannel/bearerbox successfully but kannel status
 window shows it as buffered. It never hits the URL specified.

 Is there some CGI parameter I am missing? The dlr.php file is on the right
 path specified in the URL.

 Regards,
 Hamza

 On Fri, Jun 13, 2014 at 11:41 PM, [Digital^Dude] ® 
 millennium@gmail.com wrote:

 In your sendsms url just append dlr-url e.g.

 http://kannel.host.com:/sendsms.cgi?user...dlr-mask=xdlr-url=[url
 encoded form of url]

 As you receive a dlr response, this dlr-url will be hit. Assuming your
 dlr-url was the following:

 http://another.host.com/myapi.py?status=%dmID=123tStamp=

 You can grep for mID=123 and view its status in the web server logs of
 another.host.com





Re: Message identifier for returning DLR

2014-09-30 Thread RK Krishnas
1. smsbox must up  running
2. in insert statement`boxc_id` should be smsbox-id

Example

INSERT INTO `smpp_send_sms`
(
`sql_id`,
`momt`,
`sender`,
`receiver`,
`msgdata`,
`u_id`,
`smsc_id`,
`sms_type`,
`dlr_mask`,
`dlr_url`,
   * `boxc_id`*

   )
VALUES
(
   `sql_id,
'MT',
ss_sender_id,
ss_tonum,
msg,
u_id,
ay,
'2',
'63',
dlr_url,
*'smsbox1*'

   );

*Rajeev Krishna*

Operations Manager
Krishnas Software Technologies
www.krishnasoft.in
mobile   :+91 888 5815 888
Sales :+91 888 5813 888
Support :+91 888 5817 888

On Tue, Sep 30, 2014 at 7:52 PM, Alvaro Cornejo cornejo.alv...@gmail.com
wrote:

 Hi

 Check sms routing group /smsc-id it should match that of the route used

 Regards

 Alvaro


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

 On Mon, Sep 29, 2014 at 5:02 PM, ha...@aeon.pk ha...@aeon.pk wrote:

 Hi,

 My DLRs are being buffered at Kannel and not hitting the URL specified in
 dlr_url paratmeter in SQLBOX while sending SMS. Can someone please help to
 figure out what's wrong? I am using following statement:

 INSERT INTO `kannel`.`send_sms`
 (momt,charset,coding,sender,receiver,msgdata,smsc_id,sms_type,dlr_mask,dlr_url)
 VALUES ('MT','','','03xxyyy','03aabbb','Hello. This is test DLR
 message.','my-smsc','2','63','
 http://127.0.0.1/testdlr/dlr.php?dlrid=3status=%d')

 The DLR is received by kannel/bearerbox successfully but kannel status
 window shows it as buffered. It never hits the URL specified.

 Is there some CGI parameter I am missing? The dlr.php file is on the
 right path specified in the URL.

 Regards,
 Hamza

 On Fri, Jun 13, 2014 at 11:41 PM, [Digital^Dude] ® 
 millennium@gmail.com wrote:

 In your sendsms url just append dlr-url e.g.

 http://kannel.host.com:/sendsms.cgi?user...dlr-mask=xdlr-url=[url
 encoded form of url]

 As you receive a dlr response, this dlr-url will be hit. Assuming your
 dlr-url was the following:

 http://another.host.com/myapi.py?status=%dmID=123tStamp=

 You can grep for mID=123 and view its status in the web server logs of
 another.host.com






Re: Message identifier for returning DLR

2014-09-30 Thread ha...@aeon.pk
I cross-checked, this is already the case. Note that SMS-MO do make their
way to the get-url but only DLRs are getting buffered.

On Tue, Sep 30, 2014 at 7:22 PM, Alvaro Cornejo cornejo.alv...@gmail.com
wrote:

 Hi

 Check sms routing group /smsc-id it should match that of the route used

 Regards

 Alvaro


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

 On Mon, Sep 29, 2014 at 5:02 PM, ha...@aeon.pk ha...@aeon.pk wrote:

 Hi,

 My DLRs are being buffered at Kannel and not hitting the URL specified in
 dlr_url paratmeter in SQLBOX while sending SMS. Can someone please help to
 figure out what's wrong? I am using following statement:

 INSERT INTO `kannel`.`send_sms`
 (momt,charset,coding,sender,receiver,msgdata,smsc_id,sms_type,dlr_mask,dlr_url)
 VALUES ('MT','','','03xxyyy','03aabbb','Hello. This is test DLR
 message.','my-smsc','2','63','
 http://127.0.0.1/testdlr/dlr.php?dlrid=3status=%d')

 The DLR is received by kannel/bearerbox successfully but kannel status
 window shows it as buffered. It never hits the URL specified.

 Is there some CGI parameter I am missing? The dlr.php file is on the
 right path specified in the URL.

 Regards,
 Hamza

 On Fri, Jun 13, 2014 at 11:41 PM, [Digital^Dude] ® 
 millennium@gmail.com wrote:

 In your sendsms url just append dlr-url e.g.

 http://kannel.host.com:/sendsms.cgi?user...dlr-mask=xdlr-url=[url
 encoded form of url]

 As you receive a dlr response, this dlr-url will be hit. Assuming your
 dlr-url was the following:

 http://another.host.com/myapi.py?status=%dmID=123tStamp=

 You can grep for mID=123 and view its status in the web server logs of
 another.host.com






Re: Message identifier for returning DLR

2014-09-30 Thread ha...@aeon.pk
Great. Your 2nd point solved my issue.

Thanks!

On Tue, Sep 30, 2014 at 7:40 PM, RK Krishnas r...@krishnasoft.in wrote:

 1. smsbox must up  running
 2. in insert statement`boxc_id` should be smsbox-id

 Example

 INSERT INTO `smpp_send_sms`
 (
 `sql_id`,
 `momt`,
 `sender`,
 `receiver`,
 `msgdata`,
 `u_id`,
 `smsc_id`,
 `sms_type`,
 `dlr_mask`,
 `dlr_url`,
* `boxc_id`*

)
 VALUES
 (
`sql_id,
 'MT',
 ss_sender_id,
 ss_tonum,
 msg,
 u_id,
 ay,
 '2',
 '63',
 dlr_url,
 *'smsbox1*'

);

 *Rajeev Krishna*

 Operations Manager
 Krishnas Software Technologies
 www.krishnasoft.in
 mobile   :+91 888 5815 888
 Sales :+91 888 5813 888
 Support :+91 888 5817 888

 On Tue, Sep 30, 2014 at 7:52 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 Check sms routing group /smsc-id it should match that of the route used

 Regards

 Alvaro


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

 On Mon, Sep 29, 2014 at 5:02 PM, ha...@aeon.pk ha...@aeon.pk wrote:

 Hi,

 My DLRs are being buffered at Kannel and not hitting the URL specified
 in dlr_url paratmeter in SQLBOX while sending SMS. Can someone please help
 to figure out what's wrong? I am using following statement:

 INSERT INTO `kannel`.`send_sms`
 (momt,charset,coding,sender,receiver,msgdata,smsc_id,sms_type,dlr_mask,dlr_url)
 VALUES ('MT','','','03xxyyy','03aabbb','Hello. This is test DLR
 message.','my-smsc','2','63','
 http://127.0.0.1/testdlr/dlr.php?dlrid=3status=%d')

 The DLR is received by kannel/bearerbox successfully but kannel status
 window shows it as buffered. It never hits the URL specified.

 Is there some CGI parameter I am missing? The dlr.php file is on the
 right path specified in the URL.

 Regards,
 Hamza

 On Fri, Jun 13, 2014 at 11:41 PM, [Digital^Dude] ® 
 millennium@gmail.com wrote:

 In your sendsms url just append dlr-url e.g.

 http://kannel.host.com:/sendsms.cgi?user...dlr-mask=xdlr-url=[url
 encoded form of url]

 As you receive a dlr response, this dlr-url will be hit. Assuming your
 dlr-url was the following:

 http://another.host.com/myapi.py?status=%dmID=123tStamp=

 You can grep for mID=123 and view its status in the web server logs
 of another.host.com







Re: Message identifier for returning DLR

2014-09-30 Thread ha...@aeon.pk
Actually to clarify for others' help, I checked the logs and discovered
that the DLRs were going to sqlbox instead of smsbox. Forcing them to hit
smsbox by setting boxc_id parameter has served the purpose for me. But for
someone who is using sqlbox as a check-point for reconcile, he should be
careful about using this.

On Tue, Sep 30, 2014 at 7:59 PM, ha...@aeon.pk ha...@aeon.pk wrote:

 Great. Your 2nd point solved my issue.

 Thanks!

 On Tue, Sep 30, 2014 at 7:40 PM, RK Krishnas r...@krishnasoft.in wrote:

 1. smsbox must up  running
 2. in insert statement`boxc_id` should be smsbox-id

 Example

 INSERT INTO `smpp_send_sms`
 (
 `sql_id`,
 `momt`,
 `sender`,
 `receiver`,
 `msgdata`,
 `u_id`,
 `smsc_id`,
 `sms_type`,
 `dlr_mask`,
 `dlr_url`,
* `boxc_id`*

)
 VALUES
 (
`sql_id,
 'MT',
 ss_sender_id,
 ss_tonum,
 msg,
 u_id,
 ay,
 '2',
 '63',
 dlr_url,
 *'smsbox1*'

);

 *Rajeev Krishna*

 Operations Manager
 Krishnas Software Technologies
 www.krishnasoft.in
 mobile   :+91 888 5815 888
 Sales :+91 888 5813 888
 Support :+91 888 5817 888

 On Tue, Sep 30, 2014 at 7:52 PM, Alvaro Cornejo cornejo.alv...@gmail.com
  wrote:

 Hi

 Check sms routing group /smsc-id it should match that of the route used

 Regards

 Alvaro


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

 On Mon, Sep 29, 2014 at 5:02 PM, ha...@aeon.pk ha...@aeon.pk wrote:

 Hi,

 My DLRs are being buffered at Kannel and not hitting the URL specified
 in dlr_url paratmeter in SQLBOX while sending SMS. Can someone please help
 to figure out what's wrong? I am using following statement:

 INSERT INTO `kannel`.`send_sms`
 (momt,charset,coding,sender,receiver,msgdata,smsc_id,sms_type,dlr_mask,dlr_url)
 VALUES ('MT','','','03xxyyy','03aabbb','Hello. This is test DLR
 message.','my-smsc','2','63','
 http://127.0.0.1/testdlr/dlr.php?dlrid=3status=%d')

 The DLR is received by kannel/bearerbox successfully but kannel status
 window shows it as buffered. It never hits the URL specified.

 Is there some CGI parameter I am missing? The dlr.php file is on the
 right path specified in the URL.

 Regards,
 Hamza

 On Fri, Jun 13, 2014 at 11:41 PM, [Digital^Dude] ® 
 millennium@gmail.com wrote:

 In your sendsms url just append dlr-url e.g.

 http://kannel.host.com:/sendsms.cgi?user...dlr-mask=xdlr-url=[url
 encoded form of url]

 As you receive a dlr response, this dlr-url will be hit. Assuming your
 dlr-url was the following:

 http://another.host.com/myapi.py?status=%dmID=123tStamp=

 You can grep for mID=123 and view its status in the web server logs
 of another.host.com








Re: Message identifier for returning DLR

2014-09-29 Thread ha...@aeon.pk
Hi,

My DLRs are being buffered at Kannel and not hitting the URL specified in
dlr_url paratmeter in SQLBOX while sending SMS. Can someone please help to
figure out what's wrong? I am using following statement:

INSERT INTO `kannel`.`send_sms`
(momt,charset,coding,sender,receiver,msgdata,smsc_id,sms_type,dlr_mask,dlr_url)
VALUES ('MT','','','03xxyyy','03aabbb','Hello. This is test DLR
message.','my-smsc','2','63','
http://127.0.0.1/testdlr/dlr.php?dlrid=3status=%d')

The DLR is received by kannel/bearerbox successfully but kannel status
window shows it as buffered. It never hits the URL specified.

Is there some CGI parameter I am missing? The dlr.php file is on the right
path specified in the URL.

Regards,
Hamza

On Fri, Jun 13, 2014 at 11:41 PM, [Digital^Dude] ® millennium@gmail.com
 wrote:

 In your sendsms url just append dlr-url e.g.

 http://kannel.host.com:/sendsms.cgi?user...dlr-mask=xdlr-url=[url
 encoded form of url]

 As you receive a dlr response, this dlr-url will be hit. Assuming your
 dlr-url was the following:

 http://another.host.com/myapi.py?status=%dmID=123tStamp=

 You can grep for mID=123 and view its status in the web server logs of
 another.host.com



Re: Message identifier for returning DLR

2014-06-13 Thread [Digital^Dude] ®
In your sendsms url just append dlr-url e.g.

http://kannel.host.com:/sendsms.cgi?user...dlr-mask=xdlr-url=[url
encoded form of url]

As you receive a dlr response, this dlr-url will be hit. Assuming your
dlr-url was the following:

http://another.host.com/myapi.py?status=%dmID=123tStamp=

You can grep for mID=123 and view its status in the web server logs of
another.host.com


Message identifier for returning DLR

2014-06-09 Thread ha...@aeon.pk
Hi,

I'm trying to use foreign_id field in sendsms table to mark the outgoing
message for DLR matching in return, however it's not working since kannel
puts its own FID every time.

How to put message identifier in kannel logs to track the message for
returning DLRs? I mean, which field to use?

Regards,
Hamza


Re: Message identifier for returning DLR

2014-06-09 Thread ha...@aeon.pk
Isn't dlr-url fixed for all messages in kannel config? How will I set
different identifier for different messages in it?


On Mon, Jun 9, 2014 at 7:46 PM, spameden spame...@gmail.com wrote:




 2014-06-09 18:00 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Hi,

 I'm trying to use foreign_id field in sendsms table to mark the outgoing
 message for DLR matching in return, however it's not working since kannel
 puts its own FID every time.

 How to put message identifier in kannel logs to track the message for
 returning DLRs? I mean, which field to use?

 Regards,
 Hamza


 use dlr_url field.




Re: Message identifier for returning DLR

2014-06-09 Thread spameden
2014-06-09 18:58 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Isn't dlr-url fixed for all messages in kannel config? How will I set
 different identifier for different messages in it?


Config sets only default dlr_url for all messages (if you don't specify
your own).

You can set dlr_url in sqlbox source code dynamically (TIP: use time/date
nanoseconds to generate it) and link to DLR messages through this field.

This is the only field which is being saved when DLR comes.




 On Mon, Jun 9, 2014 at 7:46 PM, spameden spame...@gmail.com wrote:




 2014-06-09 18:00 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Hi,

 I'm trying to use foreign_id field in sendsms table to mark the outgoing
 message for DLR matching in return, however it's not working since kannel
 puts its own FID every time.

 How to put message identifier in kannel logs to track the message for
 returning DLRs? I mean, which field to use?

 Regards,
 Hamza


 use dlr_url field.





Re: Message identifier for returning DLR

2014-06-09 Thread Alvaro Cornejo
In your dlr-url you can add ...my-id=MY_ID... and when calling the
dlr-url make your app match for that MY_ID

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


On Mon, Jun 9, 2014 at 10:05 AM, spameden spame...@gmail.com wrote:


 2014-06-09 18:58 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Isn't dlr-url fixed for all messages in kannel config? How will I set
 different identifier for different messages in it?


 Config sets only default dlr_url for all messages (if you don't specify your
 own).

 You can set dlr_url in sqlbox source code dynamically (TIP: use time/date
 nanoseconds to generate it) and link to DLR messages through this field.

 This is the only field which is being saved when DLR comes.




 On Mon, Jun 9, 2014 at 7:46 PM, spameden spame...@gmail.com wrote:




 2014-06-09 18:00 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Hi,

 I'm trying to use foreign_id field in sendsms table to mark the outgoing
 message for DLR matching in return, however it's not working since kannel
 puts its own FID every time.

 How to put message identifier in kannel logs to track the message for
 returning DLRs? I mean, which field to use?

 Regards,
 Hamza


 use dlr_url field.