load balance smsc
Hi! I am getting 2 smpp connections from my smsc for load balancing. Can i use it inside kannel to automatically do load balance between messages ? And incase one is down, shift to another smpp link ? Is above possible ? Any suggestions / comments would be appreciated. -- regards, Anand Gupta
Kannel to SMSC thru HTTP
hello! Im a newbie with kannel, I install kannel 1.4.1. Need some clarification and help. 1. From kannel to the SMSC -- can kannel use HTTP instead of the usual protocol like SMPP to send its message to the SMSC. How to configure this? 2. if I want to deliver this number e.g. to a specific smsc and another number e.g. to another smsc. how to configure this scenario? i really need HELP... thanks - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Re: load balance smsc
Yes, check this thread: http://www.kannel.org/pipermail/devel/2007-May/001040.html On 6/20/07, Anand Gupta [EMAIL PROTECTED] wrote: Hi! I am getting 2 smpp connections from my smsc for load balancing. Can i use it inside kannel to automatically do load balance between messages ? And incase one is down, shift to another smpp link ? Is above possible ? Any suggestions / comments would be appreciated. -- regards, Anand Gupta
Re: load balance smsc
Thanks for the pointer Rodrigo. I will test it out. Rodrigo Cremaschi wrote: Yes, check this thread: http://www.kannel.org/pipermail/devel/2007-May/001040.html On 6/20/07, Anand Gupta [EMAIL PROTECTED] wrote: Hi! I am getting 2 smpp connections from my smsc for load balancing. Can i use it inside kannel to automatically do load balance between messages ? And incase one is down, shift to another smpp link ? Is above possible ? Any suggestions / comments would be appreciated. -- regards, Anand Gupta -- regards, Anand Gupta
Re: Kannel to SMSC thru HTTP
Please RTFM first, the answers to your questions are in the User Guide. You can read it and/or download it from the Kannel.org web site. Regards, Alejandro On 6/20/07, Guada Lalo [EMAIL PROTECTED] wrote: hello! Im a newbie with kannel, I install kannel 1.4.1. Need some clarification and help. 1. From kannel to the SMSC -- can kannel use HTTP instead of the usual protocol like SMPP to send its message to the SMSC. How to configure this? 2. if I want to deliver this number e.g. to a specific smsc and another number e.g. to another smsc. how to configure this scenario? i really need HELP... thanks Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/ LinkedIn: http://www.linkedin.com/in/aguerrieri
Re: Kannel - Error in AT+CNMI command
Well. Seems like ok for AT+CNMI command, but every device usually have a specific set for certain commands. I could send you, if don't have to, a pdf with the commands for nokia devices. But like said above, every device usually have some commands with different functionalities. Therefore, search in nokia site for Specific at commands for your device. []s Allison Almeida. 2007/6/17, Bhagwandas Paliwal [EMAIL PROTECTED]: Hi All, We are using Kannel 1.4.1 with Nokia 5300 (connected using USB cable). Nokia 5300 is set to Nokia mode (out of 3 modes given - Nokia Mode, Printing and Media Mode and Data Mode). When bearerebox is started, it gives error while executing one of the AT command i.e AT+CNMI=1,2,0,1,0 We tried executing AT commands using minicom but still we were getting same problem. Can anybody please suggest solution to this problem? Right now, we have just guessed the values for detect-string so if there is any AT command to figure out these values or real values, do let us know. Please find smskannle.conf and error log below: In smskannel.conf, here is the configuration of relevant portion (modem and smsc part). #- # 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 = 1 # connect-allow-ip = 127.0.0.1 group = smsc smsc = at modemtype = Nokia my-number = 919844142580 #device = /dev/ttyS0 device = /dev/ttyACM0 speed = 19200 # -- # modem definitions # -- group = modems id = Nokia name = Nokia #detect-string = Nokia #init-string=ATE0 detect-string = 5300 detect-string2 = NOKIA message-storage = SM #need-sleep = true Please find full smskannel.conf at bottom of message. Here is the error we are getting when we run bearerbox. 2007-06-17 21:40:09 [11275] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2007-06-17 21:40:09 [11275] [0] WARNING: DLR: using default 'internal' for storage type. 2007-06-17 21:40:09 [11275] [0] INFO: DLR using storage type: internal 2007-06-17 21:40:09 [11275] [0] DEBUG: Kannel bearerbox version `1.4.1'. Build `Jun 12 2007 00:33:20', compiler `3.4.6 20060404 (Red Hat 3.4.6-3)'. System Linux, release 2.6.9-42.EL, version #1 Sat Aug 12 09:17:58 CDT 2006, machine i686. Hostname localhost.localdomain, IP 127.0.0.1. Libxml version 2.6.16. Using OpenSSL 0.9.7a Feb 19 2003. Using native malloc. 2007-06-17 21:40:09 [11275] [0] INFO: Added logfile `/root/kannel.log' with level `0'. 2007-06-17 21:40:09 [11275] [0] INFO: HTTP: Opening server at port 13000. 2007-06-17 21:40:09 [11275] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2007-06-17 21:40:09 [11275] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2007-06-17 21:40:09 [11275] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2007-06-17 21:40:09 [11275] [0] DEBUG: starting smsbox connection module 2007-06-17 21:40:09 [11275] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2007-06-17 21:40:09 [11275] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 11275. 2007-06-17 21:40:09 [11275] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 11275. 2007-06-17 21:40:09 [11275] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 11275. 2007-06-17 21:40:09 [11275] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 11275. 2007-06-17 21:40:09 [11275] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2007-06-17 21:40:09 [11275] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2007-06-17 21:40:09 [11275] [0] INFO: Set SMS resend frequency to 60 seconds. 2007-06-17 21:40:10 [11275] [0] INFO: SMS resend retry set to unlimited. 2007-06-17 21:40:10 [11275] [0] INFO: DLR rerouting for smsc id (null) disabled. 2007-06-17 21:40:10 [11275] [0] INFO: AT2[/dev/ttyACM0]: configuration shows modemtype Nokia 2007-06-17 21:40:10 [11275] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem definitions from ../smskannel.conf 2007-06-17 21:40:10 [11275] [0] DEBUG: AT2[/dev/ttyACM0]: Found 1 modems in config 2007-06-17 21:40:10 [11275] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 11275. 2007-06-17 21:40:10 [11275] [0] INFO: AT2[/dev/ttyACM0]: read modem definition for Nokia 2007-06-17 21:40:10 [11275] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2007-06-17 21:40:10 [11275] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2007-06-17 21:40:10 [11275] [0] INFO: 2007-06-17 21:40:10 [11275] [0] INFO: Kannel bearerbox II
Re: Kannel on Ubuntu server
Peter. Change the path for log-files to something like /etc/kannel/log/. The /var/log have configurations of permissions a little confuse to someone without experience. I have this type of problem with my log-files, years later, because i need run startup script with root and run kannel with kannel user. Try to put your log files in a simple permission path. []s Allison Almeida. 2007/6/16, Peter Lum [EMAIL PROTECTED]: Hi Allison And this is my conf file: # # THIS IS A SAMPLE CONFIGURATION FOR KANNEL # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # group = core admin-port = 13000 admin-password = bar #status-password = foo #admin-deny-ip = #admin-allow-ip = log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log #http-proxy-host = 127.0.0.1 #http-proxy-port = 8080 #http-proxy-exceptions = 127.0.0.1 #http-proxy-username = user #http-proxy-password = password #ssl-certkey-file = mycertandprivkeyfile.pem smsbox-port=13001 smsbox-port-ssl=false box-deny-ip=*.*.*.* box-allow-ip=127.0.0.1;192.168.1.111 store-file=/var/log/kannel/kannel.store # Smsbox related # SMSBOX SETUP group = smsbox bearerbox-host = localhost bearerbox-port=13001 sendsms-port = 13013 #sendsms-chars = 0123456789 +- global-sender = 12345 log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/smsaccess.log #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # Wapbox related #wapbox-port = 13002 #udp-deny-ip = *.*.*.* #udp-allow-ip = 127.0.0.1 #wdp-interface-name = * # SMSC CONNECTIONS - GLOBAL FIELDS group = smsc smsc = at modemtype=auto device= /dev/ttyS0 speed=115200 smsc-id = Hotsource_SMS_Gateway1 validityperiod=167 keepalive=60 my-number=6590909214 sim-buffering=false connect-allow-ip = 127.0.0.1 #denied-smsc-id = X;Y #allowed-smsc-id = Z #preferred-smsc-id = W #allowed-prefix = 040;050 #denied-prefix = 060;070 #alt-charset = ### include modems.conf ## # SMSC Nokia CIMD2 #group = smsc #smsc = cimd2 #host = #port = #smsc-username = #smsc-password = #keepalive = #sender-prefix = # SMSC EMI #group = smsc #smsc = emi2 #smsc = emi_ip to use the old implementation #host = #port = #smsc-username = #smsc-password = #device = /dev/ #phone = #our-port = #receive-port = #connect-allow-ip = #keepalive = #flow-control = # SMSC SMPP #group = smsc #smsc = smpp #host = #port = #receive-port = #smsc-username = #smsc-password = #system-type = #address-range = # SMSC SEMA #group = smsc #smsc = sema #device = /dev/tty0 #smsc_nua = (X121 smsc address) #home_nua = (x121 radio pad address) #wait_report = 0/1 (0 means false, 1 means true) # SMSC OIS #group = smsc #smsc = ois #host = 103.102.101.100 #port = 1 #receive-port = 1 #ois-debug-level = 0 # SMSC GSM #group = smsc #smsc = at #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom | nokiaphone | ericsson #device = /dev/ttyS0 #pin = 2345 #validityperiod = 167 # SMSC Fake #group = smsc #smsc = fake #host = #port = #connect-allow-ip = # SMSC HTTP #group = smsc #smsc = http #system-type = kannel #send-url = #port = #connect-allow-ip = #username = #password = # SEND-SMS USERS group = sendsms-user username = tester password = foobar #user-deny-ip = #user-allow-ip = # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = *.*.*.* user-allow-ip = 127.0.0.1 #name = service_kannel #forced-smsc = ID #default-smsc = ID #faked-sended = #max-messages = 1 #concatenation = 1 #split-chars = #split-suffix = #omit-empty = #header = #footer = #allowed-prefix = #denied-prefix = #white-list = #black-list = # SMS SERVICES group = sms-service name = nothing keyword = nop aliases = noppy;niente text = You asked nothing and I did it! get-url = http://localhost/index.php?msisdn=%pkeyword=%kcontent=%rhttp://localhost/index.php?msisdn=%25pkeyword=%25kcontent=%25r post-url = http://; file = /tmp/ #accepted-smsc = ID #allowed-prefix = #denied-prefix = catch-all = false send-sender = false #strip-keyword = false #faked-sender = #max-messages = 1 #accept-x-kannel-headers = false assume-plain-text = false concatenation = false #split-chars = #split-suffix = + #omit-empty = true #header = #footer = #prefix = #suffix = #white-list = #black-list = # SMS SERVICE GET-URL EXAMPLE #group = sms-service #keyword = relay #get-url = http://localhost/service?phone=%ptext=%rbinary=%bsmsc=$itime=%thttp://localhost/service?phone=%25ptext=%25rbinary=%25bsmsc=$itime=%25t # SMS SERVICE black-list #group = sms-service #keyword = black-list #text = You are not alowed to use this service, Go away! # SMS SERVICE Default # there should be default always group = sms-service keyword = default text = No service specified
Re: Routing SMSes
Well I figured out a solution that I believe is full proof for 1 receiver and 1 transmitter. If you set transceiver to false on both of them and then set receiver-port = (not zero) and port = (zero) for the the reciever and then set the receiver-port = (zero) and port = (not zero) for the transmitter then kannel will connect with a bind_transmitter and bind_receiver for the appropriate smsc connection. note that the port directive acts like a transmitter-port although it is not labeled that. -Jon Jon David Koon wrote: I have a problem where I need to exclusively receive on one smsc and send on another. For sending I have tried to set the default-smsc and forced-smsc directives in the sendsms-user group. I am baffled concerning routing on the receiving side. I have tried putting 0 for the recieve-port for the one that only sends and this seems to work, but it is hard to confirm. I have included a truncated log as well as the kannel configuration. Kannel bearerbox version `1.4.1-mblox'. Build `Jun 6 2007 17:29:30', compiler `3.4.6 20060404 (Red Hat 3.4.6-8)'. System Linux, release 2.6.9-55.ELsmp, version #1 SMP Wed May 2 14:28:44 EDT 2007, machine i686. Hostname localhost, IP 127.0.0.1. Libxml version 2.6.16. Using OpenSSL 0.9.7a Feb 19 2003. Compiled with MySQL 4.1.20, using MySQL 4.1.20. Using native malloc. SMSC: MBlox (PSMS for receiving MT for sending) *Please do not explain the 42a error (Fixing this will fix that) Thanks in advance, Jon group = core admin-port = 13000 admin-password = f00bar smsbox-port = 13003 log-file = kannel-mblox.log access-log = kannel-mblox.access log-level = 0 #unified-prefix = 1,0 dlr-storage = mysql #dlr-storage = internal group = mysql-connection id = mydlr host = ** username = ** password = database = max-connections = 1 group = dlr-db id = mydlr table = DLR_Reports field-smsc = smsc field-timestamp = timestamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxcid group = smsc smsc = smpp log-level = 0 #used for reference within kannel smsc-id = psms host = *** port = ** smsc-username = ** smsc-password = system-type = ** service-type = transceiver-mode = true #0x01 means: deliver_sm decimal, submit_sm_resp hex msg-id-type = 0x01 source-addr-ton = 3 group = smsc smsc = smpp log-level = 0 #used for reference within kannel smsc-id = mt host = ** port = smsc-username = *** smsc-password = * system-type = ** service-type = ** transceiver-mode = true receive-port = 0 #0x01 means: deliver_sm decimal, submit_sm_resp hex msg-id-type = 0x01 source-addr-ton = 3 group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 #global-sender should be the short code global-sender = ** log-level = 0 group = sendsms-user username = * password = forced-smsc = mt default-smsc = mt group = sms-service keyword = keyword-regex = .* catch-all = yes max-messages = 0 get-url = http://*/inbound.php?timestamp=%tsender=%precipient=%Pbody=%a 2007-06-19 17:53:13 [21887] [0] INFO: Added logfile `kannel-mblox.log' with level `0'. 2007-06-19 17:53:13 [21887] [0] INFO: Started access logfile `kannel-mblox.access'. 2007-06-19 17:53:13 [21887] [0] INFO: HTTP: Opening server at port 13000. 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2007-06-19 17:53:13 [21887] [0] DEBUG: starting smsbox connection module 2007-06-19 17:53:13 [21887] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2007-06-19 17:53:13 [21887] [0] INFO: Set SMS resend frequency to 60 seconds. 2007-06-19 17:53:13 [21887] [0] INFO: SMS resend retry set to unlimited. 2007-06-19 17:53:13 [21887] [0] INFO: DLR rerouting for smsc id psms disabled. 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread) 2007-06-19 17:53:13 [21887] [0] INFO: DLR rerouting for smsc id mt disabled. 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 7 (gw/smsc/smsc_smpp.c:io_thread) 2007-06-19 17:53:13 [21887] [0] DEBUG: Started thread 8 (gw/bb_smscconn.c:sms_router) 2007-06-19 17:53:13 [21887] [0] INFO: