MNC issue when using Kannel SMPP
"Asim Bucuk" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Mobile Phone Dating Limited |
| Message-ID | <[email protected]> |
Hi all, Would you know solution for following problem with Kannel software? 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 <http://xxx/XXX/XXX.php?user=XXX&pass=XXX&number=%p&dest=%P&message=%a&netwo rk_id=%B&udh=%u&binary=%b> &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 MPD Mobile Phone Dating Limited 3 Kingsmill Business Park, Chapel Mill Road, Kingston-upon-Thames, London KT1 3GZ www.mobilephonedating.net <http://www.mobilephonedating.net/> t. +44(0) 870 165 3017 f. +44(0) 845 125 9418 m.+44(0) 7930 408 896 This e-mail is confidential and is not intended to be read by anyone other than the named recipient. If you have received this e-mail in error, please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy this e-mail or use it for any purpose or disclose its contents to any other person (since this could be a breach of confidence) and any hard copy should be destroyed immediately. Thank you for your co-operation. WARNING: Please check any attachment for viruses before opening it as Mobile Phone Dating Ltd. accepts no liability for this e-mail.
logo.gif
(image/gif, 2.4 KB) - not displayed