See group = smsbox-route in the user manual. -----Original Message----- From: users [mailto:users-boun...@kannel.org] On Behalf Of iqbal Sent: maandag 23 september 2013 11:02 To: 'Kannel Users' Subject: smsbox-id
Hi All, i got sqlbox that running well, it can return dlr-url by putting smsbox-id in the smsbox group and put its name to the boxc_id this is the sql query : INSERT INTO send_sms ( momt, sender, receiver, msgdata, sms_type, smsc_id,dlr_url,dlr_mask, boxc_id ) VALUES ( "MT", "085225834573", "085225834573", "test", 2, "Huawei-E220-00","http://127.0.01/dlr.php?dlr.php?dlr=%d&dest=%p&report=%A&L ogID=test","31", "dlr-box") my dlr.php can record the dlr status but when there is an incoming sms, the get-url isnt working, but i can see the incoming sms at kannel logs. when i check the store-status, this incoming sms is stored with type as MO. if i comment the smsbox-id in the smsbox, the get-url will work and record previous incoming sms...but the dlr-url at sqlbox doesnt working again.. can someone help me ---------------------------------------------------------------------------- -------------------------------- kannel.conf ---------------------------------------------------------------------------- -------------------------------- group = core admin-port = 13000 smsbox-port = 13001 smsbox-port-ssl = false admin-password = admin log-level = 0 log-file = "/var/log/kannel/kannel.log" access-log = "/var/log/kannel/access.log" store-type = file store-file = "/var/log/kannel/kannel.store" store-dump-freq = 10 access-log-clean = true sms-resend-retry = 0 group = smsc smsc = at smsc-id = Huawei-E220-00 modemtype = huawei_e220_00 device = /dev/ttyUSB0 #sms-center = +6289644000001 #my-number = +6289659631261 sms-center = +6281100000 my-number = +6285225834573 connect-allow-ip = "127.0.0.1;192.168.n.m" sim-buffering = true keepalive = 5 group = modems id = huawei_e220_00 name = "Huawei E153" detect-string = "huawei" #init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" init-string = "AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0" message-storage = "SM" need-sleep = true speed = 460800 group = smsbox smsbox-id = dlr-box bearerbox-host = localhost sendsms-port = 13015 bearerbox-port = 13001 sendsms-chars = "0123456789+" global-sender = "+6289644000001" log-level = 0 log-file = "/var/log/kannel/smsbox.log" access-log = "/var/log/kannel/access.log" http-request-retry = 3 group = sendsms-user username = iqbal password = iqbal #concatenation=1 #dlr-url = http://localhost/dlr.php?dlr=%d&dest=%p&report=%A&time=%t&msg=%a max-messages = 5 #SMS SERVICES group = sms-service keyword = default max-messages = 5 catch-all = yes #text = "ahh ngelu default" get-url = "http://localhost/rcvd.php?dlr=%d&dest=%p&report=%A&time=%t&msg=%a" omit-empty = true ---------------------------------------------------------------------------- -------------------------------- sqlbox.conf ---------------------------------------------------------------------------- -------------------------------- group = sqlbox id = sqlbox-db smsbox-id = sqlbox #global-sender = "" bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13005 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = "/var/log/kannel/kannel-sqlbox.log" log-level = 0 #ssl-client-certkey-file = "" #ssl-server-cert-file = "" #ssl-server-key-file = "" #ssl-trusted-ca-file = "" # Database connection examples. Please uncomment as needed #MYSQL Connection group = mysql-connection id = sqlbox-db host = localhost username = root password = dewiku database = kannel max-connections = 2 # Example SDB Connection with some database URL examples # *** Note: Uncomment only _one_ "url" line *** group = sdb-connection id = sqlbox-db url = mysql:host=localhost:db=kannel:uid=myuser:pwd=mypass #url = sqlite:db=/opt/lampp/var/mysql/kannel/db.opt #url = sqlite3:db=/path/to/kannel3.db