RE: error:opening failed terminating,in bearer box.
If the file /dev/usb/tts/0 exists on your filesystem. Then you are running devfs. You can fill this in, in your kannel.conf. Or otherwise make a symbolic link to it. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of rash_s13 Sent: maandag 20 maart 2006 18:48 To: users@kannel.org Subject: RE: error:opening failed terminating,in bearer box. I have not run /dev/ttyUSB0 with anything until now and I dont know much about running it on Linux.. How do I test that I am not running devfs.Doesn't my conf file and dmesg output confirm that I am running ttyUSB0?I am totally new to kannel and Linux.Can you help in detail? -- View this message in context: http://www.nabble.com/error%3Aopening-failed-terminating%2Cin-bearer-box.-t1 309205.html#a3498330 Sent from the Kannel - User forum at Nabble.com.
RE: Kannel as SMS relay ?
The short answer: Yes, this is possible. The trick here is that Kannel doesn't accept CIMD2 nor SMPP incoming connections natively. The only thing you will have to do here is rewrite the A B terminals to talk Kannel's HTTP protocol. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon Björkebäck Sent: dinsdag 21 maart 2006 19:06 To: users@kannel.org Subject: Kannel as SMS relay ? Hi! I got a question regarding Kannel's ability to act as an SMS relay. I got this setup: ___ A -| SMS-C | GSM-network B -|___| Terminals A and B are clients that talks CIMD2 (or SMPP). The problem is that the SMSC only takes one connection at the time. The terminals have to wait on each other to release the connection to SMS-C before proceeding. Now I wonder if I can set up Kannel like this: ______ A -|Kannel |-| SMS-C | GSM-network B -|___| |___| This way, A and B would be possible to send SMS all the time. Is this possible with Kannel? Many Thanks, Jon Bjoerkeback
RE: Kannel with 4 wapboxes - advice needed
The wapbox port is inherited from the group = core section. So on every box, you should have a kannel.conf like: group = core wapbox-port = ...etc. group = wapbox bearerbox-host = ip-of-bearerbox-host Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of OLOTU Olayinka Sent: donderdag 23 maart 2006 15:35 To: users@kannel.org Subject: Kannel with 4 wapboxes - advice needed Goodday, i have a nice WAP Gateway v1.4.0, no ssl support, running on a server running RedHat Linux AS. i want to use more than one wap box, preferably on different mackines; and there i have hit a snag. read though i have, i am yet to fully understand how to do it. tis is because there seems to be no variable in the wapbox section that references the port of the bearerbox it should use - and the wapbox port is the only parameter that is defined in the bearerbox section! i also dont know how to install only a wapbox on a system. i guess i have to install all and only start the wapbox? Please can you assist on this - or refer me to any online reference? i have read the kannel user guide.. my final aim is to have a bearerbox on a machine, and four different wapboxes - teo on the same machine as the bearer box and two on other machines. ten i want to benchmark its traffic performance.. i work in a mobile network that gets about 5 million WAP hits daily... should be interesting... thanks Bayo ___ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry
RE: Kannel with 4 wapboxes - advice needed
1. Yes, the wapbox-port should be the same on every machine. 2. The wapboxes connect to the bearerbox. Not the other way around. So only the wapboxes need to know the ip of the bearerbox. The bearerbox will accept connections from the wapboxes. Having said that, if you are using box-deny-ip = ... and/or box-allow-ip = Then this is the place to put the ip's of the wapboxes. The above configuration directives go in kannel.conf (group = core) on the bearerbox host. Rene Kluwen Chimit -Original Message- From: OLOTU Olayinka [mailto:[EMAIL PROTECTED] Sent: donderdag 23 maart 2006 22:22 To: Rene Kluwen Cc: users@kannel.org Subject: RE: Kannel with 4 wapboxes - advice needed OK...so the wapbox port must be the same on every box? also am not yet clear on how to install on separate machines. i assume the bearerbox of the main kannel would have an entry for the IP of each wapbox that is on a separate machine thanks... --- Rene Kluwen [EMAIL PROTECTED] wrote: The wapbox port is inherited from the group = core section. So on every box, you should have a kannel.conf like: group = core wapbox-port = ...etc. group = wapbox bearerbox-host = ip-of-bearerbox-host Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of OLOTU Olayinka Sent: donderdag 23 maart 2006 15:35 To: users@kannel.org Subject: Kannel with 4 wapboxes - advice needed Goodday, i have a nice WAP Gateway v1.4.0, no ssl support, running on a server running RedHat Linux AS. i want to use more than one wap box, preferably on different mackines; and there i have hit a snag. read though i have, i am yet to fully understand how to do it. tis is because there seems to be no variable in the wapbox section that references the port of the bearerbox it should use - and the wapbox port is the only parameter that is defined in the bearerbox section! i also dont know how to install only a wapbox on a system. i guess i have to install all and only start the wapbox? Please can you assist on this - or refer me to any online reference? i have read the kannel user guide.. my final aim is to have a bearerbox on a machine, and four different wapboxes - teo on the same machine as the bearer box and two on other machines. ten i want to benchmark its traffic performance.. i work in a mobile network that gets about 5 million WAP hits daily... should be interesting... thanks Bayo ___ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry ___ NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/
RE: Kannel as SMS relay ?
So to get this clear, there are 3 parties now that offer an smppbox? - Chimit - Stipe Tolj - Wapme Rene Kluwen Chimit -Original Message- From: Stipe Tolj [mailto:[EMAIL PROTECTED] Sent: vrijdag 24 maart 2006 17:33 To: Rene Kluwen Cc: Jon Björkebäck; users@kannel.org Subject: Re: Kannel as SMS relay ? Rene Kluwen wrote: The short answer: Yes, this is possible. The trick here is that Kannel doesn't accept CIMD2 nor SMPP incoming connections natively. The only thing you will have to do here is rewrite the A B terminals to talk Kannel's HTTP protocol. Rene is correct here. Kannel as provided by stock abstracts all SMSC links inside bearerbox to the HTTP layer. I'm offering an additional add-on module, a SMPP server (smppbox) that allows multiplexing any number of clients via SMPP like this: A -SMPP- - --- B -SMPP- |smppbox| -- |bearerbox| SMPP, or EMI, or any C -SMPP- - --- If you're interest please let me know. Stipe --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org ---
RE: sending a sms from a servlet
Yes, I can help you with that. It is described in the same document as I pointed you to. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of amit_1me Sent: vrijdag 24 maart 2006 20:34 To: users@kannel.org Subject: RE: sending a sms from a servlet thanks mate ur suggestion really helped can you me help with the no translation found error -- View this message in context: http://www.nabble.com/sending-a-sms-from-a-servlet-t1338327.html#a3577854 Sent from the Kannel - User forum at Nabble.com.
RE: multipble smsboxes
Can you maybe post your config files as well? Maybe that can give us a clue. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Landsmann,Oliver Sent: dinsdag 28 maart 2006 18:09 To: users@kannel.org Subject: multipble smsboxes I'm trying to use multible smsboxes on the same server: I'm able to start 2 smsboxes. I can send sms to both ports for the smsboxes. The smsbox that has the same config file as the bearerbox is fine. But the other on that has a copy of the config file with the changed settings for the smsbox will not send the message, instead i get the following error (number replaced with XXX): 2006-03-28 17:53:20 [28588] [11] WARNING: Cannot find SMSCConn for message to X, rejected. 2006-03-28 17:53:20 [28588] [11] WARNING: Message rejected by bearerbox, no router! Any Ideas ? Whats the proper way to divide config files between the different processes ? Thanks, --Oliver
RE: connecting to 2 smsc's
Are smsc1 smsc2 connections to the same server? With the same credentials? Indeed, usually SMSC's don't allow that. But... why would you want to do that? Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of matt pelletierSent: woensdag 29 maart 2006 0:55To: users@kannel.orgSubject: connecting to 2 smsc's Hello, I am trying to connect to two separate smsc's through one instance of kannel via smpp. I modified the kannel.conf with the (what I am assuming) needed information is. What is happening is that smsc2 connects and I can send and receive data from them, but then keeps trying to re-connect over and over again, causing smsc2 to drop the connection; they only allow 1 bind per server. smsc1 apparently connects without any issues – I can receive messages from them, and no errors for smsc1 are appearing in the kannel.log Here is my kannel conf file, and a chunk of the kannel.log from when I start kannel, see the failure, then stop it. Any ideas? Any help would be greatly appreciated. Thanks! Matt Kannel log - 2006-03-28 14:47:29 [9599] [0] INFO: 2006-03-28 14:47:29 [9599] [0] INFO: Kannel bearerbox II version 1.4.0 starting 2006-03-28 14:47:29 [9599] [0] INFO: Loading store file `/opt/kannel/logs/kannel.store' 2006-03-28 14:47:29 [9599] [0] INFO: Store-file size 0, starting to unpack 2006-03-28 14:47:29 [9599] [0] INFO: Retrieved 0 messages, non-acknowledged messages: 0 2006-03-28 14:47:29 [9599] [0] INFO: MAIN: Start-up done, entering mainloop 2006-03-28 14:47:30 [9599] [12] INFO: Client connected from 127.0.0.1 2006-03-28 14:47:35 [9599] [10] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:47:35 [9599] [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:47:51 [9599] [10] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:47:51 [9599] [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:47:59 [9599] [9] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:47:59 [9599] [9] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:48:07 [9599] [10] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:48:07 [9599] [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:48:15 [9599] [12] INFO: Connection closed by the box 127.0.0.1 2006-03-28 14:48:16 [9599] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2006-03-28 14:48:16 [9599] [0] INFO: All flow threads have died, killing core 2006-03-28 14:48:16 [9599] [0] INFO: Total WDP messages: received 0, sent 0 2006-03-28 14:48:16 [9599] [0] INFO: Total SMS messages: received 1, sent 0 Kannel.conf – group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo admin-allow-ip = "xx.xx.xx.xx" log-file = "/opt/kannel/logs/kannel.log" log-level = 1 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" dlr-storage=internal access-log = "/opt/kannel/logs/access.log" store-file = "/opt/kannel/logs/kannel.store" # SMSC CONNECTIONS group = smsc smsc = smpp msg-id-type="0x01" smsc-id = smsc1 host = "x" port = 3204 receive-port = 3204 transceiver-mode = true enquire-link-interval = 30 service-type = 3138 smsc-username = "" smsc-password = "" system-type ="x" address-range = "" alt-charset = LATIN1 group = smsc smsc = smpp msg-id-type="0x01" smsc-id = smsc2 host = "xxx" port = 4551 receive-port = 4551 transceiver-mode = true enquire-link-interval = 30 service-type = 3138 smsc-username = "xxx" smsc-password = "xxx" system-type = "xxx" address-range = "" alt-charset = LATIN1 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 log-file = "/opt/kannel/logs/smsbox.log" log-level = 1 access-log = "/opt/kannel/logs/access.log" # SEND-SMS USERS group = sendsms-user username = foo password = bar #user-deny-ip = "" user-allow-ip = "xx.xx.xx.xx" # SERVICES # there should be default always group = sms-service keyword = default catch-all = true get-url = "" href="http://localhost:8080/" target=_blank>http://localhost:8080/ max-messages=0
RE: connecting to 2 smsc's
It looks like smsc2 didn't open their firewall for you yet. Rene Kluwen Chimit -Original Message-From: matt pelletier [mailto:[EMAIL PROTECTED]Sent: woensdag 29 maart 2006 1:22To: Rene KluwenCc: users@kannel.orgSubject: Re: connecting to 2 smsc's No, smsc1 and smsc2 are to two separate entities (different ip addresses and ports) smsc1 connects and works properly, but smsc2 connects, and then keeps trying to connect over and over again. thanks, matt On 3/28/06, Rene Kluwen [EMAIL PROTECTED] wrote: Are smsc1 smsc2 connections to the same server? With the same credentials? Indeed, usually SMSC's don't allow that. But... why would you want to do that? Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of matt pelletierSent: woensdag 29 maart 2006 0:55 To: users@kannel.orgSubject: connecting to 2 smsc's Hello, I am trying to connect to two separate smsc's through one instance of kannel via smpp. I modified the kannel.conf with the (what I am assuming) needed information is. What is happening is that smsc2 connects and I can send and receive data from them, but then keeps trying to re-connect over and over again, causing smsc2 to drop the connection; they only allow 1 bind per server. smsc1 apparently connects without any issues – I can receive messages from them, and no errors for smsc1 are appearing in the kannel.log Here is my kannel conf file, and a chunk of the kannel.log from when I start kannel, see the failure, then stop it. Any ideas? Any help would be greatly appreciated. Thanks! Matt Kannel log - 2006-03-28 14:47:29 [9599] [0] INFO: 2006-03-28 14:47:29 [9599] [0] INFO: Kannel bearerbox II version 1.4.0 starting 2006-03-28 14:47:29 [9599] [0] INFO: Loading store file `/opt/kannel/logs/kannel.store' 2006-03-28 14:47:29 [9599] [0] INFO: Store-file size 0, starting to unpack 2006-03-28 14:47:29 [9599] [0] INFO: Retrieved 0 messages, non-acknowledged messages: 0 2006-03-28 14:47:29 [9599] [0] INFO: MAIN: Start-up done, entering mainloop 2006-03-28 14:47:30 [9599] [12] INFO: Client connected from 127.0.0.1 2006-03-28 14:47:35 [9599] [10] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:47:35 [9599] [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:47:51 [9599] [10] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:47:51 [9599] [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:47:59 [9599] [9] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:47:59 [9599] [9] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:48:07 [9599] [10] ERROR: SMPP[smsc2]: I/O error or other error. Re-connecting. 2006-03-28 14:48:07 [9599] [10] ERROR: SMPP[smsc2]: Couldn't connect to SMS center (retrying in 10 seconds). 2006-03-28 14:48:15 [9599] [12] INFO: Connection closed by the box 127.0.0.1 2006-03-28 14:48:16 [9599] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2006-03-28 14:48:16 [9599] [0] INFO: All flow threads have died, killing core 2006-03-28 14:48:16 [9599] [0] INFO: Total WDP messages: received 0, sent 0 2006-03-28 14:48:16 [9599] [0] INFO: Total SMS messages: received 1, sent 0 Kannel.conf – group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar status-password = foo admin-allow-ip = "xx.xx.xx.xx" log-file = "/opt/kannel/logs/kannel.log" log-level = 1 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" dlr-storage=internal access-log = "/opt/kannel/logs/access.log" store-file = "/opt/kannel/logs/kannel.store" # SMSC CONNECTIONS group = smsc smsc = smpp msg-id-type="0x01" smsc-id = smsc1 host = "x" port = 3204 receive-port = 3204 transceiver-mode = true enquire-link-interval = 30 service-type = 3138 smsc-username = "" smsc-password = "" system-
RE: example of post-xml
You need to choose the URL yourself. It should point to a web script (ASP, PHP, CGI, whichever...) that receives XML content (as described in the user manual) and returns a response that can be sent to the originator. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of seema pannuSent: donderdag 30 maart 2006 9:35To: users@kannel.orgSubject: example of post-xml hello could ugive me some example regarding Post-xml how to use it # sms-service group = sms-service . . post-xml= give me example of URL // anyone of u used thisplzmail me and where to change thisPOST Content-Type to text/xml regards seema New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
RE: Using HTTP requests in C
Besides using curl (the preffered way, if you ask me) you can just use a popen("lynx -dump http://localhost:13013/cgi-bin/sendsms?", "w"); It might not been the most elegant way... But... has a less steep learning curve... and suits for rudimental purposes. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Julius David BacolodSent: donderdag 30 maart 2006 9:33To: users@kannel.orgSubject: Using HTTP requests in CNow that I have successfully utilized the HTTP interface to use sendsms, Im trying to automate sendsms using C but the problem is I do not know how to make use of HTTP requests (POST, GET, etc.) in C. I know how to do that in Java (instantiating socket objects, open the Data I/O streams and then writeBytes method, quite easy), but in C I'm not familiar with. Im searching the Web for socket programming in C that mentions HTTP requests but I hardly see any.Is there some way in C (just like in Java) that you would pass the the URL string to some C function and then it will sendsms? Just like this URL string:http://localhost:13013/cgi-bin/sendsms?username=foopassword=barto=%2b1234text=Hello+WorldBy the way I'm just playing around with the localhost so that would be easier.Anyone? If anyone could give us guides related to these and some code samples or snippets, we'll greatly appreciate.Julius Bacolod Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
RE: Kannel as smpp/cimd2 server???
Usually, when you connect to an SMSC or SMS Gateway, and want to receive messages, you do not need incoming SMPP or CIMD2 connections. Your provider will relay any incoming messages to your SMPP/CIMD2 connection, even if you are the one connecting. Kannel also has routing options to relay from 1 smsc to another (check the users manual). I hope this answers your question. Because I am not 100% sure if I understood your question right. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Jay AcuestaSent: donderdag 30 maart 2006 21:26To: users@kannel.orgSubject: Kannel as smpp/cimd2 server???My next burden now is kinda like a relay between two smsc'sA - smsc1B - smsc2A smpp KANNEL cimd2 BA smpp KANNEL cimd2 BIm basically a newbie and I have only tested KANNEL with outbound msgs (sendsms - smpp, cimd2, http), and no experience at all on handling inbound msgs... Based on the diagram above, how do I go about receiving sms from A B thru smpp and cimd2? Is it possible? Will I be needing some smpp/cimd server implementation because i've read on another thread that Kannel does not act as smpp/cimd server???Next question would be how to handle the sms? Is it through sms-service?I would appreciate your help with this guys. Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
RE: example of post-xml
Please ask questions ONLY through the list. I am not a helpdesk-on-demand. Rene Kluwen Chimit -Original Message-From: seema pannu [mailto:[EMAIL PROTECTED]Sent: vrijdag 31 maart 2006 5:50To: Rene KluwenSubject: RE: example of post-xml hi! yes i am using the script only but i don't know where to change this Content-Type variable. could u plz tell me where shall i change this content type in application or gateway reply soon regards seema pannu Rene Kluwen [EMAIL PROTECTED] wrote: You need to choose the URL yourself. It should point to a web script (ASP, PHP, CGI, whichever...) that receives XML content (as described in the user manual) and returns a response that can be sent to the originator. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of seema pannuSent: donderdag 30 maart 2006 9:35To: users@kannel.orgSubject: example of post-xml hello could ugive me some example regarding Post-xml how to use it # sms-service group = sms-service . . post-xml= give me example of URL // anyone of u used thisplzmail me and where to change thisPOST Content-Type to text/xml regards seema New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[no subject]
Using Wapbox v140 here. Is a 1.4.0 related thing? Or is something else going on here? 2006-03-31 11:34:37 [6338] [6] INFO: Fetching https://mobile.passport.net/si/default.aspx? 2006-03-31 11:34:37 [6338] [9] ERROR: SSL write failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL write failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL read failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL read failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL write failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL write failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL write failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL read failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL read failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) 2006-03-31 11:34:37 [6338] [9] ERROR: SSL write failed: OpenSSL error 1: error:0001:lib(0):func(0):reason(1) Rene Kluwen Chimit
RE: Relay and Routing
*laughs* quote ...such as preferred-smsc and denied-smsc, user guide is vague, maybe for a newbie.. /quote Is is not vague alone for a newbie. I still have to dive into the sources again when I want to figure it out. Any volunteer that wants to write a little clarifying section for the userguide? Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jay Sent: zaterdag 1 april 2006 19:49 To: users@kannel.org Subject: Relay and Routing Hi guys, I have been reading the userguide for quite some time but i'm still unable to fully understand relay and routing etc... Basically my setup is this mobile - SMSC -- Kannel -- Content Provider smpp/cimd2 http a mobile user sends TONE 1, smsc forwards it to kannel, kannel processes msg forwards msg to CP, then CP replies back with content, kannel sends it back to smsc, smsc to mobile user... provisions for multiple SMSC's and Content Providers is also required... how do i go about this? and i would pretty much appreciate some laymans explanations regarding routing, such as preferred-smsc and denied-smsc, user guide is vague, maybe for a newbie.. i would really much appreciate if somone could provide a sample kannel.conf that would handle the above scenario precisely... Thank You In Advance guys! Also, thanks to Rene and Stipe for previous help. Regards, Jay Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
RE: Sqlbox Patch Compile Error
Try to ./configure --with-mysql-dir=/usr/local along with the other options. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of JaySent: donderdag 6 april 2006 16:48To: users@kannel.orgSubject: Sqlbox Patch Compile Errorhelp pls.i ran,./configure -with-mysql --with-mysql-dir=/usr/local/mysql --with-dlr=mysql --enable-mysql-dlr -enable-start-stop-daemon OKmake bindir=/usr/local/bin installERRORgcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/local/mysql/include -o gw/sqlbox_mysql.o -c gw/sqlbox_mysql.cgw/sqlbox_mysql.c:4:25: mysql/mysql.h: No such file or directorygw/sqlbox_mysql.c:48: error: syntax error before '*' tokengw/sqlbox_mysql.c: In function `mysql_select':gw/sqlbox_mysql.c:51: error: `MYSQL_RES' undeclared (first use in this function)gw/sqlbox_mysql.c:51: error: (Each undeclared identifier is reported only oncegw/sqlbox_mysql.c:51: error: for each function it appears in.)gw/sqlbox_mysql.c:51: error: `result' undeclared (first use in this function)gw/sqlbox_mysql.c: In function `mysql_fetch_msg':gw/sqlbox_mysql.c:109: error: `MYSQL_RES' undeclared (first use in this function)gw/sqlbox_mysql.c:109: error: `res' undeclared (first use in this function)gw/sqlbox_mysql.c:110: error: `MYSQL_ROW' undeclared (first use in this function)gw/sqlbox_mysql.c:110: error: syntax error before "row"gw/sqlbox_mysql.c:119: error: `row' undeclared (first use in this function)make: *** [gw/sqlbox_mysql.o] Error 1thanks in advance! New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
RE: DLR : storage type 'mysql' not supported
What is the output from ./configure? Does it tell you that it can find all the MySQL libraries? Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of JaySent: dinsdag 25 april 2006 16:36To: users@kannel.orgSubject: DLR : storage type 'mysql' not supportedHi guys,I've read that most of the answer to my problem is to recompile kannel ./configure --with-mysql --with-mysql-dir=/usr/local/mysqlmakemake installbut still problem persists...is it possible that my mysql version (5.0) is not supported? ot is there a valid reason for this?help pls..thanks Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
RE: sqlbox, smsbox-route and dlr rerouting help!
Sorry... let me correct this... I do know what is going wrong... sqlbox doesn't do message ack-ing nor DLR requests... It is a missing feature... So only the messages are acked that are being relayed through smsbox. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Alex KinchSent: dinsdag 2 mei 2006 19:26To: users@kannel.orgSubject: sqlbox, smsbox-route and dlr rerouting help! Hi, Hopefully someone can solve this mystery for me. I'm using sqlbox compiled into cvs-20060424, using MySQL 4.1.18. Incoming messages weren't being routed into sqlbox, so I added: group = smsbox-routesmsbox-id = smsboxsmsc-ids = "(smsc1);(smsc2)" (smsc1) and (smsc2) being the names of some SMPP connections. Everything is fine now, however when delivery reports come back in some of them go into sqlbox but appear not to be ack'd by sqlbox - or for some other reason remain in the Kannel store. Anything between 50-200 DLRs makeit to sqlbox before it seems to hit a limit and no more come in to the table. None of the DLR entries in sqlbox seem to go any further so the DLR URL is not called either. I do notice throughout the log the following entries for both(smsc1) and (smsc2) as well: INFO: DLR rerouting for smsc id (smsc1) disabled I have been speaking to Rene (Kluwen) and working through this issue with him, but neither of us are really too sure what is going wrong. Maybe Stipe or someone could advise me if these problems may be caused by something to do with lack of DLR rerouting, and if so, how do I enable the rerouting? Kannel.conf is below. Thanks in advance! Alex -- group = coreadmin-port = 13000wapbox-port = 13002admin-port-ssl = nosmsbox-port = 13001admin-password = *REMOVED*status-password = *REMOVED*admin-deny-ip = *REMOVED*admin-allow-ip = *REMOVED* log-file = "/home/kannel/logs/kannel.log"log-level = 0box-deny-ip = *REMOVED*box-allow-ip = *REMOVED*unified-prefix = "+44,0044,44,0"store-file = "/home/kannel/logs/kannel.store" dlr-storage = mysqlwdp-interface-name = "*" # SQL BOX CONFIG group = mysql-connectionid = dlr-dbhost = localhostusername = *REMOVED*password = *REMOVED*database = *REMOVED*max-connections = 5 group = mysql-connectionid = sqlbox-dbhost = localhostusername = *REMOVED*password = *REMOVED*database = *REMOVED*max-connections = 10 group = dlr-dbid = dlr-dbtable = dlrfield-smsc = smscfield-timestamp = tsfield-destination = destinationfield-source = sourcefield-service = servicefield-url = "">field-mask = maskfield-status = statusfield-boxc-id = boxc # SQL BOX CONFIG group = sqlbox# id corresponds to id in group = mysql-connection.# this is analogous to id in group = dlr-dbid = sqlbox-db# smsbox-id indicates the box where SQL-injected messages appear to be coming fr smsbox-id = sqlbox# bearerbox host to connect tobearerbox-host = localhost# smsbox port to be listening onsmsbox-port = 13005smsbox-port-ssl = false# sql-log-table is the table used to log all sent messages sql-log-table = sent_sms# sql-insert-table is the table that is monitored for new messages to sendsql-insert-table = send_sms# global sender: If no sender is specified in sql-insert-table then this# value is used. global-sender = 06121log-file = "/home/kannel/logs/sqlbox.log"log-level = 0ssl-client-certkey-file = ""ssl-server-cert-file = ""ssl-server-key-file = ""ssl-trusted-ca-file = "" # SMSC CONNECTIONS group = smscsmsc = smppsmsc-id = (smsc1)allowed-smsc-id = (smsc1);(smsc1)_01host = *REMOVED*port = *REMOVED*transceiver-mode = truesystem-type = *REMOVED*interface-version = 33smsc-username = *REMOVED* smsc-password = *REMOVED*source-addr-autodetect = truedest-addr-ton = 1dest-addr-npi = 1msg-id-type = 0x01alt-charset = HPROMAN8 group = smscsmsc = smppsmsc-id = (smsc2)allowed-smsc-id = (smsc2)host = *REMOVED*port = *REMOVED*interface-version = 34transceiver-mode = truesystem-type = *REMOVED*smsc-username = *REMOVED* smsc-password = *REMOVED*source-addr-ton = 0source-addr-npi = 0msg-id-type = 0x01 group = smscsmsc = smppsmsc-id = (smsc2)allowed-smsc-id = (smsc2)host = *REMOVED*port = *REMOVED*interface-version = 34transceiver-mode = truesystem-type = *REMOVED*smsc-username = *REMOVED* smsc-password = *REMOVED*source-addr-ton = 0source-addr-npi = 0msg-id-type = 0x01 # SMSBOX SETUP group = smsboxbearerbox-host = localhost# the following is a sqlbox extension!!bearerbox-is-sqlbox = truesmsbox-id = smsboxsendsms-port = 13013sendsms-port-ssl = no#sendsms-chars = "0123456789 +-" log-file = "/home/kannel/logs/smsbox.log"access-log = "/home/kannel/logs/smsbox_access.log"log
RE: sqlbox, smsbox-route and dlr rerouting help!
1. Yes, it differs if you send messages via smsbox or sqlbox 2. I think they changed behaviour bearerbox to require an ACK at the moment that delayed writing was introduced (if I am not mistaken). Rene Kluwen Chimit -Original Message-From: Alex Kinch [mailto:[EMAIL PROTECTED]Sent: dinsdag 2 mei 2006 21:20To: Rene KluwenCc: users@kannel.orgSubject: Re: sqlbox, smsbox-route and dlr rerouting help! Sorry, my misunderstanding! But I seem to remember being able to run sqlbox on a previous build of Kannel (quite a while back) without any problems. But then I was sending messages via smsbox, not sqlbox. Alex On 5/2/06, Rene Kluwen [EMAIL PROTECTED] wrote: Sorry... let me correct this... I do know what is going wrong... sqlbox doesn't do message ack-ing nor DLR requests... It is a missing feature... So only the messages are acked that are being relayed through smsbox. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex KinchSent: dinsdag 2 mei 2006 19:26 To: users@kannel.orgSubject: sqlbox, smsbox-route and dlr rerouting help! Hi, Hopefully someone can solve this mystery for me. I'm using sqlbox compiled into cvs-20060424, using MySQL 4.1.18. Incoming messages weren't being routed into sqlbox, so I added: group = smsbox-routesmsbox-id = smsboxsmsc-ids = "(smsc1);(smsc2)" (smsc1) and (smsc2) being the names of some SMPP connections. Everything is fine now, however when delivery reports come back in some of them go into sqlbox but appear not to be ack'd by sqlbox - or for some other reason remain in the Kannel store. Anything between 50-200 DLRs makeit to sqlbox before it seems to hit a limit and no more come in to the table. None of the DLR entries in sqlbox seem to go any further so the DLR URL is not called either. I do notice throughout the log the following entries for both(smsc1) and (smsc2) as well: INFO: DLR rerouting for smsc id (smsc1) disabled I have been speaking to Rene (Kluwen) and working through this issue with him, but neither of us are really too sure what is going wrong. Maybe Stipe or someone could advise me if these problems may be caused by something to do with lack of DLR rerouting, and if so, how do I enable the rerouting? Kannel.conf is below. Thanks in advance! Alex -- group = coreadmin-port = 13000wapbox-port = 13002admin-port-ssl = nosmsbox-port = 13001admin-password = *REMOVED*status-password = *REMOVED*admin-deny-ip = *REMOVED*admin-allow-ip = *REMOVED* log-file = "/home/kannel/logs/kannel.log"log-level = 0box-deny-ip = *REMOVED*box-allow-ip = *REMOVED*unified-prefix = "+44,0044,44,0"store-file = "/home/kannel/logs/kannel.store" dlr-storage = mysqlwdp-interface-name = "*" # SQL BOX CONFIG group = mysql-connectionid = dlr-dbhost = localhostusername = *REMOVED*password = *REMOVED*database = *REMOVED*max-connections = 5 group = mysql-connectionid = sqlbox-dbhost = localhostusername = *REMOVED*password = *REMOVED*database = *REMOVED*max-connections = 10 group = dlr-dbid = dlr-dbtable = dlrfield-smsc = smscfield-timestamp = tsfield-destination = destinationfield-source = sourcefield-service = servicefield-url = "">field-mask = maskfield-status = statusfield-boxc-id = boxc # SQL BOX CONFIG group = sqlbox# id corresponds to id in group = mysql-connection.# this is analogous to id in group = dlr-dbid = sqlbox-db# smsbox-id indicates the box where SQL-injected messages appear to be coming fr smsbox-id = sqlbox# bearerbox host to connect tobearerbox-host = localhost# smsbox port to be listening onsmsbox-port = 13005smsbox-port-ssl = false# sql-log-table is the table used to log all sent messages sql-log-table = sent_sms# sql-insert-table is the table that is monitored for new messages to sendsql-insert-table = send_sms# global sender: If no sender is specified in sql-insert-table then this# value is used. global-sender = 06121log-file = "/home/kannel/logs/sqlbox.log"log-level = 0ssl-client-certkey-file = ""ssl-server-cert-file = ""ssl-server-key-file = ""ssl-trusted-ca-file = "" # SMSC CONNECTIONS group = smscsmsc = smppsmsc-id = (smsc1)allowed-smsc-id = (smsc1);(smsc1)_01host = *REMOVED*port = *REMOVED*transceiver-mode = truesystem-type =
RE: sqlbox, smsbox-route and dlr rerouting help!
I think what happening is: MO traffic is routed to your smsbox (through sqlbox). DLR's are routed to sqlbox and end there. Rene Kluwen Chimit -Original Message-From: Alex Kinch [mailto:[EMAIL PROTECTED]Sent: dinsdag 2 mei 2006 23:17To: Rene KluwenCc: users@kannel.orgSubject: Re: sqlbox, smsbox-route and dlr rerouting help! 1. Ok, understood. 2. I am seeing messages in the store file with the content of 'ACK/' - although they look like normal DLR messages (with source, recipient, smsc, etc). Are these just DLRs or something else? Sorry if that's a really stupid question, it's been a long day :) Guess the question is how quick can we work together to fix sqlbox to ACK? I can live without DLR for a while as it's not difficult to parse the sqlbox database to do DLR stuff. One thing that is strange, it's only DLRs that remain in the store file. Normal MO traffic gets through to sqlbox ok. Is it because by the fact that smsbox is receiving MO traffic that the ACKing is being carried out, but because DLRs aren't going through it's not happening for those? Alex On 5/2/06, Rene Kluwen [EMAIL PROTECTED] wrote: 1. Yes, it differs if you send messages via smsbox or sqlbox 2. I think they changed behaviour bearerbox to require an ACK at the moment that delayed writing was introduced (if I am not mistaken). Rene Kluwen Chimit -Original Message-From: Alex Kinch [mailto: [EMAIL PROTECTED]]Sent: dinsdag 2 mei 2006 21:20To: Rene KluwenCc: users@kannel.org Subject: Re: sqlbox, smsbox-route and dlr rerouting help! Sorry, my misunderstanding! But I seem to remember being able to run sqlbox on a previous build of Kannel (quite a while back) without any problems. But then I was sending messages via smsbox, not sqlbox. Alex On 5/2/06, Rene Kluwen [EMAIL PROTECTED] wrote: Sorry... let me correct this... I do know what is going wrong... sqlbox doesn't do message ack-ing nor DLR requests... It is a missing feature... So only the messages are acked that are being relayed through smsbox. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex KinchSent: dinsdag 2 mei 2006 19:26 To: users@kannel.orgSubject: sqlbox, smsbox-route and dlr rerouting help! Hi, Hopefully someone can solve this mystery for me. I'm using sqlbox compiled into cvs-20060424, using MySQL 4.1.18. Incoming messages weren't being routed into sqlbox, so I added: group = smsbox-routesmsbox-id = smsboxsmsc-ids = "(smsc1);(smsc2)" (smsc1) and (smsc2) being the names of some SMPP connections. Everything is fine now, however when delivery reports come back in some of them go into sqlbox but appear not to be ack'd by sqlbox - or for some other reason remain in the Kannel store. Anything between 50-200 DLRs makeit to sqlbox before it seems to hit a limit and no more come in to the table. None of the DLR entries in sqlbox seem to go any further so the DLR URL is not called either. I do notice throughout the log the following entries for both(smsc1) and (smsc2) as well: INFO: DLR rerouting for smsc id (smsc1) disabled I have been speaking to Rene (Kluwen) and working through this issue with him, but neither of us are really too sure what is going wrong. Maybe Stipe or someone could advise me if these problems may be caused by something to do with lack of DLR rerouting, and if so, how do I enable the rerouting? Kannel.conf is below. Thanks in advance! Alex -- group = coreadmin-port = 13000wapbox-port = 13002admin-port-ssl = nosmsbox-port = 13001admin-password = *REMOVED*status-password = *REMOVED*admin-deny-ip = *REMOVED*admin-allow-ip = *REMOVED* log-file = "/home/kannel/logs/kannel.log"log-level = 0box-deny-ip = *REMOVED*box-allow-ip = *REMOVED*unified-prefix = "+44,0044,44,0"store-file = "/home/kannel/logs/kannel.store" dlr-storage = mysqlwdp-interface-name = "*" # SQL BOX CONFIG group = mysql-connectionid = dlr-dbhost = localhostusername = *REMOVED*password = *REMOVED*database = *REMOVED*max-co
RE: ID column in SQLBOX
Okies... Some info. The SMPP message ID is managed internally in Kannel and is NOT forwarded to smsbox and/or sqlbox. If you are looking for this value, you are out of luck. The Msg struct has an ID value that is stored in a long(?) if I remember correctly. The format that you mention is just a character representation of the same field. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Nikola Goran CuturaSent: dinsdag 9 mei 2006 17:49To: users@kannel.orgSubject: Re: ID column in SQLBOX Hi Luis, Thank you for your response. I already read this mail and it confuses me even more. As you can see, format of column 'id' is Format is: ----and I assume that '-' is a dash, not subtraction operator. Therefore, I think this implies that 'id' should be VARCHAR. However, in my table it is BIGINT, numeric type.Is there anyone who maintains SQLBOX? Some info, please?Regards,NGC - Original Message - From: Luis Valencia To: 'Nikola Goran Cutura' ; users@kannel.org Sent: Tuesday, May 09, 2006 6:06 PM Subject: RE: ID column in SQLBOX Hi Nikola, This will definitely answer your question, regardsid: Description: The unique ID assigned to each SMS handled by the Kannel system. Supported Values: Format is: ---- - time_low - time_mid - time_hi_and_version - clock_sequence - node_id (usually interface ethernet address that this SMS was received from) Kannel SMS Msg structure equivalent: sms.id also check this thread for the complete description of all the fields. http://www.mail-archive.com/users@kannel.org/msg04084.html Luis Valencia From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nikola Goran CuturaSent: Martes, 09 de Mayo de 2006 01:31 a.m.To: users@kannel.orgSubject: Re: ID column in SQLBOX Hi Luis, There is column SQL_ID BIGINT(20) AUTOINCREMENT. That is the first column in table. Besides this one, there is column ID BIGINT(20), 11th column in table. This ID is of my interest. Do you know anything about it? Are there any values in your table? Regards, NGC - Original Message - From: Luis Valencia To: 'Nikola Goran Cutura' ; users@kannel.org Sent: Tuesday, May 09, 2006 1:02 AM Subject: RE: ID column in SQLBOX Hi Nikola, This column it should be auto increment, so it is suppose to be the correlative of the records on the database. Cheers. Luis Valencia From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nikola Goran CuturaSent: Lunes, 08 de Mayo de 2006 03:45 p.m.To: users@kannel.orgSubject: ID column in SQLBOX Hi, I noticed that column ID in my sms_log table is always empty. Type of this column is BIGINT(20). Column that holds message id in DLR table is 'TS' and is of type VARCHAR(40). What is the purpose of ID column in SQLBOX? Is it an error in my setup that causes this column to be empty or is it regular? Regards, NGC
RE: [Kannel 0000322]: Clickatell http driver patch - Testers wanted!- Usage info
I think the best way to answer this question is to redirect you to the source code. The Clickatell API code is located in smsc/smsc_http.c. There is also other HTTP based SMSC's in there. You can look at them for an example. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Robert Sent: dinsdag 9 mei 2006 12:06 To: users@kannel.org Subject: RE: [Kannel 322]: Clickatell http driver patch - Testers wanted!- Usage info Rene, I'd like to test this patch out, but don't have a Clickatell account. I do have an account at another sms site, offering a HTTP API. What and where should I change in your patch, to make it compatible with the other site? In other words, what is specific to Clickatell? Thanks, Robert
RE: SQLBOX question
The sent_sms and send_sms tables are NOT used by any other module but sqlbox itself. If you want to send messages by sqlbox, you will have to manually insert them in the send_sms table. The sent_sms table is used (indeed) to store outgoing incoming messages as well as DLR's. This is just a log. The smsbox_list empty! error message can possibly be fixed by an smsbox-route section in your kannel.conf. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nikola Goran Cutura Sent: woensdag 10 mei 2006 0:46 To: Mi Reflejo Cc: users@kannel.org Subject: Re: SQLBOX question Thanks for the prompt answer! I read the sqlbox FAQ but my understanding was that sqlbox sits in the middle so that bearerbox and smsbox don't see each other. What confuses me is sqlbox insert table. It is supposed to contain messages (MO/MT) not yet processed by their destination handlers (bearerbox for MT, smsbox for MO). So I realized that having beaerbox running with sqlbox connected to it would accumulate MO messages until smsbox is started. Is sqlbox insert table used only for manual inserts? E.g. if I want to bypass http sendsms and insert sms directly into insert table? Does smsbox use insert table? Does bearerbox? Regards, NGC - Original Message - From: Mi Reflejo [EMAIL PROTECTED] To: Nikola Goran Cutura [EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 12:26 AM Subject: Re: SQLBOX question yes, there is an understanding problem. from sqlbox FAQ: Q. Does sqlbox replace sms box or is It an additional module that must be run? A. sqlbox is an additional module. You now have to start kannel in the following manner: 1st: bearerbox conf-file 2nd: sqlbox conf-file 3rd: smsbox conf-file and wapbox conf-file A picture of the new situation (with sqlbox included is as follows): http request -- [ smsbox ] -- [ sqlbox ] -- [ bearerbox ] -- sms gateway I hope this picture make things clear. In text: sqlbox is sitting in between smsbox and bearerbox, passing all messages back and forth between the two. As a side-effect, also the messages that are passed back and forth are logged in the sent_sms table. SMS routing can't be done without SMSBOX. Regards, Anselmo
RE: Looking for a CDMA SMS and WAP gateway (2nd posting)
Kannel DOES support CDMA networks in some way. You just need an upstream (SMPP or thelike) provider that delivers to those kinds of networks. As for using Kannel with a CDMA SMS modem, I haven't found phones/modems that support the extended GSM AT command set. This is currently the only command set that is implemented. So if you want to use Kannel with a virtual SMSC (a phone or modem) you are out of luck. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stéphane Bruno Sent: donderdag 18 mei 2006 19:09 To: users@kannel.org Subject: Looking for a CDMA SMS and WAP gateway (2nd posting) Hello, It seams that kannel only supports GSM networks, but I would like also to support CDMA networks. Can I do that with Kannel? If yes, how? If no, what other product I could use to support SMS and WAP on CDMA networks, preferably open source? It is my second posting. Can someone help me? Thanks, Stéphane
RE: Looking for a CDMA SMS and WAP gateway (2nd posting)
Is this using the ETSI extended AT set? Or some proprietary interface? Because that is what Nokia does with their CDMA phones. And it doesn't work with Kannel. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alex Antropoff Sent: vrijdag 19 mei 2006 10:47 To: users@kannel.org Subject: Re: Looking for a CDMA SMS and WAP gateway (2nd posting) On Fri, May 19, 2006 at 04:51:50AM +0200, Rene Kluwen wrote: RK Kannel DOES support CDMA networks in some way. RK You just need an upstream (SMPP or thelike) provider that delivers to those RK kinds of networks. RK RK As for using Kannel with a CDMA SMS modem, I haven't found phones/modems RK that support the extended GSM AT command set. RK This is currently the only command set that is implemented. So if you want RK to use Kannel with a virtual SMSC (a phone or modem) you are out of luck. RK RK Rene Kluwen RK Chimit AFAIK All SK Teletech phones can send sms using AT commands. -- Regards, Alex Antropoff
FW: [Kannel 0000347]: Invalid Password , though it is CORRECT
How many characters is your password? Rene Kluwen Chimit -Original Message- From: Apache [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: zondag 28 mei 2006 19:03 Subject: [Kannel 347]: Invalid Password , though it is CORRECT The following NEW bug has been ADDED. === http://bugs.kannel.org/view_bug_page.php?f_id=347 === Reporter: ihabtawfig Handler: === Project:Kannel Bug ID: 347 Category: SMSC SMPP Reproducibility:always Severity: block Priority: normal Status: new === Date Submitted: 05-28-06 18:02 BST Last Modified: 05-28-06 18:02 BST === Summary:Invalid Password , though it is CORRECT Description: Hi , whenever bearerbox is started , trying connecting to smpp it returns Invalid password , I talked to smsc guys and confirm the password many times , then we delete the account andd recreate it again , but the problem persist , here is my conf file : group = core admin-port = admin-password=password log-file=/var/log/bearerbox.log log-level=1 admin-deny-ip=210.215.1.1 admin-allow-ip=127.0.0.1 smsbox-port = wapbox-port= box-allow-ip=*.*.*.* store-file=/var/log/kan-sms.log dlr-storage=internal group=smsc smsc=smpp smsc-id=gawal host=*.*.*.*.* port = receive-port= smsc-username= username smsc-password= password system-type= VMA source-addr-autodetect=1 and here is bearerbox log: Kannel bearerbox II version 1.4.0 starting 2006-05-28 19:01:52 [29209] [0] INFO: Loading store file `/var/log/kan-sms.log' 2006-05-28 19:01:52 [29209] [0] INFO: Store-file size 0, starting to unpack 2006-05-28 19:01:52 [29209] [0] INFO: Retrieved 0 messages, non-acknowledged messages: 0 2006-05-28 19:01:52 [29209] [0] INFO: MAIN: Start-up done, entering mainloop 2006-05-28 19:01:52 [29209] [7] DEBUG: Thread 7 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 29209. 2006-05-28 19:01:52 [29209] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) maps to pid 29209. 2006-05-28 19:01:52 [29209] [8] DEBUG: sms_router: time to sleep 2006-05-28 19:01:52 [29209] [8] DEBUG: sms_router: list_len = 0 2006-05-28 19:01:52 [29209] [9] DEBUG: Thread 9 (gw/bb_boxc.c:wdp_to_wapboxes) maps to pid 29209. 2006-05-28 19:01:52 [29209] [9] DEBUG: wdp_to_wapboxes: destroying lists 2006-05-28 19:01:52 [29209] [9] DEBUG: Thread 9 (gw/bb_boxc.c:wdp_to_wapboxes) terminates. 2006-05-28 19:01:52 [29209] [10] DEBUG: Thread 10 (gw/bb_boxc.c:wapboxc_run) maps to pid 29209. 2006-05-28 19:01:52 [29209] [11] DEBUG: Thread 11 (gw/bearerbox.c:wdp_router) maps to pid 29209. 2006-05-28 19:01:54 [29209] [7] DEBUG: SMPP[mysmpp]: Sending PDU: 2006-05-28 19:01:54 [29209] [7] DEBUG: SMPP PDU 0x8aafda8 dump: 2006-05-28 19:01:54 [29209] [7] DEBUG: type_name: bind_transceiver 2006-05-28 19:01:54 [29209] [7] DEBUG: command_id: 9 = 0x0009 2006-05-28 19:01:54 [29209] [7] DEBUG: command_status: 0 = 0x 2006-05-28 19:01:54 [29209] [7] DEBUG: sequence_number: 1 = 0x0001 2006-05-28 19:01:54 [29209] [7] DEBUG: system_id: username 2006-05-28 19:01:54 [29209] [7] DEBUG: password: password 2006-05-28 19:01:54 [29209] [7] DEBUG: system_type: VMA 2006-05-28 19:01:54 [29209] [7] DEBUG: interface_version: 52 = 0x0034 2006-05-28 19:01:54 [29209] [7] DEBUG: addr_ton: 0 = 0x 2006-05-28 19:01:54 [29209] [7] DEBUG: addr_npi: 0 = 0x 2006-05-28 19:01:54 [29209] [7] DEBUG: address_range: NULL 2006-05-28 19:01:54 [29209] [7] DEBUG: SMPP PDU dump ends. 2006-05-28 19:01:59 [29209] [7] WARNING: SMPP: PDU NULL terminated string has no NULL. 2006-05-28 19:01:59 [29209] [7] DEBUG: SMPP[mysmpp]: Got PDU: 2006-05-28 19:01:59 [29209] [7] DEBUG: SMPP PDU 0x8aafda8 dump: 2006-05-28 19:01:59 [29209] [7] DEBUG: type_name: bind_transceiver_resp 2006-05-28 19:01:59 [29209] [7] DEBUG: command_id: 2147483657 = 0x8009 2006-05-28 19:01:59 [29209] [7] DEBUG: command_status: 14 = 0x000e 2006-05-28 19:01:59 [29209] [7] DEBUG: sequence_number: 1 = 0x0001 2006-05-28 19:01:59 [29209] [7] DEBUG: system_id: NULL 2006-05-28 19:01:59 [29209] [7] DEBUG: SMPP PDU dump ends. 2006-05-28 19:01:59 [29209] [7] ERROR: SMPP[gawal]: SMSC rejected login to transmit, code 0x000e (Invalid Password). 2006-05-28 19:01:59 [29209] [7] ERROR: SMPP[gawal]: I/O error or other error. Re-connecting. 2006-05-28 19:01:59 [29209] [7] DEBUG: Thread 7 (gw/smsc/smsc_smpp.c:io_thread) terminates. kinsly advice where is the problem as we tried everything . ===
RE: get kannel's aswers
Probably this is a bug or permissions issue in your PHP script. Off topic on this list. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: maandag 29 mei 2006 13:00 To: users@kannel.org Subject: get kannel's aswers Hello everybody, I want to get kannel's answers when sending sms and save them on a database. But if I use file() function on the request url it doesn't work. Could anybody explain why? How you get those ansvers? Thank You! This message was sent using IMP, the Internet Messaging Program.
sqlbox updates
CVS HEAD version of sqlbox has changed. Changes: - Applied patch of Martin [EMAIL PROTECTED] for the bug: SQLbox is not reading smsbox-port. It is hardcoded to 13005. - Applied patch of Martin [EMAIL PROTECTED]: Delivery reports are now stored as 'DLR' in the MOMT database field. This makes it easier to filter them out if you are only interested in MO messages while reading the sent_sms table. - Bug fixed by Rene Kluwen [EMAIL PROTECTED]: sqlbox now reads the port value from the mysql-connection group. - Added UPGRADE text file.
RE: sqlbox with remote mysql database
Current CVS version of sqlbox now does read and use the port parameter in group = mysql-connection. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Roman Yeryomin Sent: dinsdag 30 mei 2006 8:46 To: Stipe Tolj Cc: users@kannel.org Subject: Re: sqlbox with remote mysql database On Saturday 27 May 2006 15:03, Stipe Tolj wrote:: Roman Yeryomin wrote: On Tuesday 16 May 2006 20:35, Roman Yeryomin wrote:: I've compiled latest cvs head with mysql support but seems that sqlbox is working only with localhost database. When I try to use remote mysql database I get this error: 2006-05-16 20:12:29 [27344] [0] ERROR: MYSQL: Can't connect to MySQL server on 'x.x.x.x' (111) 2006-05-16 20:12:29 [27344] [0] ERROR: MYSQL: can not connect to database! 2006-05-16 20:12:29 [27344] [0] ERROR: MYSQL: Can't connect to MySQL server on 'x.x.x.x' (111) 2006-05-16 20:12:29 [27344] [0] PANIC: SQLBOX: MySQL: database pool has no connections! 2006-05-16 20:12:29 [27344] [0] PANIC: sqlbox(gw_panic+0x175) [0x806c43a] 2006-05-16 20:12:29 [27344] [0] PANIC: sqlbox(sqlbox_init_mysql+0x405) [0x8053f70] 2006-05-16 20:12:29 [27344] [0] PANIC: sqlbox(sqlbox_init_sql+0x18) [0x8052798] 2006-05-16 20:12:29 [27344] [0] PANIC: sqlbox [0x804fd3c] 2006-05-16 20:12:29 [27344] [0] PANIC: sqlbox(main+0x140) [0x804ff23] 2006-05-16 20:12:29 [27344] [0] PANIC: /lib/tls/libc.so.6 (__libc_start_main+0xd0) [0xb79f8e40] 2006-05-16 20:12:29 [27344] [0] PANIC: sqlbox [0x804ecc1] Connecting to that host with telnet or mysql client I have no problems. Does anyone know where could be the problem? seems like conf-port is not working in gwlib/dbpool_mysql.c -- I hardcoded 3306 and now I can connect to remote database Is it a bug or I've misconfigured something? can you forward us the config with blanked-out password of course? Stipe my mysql-connection group config (or you need full config?): group = mysql-connection id = mydlr #host = localhost host = x.x.x.x #port = 3306 username=kannel password= database = kannel max-connections = 10 Roman
RE: sqlbox updates
Stipe, The short answer: Yes, I am. If you had looked you would have seen :) Rene Kluwen Chimit -Original Message- From: Stipe Tolj [mailto:[EMAIL PROTECTED] Sent: donderdag 1 juni 2006 23:47 To: Rene Kluwen Cc: users@kannel.org Subject: Re: sqlbox updates Rene Kluwen wrote: CVS HEAD version of sqlbox has changed. Changes: - Applied patch of Martin [EMAIL PROTECTED] for the bug: SQLbox is not reading smsbox-port. It is hardcoded to 13005. - Applied patch of Martin [EMAIL PROTECTED]: Delivery reports are now stored as 'DLR' in the MOMT database field. This makes it easier to filter them out if you are only interested in MO messages while reading the sent_sms table. - Bug fixed by Rene Kluwen [EMAIL PROTECTED]: sqlbox now reads the port value from the mysql-connection group. - Added UPGRADE text file. Rene, are you maintaining a ChangeLog in the top level directory of the CVS module for sqlbox? I'd suggest that would be a way to go ;) Stipe --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org ---
RE: Message ID higher than 2147483647
Stipe, Are you maintaining a ChangeLog of the ChangeLog? ;) -- ME -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stipe Tolj Sent: vrijdag 2 juni 2006 1:15 To: Mi Reflejo Cc: users@kannel.org Subject: Re: Message ID higher than 2147483647 Mi Reflejo wrote: Well. Actually the patch was mine ;) wups... need to correct the credits in ChangeLog then.. :) Stipe --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org ---
RE: sqlbox mysql re-connection
I will choose b) which is most flexible and also takes care of restarted mysqld's. I will try to fix this one of these days... but... Isn't this something that dbpool (in particular dbpool_consume) should take care of? I was expecting this should go automatically... in the same manner as bearerbox does the trick. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stipe Tolj Sent: zaterdag 3 juni 2006 5:44 To: Alejandro Guerrieri Cc: users@kannel.org Subject: Re: sqlbox mysql re-connection Alejandro Guerrieri wrote: Yep, that's a problem I'm exeperiencing also. Additionally, sqlbox does not seem to start if the link to mysql it's not available at boot time. It just quits (or seems to, it doesn't show on the boxes list). IMHO a proper behaviour would be to act in a way similar as the bearerbox does with the SMSC's, retrying each X seconds. yep, agreed... actually a policy formulation would be the firts step. Rene, what is the intention of sqlbox: a) connect if possible, otherwise die and let the user know (via log file) b) assume that dependancy systems (mysql server) can be unavailable and infinetly try to gain access again ? Stipe --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org ---
RE: SMPP 3.4 Optional params
I think Alex is right here. Optional parameters are IN the SMPP specs (at least the 3.4 version). And according to common believe in this list, SMPP specs *should* be followed as closely as possible. It shouldn't be THAT hard to add some configuration parameters that will be included as optional SMPP params in an submit_sm pdu. Maybe I am oversimplifying things now *goes to read some specs* *comes back*. How about we add something to the HTTP interface like http://localhost:port:/cgi-bin/sendsms?username=password=text=optional1=chargetypeoptional2=chargevalue. Something like this? I recall this has been proposed before. Admitted, these parameters will only be valid for the SMPP driver (and optionally some custom HTTP drivers). But considering that in normal life "everybody" only uses SMPP, I think it is not a bad idea to consider this a valid "patch". Alternatively (talking about patches), this can be an add-on to Kannel like sqlbox is. In the near future, I may have to deal with mBlox myself. Is anybody up for a bounty? (mBlox, are you listening? ;]). Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Alex KinchSent: maandag 5 juni 2006 21:46To: Mi ReflejoCc: users@kannel.orgSubject: Re: SMPP 3.4 Optional params There was an Mblox patch floating around a while back that might be a good starting point for these custom parameters. Perhaps its a good time to do something a bit more permanent to the SMPP driver and the rest of Kannel so it supports the addition of carrier-specific 'optional' parameters? There's one thing following standards to the exact letter, but another having to deal with some of these weird and wonderful aggregators/carriers out in the real world! Just my 1p worth.. On 6/5/06, Mi Reflejo [EMAIL PROTECTED] wrote: If you look closer into Simplewire_SMPP_ShortCodes.pdf, optionalparameters are included only in MT or MO messages (submit_sm and deliver_sm).You just need to take care sending interface_version v3.4 in bind operation.Nonetheless, kannel (as much as i know) doesn't handle optionalparameters in deliver_sm/submit_sm. So, maybe you want to take a look into the sources and make some modifications for your needs.If you need some help with that, just tell me.Regards,Martín Conte.On 6/5/06, Leonard [EMAIL PROTECTED] wrote: Firstly,There are optional paramters to SMPP 3.4. - Please review the specification, or look here: http://www.alvento.com/productos/sms/smpp/smpp34.pdf section 5.3 Optional parameter are required to set carrier and billing info mation for messagin into the USA where the aggregator does not supply NP lookups. (or they cost extra). What needs to be achieved can be found here: http://www.simplewire.com/downloads/files/Simplewire_SMPP_ShortCodes.pdf - Original Message - From: "Mi Reflejo" [EMAIL PROTECTED] To: "Leonard" [EMAIL PROTECTED] Cc: users@kannel.org Sent: Monday, June 05, 2006 5:59 PM Subject: Re: SMPP 3.4 Optional params There are no "optional parameters" in bind operations. (Maybe you are talking about system_type?) Kannel follows strictly SMPP specs. If you need to add any parameter which isn't in specs you should look to other way or take a look into sources by yourself :). Otherwise, if SimpleWire follows SMPP specs, kannel will help you. Regards, Martín Conte. On 6/5/06, Leonard [EMAIL PROTECTED] wrote: Hi All, I need to set optional params on a SMPP 3.4 Bind, specifically for a bind to SimpleWire. These optional params set carrier, billing and other requirements.Is there anyway to do this with Kannel, or will I have to use their XML interface? Regards Leonard
RE: running makefile errors
Which is the shell that you are running ./configure from? It needs to be bash. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of raymond tsang Sent: dinsdag 13 juni 2006 4:07 To: users@kannel.org Subject: running makefile errors I am using 1.40 version of kannel source in cygwin, after running ./configure, it's Ok, but when try to make, it got over 100 errors ../Makefile: line 10: SHELL: command not found ../Makefile: line 13: srcdir: command not found The following is part of Makefile. /// # Generated automatically from Makefile.in by configure. # # Makefile.in for Kannel, the Open Source WAP and SMS Gateway. # # This file is currently maintained manually. There is currently # no generation out of automake. This will change as soon as we # switch to our new autoconf/configure build process. # SHELL = /bin/sh srcdir = . How to fix this? _ Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk
RE: make error
I once fixed this error (on some systems) with: CFLAGS=-I/path/to/krb5.h ./configure [configure options] Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of sarwat jabeen Sent: dinsdag 13 juni 2006 19:38 To: users@kannel.org Subject: make error the following error occurs with the make command : [EMAIL PROTECTED] gateway-1.4.0]# make gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_alog.o -c gw/bb_alog.c In file included from /usr/include/openssl/ssl.h:179, from gwlib/conn.h:274, from gwlib/gwlib.h:94, from gw/bb_alog.c:64: /usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory In file included from /usr/include/openssl/ssl.h:179, from gwlib/conn.h:274, from gwlib/gwlib.h:94, from gw/bb_alog.c:64: /usr/include/openssl/kssl.h:132: parse error before krb5_enctype /usr/include/openssl/kssl.h:134: parse error before FAR /usr/include/openssl/kssl.h:135: parse error before '}' token /usr/include/openssl/kssl.h:147: parse error before kssl_ctx_setstring /usr/include/openssl/kssl.h:147: parse error before '*' token /usr/include/openssl/kssl.h:148: parse error before '*' token /usr/include/openssl/kssl.h:149: parse error before '*' token /usr/include/openssl/kssl.h:149: parse error before '*' token /usr/include/openssl/kssl.h:150: parse error before '*' token /usr/include/openssl/kssl.h:151: parse error before kssl_ctx_setprinc /usr/include/openssl/kssl.h:151: parse error before '*' token /usr/include/openssl/kssl.h:153: parse error before kssl_cget_tkt /usr/include/openssl/kssl.h:153: parse error before '*' token /usr/include/openssl/kssl.h:155: parse error before kssl_sget_tkt /usr/include/openssl/kssl.h:155: parse error before '*' token /usr/include/openssl/kssl.h:157: parse error before kssl_ctx_setkey /usr/include/openssl/kssl.h:157: parse error before '*' token /usr/include/openssl/kssl.h:159: parse error before context /usr/include/openssl/kssl.h:160: parse error before kssl_build_principal_2 /usr/include/openssl/kssl.h:160: parse error before context /usr/include/openssl/kssl.h:163: parse error before kssl_validate_times /usr/include/openssl/kssl.h:163: parse error before atime /usr/include/openssl/kssl.h:165: parse error before kssl_check_authent /usr/include/openssl/kssl.h:165: parse error before '*' token /usr/include/openssl/kssl.h:167: parse error before enctype In file included from gwlib/conn.h:274, from gwlib/gwlib.h:94, from gw/bb_alog.c:64: /usr/include/openssl/ssl.h:909: parse error before KSSL_CTX /usr/include/openssl/ssl.h:915: `debug' redeclared as different kind of symbol gwlib/log.h:114: previous declaration of `debug' /usr/include/openssl/ssl.h:931: parse error before '}' token make: *** [gw/bb_alog.o] Error 1 thanks 4 the help regards, sarwat and tayyaba _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
RE: sqlbox mysql re-connection
1. Fixing the bug: Is being worked on. Be patient. 2. Workaround: Yes, there is. Just restart sqlbox after restarting mysqld :) Rene Kluwen Chimit -Original Message- From: Roman Yeryomin [mailto:[EMAIL PROTECTED] Sent: woensdag 14 juni 2006 9:19 To: users@kannel.org Cc: Stipe Tolj; Rene Kluwen Subject: Re: sqlbox mysql re-connection On Sunday 04 June 2006 20:33, Stipe Tolj wrote:: Rene Kluwen wrote: I will choose b) which is most flexible and also takes care of restarted mysqld's. I will try to fix this one of these days... but... Isn't this something that dbpool (in particular dbpool_consume) should take care of? I was expecting this should go automatically... in the same manner as bearerbox does the trick. yep, you're right. The abstraction layer should take care. The application layer (sqlbox) should relly that there is a connection, if a connection is possible. dbpool would have to take care for this. Stipe so how can we get rid of this bug? I assume this is a bug because the whole thing stops working... or a least a workaround?
RE: Massive SMS sent
I've heard of benchmarks from others that sending that many messages via sqlbox goes a lot faster than through the http interface. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Chronis NikosSent: vrijdag 16 juni 2006 13:36To: users@kannel.orgSubject: Massive SMS sent Hello What is the best way to send massive SMS at once? (about 10.000 SMS dynamicly) I use a PHP script actually doing a loop to smsbox on 127.0.0.1. Is it another way better Regards, Nikos
RE: Don't remove DLR from mysql database
See the dlr-url parameter in the users guide. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Rehuel Lobato de MesquitaSent: maandag 19 juni 2006 0:52To: 'Chronis Nikos'Cc: users@kannel.orgSubject: RE: Don't remove DLR from mysql database Hey Nikos, How can I, then, get a "delivery report" in my own application database? Where can I put a query to change the status of the message in my application, when the message is delivered, cause how will the probram know if the message is delevered? Rehuel From: Chronis Nikos [mailto:[EMAIL PROTECTED] Sent: Sunday 18 June 2006 12:41 PMTo: [EMAIL PROTECTED]Cc: users@kannel.orgSubject: Don't remove DLR from mysql database Hello, Yes it is possible, I did it long time, but experienced some problems. You can edit the file gw/dlr.c and gw/dlr_mysql.c to keep it (you have to comment the structure and the remove operation) But this is better tolet the file like they are original. Whyyou will ask, simply because sometime your provider will send youthe ACK/ statement after the delivery receipt. Then you got the delivery (1) before the sent to gateway (8) into your application (if you log) Best Regards,Nikos
RE: Massive SMS sent
Does the Kannel http interface even support long lived connections? Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Chronis NikosSent: woensdag 21 juni 2006 0:06To: users@kannel.orgSubject: Re: Massive SMS sent I found how to accelerate the rate of sendsms over a webinterface. We have just to fork() the process (and log everything in a separated file) What I just finished to do :) Nikos.
RE: how to make change in sendsms scipt???
Usually, a script is written in PHP or ASP. The script calls the sendsms url and returns a text/vnd.wap.wml page to the browser. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of aliraza raza Sent: donderdag 22 juni 2006 0:16 To: users@kannel.org Subject: how to make change in sendsms scipt??? Hello Everyone!! Most of you must have used http interface to send sms messages. My URL for sending sms via http interface is http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=12 3text=hy When a message is sent a http page is opened with Sent written on it, which confirms that the message is sent. well i dont want that http page with sent written after the message is sent. Becasue i want to call this url from a mobile device or wap emulator.A Http page cant be shown on a mobile phone or emulator as only Wml (wireless Markup Langauge) content can be shown on it. Due to that page i cant send message from wap emulator.my smsbox receieves the Http request from where im calling tht url from wap emulator but it dont receives the message. plese tell me where i can find that sendsms script and how i can change that script to generate a wml page rather than http page. if this cant be done then can i make some change in sendsms script so that i dont get that http page with Sent written on it after the message is sent. replies are highly appreciated Regards!! Ali Raza Student IT Pakistan
RE: deferred parameters
SMPP: 7.1.1.1 Absolute Time format This is the default format used by SMPP. Scheduled delivery times and expiry times are specified in their global UTC format, including the quarter hour offset and direction symbol + or -. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alejandro Guerrieri Sent: donderdag 22 juni 2006 1:04 To: users@kannel.org Subject: Re: deferred parameters I've upgraded Kannel to latest CVS release, 20060621 and I still can't defer the messages. I've tried with a simple message: http://myhost:myport/cgi-bin/sendsms?username=myuserpassword=mypassfrom=12 34to=1234567890smsc=mysmsctext=testdeferred=1 But the message gets delivery inmediately. Here's a copy of kannel.log where the PDU is being logged: 2006-06-21 19:48:07 [20158] [48] DEBUG: SMPP PDU 0x8841750 dump: 2006-06-21 19:48:07 [20158] [48] DEBUG: type_name: submit_sm 2006-06-21 19:48:07 [20158] [48] DEBUG: command_id: 4 = 0x0004 2006-06-21 19:48:07 [20158] [48] DEBUG: command_status: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: sequence_number: 2 = 0x0002 2006-06-21 19:48:07 [20158] [48] DEBUG: service_type: NULL 2006-06-21 19:48:07 [20158] [48] DEBUG: source_addr_ton: 2 = 0x0002 2006-06-21 19:48:07 [20158] [48] DEBUG: source_addr_npi: 1 = 0x0001 2006-06-21 19:48:07 [20158] [48] DEBUG: source_addr: * 2006-06-21 19:48:07 [20158] [48] DEBUG: dest_addr_ton: 2 = 0x0002 2006-06-21 19:48:07 [20158] [48] DEBUG: dest_addr_npi: 1 = 0x0001 2006-06-21 19:48:07 [20158] [48] DEBUG: destination_addr: 2006-06-21 19:48:07 [20158] [48] DEBUG: esm_class: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: protocol_id: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: priority_flag: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: schedule_delivery_time: 060621234807000+ 2006-06-21 19:48:07 [20158] [48] DEBUG: validity_period: NULL 2006-06-21 19:48:07 [20158] [48] DEBUG: registered_delivery: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: replace_if_present_flag: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: data_coding: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: sm_default_msg_id: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: sm_length: 4 = 0x0004 2006-06-21 19:48:07 [20158] [48] DEBUG: short_message: test 2006-06-21 19:48:07 [20158] [48] DEBUG: SMPP PDU dump ends. I can see there's a line: schedule_delivery_time: 060621234807000+ It looks like it's GMT +1 time, but the date it's not being offsetted at all (19:48:07 gets translated to 23:48:07 +000). BTW, the server is set to America/Buenos_Aires timezone (GMT -3) so I'm not sure if that's ok or not... I've tried with deferred=1, 60, 6000 and even 6 to no avail, the messages got delivered inmediately. (I even tried with negative values, but I've got an error in return). Maybe the SMSC it's ignoring the parameter, or schedule_delivery_time it's wrong? Regards, -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/ LinkedIn: http://www.linkedin.com/in/aguerrieri On 6/21/06, Alejandro Guerrieri [EMAIL PROTECTED] wrote: Martín, I've read the user-guide (a few thousand times perhaps ;) ) and noticed the ? on the SMPP protocol. That lead me to think that it wasn't tested. My unsuccesful trying didn't help... It was an 1.4.0 at the time of testing. I'll do a new round of tests this week with a new snapshot, maybe it's now fixed (or the SMSC it's ignoring the parameter...). Regards, On 6/21/06, Mi Reflejo [EMAIL PROTECTED] wrote: Yes it's tested and used. Take a look to cvs user guide (http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html) deferrednumber (minutes) Optional. If given, the SMS center will postpone the message to be delivered at now plus this many minutes. Note: you must have your Kannel box time synchronized with the SMS Center. Which version of kannel are you using? If you are using cvs head please post the smpp trace. if not please upgrade to head. Martín. On 6/21/06, Alejandro Guerrieri [EMAIL PROTECTED] wrote: Hi all, Has anyone tried using the deferred parameter with an SMPP link? User-Guide puts a question mark on it, so I assume that means not tested. I've tried with some SMPP links we have without success: the messages get delivered without any delay, blatantly ignoring the deferred parameter setting. Is that a problem related to Kannel, the SMPP protocol or just the SMSC ignoring it? On the other hand, specially if this is something related to protocols, it would be cool to have some sort of soft-deferring, meaning Kannel doing the deferral (on the store-file perhaps). This would work on all kind of links ('at' modems included) since Kannel would be keeping the messages until delivery time. Thank you in advance
RE: deferred parameters
What is your scheduled_delivery_time if you set deferred to a higher value? In this case, the immediate delivery is correct, from a point of view of your SMSC. Because you submit the message at 19:48:07 (Argentina time) and the message should be delivered at 23:48:07 (UTC time). These times are identical. In smsbox.c the msg-sms.deferred field is copied directly from the http parameter. The following code translates this field into the pdu-u.submit_sm.schedule_delivery_time: if (msg-sms.deferred = 0) { struct tm tm = gw_gmtime(time(NULL) + msg-sms.deferred * 60); pdu-u.submit_sm.schedule_delivery_time = octstr_format(%02d%02d%02d%02d%02d%02d000+, tm.tm_year % 100, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); } As far as I can see, this is correct. Still there should be some kind of bug here, because if the log that you show is a pdu from posting the link that is just above the log, the schedule_delivery_time should be 060621234907000+ (note the 8 that is now a 9). Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rene Kluwen Sent: donderdag 22 juni 2006 2:14 To: Alejandro Guerrieri; users@kannel.org Subject: RE: deferred parameters SMPP: 7.1.1.1 Absolute Time format This is the default format used by SMPP. Scheduled delivery times and expiry times are specified in their global UTC format, including the quarter hour offset and direction symbol + or -. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alejandro Guerrieri Sent: donderdag 22 juni 2006 1:04 To: users@kannel.org Subject: Re: deferred parameters I've upgraded Kannel to latest CVS release, 20060621 and I still can't defer the messages. I've tried with a simple message: http://myhost:myport/cgi-bin/sendsms?username=myuserpassword=mypassfrom=12 34to=1234567890smsc=mysmsctext=testdeferred=1 But the message gets delivery inmediately. Here's a copy of kannel.log where the PDU is being logged: 2006-06-21 19:48:07 [20158] [48] DEBUG: SMPP PDU 0x8841750 dump: 2006-06-21 19:48:07 [20158] [48] DEBUG: type_name: submit_sm 2006-06-21 19:48:07 [20158] [48] DEBUG: command_id: 4 = 0x0004 2006-06-21 19:48:07 [20158] [48] DEBUG: command_status: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: sequence_number: 2 = 0x0002 2006-06-21 19:48:07 [20158] [48] DEBUG: service_type: NULL 2006-06-21 19:48:07 [20158] [48] DEBUG: source_addr_ton: 2 = 0x0002 2006-06-21 19:48:07 [20158] [48] DEBUG: source_addr_npi: 1 = 0x0001 2006-06-21 19:48:07 [20158] [48] DEBUG: source_addr: * 2006-06-21 19:48:07 [20158] [48] DEBUG: dest_addr_ton: 2 = 0x0002 2006-06-21 19:48:07 [20158] [48] DEBUG: dest_addr_npi: 1 = 0x0001 2006-06-21 19:48:07 [20158] [48] DEBUG: destination_addr: 2006-06-21 19:48:07 [20158] [48] DEBUG: esm_class: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: protocol_id: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: priority_flag: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: schedule_delivery_time: 060621234807000+ 2006-06-21 19:48:07 [20158] [48] DEBUG: validity_period: NULL 2006-06-21 19:48:07 [20158] [48] DEBUG: registered_delivery: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: replace_if_present_flag: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: data_coding: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: sm_default_msg_id: 0 = 0x 2006-06-21 19:48:07 [20158] [48] DEBUG: sm_length: 4 = 0x0004 2006-06-21 19:48:07 [20158] [48] DEBUG: short_message: test 2006-06-21 19:48:07 [20158] [48] DEBUG: SMPP PDU dump ends. I can see there's a line: schedule_delivery_time: 060621234807000+ It looks like it's GMT +1 time, but the date it's not being offsetted at all (19:48:07 gets translated to 23:48:07 +000). BTW, the server is set to America/Buenos_Aires timezone (GMT -3) so I'm not sure if that's ok or not... I've tried with deferred=1, 60, 6000 and even 6 to no avail, the messages got delivered inmediately. (I even tried with negative values, but I've got an error in return). Maybe the SMSC it's ignoring the parameter, or schedule_delivery_time it's wrong? Regards, -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/ LinkedIn: http://www.linkedin.com/in/aguerrieri On 6/21/06, Alejandro Guerrieri [EMAIL PROTECTED] wrote: Martín, I've read the user-guide (a few thousand times perhaps ;) ) and noticed the ? on the SMPP protocol. That lead me to think that it wasn't tested. My unsuccesful trying didn't help... It was an 1.4.0 at the time of testing. I'll do a new round of tests this week with a new snapshot, maybe it's now fixed (or the SMSC it's ignoring the parameter...). Regards, On 6/21/06, Mi Reflejo [EMAIL PROTECTED] wrote: Yes it's tested and used. Take a look to cvs user guide (http
RE: deferred parameters
I think now we tight the problem down to not Kannel-related but SMSC-related. If we send a valid schedule_delivery_time, but the SMSC delivers immediately it is an issue on their side. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alejandro Guerrieri Sent: donderdag 22 juni 2006 5:34 To: users@kannel.org Subject: Re: deferred parameters Yep, I think that's how it should be... I've made a few more tests with increasing deferred values (0, 1, 60 and 600), here are the results: deferred=0 - 2006-06-21 23:19:59 - 060622021959000+ deferred=1 - 2006-06-21 23:20:07 - 060622022107000+ deferred=60 - 2006-06-21 23:20:11 - 060622032011000+ deferred=600 - 2006-06-21 23:20:19 - 060622122019000+ So now the difference are now consistent with 3:00, 3:01, 4:00 and 13:00 Hours difference (which makes sense with the GMT -3 Timezone. Maybe my former message was sent with deferred=60 ant that's why it showed a 4-hour difference and 3:01 :P ). Anyway, the messages are being delivered right after submital, no matter what I put on the deferred parameter. I've checked SMPP 3.4 and it says as follows: == 5.2.15 schedule_delivery_time This parameter specifies the scheduled time at which the message delivery should be first attempted. It defines either the absolute date and time or relative time from the current SMSC time at which delivery of this message will be attempted by the SMSC. It can be specified in either absolute time format or relative time format. The encoding of a time format is specified in Section 7.1.1. And 7.1.1 says: 7.1.1 Time Format In this interface, all time/date related fields will be in ASCII with the following format: YYMMDDhhmmsstnnp where 'YY' last two digits of the year (00-99) 'MM' month (01-12) 'DD' day (01-31) 'hh' hour (00-23) 'mm' minute (00-59) 'ss' second (00-59) 't' tenths of second (0-9) 'nn' Time difference in quarter hours between local time (as expressed in the first 13 octets) and UTC (Universal Time Constant) time (00-48). 'p' - + Local time is in quarter hours advanced in relation to UTC time. - Local time is in quarter hours retarded in relation to UTC time. R Local time is relative to the current SMSC time. Note: Where responses are reported by the SMSC the local time of the SMSC will be given, and the format will be YYMMDDhhmmss, with the same definitions as above. = So Kannel obviously translates the times to UTC and send that to the SMSC. Even with an offset hanging around, it's a positive delay so should have worsen the referral, and if not, the deferred=600 (10 hours) should have worked isn't it? It doesn't make sense, unless the SMSC it's ignoring the parameter... I'll make some more tests over other links tomorrow and see if I can find some pattern. Please let me know if anybody figures out where the problem could be. TIA Alejandro. On 6/21/06, Rene Kluwen [EMAIL PROTECTED] wrote: What is your scheduled_delivery_time if you set deferred to a higher value? In this case, the immediate delivery is correct, from a point of view of your SMSC. Because you submit the message at 19:48:07 (Argentina time) and the message should be delivered at 23:48:07 (UTC time). These times are identical. In smsbox.c the msg-sms.deferred field is copied directly from the http parameter. The following code translates this field into the pdu-u.submit_sm.schedule_delivery_time: if (msg-sms.deferred = 0) { struct tm tm = gw_gmtime(time(NULL) + msg-sms.deferred * 60); pdu-u.submit_sm.schedule_delivery_time = octstr_format(%02d%02d%02d%02d%02d%02d000+, tm.tm_year % 100, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); } As far as I can see, this is correct. Still there should be some kind of bug here, because if the log that you show is a pdu from posting the link that is just above the log, the schedule_delivery_time should be 060621234907000+ (note the 8 that is now a 9). Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rene Kluwen Sent: donderdag 22 juni 2006 2:14 To: Alejandro Guerrieri; users@kannel.org Subject: RE: deferred parameters SMPP: 7.1.1.1 Absolute Time format This is the default format used by SMPP. Scheduled delivery times and expiry times are specified in their global UTC format, including the quarter hour offset and direction symbol + or -. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alejandro Guerrieri Sent: donderdag 22 juni 2006 1:04 To: users@kannel.org Subject: Re: deferred parameters I've upgraded Kannel to latest CVS release, 20060621 and I still can't defer the messages. I've tried with a simple message: http://myhost:myport/cgi-bin/sendsms?username=myuserpassword=mypassfrom=12 34to=1234567890smsc=mysmsctext=testdeferred=1 But the message gets delivery
RE: SMSC rejected login to transmit (bind failed)??
Usually this means that your username or password or system-type is incorrect. Rene Kluwen Chimit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Raul Martinez Sent: donderdag 22 juni 2006 11:32 To: users@kannel.org Subject: SMSC rejected login to transmit (bind failed)?? What does Bind failed mean? What should I do to establish connection to my SMSC? I have included by config and some debug log text.Thanks in advance? ---config--- group = smsc smsc = smpp smsc-id = smsc3 host = xxx.xxx.xxx.xxx port = 7501 smsc-username = smsc-password = xxx system-type = VMA source-addr-ton = 0 dest-addr-ton = 1 denied-smsc-id =smsc1;smsc2 address-range = transceiver-mode = true ---eof--config--- ---debug--- 2006-06-22 12:51:33 [1928] [8] DEBUG: SMPP[ite]: Sending PDU: 2006-06-22 12:51:33 [1928] [8] DEBUG: SMPP PDU 0x881c410 dump: 2006-06-22 12:51:33 [1928] [8] DEBUG: type_name: bind_transceiver 2006-06-22 12:51:33 [1928] [8] DEBUG: command_id: 9 = 0x0009 2006-06-22 12:51:33 [1928] [8] DEBUG: command_status: 0 = 0x 2006-06-22 12:51:33 [1928] [8] DEBUG: sequence_number: 2 = 0x0002 2006-06-22 12:51:33 [1928] [8] DEBUG: system_id: xxx 2006-06-22 12:51:33 [1928] [8] DEBUG: password: xxx 2006-06-22 12:51:33 [1928] [8] DEBUG: system_type: VMA 2006-06-22 12:51:33 [1928] [8] DEBUG: interface_version: 52 = 0x0034 2006-06-22 12:51:33 [1928] [8] DEBUG: addr_ton: 0 = 0x 2006-06-22 12:51:33 [1928] [8] DEBUG: addr_npi: 0 = 0x 2006-06-22 12:51:33 [1928] [8] DEBUG: address_range: 2006-06-22 12:51:33 [1928] [8] DEBUG: SMPP PDU dump ends. 2006-06-22 12:51:33 [1928] [8] DEBUG: Optional parameter tag (0x0210) 2006-06-22 12:51:33 [1928] [8] DEBUG: Optional parameter length read as 1 2006-06-22 12:51:33 [1928] [8] DEBUG: SMPP[ite]: Got PDU: 2006-06-22 12:51:33 [1928] [8] DEBUG: SMPP PDU 0x881c410 dump: 2006-06-22 12:51:33 [1928] [8] DEBUG: type_name: bind_transceiver_resp 2006-06-22 12:51:33 [1928] [8] DEBUG: command_id: 2147483657 = 0x8009 2006-06-22 12:51:33 [1928] [8] DEBUG: command_status: 13 = 0x000d 2006-06-22 12:51:33 [1928] [8] DEBUG: sequence_number: 2 = 0x0002 2006-06-22 12:51:33 [1928] [8] DEBUG: system_id: SMPP_USSD_SERV 2006-06-22 12:51:33 [1928] [8] DEBUG: sc_interface_version: 52 = 0x0034 2006-06-22 12:51:33 [1928] [8] DEBUG: SMPP PDU dump ends. 2006-06-22 12:51:33 [1928] [8] ERROR: SMPP[ite]: SMSC rejected login to transmit, code 0x000d (Bind Failed). 2006-06-22 12:51:33 [1928] [8] ERROR: SMPP[ite]: I/O error or other error. Re-connecting. 2006-06-22 12:51:33 [1928] [8] ERROR: SMPP[ite]: Couldn't connect to SMS center (retrying in 10 seconds). ---eof--debug---
RE: willy's php function
You cannot send the WAP Bookmark as plain text. You need to encode it in a WAP Push PDU (binary). See the wapforum specs (or however they call it now) for information. Also there should be scripts readily available as it is not too hard to do it. Rene Kluwen Chimit -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Luis ValenciaSent: donderdag 22 juni 2006 20:00To: 'Willy'; users@kannel.orgSubject: RE: willy's php function Hi Willy, after several tries I wasnt able to receive the push. Heres what im doing: http://10.27.1.219:13200/sendsms?user=lvalenciapassword=lvalenciato=50257197283text=http://wap.google.comudh=%06%05%04%0B%84%23%F0 I already try putting a %2B before the phone number, but doesnt change anything. 2006-06-22 11:30:48 [17876] [2] DEBUG: HTTP: Creating HTTPClient for `10.27.1.213'. 2006-06-22 11:30:48 [17876] [3] INFO: smsbox: Got HTTP request /sendsms from 10.27.1.213 2006-06-22 11:30:48 [17876] [3] INFO: sendsms used by lvalencia 2006-06-22 11:30:48 [17876] [3] INFO: sendsms sender:lvalencia:911 (10.27.1.213) to:50257197283 msg:http://wap.google.com 2006-06-22 11:30:48 [17876] [3] DEBUG: message length 21, sending 1 messages 2006-06-22 11:30:48 [17876] [3] DEBUG: Status: 202 Answer: Sent. 2006-06-22 11:30:48 [17876] [3] DEBUG: HTTP: Resetting HTTPClient for `10.27.1.213'. Please help me, what im doing wrong? This doesnt look to difficult to do :S Luis Valencia From: Willy [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 8:05 PMTo: Luis Valencia; users@kannel.orgSubject: Re: willy's php function HI Luis, WAP Push uses the same UDH. Goodluck and please let us know if you successfully accomplish this mission :) Regards Willy - Original Message - From: Luis Valencia To: 'Willy' ; users@kannel.org Sent: Monday, June 19, 2006 11:55 PM Subject: RE: willy's php function Hi Willy, im almost clear now, just one little question. What UDH should I use? Its always the same or it changes for each page send? Sorry if im such annoying, but im confuse about this subject. Luis Valencia From: Willy [mailto:[EMAIL PROTECTED] Sent: Sunday, June 18, 2006 9:13 PMTo: Luis Valencia; users@kannel.orgSubject: Re: willy's php function Hi Luis, You don't need to transform it, Kannel will automatically transform the URL part into hex AFAIK. But if you want to transform some character into hex, I usually use bin2hex() function in PHP. Regards Willy - Original Message - From: Luis Valencia To: 'Willy' ; users@kannel.org Sent: Friday, June 16, 2006 10:17 PM Subject: RE: willy's php function Thank you Willy, and is option 1, I want to send the same wap push to many receivers. Besides my other doubt is about translating the http://wap.google.com (for example) into that Hex sequence Im seeing it has to be used. How do I get the UDH?? How to I make the text sequence?? This is one I found in the list: http://localhost:13013/cgi-bin/sendsms?username=kannelpassword=kannelto=50257197283udh=%06%05%04%0B%84%23%F0text=%07%06%17%B0%96%6C%6F%63%61%6C%68%6F%73%74%3A%39%30%38%30%00%AF%80%8D%95%B4%02%06%6A%00%85%09%03wap.nokia.de%00%01 Thanks in advance for your advice. Luis Valencia From: Willy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 8:13 PMTo: Luis Valencia; users@kannel.orgSubject: Re: willy's php function Hello Luis, There are two possibilities here. 1. You want to send the same WAP Push to many receiver 2. You want to send dynamics WAP Push to many receiver And here is my suggestion and I assume that you use Kannel's /sendsms? script: 1. Just add the receiver number next to the "to" variable (ie:/sendsms?smsc=mysmscfrom=ABCto=123 456 789..) 2. You need to do some loops, or you can use the SQLBox to do the job. Regards Willy - Original Message - From: Luis Valencia To: users@kannel.org Sent: Fr
RE: using fixed TLVs for each SMPP deliver-sm
You can change this in the function msg_to_submit_pdu() in the file gw/smsc/smsc_smpp.c. You can add the TLV's all the way at the end of this function, right before return pdu;. Maybe an easier way for you is to post the code that you have (and that crashes). It should be fairly easy to see what you do wrong. Right now it is late already and am heading for bed. But do mail back to the list with your findings. Rene Kluwen Chimit -Original Message- From: Thomas Gottgens [mailto:[EMAIL PROTECTED] Sent: dinsdag 11 juli 2006 1:34 To: users@kannel.org Subject: using fixed TLVs for each SMPP deliver-sm Hello, i am forced to add one and only one SMPP link to our UCP setup, which requires to send the TLV values its_session_info: 14400 dest_subaddress: 30 with the deliver_sm for billing purposes. This is true for every SMS submitted through this link, so this may be added permanenty to the PDU sourcecode and does not have to be switched from smsbox or sqlbox in our setup. Can someone point me to the right way to add those (decimal) values for these already defined TLV's to the SMPP code, as i am not too firm in C and especially juggling Octstrs? My first feeble attempt resulted in bearerbox disappearing without even logging a panic upon submitting the first SMS to this SMSC. -- Best regards, Thomas mailto:[EMAIL PROTECTED]
RE: smpp server
Please don't cross post. AFAIK there is no open source smpp server available. There's (at least two different) smpp boxes for Kannel out there. But they are not open source. And besides that, they cost money. Rene Kluwen Chimit -Original Message-From: Anand Gupta [mailto:[EMAIL PROTECTED]Sent: donderdag 20 juli 2006 20:21To: users@kannel.orgCc: devel@kannel.orgSubject: smpp server Hi Everyone! I know probably this is the wrong question, but can anyone tell me that if i want to run a smpp server, what software is available which i can use ? I saw the logica site, and the smpp library, but what i am looking for is a complete software which i can use. I would prefer open source... Thanks. Anand Gupta
RE: matching delivery reports to their corresponding outgoing message
The usual way of solving this problem is giving every message that you sent out a unique ID (e.g. the autoincrement field of the table that you store your messages in will do nicely). You can pass this ID as a parameter of your dlr-url. This is a clean, proven method that is independant of the underlying sms bearer. Rene Kluwen Chimit -Original Message- From: Patrick Okui [mailto:[EMAIL PROTECTED] Sent: vrijdag 21 juli 2006 16:20 To: users@kannel.org Subject: matching delivery reports to their corresponding outgoing message Hi all, I'd like to be able to figure out which message a particular delivery report belongs to. The dates on the report are helpful, but I'd like to be able to match based on the ts since that's more definite. Currently I'm thinking of modifying gw/bb_alog.c to store the id that the SMSC gives after submit_sm (and the script in my dlr-url can strip it from the delivery report). Any cleaner ways to do this? (PS: running version 1.4.0 on FreeBSD) -- patrick
RE: WAP Push Over CDMA Network
Title: Message I am not sure if you are from the same company as the person as I spoke to earlier this week. Also I am not sure if your problem is the same as I have solved for another company earlier this year. But I do have a patch for Kannel that solves sending WAP Pushes over sending CDMA networks. It works by replacing a submit_sm pdu with a data_sm pdu. It is open source. Let me know if you are interested to try it out. Rene Kluwen Chimit -Original Message-From: Fajar [mailto:[EMAIL PROTECTED] Sent: dinsdag 17 oktober 2006 6:11To: Kannel UsersSubject: WAP Push Over CDMA Network Hello there, I'm connecting to SMPP server our telco company. We would like to send wap push that will be sent into cdma mobile. Is Kannel supporting this feature? I'm settingup ppg, but it seems the wap push never get sent into mobile? Maybe someone willing helping me out. Thanks Fajar
RE: WAP Push Over CDMA Network
Every so many months people ask me about it. For me it is the same if I post the diff every so many months. Or mail it to them directly. Rene Kluwen Chimit -Original Message- From: Julien Buratto [mailto:[EMAIL PROTECTED] Sent: woensdag 18 oktober 2006 11:37 To: Rene Kluwen Cc: 'Fajar'; 'Kannel Users' Subject: Re: WAP Push Over CDMA Network Wouldn't be a good idea to post the diff ? Julien Rene Kluwen ha scritto: I am not sure if you are from the same company as the person as I spoke to earlier this week. Also I am not sure if your problem is the same as I have solved for another company earlier this year. But I do have a patch for Kannel that solves sending WAP Pushes over sending CDMA networks. It works by replacing a submit_sm pdu with a data_sm pdu. It is open source. Let me know if you are interested to try it out. Rene Kluwen Chimit -Original Message- *From:* Fajar [mailto:[EMAIL PROTECTED] *Sent:* dinsdag 17 oktober 2006 6:11 *To:* Kannel Users *Subject:* WAP Push Over CDMA Network Hello there, I'm connecting to SMPP server our telco company. We would like to send wap push that will be sent into cdma mobile. Is Kannel supporting this feature? I'm settingup ppg, but it seems the wap push never get sent into mobile? Maybe someone willing helping me out. Thanks Fajar -- Il messaggio risulta non infetto. Linkas Srl
RE: WAP Push Over CDMA Network
Title: Message It is still SMS as in short-message service. It is not SMS as in the GSM-MAP standard. In stead they have a similar implementation called IS-41. Rene Kluwen Chimit -Original Message-From: Andrea Trasatti [mailto:[EMAIL PROTECTED] Sent: woensdag 18 oktober 2006 14:46To: Kannel UsersCc: Rene KluwenSubject: Re: WAP Push Over CDMA NetworkI would be interested to know more about this patch too.On how many devices does this work?Originally CDMA did not have SMS and my understanding is that what they have now is an emulation, not the real SMS as in the GSM standard. - Andrea On 10/18/06, Julien Buratto [EMAIL PROTECTED] wrote: Wouldn't be a good idea to post the diff ?JulienRene Kluwen ha scritto: I am not sure if you are from the same company as the person as I spoke to earlier this week. Also I am not sure if your problem is the same as I have solved for another company earlier this year. But I do have a patch for Kannel that solves sending WAP Pushes over sending CDMA networks. It works by replacing a submit_sm pdu with a data_sm pdu. It is open source. Let me know if you are interested to try it out. Rene Kluwen Chimit -Original Message- *From:* Fajar [mailto: [EMAIL PROTECTED]] *Sent:* dinsdag 17 oktober 2006 6:11 *To:* Kannel Users *Subject:* WAP Push Over CDMA Network Hello there, I'm connecting to SMPP server our telco company. We would like to send wap push that will be sent into cdma mobile. Is Kannel supporting this feature? I'm settingup ppg, but it seems the wap push never get sent into mobile? Maybe someone willing helping me out. Thanks Fajar -- Il messaggio risulta non infetto. Linkas Srl-- Andrea Trasatti[EMAIL PROTECTED]Personal Blog: http://trasatti.blogspot.com
RE: Cannot find SMPPBox for Kannel
There is no open source smppbox. At least two people have a commercial variant: - [EMAIL PROTECTED] - [EMAIL PROTECTED] Contact them for more info. -Original Message- From: Remon Magdy [mailto:[EMAIL PROTECTED] Sent: donderdag 10 mei 2007 14:09 To: users@kannel.org Subject: Cannot find SMPPBox for Kannel Dear All, I've bean searching the internet for too long for downloading the SMPPBox extension for kannel or at least find where I can purchase it. Can anybody help me by submitting a URL to download the box, or even post it here or send it to my E-Mail [EMAIL PROTECTED] Regards, Remon
RE: smppbox reg.
To be complete: There do exist Kannel SS7 smsc drivers. They are just not open source. Rene Kluwen Chimit -Original Message- From: Stipe Tolj [mailto:[EMAIL PROTECTED] Sent: vrijdag 11 mei 2007 11:07 To: [EMAIL PROTECTED] Cc: users@kannel.org Subject: Re: smppbox reg. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: Hi friends, I got a msg from our mailing list like this. Kannel is just SMSC client not SMSC server :) You need to buy separate module, like smppbox which is a commercial product, to enable kannel as SMSC :) contact creator of kannel :) what is mean by smppbox and if we had the smppbox we can send sms from pc via internet to mobile without any other service provider like clickatel or other sms centre service providers.. As Rene stated, smppbox is a SMPP server add-on component to the normal Kannel allowing you to act as vSMSC (vitual SMSC), leaveraging client SMSC connections as own SMPP server to customers. ie. as SMS aggregator. There is NO WAY to transmit a SMS without bridging from the IP world (internet) into the GSM (SS7 layer) world via a SMSC. What Kannel DOES support is connecting GSM modems to act as it's SMSC connections, so you can send SMS via a connected mobile, and hence use the SIM card in the modem for sending. Stipe - --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org - --- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGRDI/9ez0oeKvYs0RAlurAJ9YQU2TTSEyLThSDlNgnzqMGbgy4QCg6j17 aIrxuyLDfrYssdLvveG2zdE= =YCAU -END PGP SIGNATURE-
RE: kannel asterisk ?
I haven't tried the combination of Asterisk and Kannel itself. Even though I am using them both. But possible solutions are: exten = xxx,s,1,System(lynx -dump http://kannel-url:kannel-port/cgi-bin/sendsms?kannel-options) Or alternatively (better) write an agi script that does the trick: exten = xxx,s,1,Agi(/usr/bin/my-agi.sh,number,sms-content) In the agi-script you will be sending the sms content (in a language of your choice) to Kannel. That's all there is to it. Rene Kluwen Chimit -Original Message- From: Prénom Nom [mailto:[EMAIL PROTECTED] Sent: woensdag 16 mei 2007 18:01 To: users@kannel.org Subject: kannel asterisk ? hi, how can i do to pass sms between kannel asterisk ? if kannel is installed in a machine M1, and asterisk in M2, and the GSM modem is connected to M2. how can i configure SMSC group in kannel to use the GSM modem ? please, help me. i must do that but how !!! _ MSN Messenger : appels gratuits de PC à PC ! http://www.msn.fr/newhotmail/Default.asp?Ath=f
RE: Using SQLBox
Remon, 1. This is an sql-box standalone parameter. Ask Martin Conte for more info. 2. You submit SMS messages by inserting them in the send_sms table. smsbox doesn't take a role in this. 3. MO Messages are inserted in the sent_sms table. 4. No. Rene Kluwen Chimit -Original Message- From: Remon Magdy [mailto:[EMAIL PROTECTED] Sent: zondag 29 juli 2007 10:36 To: users@kannel.org Subject: Using SQLBox Dear All, I'm new to the SQLBox. I have lately installed the standalone version versus latest Kannel CVS version on CentOS 4.4 using PgSQL 8.1 and the installation was successful and tables are automatically created. Actually there are some issues I still don't understand. 1. What is the usage of the SMSBox port parameter in SQLBox configuration? 2. How do I submit MT messages to SQLBox instead of SMSBox? 3. What is the role of SQLBox in MO messages received from the SMSCs? 4. Is there any available documentation describing how to configure the SQLBox and its role in the Kannel SMS gateway? I have tried using the fake SMSC to send MO messages to the gateway and used the SMSBox to send MT messages to an SMPP simulator but the SQLBox tables are still empty. Please find attached my configuration file. Thanks and best regards, Remon
RE: Kannel and ss7 connection
There exist SS7 communication layer drivers that act as a usual smsc driver for Kannel. They are not open source though. And also not cheap. More details via me. Rene Kluwen Chimit -Original Message- From: info.ubichip [mailto:[EMAIL PROTECTED] Sent: dinsdag 30 oktober 2007 18:26 To: [EMAIL PROTECTED]; users@kannel.org Subject: RE: Kannel and ss7 connection Hi, Kannel is not dealing directly with SS7 connection but with other protocols such SMPP. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi 30 octobre 2007 05:30 To: users@kannel.org Subject: Kannel and ss7 connection Hi All I have Kannel 1.4.1 with ethernet Internet connections to some carriers. I need to connect to another carrier using ss7 (E1) link. I am thinking of using a Cisco router to terminate the ss7 link. Please what do I need to be able to connect kannel to the carrier smsc through the ss7 link? Thanks. Ismail _ Antivirus avast! http://www.avast.com : message Sortant sain. Base de donnees virale (VPS) : 071030-0, 30/10/2007 Analyse le : 30/10/2007 10:25:38 avast! - copyright (c) 1988-2007 ALWIL Software.
RE: Re[2]: sqlbox does not connect to remote MySQL
Nice hacking :) -- Rene -Original Message- From: Cezary Siwek [mailto:[EMAIL PROTECTED] Sent: woensdag 14 november 2007 18:58 To: users@kannel.org Subject: RE: Re[2]: sqlbox does not connect to remote MySQL hi, I had the same problem. you need to define port if you want to use remote db port = 3306 (or the proper one of course) Regards, Cezary -Original Message- From: Juan Nin [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 14, 2007 5:45 PM To: users@kannel.org Subject: Re: Re[2]: sqlbox does not connect to remote MySQL i'm using MySql 5, but the thing is that sqlbox is not trying to connect to the remote server I've already enabled the mysql logging, and I see nothing, and even more, I made a tcpdump on the remote DB server, and no packets arrive.. On 11/14/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote: Hmm, pretty strange. The only thing I can think of is about auth libraries. There's a difference between 3.x and 4.x mysql authentication protocol, and if for some reason the wrong protocol is used the login fails though the mysql client library works fine. I'd check on the remote side to see if kannel is trying to connect and, if possible, I'd raise the log level on mysql to see if there's something on logfiles worth noting. Regards, Alejandro On Nov 14, 2007 3:10 PM, Juan Nin [EMAIL PROTECTED] wrote: don't think so on my previous post i pasted some changes i made where it logs the panic error, and the host, username, passwd and db are fine not sure where the problem is :( On Nov 14, 2007 2:30 PM, Alejandro Guerrieri [EMAIL PROTECTED] wrote: No, this is to be able to connect to a remote bearerbox. Maybe there's a similar issue with mysql host? I'll check it out. Regards, Alejandro On Nov 14, 2007 1:53 PM, Juan Nin [EMAIL PROTECTED] wrote: Alejandro, is this needed for sqlbox to be able to connect to a remote mysql? thanks! Juan On Nov 14, 2007 1:41 PM, Alejandro Guerrieri [EMAIL PROTECTED] wrote: Here is my patch for sqlbox to take host into account: Index: gw/sqlbox.c == = RCS file: /home/cvs/ sqlbox/gw/sqlbox.c,v retrieving revision 1.2 diff -u -r1.2 sqlbox.c --- gw/sqlbox.c 30 May 2006 17:52:46 - 1.2 +++ gw/sqlbox.c 3 Oct 2007 13:42:58 - @@ -600,7 +600,6 @@ /* some default values */ sqlbox_port_ssl = 0; - bearerbox_host = octstr_create(BB_DEFAULT_HOST); bearerbox_port = BB_DEFAULT_SMSBOX_PORT; bearerbox_port_ssl = 0; logfile = NULL; @@ -624,6 +623,10 @@ if (grp == NULL) panic(0, No ' sqlbox' group in configuration); + bearerbox_host = cfg_get( grp, octstr_imm(bearerbox-host)); + if (bearerbox_host == NULL) + bearerbox_host = octstr_create(BB_DEFAULT_HOST); + sqlbox_id = cfg_get(grp, octstr_imm(smsbox-id)); global_sender = cfg_get(grp, octstr_imm(global-sender)); === Hope it helps, Alejandro On Nov 14, 2007 1:06 PM, seik [EMAIL PROTECTED] wrote: I am about to do the same for sqlbox_pgsql.c :) no time so far :/ -Original Message- From: Juan Nin [ [EMAIL PROTECTED] ] Sent: 14 ??? 2007 ?. To: seik Subject:sqlbox does not connect to remote MySQL mhmhm, I edited gw/sqlbox_mysql.c from the sqlbox source and modified the panic line in the end so the code is like here below, and the DB params are shown ok /* * ok, ready to connect to MySQL */ db_conf = gw_malloc(sizeof(DBConf)); gw_assert(db_conf != NULL); db_conf-mysql = gw_malloc(sizeof(MySQLConf)); gw_assert(db_conf-mysql != NULL); db_conf-mysql-host = mysql_host; db_conf-mysql-username = mysql_user; db_conf-mysql-password = mysql_pass; db_conf-mysql-database = mysql_db; if (have_port) { db_conf-mysql-port = mysql_port; } pool = dbpool_create(DBPOOL_MYSQL, db_conf, pool_size); gw_assert(pool != NULL); /* * XXX should a failing connect throw panic?! */ if (dbpool_conn_count(pool) == 0) panic(0,SQLBOX: MySQL: database pool has no connections! host '%s' user '%s' pass '%s' db '%s', octstr_get_cstr(mysql_host), octstr_get_cstr(mysql_user), octstr_get_cstr(mysql_pass), octstr_get_cstr(mysql_db));
smppbox
Lectori Salutem, This email is about Chimit's smppbox. The rights to the smppbox code have been obtained by a third party, but fortunately there is some good news for the open source community. An early version of smppbox (smpp v.3.0) will now be donated back to the community. This version is by no means perfect and developers and investors are invited to contribute. All in the spirit of being an open-source community. Chimit already developed the successful sqlbox, which is now part of the main stream Kannel distribution, so if we all cooperate, this smppbox can go the same way. To get you started, here is a preliminary download: http://www.chimit.nl/kannel/smppbox.tar. Unfortunately, due to the expected response, we cannot give you support on this software, other than via the usual Kannel users mailing groups. There is nobody with experience on this particular matter of software, so please bear with me. I have little time to spend on free software. But releasing smppbox is a priority now, even when I cannot give sufficient support to all of you. If you want a carrier-grade, commerialy widely deployed smppbox or EMI server functionality, we direct you to the alternatives. For instance the smppbox that Stipe Tolj provides (s...@tolj.org). Cheers to all, Rene Kluwen Chimit
RE: Problem getting Kannel to receive SMS
Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Ahmad Pakhri Yahya Sent: dinsdag 18 mei 2010 10:58 To: users@kannel.org Subject: Problem getting Kannel to receive SMS Hi, I'm new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it's running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 admin-allow-ip = 192.168.1.16 log-file = /var/log/kannel/bearerbox.log log-level = 0 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 box-allow-ip = 192.168.1.16 #store-file=/etc/kannel/kannel.store # SMSC group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM6 #device = /dev/ttyS0 speed = 0 smsc-id = nokiaphone port = 13013 log-level = 0 log-file = /var/log/kannel/smsbox.log #sim-buffering = true # Nokia mobile phone setup group = modems id = nokiaphone name = Nokia 6500 config detect-string=Nokia detect-string2=Nokia 6500 init-string = ATZ #init-string = AT+CMGF=1 #init-string = AT+CNMI=1,2,0,0,0 #init-string = AT+CNMI=? #init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0 #speed = 19200 enable-hwhs = AT+IFC=2,2 message-storage = SM need-sleep=true keepalive-cmd=AT+CBC;+CSQ group = smsbox smsbox-id = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-level=0 log-file = /var/log/kannel/smsbox.log sendsms-chars=0123456789 +- access-log = /var/log/kannel/access.log group = smsbox-route smsbox-id = smsbox smsc-id = nokiaphone # SEND-SMS USERS group = sendsms-user username = kanneluser password = kannelpass max-messages = 10 concatenation = true # SMS Service group = sms-service keyword = default #keyword-regex = .* catch-all = yes #max-messages = 10 #concatenation = true get-url = http://localhost/test; #exec /home/brite/watcer/stopwatch omit-empty = true accept-x-kannel-headers = true Please help me to read the SMS from the phone. Thank you. Regards, Ahmad Pakhri Yahya
RE: Problem getting Kannel to receive SMS
What do you get if you send AT+CNMI=? (in hyper terminal or as an init string in Kannel). - If you get an error: Probably you are out of luck and your phone doesn't support relaying messages to the TE. Try another phone as modem. - If you get a string like: +CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1) then try to get the best options, e.g.: AT+CNMI=3,1,0,2,0 (in this case), depending on the values returned. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 11:30 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Hi Rene, I tried adding the AT+CNMI= command, but it gave me error during initialization. Messages from the log. 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CNMI=0,0,0,0,0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Generic error: ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Initialization of device failed. 2010-05-18 16:25:29 [31637] [6] INFO: AT2[nokiaphone]: Closing device 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Couldn't connect (retrying in 10 seconds). Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 17:09 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Ahmad Pakhri Yahya Sent: dinsdag 18 mei 2010 10:58 To: users@kannel.org Subject: Problem getting Kannel to receive SMS Hi, I'm new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it's running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 admin-allow-ip = 192.168.1.16 log-file = /var/log/kannel/bearerbox.log log-level = 0 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 box-allow-ip = 192.168.1.16 #store-file=/etc/kannel/kannel.store # SMSC group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM6 #device = /dev/ttyS0 speed = 0 smsc-id = nokiaphone port = 13013 log-level = 0 log-file = /var/log/kannel/smsbox.log #sim-buffering = true # Nokia mobile phone setup group = modems id = nokiaphone name = Nokia 6500 config detect-string=Nokia detect-string2=Nokia 6500 init-string = ATZ #init-string = AT+CMGF=1 #init-string = AT+CNMI=1,2,0,0,0 #init-string = AT+CNMI=? #init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0 #speed = 19200 enable-hwhs = AT+IFC=2,2 message-storage = SM need-sleep=true keepalive-cmd=AT+CBC;+CSQ group = smsbox smsbox-id = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-level=0 log-file = /var/log/kannel/smsbox.log
Re: SMS Relaying
Is your client also using Kannel? Then maybe setting up a http relay will work. See documentation. From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Innocent Muchedzi Sent: dinsdag 18 mei 2010 12:03 To: us...@vm1.kannel.org Subject: SMS Relaying Hie I need to perform an sms relay from my client to my Kannel server of which I will forward to my Mobile SMSC Network. Please help on how to do it. I am using SMPP for my connection the Mobile SMSC network and running Linux Fedora 11. thank you -- This message has been scanned for viruses and dangerous content by the BBI SMTP filter and is believed to be clean.
RE: Problem getting Kannel to receive SMS
CMS ERROR 303 means: The operation to be done by the AT command is not supported. But judging from your log file: Are you using a sony (ericsson?) phone? Or a Nokia phone? Like I said: Try to send AT+CNMI=? And see what you get. Depending on the values returned you can adapt your final AT+CNMI command in the init string. Maybe some other people on the list can recommend you a phone or gsm modem that will work. Personally I have experience with the (old) Siemens SL45, TC35 and related phones that work. But that was a long time ago. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 12:43 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS The error message I got is 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- AT+CNMI=1,1,0,0,0^M 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: Operation not supported (303) 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Initialization of device failed. 2010-05-18 17:10:56 [32143] [6] INFO: AT2[sonyphone]: Closing device 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Couldn't connect (retrying in 10 seconds). 2010-05-18 17:11:06 [32143] [6] INFO: AT2[sonyphone]: opening device 2010-05-18 17:11:06 [32143] [6] DEBUG: AT2[sonyphone]: device opened. Telnet mode = 0 It could be due to the phone not supporting the feature. Do you know any normal GSM phone that might work? Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 18:30 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS What do you get if you send AT+CNMI=? (in hyper terminal or as an init string in Kannel). - If you get an error: Probably you are out of luck and your phone doesn't support relaying messages to the TE. Try another phone as modem. - If you get a string like: +CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1) then try to get the best options, e.g.: AT+CNMI=3,1,0,2,0 (in this case), depending on the values returned. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 11:30 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Hi Rene, I tried adding the AT+CNMI= command, but it gave me error during initialization. Messages from the log. 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CNMI=0,0,0,0,0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Generic error: ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Initialization of device failed. 2010-05-18 16:25:29 [31637] [6] INFO: AT2[nokiaphone]: Closing device 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Couldn't connect (retrying in 10 seconds). Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 17:09 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org [mailto:users-boun
RE: SMS Relaying
http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN2276 From: Innocent Muchedzi [mailto:innoc...@syldah.co.bw] Sent: dinsdag 18 mei 2010 13:53 To: Rene Kluwen Subject: Re: SMS Relaying Yes they all use kannel, How do I set up http relay - Original Message - From: Rene Kluwen mailto:rene.klu...@chimit.nl To: 'Innocent mailto:innoc...@syldah.co.bw Muchedzi' Sent: Tuesday, May 18, 2010 12:17 PM Subject: RE: SMS Relaying Is your client also using Kannel? Then maybe setting up a http relay will work. From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Innocent Muchedzi Sent: dinsdag 18 mei 2010 12:03 To: us...@vm1.kannel.org Subject: SMS Relaying Hie I need to perform an sms relay from my client to my Kannel server of which I will forward to my Mobile SMSC Network. Please help on how to do it. I am using SMPP for my connection the Mobile SMSC network and running Linux Fedora 11. thank you -- This message has been scanned for viruses and dangerous content by the BBI SMTP filter and is believed to be clean. -- This message has been scanned for viruses and dangerous content by http://www.mailscanner.info/ MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by the BBI SMTP filter and is believed to be clean.
RE: kannel delivery report
The open source version is stable enough to use it in production. I use it for a couple of years myself now and others too. Never had a problem with it. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikos Balkanas Sent: vrijdag 28 mei 2010 8:00 To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: kannel delivery report Hi, The suggestions I made will replace your SMPP server (more likely proxy). For the commercial SMPPbox you need to contact Stipe (s...@tolj.org) or download the opensource SMPPbox from http://www.chimit.nl/kannel/smppbox.tar. Bear in mind that the opensource has not been tested in production, yet. BR, Nikos - Original Message - From: Budi wibowo bwib...@gmail.com To: Nikos Balkanas nbalka...@gmail.com; users@kannel.org Sent: Friday, May 28, 2010 8:49 AM Subject: Re: kannel delivery report Hi nikos Assume I don't to change anything on smpp server so addon option is more suitable for me. Where I can the add ons? Thx --Original Message-- From: Nikos Balkanas To: budi wibowo To: users@kannel.org Subject: Re: kannel delivery report Sent: May 28, 2010 11:36 Hi, You cannot pass through the exact PDU. But you can use kannel's dlr-url feature to pass important parameters you want from it (for a list read User's guide). For this to work SMPPServer should have an HTTP interface. Another option is to look into SMPPBox. It will handle DLRs and exists both as a commercial add-on provided by Stipe, or as an open-source addition to bearerbox, however, its production stability is unknown. BR, Nikos - Original Message - From: budi wibowo To: users@kannel.org Sent: Friday, May 28, 2010 3:45 AM Subject: kannel delivery report hi list i have kannel installed and used as sender-ID modifier, topology as follows client---SMPPServer---kannelSMSC 1. client send sms to SMPPServer, 2. SMPPServer send sms to kannel, kannel modify sender-ID and send back to SMPP Server 3. SMPPSever send sms to SMSC in this scenario SMPPServer will always get DLR 100% from kannel, is there any mechanism on kannel to passthrough DLR from SMSC , so i can get real DLR from SMSC TIA budi
RE: DLR queue problems.
The obvious answer would be: Why not giving each smsc the same smsc-id? But then again… you may have valid reasons to do it. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Konstantin Vayner Sent: zondag 30 mei 2010 11:59 To: Kannel Users Subject: DLR queue problems. Hi Everyone! I'm having troubles with DLRs. 1) We have multiple links (smpp / ucp) to same remote SMSC with same credentials 2) When a DLR arrives, remote SMSC randomly pushes it to one of the active links that are connected with credentials that pushed the message 3) When the DLR is pushed to kannel over wrong link (not the same one that pushed it to remote), kannel cannot match the reciepted dlr to dlr queue.. Right now, i have distinct unique smsc-id for each connection (e.g. smsc_operA_mt1 , smsc_operA_mt2 , ... smsc_operB_mt1 , smsc_operB_mt2 , ...). Any ideas? P.S. I'm digging architecture docs atm as i want to understand how dlr-routing works, but i would appreciate an answer from someone who has experience in such configurations. Thanks in advance, Konstantin
RE: Installing opensource SMPPBox with kannel
The short answer: Yes, it can. Regardless of which smppbox you are using. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Budi wibowo Sent: maandag 31 mei 2010 15:13 To: users@kannel.org Subject: Re: Installing opensource SMPPBox with kannel Hi all Somebody can confirm that smppbox can be used to passthrough dlr? I put kannel between smsc and smpp server. Warm regards Budi wibowo --Original Message-- From: Nikos Balkanas Sender: users-boun...@kannel.org To: Kiran Reddy To: users@kannel.org Subject: Re: Installing opensource SMPPBox with kannel Sent: May 31, 2010 19:18 Hi 1) Do not spam. 2 messages the same day with the same subject is spamming. 2) man spam 3) man patch BR, Nikos - Original Message - From: Kiran Reddy ki...@uniceltech.com To: users@kannel.org Sent: Monday, May 31, 2010 2:22 PM Subject: Installing opensource SMPPBox with kannel Hi All, How to install Open Source SMPPBox with kannel or How to patch kannel with SMPPBox. Can some one help please Regards, Kiran Reddy
RE: Urgent! HELP!
What do you get if you set log-level to 'debug' (0)? Do you see which command exactly gives the error? Here, you can find an overview of possibly possible init strings: http://alumni.ipt.pt/~pmad/s35i_c35i_m35i_atc_commandset_v01.pdf. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of pe...@hotsource.net Sent: dinsdag 1 juni 2010 17:30 To: users@kannel.org Subject: Urgent! HELP! Hi I have 3 days trying to resolved this and has even replaced my GSM modem but still unresolved... Anyone knows the init-string for the GSM modem MC37i? (cinterion mc37i or siemens MC37i) I tried many variations of CMNI=, etc but still couldn't get Kannel to run smoothly. This is my latest: group = modems id = siemens_m37i name = Siemens M37i detect-string = Cinterion detect-string2 = MC37i speed= 115200 #init-string = AT+CNMI=2,0,0,2,1;+CMGF=0;+CMEE=2 init-string = AT+CNMI=2,1,0,0,0;+CMEE=2 enable-hwhs = AT\\Q3 #keepalive-cmd = AT+CBC;+CSQ I keep getting this error inj kannel.log opening device 2010-06-01 23:18:50 [12804] [6] INFO: AT2[HSSMSC1]: Logging in 2010-06-01 23:18:50 [12804] [6] INFO: AT2[HSSMSC1]: init device 2010-06-01 23:18:50 [12804] [6] INFO: AT2[HSSMSC1]: speed set to 115200 2010-06-01 23:18:51 [12804] [6] INFO: AT2[HSSMSC1]: Phase 2+ is supported 2010-06-01 23:18:51 [12804] [6] ERROR: AT2[HSSMSC1]: Generic error: ERROR 2010-06-01 23:18:51 [12804] [6] ERROR: AT2[HSSMSC1]: Initialization of device failed. 2010-06-01 23:18:51 [12804] [6] INFO: AT2[HSSMSC1]: Closing device 2010-06-01 23:18:51 [12804] [6] ERROR: AT2[HSSMSC1]: Couldn't connect (retrying in 10 seconds). 2010-06-01 23:19:01 [12804] [6] INFO: AT2[HSSMSC1]: opening device 2010-06-01 23:19:01 [12804] [6] INFO: AT2[HSSMSC1]: Logging in 2010-06-01 23:19:02 [12804] [6] INFO: AT2[HSSMSC1]: init device 2010-06-01 23:19:02 [12804] [6] INFO: AT2[HSSMSC1]: speed set to 115200 HELP!! HELP!!
Re: Sending long message with Payload
I think I made a patch for that. It is freely available. Just that in stead of submit_sm, it uses data_sm pdu's. Not sure if that is what you want. Dear all, I am new to kannel, i currently use nowsms gateway for sms connectivity. my smsc provider requested some features that aren't availabe in nowsms. Basically it needs the following: 1- Destination alphanumeric + long message using UDH 2- Destination alphanumeric + long message using Payload I tried the first and i think it worked, however i am not sure if it is possible to specify payload as option in kannel. What i should add to config ? Well i didn't tried kannel in receive yet, i just bound a transmitter connection. So i wonder does it work in SAR in both sender and in receive? Thanks _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
RE: DLR not being emptied for numbers it can't send to
To prevent messages from being sent twice (e.g. if the subscriber has their hand set off), use (see documentation): Validity number (minutes) Optional. If given, Kannel will inform SMS Center that it should only try to send the message for this many minutes. If the destination mobile is off other situation that it cannot receive the sms, the smsc discards the message. Note: you must have your Kannel box time synchronized with the SMS Center. == Rene Kluwen -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikos Balkanas Sent: woensdag 2 juni 2010 6:44 To: Barry Murphy; Alan McNatty Cc: Users Subject: Re: DLR not being emptied for numbers it can't send to Hi, Then you should wait more. Failure can be either immediate (unknown subscriber) or can take up to 2 days (expired). In the latter case you should wait at least that long before cleaning DB, else kannel will report Error: Cannot find dlr for message... when it receives final failure. Bufferred is not a final dlr and kannel is waiting for the final DLR before deleting from DB. BR, Nikos - Original Message - From: Barry Murphy ba...@unix.co.nz To: Alan McNatty a...@catalyst.net.nz Cc: Users users@kannel.org Sent: Wednesday, June 02, 2010 6:37 AM Subject: Re: DLR not being emptied for numbers it can't send to Hi, Thanks for your input. Yes they seem to be dropped, if I login to either of my current SMSC providers, they report as Buffering or something along those lines. I am using DLR DB so a manual clean out is easy enough for me, however I'd like to re-send the message via another carrier if not delivered within X minutes to which I'm currently seeking a carrier that can deliver to 2Degrees (NZ) with MNP P.s. Good to see another kiwi on the list :) Thanks Barry On Wed, 02 Jun 2010 15:10:41 +1200, Alan McNatty a...@catalyst.net.nz wrote: Hi Barry, Yeah - my understanding is the messages are silently dropped if off-net (without any notification). Your best option might be treat them as expired (possibly with a manual clean-up) after a standard network TTL if no DLR received (messages don't typically live on the network more than 5 days if undelivered). Obviously this would be best achieved using a DB for DLR storage. HTH's Cheers, Alan On 02/06/10 14:59, Barry Murphy wrote: Yes I do use dlr-mask=31 and get nothing back in reurn from either SMSC. amdtelecom are a company I am looking at possibly using as a SMSC if they can route correctly to this network I'm having issues to. Thanks Barry On Wed, 2 Jun 2010 05:46:25 +0300, Nikos Balkanas nbalka...@gmail.com wrote: Hi, Nope. For that you would need portability support in bearerbox. I have developed such a feature for a commercial version used by amdtelecom. Nevertheless your carriers should return a failed DLR if they fail to deliver. Are you using dlr-mask=31? BR, Nikos - Original Message - From: Barry Murphy ba...@unix.co.nz To: Users users@kannel.org Sent: Wednesday, June 02, 2010 5:33 AM Subject: DLR not being emptied for numbers it can't send to Hi, I have a problem where if a number cannot be delivered to, it stays in DLR table until manually removed. I have this problem with both SMSc providers I use and it's only when trying to deliver to a single carrier that is having issues with MNP. I wish to know if it's possible to have kannel attempt to redeliver a message that is stuck in DLR table using another SMSc that I have as a backup. Look forward to your response Thanks Barry
RE: DLR's to MySQL
Wild guess: Is the host “sms-gw” defined in /etc/hosts? Maybe Kannel has problems resolving it. Could you post your Kannel log files (debug level 0)? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aubrey Oosthuizen Sent: woensdag 2 juni 2010 13:27 To: users@kannel.org Cc: users@kannel.org Subject: DLR's to MySQL Dear developers We are working on implementing Kannel into Zimbra collaboration suite by adding a Zimlet allowing users to send sms' from their mail inbox. So far we have completed the entire send process of the project, the only thing remaining is setting up the DLR logging into a mySQL database. I have read through the user guide numerous times, and have read blog and forums to figure out how to do this. I have come to the following stepped conclusion. 1. Append the dlr-url and dlr-mask to your sendsms-url. This is the method we use, it gets the information from a .pl script and this calls the sendsms script. * URL EXAMPLE: http://sms-gw/dlr.php?sender=$fromsubject=$subjecttime=$theTime http://sms-gw/dlr.php?sender=$fromsubject=$subjecttime=$theTime * This URL is however URL encoded. my $dlr-url = http%3A%2F%2Fsms-gw%2Fdlr.php%3Fsender%3D%24from%26subject%3D%24subject%26time%3D%24theTime my $url = ' http://sms-gw:13013/cgi-bin/sendsms?username=testerpassword=654321to= http://sms-gw:13013/cgi-bin/sendsms?username=testerpassword=654321to=' . $numbz . 'text='. $text . 'dlr-mask=31' . 'dlr-url=$dlr-url'; $html = getprint ($url); # ok shoot to kannel to send sms. OR Append add a field to the sendsms-user group in your smskannel.conf file. (Note inserted but not used) group = sendsms-user username=XXX password=XXX concatenation=true name=XXX footer= header= faked-sender=XXX default-sender= default-smsc=smsc max-messages=10 #dlr-url = http%3A%2F%2Fsms-gw%2Fdlr.php%3Fsender%3D%24from%26subject%3D%24subject%26time%3D%24theTime #dlr-mask = 31 #user-deny-ip = #user-allow-ip = 2. Create a php script in localhost/ called dlr.php. I put the script into /var/WWW/ though, although I have no idea which directory localhost/script would call for scripts. Now the script does create logs if you would call it through your browser andpass it the parameters. But the sendsms url does not seem to call it. I have heard that DLR url uses mostly predefined parameters, what are these, and would this affect the data being passed in any way? dlr.php ?PHP $val=$_GET['sender']; $dst=$_GET['subject']; $mask = 31; --- Static. doesn't really matter tomuch at the moment, we just want to log all DLR's. $ts=$_GET['time']; mysql_connect(localhost, XXX, XXX) or die(Cannot connect); mysql_select_db(mysql) or die(cannot connect to database); $dt = date(Y-m-d); $ti = date(H:i:s); $timewsha1=$dt. .$ti; #echo $val; #echo $ts; #echo $dst; $query = insert into dlr values('$val' ,'$ts' ,'$dst','XXX', 'XXX','URL', '$mask','21','XXX','', '$timewshal'); $result = mysql_query($query) or die(Queryfailed : . mysql_error()); ? 3. Create a MySQL database following this format in some manor. id=mydlr table=dlr field-smsc=smsc field-timestamp=ts field-destination=destination field-source=source field-service=service field-url=url field-mask=mask field-status=status field-boxc-id=boxc Problem: Now the table's in the MySQL database do get filled when the script is called, therefore I do not believe the real problem to be located there. The real problem it seems is that the script is never called, that I do not understand. * Is there something important missing? * Does using predefined variables in the DLR-URL affect anything? * What are these? * Do you require an unique ID for each DLR? * Which method is recomended for adding the DLR-URL or DLR-mask to the sendsms url? * Can there be something missing in the configuration that causes this? If you require the configuration file, please just ask. If there is anything missing. Please do tell. PS: Excuse my bad terminology, I have never done anything like this before. Best Regards Aubrey
RE: Sending long message with Payload
I attached the patch. But only use it if your provider really expects data_sm, otherwise you will spend a lot of work for nothing. By the way, running Kannel on Cygwin is considered instable. But if it works for you, then I guess there should be no problem. You can configure the patch by an extra parameter in group = smsc, named: send-binary-as-datasm (set it to true). As for patching and compiling, etc. That is pretty much related to Linux administration and a little bit out of topic on the list. == Rene From: falou zaynoun [mailto:fzayn...@hotmail.com] Sent: woensdag 2 juni 2010 13:43 To: nbalka...@gmail.com; rene.klu...@chimit.nl Cc: users@kannel.org Subject: RE: Sending long message with Payload 1st sorry if i sent to wrong place. About SAR receive, i will try bind and check if Kannel will concatenate messages together. Sorry Rene, but i am really new and actually i use Kannel on windows using Cygwin binaries (i am not even the one who compiled it). I don't know where to find patches, so please if you can specify when i download. About the patch itself, can i configure SMPP smsc to send data_sm, or use some parameter in the http request used to send sms. About payload, i am not sure what my operator is requesting, i think in smpp 3.4 specifications, there is a payload_type, and message_payload parameters (table 4.10, 5.3.2.10, 5.3.2.32), i believe these are the parameters that they're requesting. Is there a place to request features, in general, is it hard to implement such feature ? Regards Zaynoun From: nbalka...@gmail.com To: fzayn...@hotmail.com CC: users@kannel.org Subject: Re: Sending long message with Payload Date: Wed, 2 Jun 2010 03:42:12 +0300 Hi, Kannel supports only UDH concatenation out of the box, not sar. Rene's patch might do it. It will support alpanumeric sender/receiver natively. BR, Nikos - Original Message - From: Rene Kluwen rene.klu...@chimit.nl To: falou zaynoun fzayn...@hotmail.com Cc: users@kannel.org Sent: Wednesday, June 02, 2010 3:21 AM Subject: Re: Sending long message with Payload I think I made a patch for that. It is freely available. Just that in stead of submit_sm, it uses data_sm pdu's. Not sure if that is what you want. Dear all, I am new to kannel, i currently use nowsms gateway for sms connectivity. my smsc provider requested some features that aren't availabe in nowsms. Basically it needs the following: 1- Destination alphanumeric + long message using UDH 2- Destination alphanumeric + long message using Payload I tried the first and i think it worked, however i am not sure if it is possible to specify payload as option in kannel. What i should add to config ? Well i didn't tried kannel in receive yet, i just bound a transmitter connection. So i wonder does it work in SAR in both sender and in receive? Thanks _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W L:en-US:WM_HMP:042010_1 _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. See how. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON: WL:en-US:WM_HMP:042010_2 kannel-cdma-patch.diff Description: Binary data
RE: Checkin/out by sending SMS
Start by reading the Kannel Userguide: http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html. I figure if you copy the right bits and bytes out of that guide, you almost have your application. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Helge Wiemann Sent: woensdag 2 juni 2010 14:12 To: users@kannel.org Subject: Checkin/out by sending SMS Hello altogether! Unfortunately I am very new to the themes SMS and kannel. My task is developing a checkin/out process for a tomcat web app by sending an SMS. For example a person is starting his/her work, sending an SMS to a special number with a special text and therefore the web database is getting an update with a timestamp. The same procedure for the finishing of work. Can anybody help with some ideas to develop it? Thanks in advance! Greetings Helge
RE: DLR's to MySQL
I would like to see a little bit more of your log file. And especially if you enable incoming DLR’s with the AT+CNMI command. What is your modem init string? The DLR rerouting warning is safe to ignore. Kannel will route the DLR to the smsc that it was sent from originally. == Rene From: Aubrey Oosthuizen [mailto:aubrey.oosthui...@ob7.co.za] Sent: woensdag 2 juni 2010 15:05 To: Rene Kluwen Cc: users@kannel.org Subject: Re: DLR's to MySQL Hi I believe it is. Although I have no idea how to verify this? The configuration is being done on a remote computer to which I have to ssh? In the log file it gives a DLR routing for smsc id ID disabled warning. I don't know if this could be why the script is not being processed. Here's the log file: 2010-05-26 17:27:51 [4684] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'. 2010-05-26 17:27:51 [4684] [0] INFO: Started access logfile `/tmp/access.log'. 2010-05-26 17:27:51 [4684] [0] INFO: HTTP: Opening server at port 13010. 2010-05-26 17:27:51 [4684] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 4684. 2010-05-26 17:27:51 [4684] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2010-05-26 17:27:51 [4684] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 4684. 2010-05-26 17:27:51 [4684] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2010-05-26 17:27:51 [4684] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2010-05-26 17:27:51 [4684] [0] DEBUG: starting smsbox connection module 2010-05-26 17:27:51 [4684] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 4684. 2010-05-26 17:27:51 [4684] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-05-26 17:27:51 [4684] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 4684. 2010-05-26 17:27:51 [4684] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2010-05-26 17:27:51 [4684] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 4684. 2010-05-26 17:27:51 [4684] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2010-05-26 17:27:51 [4684] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-05-26 17:27:51 [4684] [0] INFO: SMS resend retry set to unlimited. 2010-05-26 17:27:51 [4684] [0] INFO: DLR rerouting for smsc id 01010101 disabled. 2010-05-26 17:27:51 [4684] [0] INFO: AT2[0828151814]: configuration shows modemtype wavecom 2010-05-26 17:27:51 [4684] [0] DEBUG: AT2[0828151814]: Reading modem definitions from /home/mradmin/sms/gateway-1.4.3/gw/smskannel.conf 2010-05-26 17:27:51 [4684] [0] DEBUG: AT2[0828151814]: Found 1 modems in config 2010-05-26 17:27:51 [4684] [0] INFO: AT2[0828151814]: read modem definition for Wavecom Note: The 01010101 has been substituted for a cellphone number. Please let me know if there is anything else you might need. Billions of thank you's for your help BR Aubrey - Original Message - From: Rene Kluwen rene.klu...@chimit.nl To: Aubrey Oosthuizen aubrey.oosthui...@ob7.co.za, users@kannel.org Cc: users@kannel.org Sent: Wednesday, June 2, 2010 2:35:32 PM Subject: RE: DLR's to MySQL Wild guess: Is the host “sms-gw” defined in /etc/hosts? Maybe Kannel has problems resolving it. Could you post your Kannel log files (debug level 0)? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aubrey Oosthuizen Sent: woensdag 2 juni 2010 13:27 To: users@kannel.org Cc: users@kannel.org Subject: DLR's to MySQL Dear developers We are working on implementing Kannel into Zimbra collaboration suite by adding a Zimlet allowing users to send sms' from their mail inbox. So far we have completed the entire send process of the project, the only thing remaining is setting up the DLR logging into a mySQL database. I have read through the user guide numerous times, and have read blog and forums to figure out how to do this. I have come to the following stepped conclusion. 1. Append the dlr-url and dlr-mask to your sendsms-url. This is the method we use, it gets the information from a .pl script and this calls the sendsms script. * URL EXAMPLE: http://sms-gw/dlr.php?sender=$fromsubject=$subjecttime=$theTime http://sms-gw/dlr.php?sender=$fromsubject=$subjecttime=$theTime * This URL is however URL encoded. my $dlr-url = http%3A%2F%2Fsms-gw%2Fdlr.php%3Fsender%3D%24from%26subject%3D%24subject%26time%3D%24theTime my $url = ' http://sms-gw:13013/cgi-bin/sendsms?username=testerpassword=654321to= http://sms-gw:13013/cgi-bin/sendsms?username=testerpassword=654321to=' . $numbz . 'text='. $text . 'dlr-mask=31' . 'dlr-url=$dlr-url'; $html = getprint ($url); # ok shoot to kannel to send sms. OR Append add a field to the sendsms-user group in your smskannel.conf file. (Note inserted but not used) group = sendsms-user username=XXX password=XXX concatenation=true
RE: Kannel and MCC MNC
You need SS7 access and support to do a HLR lookup. That's not standard Kannel functionality. A short cut to do this, is that some providers allow a DNS based (ip) lookup on certain numbers and they return an operator code. Chimit has code that allows for both options (an ss7 smsc and dns based routing for Kannel). But since this is a quite expensive option, better try an alternative option, like having a major smsc to do those lookups for you. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Barry Murphy Sent: donderdag 3 juni 2010 2:18 To: Users Subject: Kannel and MCC MNC Hi, Is it possible for kannel to do HLR lookup to see a numbers MCC MNC so I can deal with ported numbers myself and choose which route to use based on this information? thanks Barry
RE: Route modem as SMS Sender
Look up allowed-smsc-id in the Kannel users guide. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: donderdag 3 juni 2010 6:11 To: Nikos Balkanas Cc: users@kannel.org Subject: Re: Route modem as SMS Sender Dear Nikos, After trial for few days, I still got negative result. below is the kannel.conf and url to send the SMS --- kannel.conf #core group = core admin-port = 13000 smsbox-port = 13001 admin-password = adminpwd status-password = statuspwd admin-deny-ip = admin-allow-ip = 127.0.0.1 log-file = var/log/kannel/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = /var/log/kannel/kannel.store #dlr-storage = mysql #smsc #wavecom 1 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom1 modemtype = wavecom device = /dev/ttyS0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 2 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom2 modemtype = wavecom device = /dev/ttyS1 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 3 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom3 modemtype = wavecom device = /dev/ttyUSB0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #modem group = modems id = wavecom detect-string = WAVECOM message-storage = SM init-string = AT+CNMI=2,1,0,0,0;+CMEE=1 #init-string = AT+CNMI=2,2,0,0,0;+CMEE=1 #smsbox group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 #smsbox-id = wavecom sendsms-chars = 0123456789 +- global-sender = +628110 log-file = /var/log/kannel/smsbox.log log-level = 1 #send-sms users group = sendsms-user username = sms password = smspwd #services group = sms-service keyword = default #accept-x-kannel-headers = true max-messages = 0 # 0 no reply assume-plain-text = true concatenation = true catch-all = true get-url = http://localhost/tsg/modem?sender=%pmessage=%a; - url to send SMS is: http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=smspwdsmsc=wavecom3to=0811918808text=test I need smsc=wavecom3 only act as sender by put parameter smsc as above, but the result is seem randomly when send sms (random using wavecom1, wavecom2 and wavecom3) Looking forward to have advice and help to fix the problem. Thank you Best Regard AI 2010/5/29 Nikos Balkanas nbalka...@gmail.com: Hi, I think the correct variable is smsc=xxx in your send-url, not smsc-id=xxx. BR, Nikos - Original Message - From: Alvaro Cornejo cornejo.alv...@gmail.com To: aan.isna...@gmail.com Cc: users@kannel.org Sent: Friday, May 28, 2010 4:29 PM Subject: Re: Route modem as SMS Sender use smsc-id=xxx in your sendsms url as well as prefered/denied smsc parameters in smsc configs. Check manual for details Regards Alvaro |-| Envνe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perϊ, Mιxico y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Fri, May 28, 2010 at 3:28 AM, Aan Isnaini aan.isna...@gmail.com wrote: Dear All, I have 3 modems connected to kannel. how to choose / route the modem as sender when I send SMS? Is possible to choose which one modem will send the SMS? Looking forward to have advice and example. Thank you PIN: 21C3628D Powered by Telkomsel BlackBerry®
RE: Delete all SMS in SM storage at start up
Set sim-buffering = true in your config. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: vrijdag 4 juni 2010 13:09 To: users@kannel.org Subject: Delete all SMS in SM storage at start up Dear All, How to to delete all SMS reside at SM on kannel start up? When I start the bearerbox, I need to delete all message in simcard storage, to make sure that simcard storage is empty before kannel running. As I know, it is using AT+CNMI, but I don't understand the parameter should be input. May be other tips/tricks to do that (delete all SMS in SM at start up)? Thank you
RE: Route modem as SMS Sender
In short: If you have smsc-id = wavecom1 in your group = smsc, also put allowed-smsc-id = wavecom1 in the same group. Do this for all your smsc groups. -Original Message- From: Aan Isnaini - Gmail [mailto:aan.isna...@gmail.com] Sent: vrijdag 4 juni 2010 13:02 To: Rene Kluwen Cc: Nikos Balkanas; users@kannel.org Subject: Re: Route modem as SMS Sender Dear Rene, I will try first and find out the solution also example. Thank you On Fri, Jun 4, 2010 at 12:52 AM, Rene Kluwen rene.klu...@chimit.nl wrote: Look up allowed-smsc-id in the Kannel users guide. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: donderdag 3 juni 2010 6:11 To: Nikos Balkanas Cc: users@kannel.org Subject: Re: Route modem as SMS Sender Dear Nikos, After trial for few days, I still got negative result. below is the kannel.conf and url to send the SMS --- kannel.conf #core group = core admin-port = 13000 smsbox-port = 13001 admin-password = adminpwd status-password = statuspwd admin-deny-ip = admin-allow-ip = 127.0.0.1 log-file = var/log/kannel/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = /var/log/kannel/kannel.store #dlr-storage = mysql #smsc #wavecom 1 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom1 modemtype = wavecom device = /dev/ttyS0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 2 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom2 modemtype = wavecom device = /dev/ttyS1 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 3 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom3 modemtype = wavecom device = /dev/ttyUSB0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #modem group = modems id = wavecom detect-string = WAVECOM message-storage = SM init-string = AT+CNMI=2,1,0,0,0;+CMEE=1 #init-string = AT+CNMI=2,2,0,0,0;+CMEE=1 #smsbox group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 #smsbox-id = wavecom sendsms-chars = 0123456789 +- global-sender = +628110 log-file = /var/log/kannel/smsbox.log log-level = 1 #send-sms users group = sendsms-user username = sms password = smspwd #services group = sms-service keyword = default #accept-x-kannel-headers = true max-messages = 0 # 0 no reply assume-plain-text = true concatenation = true catch-all = true get-url = http://localhost/tsg/modem?sender=%pmessage=%a; - url to send SMS is: http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=smspwdsmsc=wavecom3to=0811918808text=test I need smsc=wavecom3 only act as sender by put parameter smsc as above, but the result is seem randomly when send sms (random using wavecom1, wavecom2 and wavecom3) Looking forward to have advice and help to fix the problem. Thank you Best Regard AI 2010/5/29 Nikos Balkanas nbalka...@gmail.com: Hi, I think the correct variable is smsc=xxx in your send-url, not smsc-id=xxx. BR, Nikos - Original Message - From: Alvaro Cornejo cornejo.alv...@gmail.com To: aan.isna...@gmail.com Cc: users@kannel.org Sent: Friday, May 28, 2010 4:29 PM Subject: Re: Route modem as SMS Sender use smsc-id=xxx in your sendsms url as well as prefered/denied smsc parameters in smsc configs. Check manual for details Regards Alvaro |-| Envνe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perϊ, Mιxico y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Fri, May 28, 2010 at 3:28 AM, Aan Isnaini aan.isna...@gmail.com wrote: Dear All, I have 3 modems connected to kannel. how to choose / route the modem as sender when I send SMS? Is possible to choose which one modem will send the SMS? Looking forward to have advice and example. Thank you PIN: 21C3628D Powered by Telkomsel BlackBerry®
RE: Delete all SMS in SM storage at start up
AT+CGMD=4 only deletes the sms at the 4th position. Not all of them. == Rene -Original Message- From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: vrijdag 4 juni 2010 16:04 To: Rene Kluwen; 'Aan Isnaini - Gmail'; users@kannel.org Subject: Re: Delete all SMS in SM storage at start up That will delete all SMS from SIM and then send them. Besides, I suspect that Aan already uses that setting when he refers to SM. I would add in the init-string +CMGD=4 to delete all SMS in SIM at startup, without processing them. This is just a recommendation, I don't have a modem to test it. BR, Nikos - Original Message - From: Rene Kluwen rene.klu...@chimit.nl To: 'Aan Isnaini - Gmail' aan.isna...@gmail.com; users@kannel.org Sent: Friday, June 04, 2010 2:59 PM Subject: RE: Delete all SMS in SM storage at start up Set sim-buffering = true in your config. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: vrijdag 4 juni 2010 13:09 To: users@kannel.org Subject: Delete all SMS in SM storage at start up Dear All, How to to delete all SMS reside at SM on kannel start up? When I start the bearerbox, I need to delete all message in simcard storage, to make sure that simcard storage is empty before kannel running. As I know, it is using AT+CNMI, but I don't understand the parameter should be input. May be other tips/tricks to do that (delete all SMS in SM at start up)? Thank you
RE: Newbie: How to send multiple messages to sms recipients?
Also to send the same sms message to multiple recipients: http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=30957095+123456+78910+etc.text=(insert text) This will send an sms message to 30957095, 123456, 78910, etc. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Thomas Sieh Sent: zondag 6 juni 2010 17:51 To: Martin J. Cc: users@kannel.org Subject: Re: Newbie: How to send multiple messages to sms recipients? hi, if you want to receive messages you have to set up a sms-service in your config. there are multiple ways. you can send the content via parameters to a script (see exec) or to an url, for example (get-url). the content of the message is accessible by the parameters like %b for full binary message, %p for the sender-number... (see documentation). two very simple examples: 1. exec = /home/thomas/sms.sh %q %Q %t %u %a %b sms.sh: #!/bin/bash for var in $@; do echo $var | tee -a /home/goofy/sms_message.txt done echo --- | tee -a /home/thomas/sms_message.txt 2. get-url = http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a http://127.0.0.1/receive_sms: ?php $from = $_GET['from']; $date = $_GET['date']; $text = $_GET['text']; echo The message - From: .$from., Date: .$date., Text: .$text.\r\n; For sending sms in a script you can use lynx -dump ... for example or the GET and POST commands. For example: lynx -dump http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=30957095text=insert+you+text+here; your sending string should be inside a loop over an array with the destination addresses. BR, Thomas On Sun, Jun 06, 2010 at 05:04:08PM +0200, Martin J. wrote: | Hi, | | I have a newbie question: I just started to use Kannel and successfully made | this work: | | ./bearerbox -v 1 sms_GATEWAY_k700i.conf | ./smsbox sms_GATEWAY_k700i.conf | http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=30957095text=(insertyou | text here) | | So, I can send sms'es... Still haven't figured out how to receive them yet, | however... My question is this: I'm volunteer in an organization and we | talked about the possibility of having this kannel-software send out mass | sms'es to multiple recipients... However, I don't want to type each sms | message in the browser bar... I don't know much about http | send/get/receive/whatever so I hoped I could just send sms'es from the | terminal/console under Mac os X | | How to send sms'es from terminal, so I can make a script to send same | message to multiple sms recipients? | | | Thanks...
RE: Is there any user guide for opensource smppbox
Nikos is right, DLR's are routed automagically. There's 2 remarks that go with this: 1. In the file smpplogins.txt, the system-type is used as smsbox-id. So for different users, a different system-type is advised. Based on this id, DLR's are routed to the correct user. 2. DLR's are sent from the bearerbox to smsbox (in this case an smppbox user) and if the current user is not logged on, bearerbox takes it as the particular smsbox is not connected. I am not sure what happens then, but I think the DLR is silently ignored, with a mere warning message. Can somebody confirm this? == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Budi wibowo Sent: maandag 7 juni 2010 14:28 To: Nikos Balkanas Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Yes I have tried it, the kannel reside between smpp server and smsc. DLR between smpp server kannel always 100%, and DLR between kannel and smsc is normal, less than 100%. That's why I need kannel to pass through the dlr. Appreciate if somebody share the config for smppbox. TIA Budi --Original Message-- From: Nikos Balkanas To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 19:13 Why, have you tried it and it won't pass through DLRs? It should do it transparently. BR, Nikos - Original Message - From: Budi wibowo bwib...@gmail.com To: Kiran Reddy ki...@uniceltech.com; users@kannel.org Sent: Monday, June 07, 2010 1:35 PM Subject: Re: Is there any user guide for opensource smppbox Dear all Anybody can share smppbox configuration to pass through delivery report (dlr) . Any help is highly appreciated. Regards Budi --Original Message-- From: Kiran Reddy Sender: users-boun...@kannel.org To: users@kannel.org ReplyTo: Kiran Reddy Subject: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 16:34 Hi All, Is there any opensource SMPPbox user guide is available in online. Regards, Kiran Reddy
RE: Subversion URL?
Try: svn co https://svn.kannel.org/gateway/trunk == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Peter Valdemar Mørch (Lists) Sent: maandag 7 juni 2010 15:47 To: users@kannel.org Subject: Subversion URL? Hi, What is the URL for subversion/svn access? The Source Code link on the kannel.org points to http://redmine.kannel.org/repositories/show/kannel which doesn't tell me where to point my svn client... So I took a look at the downloads page at http://www.kannel.org/download.shtml which talks about instructions for accessing the CVS server - but the redmine interface sure looks like it is showing an svn repository. I tried to check out from CVS and the ChangeLog has newest entry older than the changes in redmine - from 2010-03-20. (Which, btw, just happens to be the last day the daily snapshots where created) Looks like the daily snapshots and the download page are from the good-ol CVS times, but everybody else has moved to SVN. Where? Also, the download page features a bug tracking system link to http://bugs.kannel.org/ which really is just www.kannel.org. So perhaps the Download Page needs an update. Or just a notice that it contains some outdated info. Peter -- Peter Valdemar Mørch http://www.morch.com
RE: Is there any user guide for opensource smppbox
In smppbox.conf: group = smppbox smpp-logins = /path/to/smpplogins.txt This file should exist as a text file with 3 entries per line per smppbox user: -- sample -- system-id-01 password-01 system-type-01 client-02 password-02 vma -- end sample -- Note that the system type field (3rd field) is used as smsbox-id and routing rules are complied with accordingly. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Kiran Reddy Sent: maandag 7 juni 2010 15:40 To: Nikos Balkanas; bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Hi All, Can some one share with me smppbox working configuration with smpp users with example or some one please help me to create users for smppbox so that user can connect smppbox using kannel. Regards, Kiran Reddy ---Original Message--- From: Nikos Balkanas nbalka...@gmail.com To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Sent: Jun 07 '10 6:22pm What are you talking about? opensmppbox is part of bearerbox. It doesn't reside outside bearerbox. Have you tried it? Nikos - Original Message - From: Budi wibowo bwib...@gmail.com To: Nikos Balkanas nbalka...@gmail.com Cc: users@kannel.org Sent: Monday, June 07, 2010 3:28 PM Subject: Re: Is there any user guide for opensource smppbox Yes I have tried it, the kannel reside between smpp server and smsc. DLR between smpp server kannel always 100%, and DLR between kannel and smsc is normal, less than 100%. That's why I need kannel to pass through the dlr. Appreciate if somebody share the config for smppbox. TIA Budi --Original Message-- From: Nikos Balkanas To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 19:13 Why, have you tried it and it won't pass through DLRs? It should do it transparently. BR, Nikos - Original Message - From: Budi wibowo bwib...@gmail.com To: Kiran Reddy ki...@uniceltech.com; users@kannel.org Sent: Monday, June 07, 2010 1:35 PM Subject: Re: Is there any user guide for opensource smppbox Dear all Anybody can share smppbox configuration to pass through delivery report (dlr) . Any help is highly appreciated. Regards Budi --Original Message-- From: Kiran Reddy Sender: users-boun...@kannel.org To: users@kannel.org ReplyTo: Kiran Reddy Subject: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 16:34 Hi All, Is there any opensource SMPPbox user guide is available in online. Regards, Kiran Reddy
RE: Is there any user guide for opensource smppbox
The smpplogins.txt file that is shown with two example user entries. Every smppbox user entry consists of one line, which is three words, separated by spaces or tabs. First word: Username of smppbox user Second word: Password of smppbox user Third word: system-type of smppbox user So in the example, there’s two users: “system-id-01” and “client02”. Clear enough? == Rene From: Kiran Reddy [mailto:ki...@uniceltech.com] Sent: maandag 7 juni 2010 17:16 To: Rene Kluwen; 'Nikos Balkanas'; bwib...@gmail.com Cc: users@kannel.org Subject: RE: Is there any user guide for opensource smppbox Hi All, I Need Small clarification for below configuration. In smppbox.conf: group = smppbox smpp-logins = /path/to/smpplogins.txt This file should exist as a text file with 3 entries per line per smppbox user: -- sample -- system-id-01 password-01 system-type-01 client-02 password-02 vma -- end sample -- SMPPBOX - system-id-01 ? password-01 ? system-type-01 is smsbox-id Client -- client-02 ? (Username ?) password-02 ? (Password ?) vma ? (System Type ?) Regards, Kiran Reddy ---Original Message--- From: Rene Kluwen To: 'Kiran Reddy' , 'Nikos Balkanas' , bwib...@gmail.com Cc: users@kannel.org Subject: RE: Is there any user guide for opensource smppbox Sent: Jun 07 '10 7:25pm In smppbox.conf: group = smppbox smpp-logins = /path/to/smpplogins.txt This file should exist as a text file with 3 entries per line per smppbox user: -- sample -- system-id-01 password-01 system-type-01 client-02 password-02 vma -- end sample -- Note that the system type field (3rd field) is used as smsbox-id and routing rules are complied with accordingly. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Kiran Reddy Sent: maandag 7 juni 2010 15:40 To: Nikos Balkanas; bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Hi All, Can some one share with me smppbox working configuration with smpp users with example or some one please help me to create users for smppbox so that user can connect smppbox using kannel. Regards, Kiran Reddy ---Original Message--- From: Nikos Balkanas To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Sent: Jun 07 '10 6:22pm What are you talking about? opensmppbox is part of bearerbox. It doesn't reside outside bearerbox. Have you tried it? Nikos - Original Message - From: Budi wibowo To: Nikos Balkanas Cc: Sent: Monday, June 07, 2010 3:28 PM Subject: Re: Is there any user guide for opensource smppbox Yes I have tried it, the kannel reside between smpp server and smsc. DLR between smpp server kannel always 100%, and DLR between kannel and smsc is normal, less than 100%. That's why I need kannel to pass through the dlr. Appreciate if somebody share the config for smppbox. TIA Budi --Original Message-- From: Nikos Balkanas To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 19:13 Why, have you tried it and it won't pass through DLRs? It should do it transparently. BR, Nikos - Original Message - From: Budi wibowo To: Kiran Reddy ; Sent: Monday, June 07, 2010 1:35 PM Subject: Re: Is there any user guide for opensource smppbox Dear all Anybody can share smppbox configuration to pass through delivery report (dlr) . Any help is highly appreciated. Regards Budi --Original Message-- From: Kiran Reddy Sender: users-boun...@kannel.org To: users@kannel.org ReplyTo: Kiran Reddy Subject: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 16:34 Hi All, Is there any opensource SMPPbox user guide is available in online. Regards, Kiran Reddy
RE: Is there any user guide for opensource smppbox
Currently, there is no user guide. == Rene -Original Message- From: Kiran Reddy [mailto:ki...@uniceltech.com] Sent: maandag 7 juni 2010 17:35 To: Rene Kluwen; 'Nikos Balkanas'; bwib...@gmail.com Cc: users@kannel.org Subject: RE: Is there any user guide for opensource smppbox Hi Rene, Sorry for asking question do you have user guide for smppbox. If you have user guide can you provide me please. Regards, Kiran Reddy ---Original Message--- From: Rene Kluwen rene.klu...@chimit.nl To: 'Kiran Reddy' ki...@uniceltech.com, 'Nikos Balkanas' nbalka...@gmail.com, bwib...@gmail.com Cc: users@kannel.org Subject: RE: Is there any user guide for opensource smppbox Sent: Jun 07 '10 8:56pm The smpplogins.txt file that is shown with two example user entries. Every smppbox user entry consists of one line, which is three words, separated by spaces or tabs. First word: Username of smppbox user Second word: Password of smppbox user Third word: system-type of smppbox user So in the example, there’s two users: “system-id-01” and “client02”. Clear enough? == Rene FROM: Kiran Reddy [mailto:ki...@uniceltech.com] SENT: maandag 7 juni 2010 17:16 TO: Rene Kluwen; 'Nikos Balkanas'; bwib...@gmail.com CC: users@kannel.org SUBJECT: RE: Is there any user guide for opensource smppbox Hi All, I Need Small clarification for below configuration. In smppbox.conf: group = smppbox smpp-logins = /path/to/smpplogins.txt This file should exist as a text file with 3 entries per line per smppbox user: -- sample -- system-id-01 password-01 system-type-01 client-02 password-02 vma -- end sample -- SMPPBOX - system-id-01 ? password-01 ? system-type-01 is smsbox-id CLIENT -- client-02 ? (Username ?) password-02 ? (Password ?) vma ? (System Type ?) Regards, Kiran Reddy ---Original Message--- From: Rene Kluwen To: 'Kiran Reddy' , 'Nikos Balkanas' , bwib...@gmail.com Cc: users@kannel.org Subject: RE: Is there any user guide for opensource smppbox Sent: Jun 07 '10 7:25pm In smppbox.conf: group = smppbox smpp-logins = /path/to/smpplogins.txt This file should exist as a text file with 3 entries per line per smppbox user: -- sample -- system-id-01 password-01 system-type-01 client-02 password-02 vma -- end sample -- Note that the system type field (3rd field) is used as smsbox-id and routing rules are complied with accordingly. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Kiran Reddy Sent: maandag 7 juni 2010 15:40 To: Nikos Balkanas; bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Hi All, Can some one share with me smppbox working configuration with smpp users with example or some one please help me to create users for smppbox so that user can connect smppbox using kannel. Regards, Kiran Reddy ---Original Message--- From: Nikos Balkanas To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Sent: Jun 07 '10 6:22pm What are you talking about? opensmppbox is part of bearerbox. It doesn't reside outside bearerbox. Have you tried it? Nikos - Original Message - From: Budi wibowo To: Nikos Balkanas Cc: Sent: Monday, June 07, 2010 3:28 PM Subject: Re: Is there any user guide for opensource smppbox Yes I have tried it, the kannel reside between smpp server and smsc. DLR between smpp server kannel always 100%, and DLR between kannel and smsc is normal, less than 100%. That's why I need kannel to pass through the dlr. Appreciate if somebody share the config for smppbox. TIA Budi --Original Message-- From: Nikos Balkanas To: bwib...@gmail.com Cc: users@kannel.org Subject: Re: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 19:13 Why, have you tried it and it won't pass through DLRs? It should do it transparently. BR, Nikos - Original Message - From: Budi wibowo To: Kiran Reddy ; Sent: Monday, June 07, 2010 1:35 PM Subject: Re: Is there any user guide for opensource smppbox Dear all Anybody can share smppbox configuration to pass through delivery report (dlr) . Any help is highly appreciated. Regards Budi --Original Message-- From: Kiran Reddy Sender: users-boun...@kannel.org To: users@kannel.org ReplyTo: Kiran Reddy Subject: Is there any user guide for opensource smppbox Sent: Jun 7, 2010 16:34 Hi All, Is there any opensource SMPPbox user guide is available in online. Regards, Kiran Reddy
RE: SIM Data download using kannel
Shouldn't you be using the AT+CMGW command to do that, instead of AT+CMGS that Kannel is using? Just a question. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Arnar Gestsson Sent: dinsdag 8 juni 2010 16:05 To: users@kannel.org Subject: SIM Data download using kannel Hi guys, I want to do sim data download using http interface of kannel. I want to send command to sim to read binary of a EF, such as A0A4023F00A0A4027F20A0A4026F7BA0B000 given that I have the profile data required, i.e. the keys, SPI, KiC, KiD values as well as the TAR value. Then the correct way to send it would be .../cgi-bin/sendsms?username=XXXpassword=YYYudh=%02%70%00text=url-encode d-command-message-in-03.48-formatcoding=1pid=127mclass=2 wouldn't it? This message should come correctly into the ME and been packed into SMS-Point-to-Point Envelop in the ME and sent to the SIMCard, shouldn't it? Isn't there anyone out there that can confirm this? BR. Arnar
RE: SIM Data download using kannel
What are you trying to do? Write a virus? Heh... I don't believe it is going to work... but if it does: please share ;) == Rene -Original Message- From: Arnar Gestsson [mailto:arnargests...@gmail.com] Sent: dinsdag 8 juni 2010 16:14 To: Rene Kluwen Cc: users@kannel.org Subject: Re: SIM Data download using kannel Hi Rene, I intend to send this over an SMPP connection, so I'm not using AT commands at all. Arnar On 06/08/2010 04:11 PM, Rene Kluwen wrote: Shouldn't you be using the AT+CMGW command to do that, instead of AT+CMGS that Kannel is using? Just a question. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Arnar Gestsson Sent: dinsdag 8 juni 2010 16:05 To: users@kannel.org Subject: SIM Data download using kannel Hi guys, I want to do sim data download using http interface of kannel. I want to send command to sim to read binary of a EF, such as A0A4023F00A0A4027F20A0A4026F7BA0B000 given that I have the profile data required, i.e. the keys, SPI, KiC, KiD values as well as the TAR value. Then the correct way to send it would be .../cgi-bin/sendsms?username=XXXpassword=YYYudh=%02%70%00text=url-encode d-command-message-in-03.48-formatcoding=1pid=127mclass=2 wouldn't it? This message should come correctly into the ME and been packed into SMS-Point-to-Point Envelop in the ME and sent to the SIMCard, shouldn't it? Isn't there anyone out there that can confirm this? BR. Arnar
RE: DLR-url not being called
Could you also post your smsbox.log? From: devel-boun...@kannel.org [mailto:devel-boun...@kannel.org] On Behalf Of Matthew Muscat Sent: donderdag 10 juni 2010 5:28 To: de...@kannel.org Subject: DLR-url not being called Hey everyone, cannot seem to figure out whats going wrong here and was hoping someone might have an idea as to whats wrong... basically all my sms's are able to be sent out however getting a status of the message doesn't work (please note ive blanked out specific urls and usernames/passwords - smpp1test.com is replaced too) basiaclly my php script calls the sendsms cgi which all works fine and sends dlr-mask=31 and a urlencoded dlr-url $dlr_url = http://sms.*.com.au/delivery_report.php?smsId=$messageId[$i] http://com.au/delivery_report.php?smsId=$messageId%5b$i%5dsmscId=%25istat us=%25Adest=%25p smscId=%istatus=%Adest=%p; $r= new HttpRequest(http://127.0.0.1:13002/cgi-bin/sendsms;, HttpRequest::METH_GET); $r-addQueryData(array(username=matthew,password=password,from=$sende rId,to=$sendList[$i],text=urlencode($message),dlr-mask=31,dlr-url=urle ncode($dlr_url))); so overall my request turns out like... http://127.0.0.1:13002/cgi-bin/sendsms?username= http://127.0.0.1:13002/cgi-bin/sendsms?username=password=from=$fr omto=$totext=$tmessagedlr-mask=31dlr-url=$dlr_url password=from=$fromto=$totext=$tmessagedlr-mask=31dlr-url=$dlr_url message gets sent, can see it on the providers ends - however no report comes back - of which i can type in the url manually and it will update my database accordingly i think the issue stems from this line 2010-06-10 13:07:39 [27802] [0] INFO: DLR rerouting for smsc id smpp1 disabled. however i dont know what is causing this any ideas? - a big thanks to anyone that can help! my log file for the core is... 2010-06-10 13:07:39 [27802] [0] INFO: Added logfile `/home/*/kannel.log' with level `0'. 2010-06-10 13:07:39 [27802] [0] INFO: HTTP: Opening server at port 13000. 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2010-06-10 13:07:39 [27802] [0] DEBUG: starting smsbox connection module 2010-06-10 13:07:39 [27802] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 27802. 2010-06-10 13:07:39 [27802] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 27802. 2010-06-10 13:07:39 [27802] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 27802. 2010-06-10 13:07:39 [27802] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-06-10 13:07:39 [27802] [0] DEBUG: Adding smsbox routing to id smpp1 for receiver no * and smsc id smpp1 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2010-06-10 13:07:39 [27802] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 27802. 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2010-06-10 13:07:39 [27802] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-06-10 13:07:39 [27802] [0] INFO: SMS resend retry set to unlimited. 2010-06-10 13:07:39 [27802] [0] DEBUG: smsbox MO concatenated message handling enabled 2010-06-10 13:07:39 [27802] [0] INFO: DLR rerouting for smsc id smpp1 disabled. 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread) 2010-06-10 13:07:39 [27802] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 27802. 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 7 (gw/smsc/smsc_smpp.c:io_thread) 2010-06-10 13:07:39 [27802] [0] DEBUG: Started thread 8 (gw/bb_smscconn.c:sms_router) 2010-06-10 13:07:39 [27802] [0] INFO: 2010-06-10 13:07:39 [27802] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2010-06-10 13:07:39 [27802] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) maps to pid 27802. 2010-06-10 13:07:39 [27802] [0] INFO: MAIN: Start-up done, entering mainloop 2010-06-10 13:07:39 [27802] [7] DEBUG: Thread 7 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 27802. 2010-06-10 13:07:39 [27802] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 27802. 2010-06-10 13:07:40 [27802] [6] DEBUG: SMPP[smpp1]: Sending PDU: 2010-06-10 13:07:40 [27802] [6] DEBUG: SMPP PDU 0x2b5d080010a0 dump: 2010-06-10 13:07:40 [27802] [6] DEBUG: type_name: bind_transceiver 2010-06-10 13:07:40 [27802] [6] DEBUG: command_id: 9 = 0x0009 2010-06-10 13:07:40 [27802] [6] DEBUG: command_status: 0 = 0x 2010-06-10 13:07:40 [27802] [6] DEBUG: sequence_number: 1 = 0x0001 2010-06-10 13:07:40 [27802] [6] DEBUG: system_id: * 2010-06-10 13:07:40 [27802] [6] DEBUG: password: * 2010-06-10 13:07:40 [27802] [6] DEBUG: system_type: default 2010-06-10 13:07:40 [27802] [6] DEBUG: interface_version: 52 =
RE: SMS Forwarding
Sure, this is very well possible with Kannel. Your Asterisk server won't help you very much, but Kannel is the only thing you need for this. Which country should the local DID be in? There's two options: Purchase a DID via an sms aggregrator. Or hook up a cellphone or cellular modem with a local SIM card in it. To relay the sms messages you have the same options and depending on the country of the destination numbers, one of those two options is the cheapest. One small disadvantage: If you are doing the same trick with phone calls via your Asterisk server, probably you cannot use the same number to dial and to send sms. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Mike Weichert Sent: donderdag 10 juni 2010 19:53 To: users@kannel.org Subject: SMS Forwarding Hi, I'm wondering if I could somehow use Kannel for SMS forwarding. For my company, all of our cell phones have an SMS plan that allows them to receive SMS messages internationally for free, but only send SMS messages locally. However, there are two international numbers that we want the ability to send SMS messages to. What I was hoping to achieve is something similar to the following: - Purchase a DID that will be local for all of our cell phones - The DID will be terminated with a Kannel gateway - meaning that when a message is sent to the DID, it will go through the Kennel gateway - The Kannel gateway will then send the SMS to a specified international number, that would not have been possible for the cell phone originally Is this possible? What sort of pieces do I need to get together. We have an Asterisk server for our VoIP/Telephony needs that we can use to help achieve this. Any ideas? Thanks, Mike
[PATCH] RE: Messages with php stripslashes
Sorry for crossposting. But I think the users are allowed to know what is going on, even if this is a developers matter. I think I found the solution to the problem below, which affects all smsbox-sqlbox-bearerbox users. I must admit: Haven't tested it yet. But it should work. See attached patch. Votes? -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Tomasz Sent: vrijdag 11 juni 2010 15:10 To: Kannel list Subject: Re: Messages with php stripslashes Hi, I've got the same issue - when we send MT message by CGI which contains ' sign, the recipient gets \' (escaped '). When we inject MT directly to MySQL Database, recipient get only ' sing (valid!). Our configuration is: PHP MT PUSH - SMSBOX - SQLBOX - BEARERBOX - SMSC The problem is caused probably by SQLBOX - somewhere there must be some kind of addslashes function. Escaped sign is being delivered to BEARERBOX. I've tried to find this is source code but I was unable. Have someone fixed this problem yet? Thanks Tomasz W Twoim liście datowanym 24 maja 2010 (02:05:22) można przeczytać: I have posted some weeks ago a similar issue with sqlbox but it is not resolved for the moment, Alejandro to check on his side to reproduce the issue. Check my post in the mailling list archive to see if it the same problem: Object: *Quote and backslash issue* As you when using CGI interface to send a SMS I got the quote escaped on the mobile, BUT when using directly SQL injection on sqlbox it works correctly. Regards, Emmanuel sql-escape.patch Description: Binary data
RE: [PATCH] RE: Messages with php stripslashes
msg_duplicate is the normal function from msg.h. No special meaning. What happens is that gw_sql_save has a side effect. It escapes all text strings with a backslash before the ' sign because it displays them in the INSERT INTO... statement in the database. When I designed the function I was under the impression that it escaped the strings in a copy... But apparently it doesn't. What happens in the old version is that gw_sql_save_msg escapes the strings inline and later it does a send_msg(conn-smsbox_connection, conn, msg) with the same message... which has a backslash in front of the '. By duplicating the message before calling the gw_sql_save_msg, this behavior is eliminated. Someone on the mailinglist (Tomasz) has already confirmed that the problem has been solved with this patch. == Rene -Original Message- From: Alejandro Guerrieri [mailto:aguerri...@kannel.org] Sent: vrijdag 11 juni 2010 23:52 To: Rene Kluwen Cc: 'Tomasz'; 'Kannel list'; de...@kannel.org Subject: Re: [PATCH] RE: Messages with php stripslashes + msg_escaped = msg_duplicate(msg); if (msg-sms.sms_type != report_mo) -gw_sql_save_msg(msg, octstr_imm(MO)); +gw_sql_save_msg(msg_escaped, octstr_imm(MO)); else -gw_sql_save_msg(msg, octstr_imm(DLR)); +gw_sql_save_msg(msg_escaped, octstr_imm(DLR)); + msg_destroy(msg_escaped); and -gw_sql_save_msg(msg, octstr_imm(MT)); + msg_escaped = msg_duplicate(msg); +gw_sql_save_msg(msg_escaped, octstr_imm(MT)); + msg_destroy(msg_escaped); (and other similar lines) You're duplicating the msg to msg_escaped and then running the same gw_sql_save_msg function? What difference does it make? Or maybe msg_duplicate does some escaping magic I'm not aware of? If msg_duplicate does what the name says, I don't see what's changed. Regards, Alex -- Alejandro Guerrieri aguerri...@kannel.org On 11/06/2010, at 23:25, Rene Kluwen wrote: Sorry for crossposting. But I think the users are allowed to know what is going on, even if this is a developers matter. I think I found the solution to the problem below, which affects all smsbox-sqlbox-bearerbox users. I must admit: Haven't tested it yet. But it should work. See attached patch. Votes? -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Tomasz Sent: vrijdag 11 juni 2010 15:10 To: Kannel list Subject: Re: Messages with php stripslashes Hi, I've got the same issue - when we send MT message by CGI which contains ' sign, the recipient gets \' (escaped '). When we inject MT directly to MySQL Database, recipient get only ' sing (valid!). Our configuration is: PHP MT PUSH - SMSBOX - SQLBOX - BEARERBOX - SMSC The problem is caused probably by SQLBOX - somewhere there must be some kind of addslashes function. Escaped sign is being delivered to BEARERBOX. I've tried to find this is source code but I was unable. Have someone fixed this problem yet? Thanks Tomasz W Twoim liście datowanym 24 maja 2010 (02:05:22) można przeczytać: I have posted some weeks ago a similar issue with sqlbox but it is not resolved for the moment, Alejandro to check on his side to reproduce the issue. Check my post in the mailling list archive to see if it the same problem: Object: *Quote and backslash issue* As you when using CGI interface to send a SMS I got the quote escaped on the mobile, BUT when using directly SQL injection on sqlbox it works correctly. Regards, Emmanuel sql-escape.patch
RE: Issue with concatenated messages and load balancing over SMPP
Yes, it seems to be a bug in the current version. -Original Message- From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: dinsdag 15 juni 2010 15:35 To: Tomasz; rene.klu...@chimit.nl Cc: users@kannel.org Subject: Re: Issue with concatenated messages and load balancing over SMPP Yes. That is pretty much what I said (concerning concatenation). SMPPbox seems to need a patch for that. @Rene: Have you come across this issue in production? BR, Nikos - Original Message - From: Tomasz ad...@impexrur.pl To: users@kannel.org Sent: Tuesday, June 15, 2010 3:31 PM Subject: Re: Issue with concatenated messages and load balancing over SMPP Hi Nikos, Sorry, I didn't make it so clear in my first post. I use other smsc-id for each SMSC but I use also some virtual smsc-id at allowed-smsc-id which is identical for several SMSC. It allows me to make several SMSC groups with load balancing - each group has several modems. Then I specify this virtual smsc-id in SMPPBOX config (route-to-smsc) and kannel makes load-balancing :) Everything works great with non-concatenated messages. I've also found that issue is caused by SMPPBOX as it pass to bearerbox two messages (received from BB 1) instead of 1. It makes that each part of concatenated is being sent via different smsc, due to load balancing. Regards, Tomasz Hi, You are not using correct configuration for load-balancing. Use different smsc-id for each smsc and simply do not specify smsc in your sendsms url. Kannel will load-balance SMS using rand() and load on each smsc. This will allow finer control (load) over your smscs, since when you want to use a specific SMSc (termination issues?) you can still direct to a specific SMSc from your sendsms URL. For that you will want to specify preferred-smsc-id as itself in each smsc definition. However, I suspect that this will not fix your problem. For a fix, SMPPbox needs to reassemble SMS to 1 before sending it to bearerbox 2. Any takers on that? BR, Nikos
RE: Mask shorcode and reply to number
Either you specify 9696 in from= or Offers. You cannot do both at the same time. Maybe you can start with Offers in your SMS, if that is an option for you. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Sergio Gabriel Gallegos Sent: vrijdag 18 juni 2010 16:30 To: users@kannel.org Subject: Mask shorcode and reply to number I wish put mask at shortcode ( 9696 ) maybe Offer , but if the user want reply i wish he sending the message at 9696 not at Offers , now sending the mask Offers is this : usr=.USER.pwd=.PASSWORD.from=Ofersto=123456789012text=Promotionssms c=transmitter; but when recieve the MT in the mobil and the user want reply appear Offers not 9696 , how to i can make the user reply at my short code ? Thks
RE: Kannel as an SMSC
Please note that the most current version of (open) smppbox is in the svn repository, not the cvs. But maybe you meant svn in stead of cvs. Either way, good to know that it works for you now. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Mohamed Ould Mohamed Salem Sent: vrijdag 18 juni 2010 19:25 To: Kannel users Subject: Re: Kannel as an SMSC I got it, I downloaded the latest cvs, compiled it and it worked. thank you, --- On Fri, 6/18/10, sangprabv sangpr...@gmail.com wrote: From: sangprabv sangpr...@gmail.com Subject: Re: Kannel as an SMSC To: medms...@yahoo.fr Cc: Kannel users users@kannel.org Date: Friday, June 18, 2010, 6:35 PM Please do man patch, you will find the answer. sangprabv sangpr...@gmail.com On Jun 18, 2010, at 10:46 PM, Mohamed Ould Mohamed Salem wrote: I downloaded the SMPPBox, tried to compile it but it gives some errors after make: -- SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql -MT smppbox.o -MD -MP -MF .deps/smppbox.Tpo -c -o smppbox.o smppbox.c; \ then mv -f .deps/smppbox.Tpo .deps/smppbox.Po; else rm -f .deps/smppbox.Tpo; exit 1; fi smppbox.c:1851:1: warning: OCTSTR redefined smppbox.c:1827:1: warning: this is the location of the previous definition smppbox.c:1852:1: warning: SINGLE_GROUP redefined smppbox.c:1830:1: warning: this is the location of the previous definition smppbox.c:1855:1: warning: MULTI_GROUP redefined smppbox.c:1837:1: warning: this is the location of the previous definition smppbox.c: In function ‘send_pdu’: smppbox.c:379: warning: passing argument 1 of ‘smpp_pdu_pack’ from incompatible pointer type /usr/local/include/kannel/gw/smsc/smpp_pdu.h:230: note: expected ‘struct SMPP_PDU *’ but argument is of type ‘struct Octstr *’ smppbox.c:379: error: too many arguments to function ‘smpp_pdu_pack’ smppbox.c: In function ‘read_pdu’: smppbox.c:436: error: too many arguments to function ‘smpp_pdu_unpack’ make[2]: *** [smppbox.o] Error 1 make[2]: Leaving directory `/root/trunks/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/trunks' make: *** [all] Error 2 --- I saw in one thread on the list that it should be patched, probably not the right place to ask this question, but patch with what and how? Yours, Mohamed --- On Fri, 6/18/10, Konstantin Vayner pon...@appcell.net wrote: From: Konstantin Vayner pon...@appcell.net Subject: Re: Kannel as an SMSC To: Mohamed Ould Mohamed Salem medms...@yahoo.fr Date: Friday, June 18, 2010, 3:35 PM It's an svn tree Use an svn (subversion) client and point it to that repository On Fri, Jun 18, 2010 at 4:30 PM, Mohamed Ould Mohamed Salem medms...@yahoo.fr wrote: Sorry for being a nood, but how do i download it, file by file? or is there a compressed file that i missed? Yours, Mohamed _ From: Konstantin Vayner pon...@appcell.net To: Mohamed Ould Mohamed Salem medms...@yahoo.fr Cc: Kannel users users@kannel.org Sent: Fri, June 18, 2010 1:09:13 PM Subject: Re: Kannel as an SMSC Hi Mohamed, You can use SMPPbox with Kannel - it is an smpp server There is opensource one release by Rene Kluwen - you can find it here: https://svn.kannel.org/smppbox/trunk https://svn.kannel.org/smppbox/trunk and it is supported by regular community means (via this mailing list). OR Theres commercial smppbox created, maintained and supported by Stipe Tolj - in this case you need to contact him directly regarding pricing and availability. Regards, Konstantin On Fri, Jun 18, 2010 at 3:57 PM, Mohamed Ould Mohamed Salem medms...@yahoo.fr wrote: Hello everyone, I want to connect my kannel box with another sms gateway via SMPP, with neither of them being an smsc, is there a way to do this with kannel. If not, can kannel act as an smsc? Yours, Mohamed
RE: smppbox sms
It should be possible to put sqlbox in between (open) smppbox and bearerbox. It will log all messages that are passed in between. Honestly, I didnt test it. But I dont see any reason why it shouldnt work. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Omar THIAM Sent: vrijdag 18 juni 2010 18:12 To: s...@arial-concept.com Cc: users@kannel.org Subject: smppbox sms Hi, I'm working on smppbox and i know that it works like smsc but. Now my question is how can i store all sms(MO and MT) throw the smppbox? _ Hotmail : une messagerie performante et gratuite avec une sécurité signée Microsoft Profitez-en https://signup.live.com/signup.aspx?id=60969
For the ones using (open) smppbox...
Today, I committted a patch to smppbox svn trunk that allows for long (catenated) messages to be delivered via the same smsc, in case of load balancing. This version obsoletes that patch that is available for download on the chimit server. For the latest (stand-alone) version, use svn co https://svn.kannel.org/smppbox/trunk == Rene Kluwen
RE: Mask shorcode and reply to number
I think the maximum length of an alphanumeric sender ID is 11 characters? But maybe I am wrong. == Rene -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: vrijdag 18 juni 2010 23:19 To: Rene Kluwen Cc: Sergio Gabriel Gallegos; users@kannel.org Subject: Re: Mask shorcode and reply to number maybe Offers (9696) ? |--- --| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Fri, Jun 18, 2010 at 1:47 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Either you specify 9696 in from= or Offers. You cannot do both at the same time. Maybe you can start with Offers in your SMS, if that is an option for you. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Sergio Gabriel Gallegos Sent: vrijdag 18 juni 2010 16:30 To: users@kannel.org Subject: Mask shorcode and reply to number I wish put mask at shortcode ( 9696 ) maybe Offer , but if the user want reply i wish he sending the message at 9696 not at Offers , now sending the mask Offers is this : usr=.USER.pwd=.PASSWORD.from=Ofersto=123456789012text=Promotionssms c=transmitter; but when recieve the MT in the mobil and the user want reply appear Offers not 9696 , how to i can make the user reply at my short code ? Thks
RE: Mask shorcode and reply to number
Apologies for the dubbel post. Also, still, people won't be able to reply. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Rene Kluwen Sent: zaterdag 19 juni 2010 0:23 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Mask shorcode and reply to number I think the maximum length of an alphanumeric sender ID is 11 characters? But maybe I am wrong. == Rene -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: vrijdag 18 juni 2010 23:19 To: Rene Kluwen Cc: Sergio Gabriel Gallegos; users@kannel.org Subject: Re: Mask shorcode and reply to number maybe Offers (9696) ? |--- --| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Fri, Jun 18, 2010 at 1:47 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Either you specify 9696 in from= or Offers. You cannot do both at the same time. Maybe you can start with Offers in your SMS, if that is an option for you. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Sergio Gabriel Gallegos Sent: vrijdag 18 juni 2010 16:30 To: users@kannel.org Subject: Mask shorcode and reply to number I wish put mask at shortcode ( 9696 ) maybe Offer , but if the user want reply i wish he sending the message at 9696 not at Offers , now sending the mask Offers is this : usr=.USER.pwd=.PASSWORD.from=Ofersto=123456789012text=Promotionssms c=transmitter; but when recieve the MT in the mobil and the user want reply appear Offers not 9696 , how to i can make the user reply at my short code ? Thks
RE: For the ones using (open) smppbox...
I am thinking of a possibility. Does the group = smsbox-route also route incoming message from a box? Or just incoming messages from the smsc-link? == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikos Balkanas Sent: zaterdag 19 juni 2010 14:15 To: sangprabv Cc: users@kannel.org Subject: Re: For the ones using (open) smppbox... Nope. The way it works is (SMPP_CLIENT = ESME): ESME - SMPPBOX -Bearerbox-SMSC The connection from ESME is SMPP. The connection to Bearerbox is (Msg *), which is a kannel protocol. ESME can be any SMPP client. BR, Nikos - Original Message - From: sangprabv sangpr...@gmail.com To: Rene Kluwen rene.klu...@chimit.nl Cc: users@kannel.org Sent: Saturday, June 19, 2010 2:55 PM Subject: Re: For the ones using (open) smppbox... What about a pass-thru(forward) configuration between connections? Is it possible, let's say we want to pass traffics SMPP_CLIENT_A -SMPPBOX-SMPP_CLIENT_B. sangprabv sangpr...@gmail.com On Jun 19, 2010, at 3:31 AM, Rene Kluwen wrote: Today, I committted a patch to smppbox svn trunk that allows for long (catenated) messages to be delivered via the same smsc, in case of load balancing. This version obsoletes that patch that is available for download on the chimit server. For the latest (stand-alone) version, use svn co https://svn.kannel.org/smppbox/trunk == Rene Kluwen
RE: For the ones using (open) smppbox...
Pass-thru seems to work the other way around. For this to work, your clients need to run smppbox. The setup will be as follows: /SMPPBOX_CLIENT_1 YOUR_BEARERBOX \SMPPBOX_CLIENT_2 With the bearerbox reroute-smsc-id messages can be passed in between the client. Probably this setup is not what you wanted. But it is a possibility. == Rene -Original Message- From: sangprabv [mailto:sangpr...@gmail.com] Sent: zaterdag 19 juni 2010 13:55 To: Rene Kluwen Cc: users@kannel.org Subject: Re: For the ones using (open) smppbox... What about a pass-thru(forward) configuration between connections? Is it possible, let's say we want to pass traffics SMPP_CLIENT_A -SMPPBOX-SMPP_CLIENT_B. sangprabv sangpr...@gmail.com On Jun 19, 2010, at 3:31 AM, Rene Kluwen wrote: Today, I committted a patch to smppbox svn trunk that allows for long (catenated) messages to be delivered via the same smsc, in case of load balancing. This version obsoletes that patch that is available for download on the chimit server. For the latest (stand-alone) version, use svn co https://svn.kannel.org/smppbox/trunk == Rene Kluwen
RE: For the ones using (open) smppbox...
I agree with that. I was looking at some alternatives today. And this seems the most appropriate. == Rene From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: zaterdag 19 juni 2010 17:47 To: sangprabv Cc: Rene Kluwen; users@kannel.org Subject: Re: For the ones using (open) smppbox... What about implementing reroute-smsbox-id on bearerbox? That would provide a consistent interface, similar to what reroute-smsc-id does already. Regards, Alex On Sat, Jun 19, 2010 at 5:26 PM, sangprabv sangpr...@gmail.com wrote: My goal is pass all traffics from ESME A to ESME B and vice versa (it's a about reroute I guess). So there should be and SMPPBOX rather than BEARERBOX in between, CMIIW :) sangprabv sangpr...@gmail.com On Jun 19, 2010, at 10:16 PM, Rene Kluwen wrote: Pass-thru seems to work the other way around. For this to work, your clients need to run smppbox. The setup will be as follows: /SMPPBOX_CLIENT_1 YOUR_BEARERBOX \SMPPBOX_CLIENT_2 With the bearerbox reroute-smsc-id messages can be passed in between the client. Probably this setup is not what you wanted. But it is a possibility. == Rene -Original Message- From: sangprabv [mailto:sangpr...@gmail.com] Sent: zaterdag 19 juni 2010 13:55 To: Rene Kluwen Cc: users@kannel.org Subject: Re: For the ones using (open) smppbox... What about a pass-thru(forward) configuration between connections? Is it possible, let's say we want to pass traffics SMPP_CLIENT_A -SMPPBOX-SMPP_CLIENT_B. sangprabv sangpr...@gmail.com On Jun 19, 2010, at 3:31 AM, Rene Kluwen wrote: Today, I committted a patch to smppbox svn trunk that allows for long (catenated) messages to be delivered via the same smsc, in case of load balancing. This version obsoletes that patch that is available for download on the chimit server. For the latest (stand-alone) version, use svn co https://svn.kannel.org/smppbox/trunk == Rene Kluwen