Thanks Jesus for the suggestion, I have changed to get-url & changed the 
smsbox-id in smsbox configuration and smsbox-routing accordingly. Also disabled 
reroute=true
Now, URL is getting called & php script is getting invoked.

Can you please suggest now I am getting return sms that “Empty reply from 
service provider”, how to change this sms content for successful & failure 
cases?

Logs in bearer access logs is as follows:
2015-11-13 16:04:03 Sent SMS [SMSC:MTS] [SVC:default] [ACT:] [BINF:] 
[FID:B64174D1] [META:?smpp_resp?] [from:YD-MTS] [to:+919136006473] 
[flags:-1:0:-1:-1:-1] [msg:35:<Empty reply from service provider>] [udh:0:]



Best regards
Amit Sharma


From: Jesus Irausquin [mailto:jdirausq...@gmail.com]
Sent: Friday, November 13, 2015 3:51 PM
To: Amit Sharma (VAS)
Cc: users@kannel.org
Subject: Re: Get URL Not Getting Invoked For MO Msgs

Hi Amit,

You should use 'get-url' or 'post-url' in your sms-service configuration 
instead only 'url' (depending of your php script accepts get or post). Also you 
should put the same smsbox-id in smsbox configuration you are using in 
smsbox-routing.

Regards.
Dan

On Nov 13, 2015, at 2:08 AM, Amit Sharma (VAS) 
<amit.shar...@mtsindia.in<mailto:amit.shar...@mtsindia.in>> wrote:
Hi,
I have configured kannel on red hat linux(2.6.32-358.el6.x86_64) & i receive 
sms at bearerbox(Kannel bearerbox version `1.4.4' & Libxml version 2.7.6) but 
URL containing the required action to be taken using receivesms php script is 
not called. receivesms script in php works fine when i call it externally, but 
kannel does not invokes the get-url as mentioned in the "SMS service" 
confiugration & below access logs is repeating again and again in the logs & 
also smsbox logs doesn't have any logs related to this transaction. Please 
suggest what can be wrong in the configuration. Kannel configuration is as 
follows

group = core
admin-port = 13010
smsbox-port = 13012
log-file = "/u03/kannel/logs/bearerbox.log"
box-allow-ip = "10.130.252.160,127.0.0.1"
access-log = "/u03/kannel/logs/bearerbox_access.log"
dlr-storage = internal

##############################TX-1##################################
group = smsc
smsc-id ="MT"
smsc = smpp
host =10.10.22.10
port = 5016
system-type = "INAPPS"
interface-version = 34
receive-port =0
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
keepalive = 30
log-level =0
throughput = 50
max-pending-submits=50
reconnect-delay = 60
reroute = true
log-file = "/u03/kannel/logs/smsc_conn.log"


######################RX-1################################
group = smsc
smsc-id ="MTS"
smsc = smpp
host =10.10.22.10
port = 0
system-type = "INAPPS"
receive-port =5016
interface-version = 34
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
keepalive = 30
log-level =0
reconnect-delay = 60
reroute = true
log-file = "/u03/kannel/logs/smsc_conn.log"

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = YD-MTS
log-file = "/u03/kannel/logs/smsbox.log"
log-level = 0

#SMSBOX ROUTING
group = smsbox-route
smsbox-id = smsbox
smsc-id ="MT"

group = sendsms-user
username = smsg
password = smsg@123
default-smsc="MT"
concatenation= true
max-messages = 6


group = sms-service
keyword = default
url = 
http://10.130.250.58/receivesms.php?sender=%p&text=%b<http://10.130.250.58/receivesms.php?sender=%25p&text=%25b>
catch-all = true
max-messages = 1
text = "This is a reply"


bearerbox access log is as follows

2015-11-12 09:04:53 Sent SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:]   
[FID:AFB4EE11] [META:?smpp??smpp_resp?] [from:+919136006473] [to:+9177775] 
[flags:-1:0:-1:0:-1] [msg:2:Hi] [udh:0:]

 2015-11-12 09:04:53 Receive SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:] 
[FID:] [META:?smpp?] [from:+919136006473] [to:+9177775] [flags:-1:0:-1:0:-1] 
[msg:2:Hi] [udh:0:]

 2015-11-12 09:04:53 Receive SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:] 
[FID:] [META:?smpp?] [from:+919136006473] [to:+9177775] [flags:-1:0:-1:0:-1] 
[msg:2:Hi] [udh:0:]

 2015-11-12 09:04:53 Sent SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:] 
[FID:AFB4EE31] [META:?smpp??smpp_resp?] [from:+919136006473] [to:+9177775] 
[flags:-1:0:-1:0:-1] [msg:2:Hi] [udh:0:]






Best regards
Amit Sharma


________________________________

This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, Kindly notify the sender and 
then delete this e-mail immediately from your system. You are also hereby 
notified that any use, any form of reproduction, dissemination, copying, 
disclosure, modification, distribution and/or publication of this e-mail, its 
contents or its attachment/s other than by its intended recipient/s is strictly 
prohibited and may be unlawful.

Internet Communications cannot be guaranteed to be secure or error-free as 
information could be delayed, intercepted, corrupted, lost, or contain viruses. 
Sistema Shyam Teleservices Limited does not accept any liability for any 
errors, omissions, viruses or computer problems experienced by any recipient as 
a result of this e-mail.

________________________________

This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, Kindly notify the sender and 
then delete this e-mail immediately from your system. You are also hereby 
notified that any use, any form of reproduction, dissemination, copying, 
disclosure, modification, distribution and/or publication of this e-mail, its 
contents or its attachment/s other than by its intended recipient/s is strictly 
prohibited and may be unlawful.

Internet Communications cannot be guaranteed to be secure or error-free as 
information could be delayed, intercepted, corrupted, lost, or contain viruses. 
Sistema Shyam Teleservices Limited does not accept any liability for any 
errors, omissions, viruses or computer problems experienced by any recipient as 
a result of this e-mail.

________________________________

This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, Kindly notify the sender and 
then delete this e-mail immediately from your system. You are also hereby 
notified that any use, any form of reproduction, dissemination, copying, 
disclosure, modification, distribution and/or publication of this e-mail, its 
contents or its attachment/s other than by its intended recipient/s is strictly 
prohibited and may be unlawful.

Internet Communications cannot be guaranteed to be secure or error-free as 
information could be delayed, intercepted, corrupted, lost, or contain viruses. 
Sistema Shyam Teleservices Limited does not accept any liability for any 
errors, omissions, viruses or computer problems experienced by any recipient as 
a result of this e-mail.

Reply via email to