I am facing problems in sending sms using kannel and mblox. I have configured Kannel sms gateway (1.5.0) and registered with mblox developer account. I am unable to integrate kannel with mblox.
Kindly provide me reference tutorial where i can find configuration steps for sending sms via kannel and mblox. My requirement is to send sms using SMPP Protocol. The following are my configuration settings for kannel. Please inform me if you find anything wrong anywhere. Also, for mblox configuration in smskannel.conf file, i am not sure what should be the host name, smsc_username and smsc_password values or from where can i get those. Do i need to do anything else for mblox other than setting the parameters in conf files? The following are my configuration settings for kannel and mblox. Kannel.conf ------------------------- # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # Modified by Donald Jackson based on the original smskannel.conf by # Kalle Marjola for Kannel project 2001, 2004 #--------------------------------------------- # CORE # # There is only one core group and it sets all basic settings # of the bearerbox (and system). You should take extra notes on # configuration variables like 'store-file' (or 'store-dir'), # 'admin-allow-ip' and 'access.log' group = core admin-port = 13000 smsbox-port = 13001 wapbox-port = 13002 admin-password = bar #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" log-file = "/home/kannel/logs/kannel.log" log-level = 1 #box-deny-ip = "*.*.*.*" #box-allow-ip = "127.0.0.1" #unified-prefix = "+358,00358,0;+,00" access-log = "/home/kannel/logs/kannel_access.log" #store-file = "kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem" #--------------------------------------------- # SMSC CONNECTIONS # # SMSC connections are created in bearerbox and they handle SMSC specific # protocol and message relying. You need these to actually receive and send # messages to handset, but can use GSM modems as virtual SMSCs # This is a fake smsc connection, _only_ used to test the system and services. # It really cannot relay messages to actual handsets! group = smsc smsc = fake smsc-id = FAKE port = 10001 connect-allow-ip = 127.0.0.1 #--------------------------------------------- # SMSBOX SETUP # # Smsbox(es) do higher-level SMS handling after they have been received from # SMS centers by bearerbox, or before they are given to bearerbox for delivery group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 13013 #sendsms-chars = "0123456789 +-" log-file = "/home/kannel/logs/smsbox.log" log-level = 1 access-log = "/home/kannel/logs/smsbox_access.log" #--------------------------------------------- # WAPBOX SETUP # group = wapbox bearerbox-host = 127.0.0.1 log-file = "/home/kannel/logs/wapbox.log" log-level = 1 syslog-level = none access-log = "/home/kannel/logs/wapaccess.log" #--------------------------------------------- # SEND-SMS USERS # # These users are used when Kannel smsbox sendsms interface is used to # send PUSH sms messages, i.e. calling URL like # http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar... group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = "" #--------------------------------------------- # SERVICES # # These are 'responses' to sms PULL messages, i.e. messages arriving from # handsets. The response is based on message content. Only one sms-service is # applied, using the first one to match. group = sms-service keyword = nop text = "You asked nothing and I did it!" # There should be always a 'default' service. This service is used when no # other 'sms-service' is applied. group = sms-service keyword = default text = "No service specified" smskannel.conf -------------------------------- # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # This basic version is used for system testing. It expects 'fakesmsc' to # send messages which are replied with simple fixed text message. # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop" # # ..all 3 commands in separate shells (or screen sessions) # Note that you can run them in different machines but have to # add certain command line argument and configuration variables then # # # For any modifications to this file, see Kannel User Guide # If that does not help, see Kannel web page (http://www.kannel.org) and # various online help and mailing list archives # # Notes on those who base their configuration on this: # 1) check security issues! (allowed IPs, passwords and ports) # 2) groups cannot have empty rows inside them! # 3) read the user guide # # Kalle Marjola for Kannel project 2001, 2004 #--------------------------------------------- # CORE # # There is only one core group and it sets all basic settings # of the bearerbox (and system). You should take extra notes on # configuration variables like 'store-file' (or 'store-dir'), # 'admin-allow-ip' and 'access.log' group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" log-file = "/home/kannel/logs/admin.log" log-level = 1 #box-deny-ip = "*.*.*.*" box-allow-ip = "*.*.*.*" #unified-prefix = "+358,00358,0;+,00" access-log = "/home/kannel/logs/access.log" #store-file = "kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem" #--------------------------------------------- # SMSC CONNECTIONS # # SMSC connections are created in bearerbox and they handle SMSC specific # protocol and message relying. You need these to actually receive and send # messages to handset, but can use GSM modems as virtual SMSCs # This is a fake smsc connection, _only_ used to test the system and services. # It really cannot relay messages to actual handsets! group = smsc smsc = fake smsc-id = FAKE port = 10001 connect-allow-ip = *.*.*.* log-file = "/home/kannel/logs/smsc_connections.log" #--------------------------------------------- # SMSBOX SETUP # # Smsbox(es) do higher-level SMS handling after they have been received from # SMS centers by bearerbox, or before they are given to bearerbox for delivery group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 13013 #sendsms-chars = "0123456789 +-" log-file = "/home/kannel/logs/smsbox.log" #log-level = 0 access-log = "/home/kannel/logs/access.log" #--------------------------------------------- # SEND-SMS USERS # # These users are used when Kannel smsbox sendsms interface is used to # send PUSH sms messages, i.e. calling URL like # http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar... group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = "" #--------------------------------------------- # SERVICES # # These are 'responses' to sms PULL messages, i.e. messages arriving from # handsets. The response is based on message content. Only one sms-service is # applied, using the first one to match. group = sms-service keyword = nop text = "You asked nothing and I did it!" # There should be always a 'default' service. This service is used when no # other 'sms-service' is applied. group = sms-service keyword = default text = "No service specified" #--------------------------------------------- # Define mblox tags # This implements Short Message Peer to Peer (SMPP) Protocol 3.4 group = smsc smsc = smpp host = "" port = 0 #receive-port = 700 smsc-username = "" smsc-password = "" system-type = "VMA" address-range = "" group = smpp-tlv name = MBoperator tag = 0x1402 type = octetstring length = 5 smsc-id = psms group = smpp-tlv name = MBbilling tag = 0x1403 type = octetstring length = 5 smsc-id = psms group = smpp-tlv name = MBserviceId tag = 0x1407 type = octetstring length = 60 smsc-id = psms group = smpp-tlv name = MBprogram tag = 0x1542 type = octetstring length = 5 smsc-id = psms # Two way channel group = smsc smsc = smpp smsc-id = psms allowed-smsc-id = psms host = api.mblox.com port = 3208 receive-port = 3208 smsc-username = tester smsc-password = foobar system-type = "system_mblox" service-type = 31139 my-number = 12345 ## One way channel group = smsc smsc = smpp smsc-id = directplus allowed-smsc-id = directplus host = api.mblox.com port = 3203 receive-port = 3203 smsc-username = tester smsc-password = foobar system-type = "SMPP" service-type = 32076 my-number = 12345 Thanks in advance
