|
Forgot to include details
below.
We are using Kannel Gateway as a bridge between SMSC and our application. Currently, Kannel connects to SMSC via SMPP and forwards incoming SMS in to our application via HTTP GET method. This part works fine. However, our application requires us to have sender's MNC (Mobile Network Code) for each SMS we receive. We have arranged with our SMSC provider to send us this information (service_type) via SMPP, but we are having problems retrieving this information from Kannel in to our application via HTTP GET (the problem is that there is no escape code (%B) for MNC in Kannel documentation). Do you know what needs to be changed in Kannel source so we can receive service_type %B MNC? Config file details
>>>
group = core
admin-port = 14000 smsbox-port = 14001 admin-password = XXX #status-password = XXX #admin-deny-ip = "" admin-allow-ip = "" log-file = "/var/kannel/XXX" log-level = 1 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" #unified-prefix = "00358,0" #access-log = "access.log" store-file = "kannel.store" #ssl-certkey-file = "mycertandprivkeyfile.pem" group = smsc
smsc = smpp host = XXX port = 0 receive-port = 10000 smsc-username = "XXX" smsc-password = XXX system-type = "" address-range = "" group = smsbox bearerbox-host = localhost #sendsms-port = 13013 #global-sender = 13013 #sendsms-chars = "0123456789 +-" log-file = "/var/kannel/XXX" log-level = 1 #access-log = "access.log" group = sms-service
keyword = default get-url = ""http://XXX/XXX/XXX.php?user=XXX&pass=XXX&number=%p&dest=%P&message=%a&network_id=%B&udh=%u&binary=%b">http://XXX/XXX/XXX.php?user=XXX&pass=XXX&number=%p&dest=%P&message=%a&network_id=%B&udh=%u&binary=%b" max-messages = 0 catch-all = true LOG file
>>>
2004-11-05 15:43:09 [15299] [9]
ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: I/O error or other error.
Re-connecting.
2004-11-05 15:43:09 [15299] [9] ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: Couldn't connect to SMS center (retrying in 10 seconds). 2004-11-05 15:43:10 [15312] [22] ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: I/O error or other error. Re-connecting. 2004-11-05 15:43:10 [15312] [22] ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: Couldn't connect to SMS center (retrying in 10 seconds). 2004-11-05 15:43:22 [15299] [9] ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: I/O error or other error. Re-connecting. 2004-11-05 15:43:22 [15299] [9] ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: Couldn't connect to SMS center (retrying in 10 seconds). 2004-11-05 15:43:23 [15312] [22] ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: I/O error or other error. Re-connecting. 2004-11-05 15:43:23 [15312] [22] ERROR: SMPP[SMPP:XXX:0/10000:XXX:]: Couldn't connect to SMS center (retrying in 10 seconds). 2004-11-05 15:43:33 [15289] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2004-11-05 15:43:36 [15369] [27] INFO: Connection closed by the box <127.0.0.1> 2004-11-05 15:43:37 [15289] [0] INFO: All flow threads have died, killing core 2004-11-05 15:43:37 [15292] [2] WARNING: Destroying fdset with 1 active entries. 2004-11-05 15:43:37 [15289] [0] INFO: Total WDP messages: received 0, sent 0 2004-11-05 15:43:37 [15289] [0] INFO: Total SMS messages: received 0, sent 0 Kannel
details>>>
Kannel bearerbox version `1.2.1'. System Linux, release 2.4.25-040218, version #1 SMP Wed Feb 18 17:59:29 CET 2004, machine i686. Hostname XXX, IP XXX.XXX.XXX.XXX. Libxml version 20504. Using native malloc. Kind
regards,
Asim
Bucuk
|
Title: Mobile Phone Dating
