I have setup kannel, i want to use kannel for below purpose,

1) Sending SMS using smpp

2) Get Delivery Status

3) Receive SMS from handset

 

I have successfully completed 1) and 2) steps, if my configuration is as
below,

 

$ cat /etc/kannel.conf 

# Default kannel configuration file

group = core

admin-port = 13000

admin-password = changemenow

status-password = changemetoo

admin-deny-ip = "*.*.*.*"

admin-allow-ip = "*.*.*.*"

smsbox-port = 13001

#wapbox-port = 13002

box-deny-ip = "*.*.*.*"

box-allow-ip = "127.0.0.1"

wdp-interface-name = "*"

log-file = "/var/log/kannel/bearerbox.log"

log-level = 0

 

##################SMSC CONFIGURATION ##################

group = smsc

smsc = smpp

smsc-id = smsc1

host = 127.0.0.1

port = 1799

#receive-port = 2775

transceiver-mode= 1 

smsc-username=agpat

smsc-password=agpa

system-type=OTA

source-addr-ton= 1

dest-addr-ton= 1

throughput= 10

connect-allow-ip="*.*.*.*"

keepalive= 50

 

################SMSBOX CONFIGURATION ##################

group = smsbox

bearerbox-host = 127.0.0.1

sendsms-port = 13013

global-sender = 13013

log-file="/var/log/kannel/smsbox.log"

log-level = 0

 

################SENDSMS CONFIGURATION ##################

group = sendsms-user

username = test

password = test

concatenation= true

max-messages = 10

 

################RECEIVE SMS CONFIGURATION ################## 

group = sms-service

keyword-regex = default

text="This is a reply from apdemo Server"

max-messages = 0

 

But when i am changing configuration of sms-service as below then i can
received sms on my url specified in get-url, but when i send sms with
dlr-url it will send sms successfully but also response on get-url

I want the configuration like, when i send sms kannel send sms and give
delivery information on url given in dlr-url (configure in sending sms url)

and when sms send from any handset it will received by kannel and send
information to get-url (mention in sms-service group configuration)

 

 

group = sms-service

keyword = default

text="This is a reply from apdemo Server"

max-messages = 0

 

group = sms-service

keyword-regex = .*

catch-all = yes

max-messages = 0

get-url = "http://127.0.0.1:48080/receive.jsp?phone=%p&text=%a";

 

1 more question, can i able to receive sms on different port using
receive-port configuration.

 

Thanks

Ajay Patel

 

Reply via email to