Check kannel logs. It should show why the message is not hitting the get-url. Check the HTTP status its getting.
On Tue, Jul 1, 2014 at 2:41 AM, Ronald Ning <ronald.n...@slimtrader.com> wrote: > Hi users@kannel, I was wondering if anyone can help me with a > configuration problem in Kannel? We have an external SMSC sending us SMS > messages over SMPP and we want to reroute those SMS's with a custom MT > message to an external HTTP gateway such as Clickatell. > > We are getting the incoming MO's, but somehow the SMS route is failing > either at the smsbox or internal SMSC. Also incoming MO's are not being > logged into our MySQL database. Below is our kannel.conf, any help would > be appreciated. > > # > # 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 > log-level=0 > admin-port=13000 > admin-password=bar > admin-deny-ip="*.*.*.*" > admin-allow-ip="127.0.0.1" > wapbox-port=13002 > smsbox-port=13016 > wdp-interface-name="*" > log-file="/var/log/kannel/bearerbox.log" > box-deny-ip="*.*.*.*" > box-allow-ip="127.0.0.1" > > group = wapbox > bearerbox-host = localhost > log-file = "/var/log/kannel/wapbox.log" > > #--- mysql connection for logging > group = mysql-connection > id = mydlr > host = dbhost > username = kannel > password = password > database = localhost > max-connections = 1 > > #---- DLR table structure for logging > group = dlr-db > id = mydlr > table = kannel > 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 > > # sms service > group = smsbox > smsbox-id = mysmsc > bearerbox-host = localhost > bearerbox-port = 13016 > sendsms-port = 13015 > log-file = "/var/log/kannel/smsbox.log" > log-level = 0 > global-sender = 427 > sendsms-chars = "0123456789 +-" > > # user > group = sendsms-user > username = kannel > password = kannel > concatenation = true > max-messages = 3 > > # SMSC SMPP > group = smsc > smsc = smpp > smsc-id = external > host = xxx.xxx.xxx.xxx > port = 10000 > receive-port = 10000 > smsc-username = password > smsc-password = password > system-type = VMA > address-range = > log-file = "/var/log/kannel/external.log" > log-level = 0 > reroute-smsc-id = messages > > # SMS routing rules > group = smsbox-route > smsc-id=external > shortcode=11111 > smsbox-id=messages > > # INCOMING SMS > group = sms-service > keyword = ping > text = "Pong!" > > group = sms-service > keyword = default > catch-all = true > get-url = " > http://localhost/sms/parse?destination=test&sender=%q&text=%r&keyword=%k > " > > ᐧ >