RE: gateway http-response 202 and 200

2011-05-18 Thread Rene Kluwen
You can do 3 things, thanks I can think of:

1. Change the behaviour of PRTG (recommended way)
2. Patch the smsbox code yourself and change status code 202 to 200.
3. Create a wrapper script (e.g. in PHP). This script should accept the
same parameters as smsbox. Then, in that script, call the sendsms interface
and return any contents that you get and exit with status code 200.

== Rene



-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Alexandr Gubanov
Sent: Tuesday, 17 May, 2011 15:06
To: users@kannel.org
Subject: gateway http-response 202 and 200

Hello!
Сommercial system that I use (PRTG), and that sends through the kannel
a sms-message waiting for a http-response 200, but the kannel is
responsible 202. Because of that I sent to 3 sms-messages instead of
one,  and the PRTG logs an error message delivery. How to get the
kannel to respond to a http-request 200?
SMS is sent requesting
http://smsgate.appm.local:13013/cgi-bin/sendsms?username=password=to=%SMSN
UMBERtext=%SMSTEXT

My kannel config is:

group = core
admin-port = 13000
admin-password = *
smsbox-port = 13001
log-file = /var/log/kannel/bearerbox.log
log-level = 0
access-log = /var/log/kannel/access.log
dlr-storage = internal
store-type = spool
store-location = /var/spool/kannel/

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

group = smsc
smsc = at
smsc-id = APPM-smsc
#log-file = /var/log/kannel/smsc_at.log
#log-level = 3
modemtype = auto
device = /dev/ttyS0
connect-allow-ip = 127.0.0.1
speed = 115200
sim-buffering = true
unified-prefix = +007
sms-center = +7MMMXXX

group = smsbox-route
smsbox-id = APPM-smsbox
smsc-id = APPM-smsc

group = modems
id = SIEMENS MC35i
name = Siemens_MC35i
detect-string = SIEMENS
detect-string2 = MC35i
init-string = AT+CNMI=1,2,0,1,1
enable-hwhs = AT\\Q3
need-sleep = true
message-storage = sm

group = sendsms-user
username = 
password = 
default-sender = +7MMMXXX

group = sms-service
keyword = default
text = No service specified
catch-all = true


I will be grateful for any help!

--

Best regards,
Alexandr Gubanov.




smime.p7s
Description: S/MIME cryptographic signature


RE: gateway http-response 202 and 200

2011-05-18 Thread Tshimanga Minkoka
Dear Alexandr,

I am sorry but I have never faced a similar issue.
Have a look at the variable generic-message-sent (available in smsc group and 
http smsc).

Regards,
 
TSHIMANGA Minkoka
VAS Manager
Mob: +243 814443113
Tel: +243 815560341 ext. 0583
Fax: +243 813010373
Email: tshimanga.mink...@vodacom.cd
Web: http://www.vodacom.cd



-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Alexandr Gubanov
Sent: Tuesday 17 May 2011 14:06
To: users@kannel.org
Subject: gateway http-response 202 and 200

Hello!
Сommercial system that I use (PRTG), and that sends through the kannel
a sms-message waiting for a http-response 200, but the kannel is
responsible 202. Because of that I sent to 3 sms-messages instead of
one,  and the PRTG logs an error message delivery. How to get the
kannel to respond to a http-request 200?
SMS is sent requesting
http://smsgate.appm.local:13013/cgi-bin/sendsms?username=password=to=%SMSNUMBERtext=%SMSTEXT

My kannel config is:

group = core
admin-port = 13000
admin-password = *
smsbox-port = 13001
log-file = /var/log/kannel/bearerbox.log
log-level = 0
access-log = /var/log/kannel/access.log
dlr-storage = internal
store-type = spool
store-location = /var/spool/kannel/

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

group = smsc
smsc = at
smsc-id = APPM-smsc
#log-file = /var/log/kannel/smsc_at.log
#log-level = 3
modemtype = auto
device = /dev/ttyS0
connect-allow-ip = 127.0.0.1
speed = 115200
sim-buffering = true
unified-prefix = +007
sms-center = +7MMMXXX

group = smsbox-route
smsbox-id = APPM-smsbox
smsc-id = APPM-smsc

group = modems
id = SIEMENS MC35i
name = Siemens_MC35i
detect-string = SIEMENS
detect-string2 = MC35i
init-string = AT+CNMI=1,2,0,1,1
enable-hwhs = AT\\Q3
need-sleep = true
message-storage = sm

group = sendsms-user
username = 
password = 
default-sender = +7MMMXXX

group = sms-service
keyword = default
text = No service specified
catch-all = true


I will be grateful for any help!

--

Best regards,
Alexandr Gubanov.