Re: multi-part sms order
As it turns out, while the multi-parts are sent out of order, I was wrong about it reversing. When the multi-part is two, its reversed (#2, #1). When its three or more, its like this: #3, #1, #2 On Jan 23, 2008, at 5:35 AM, Iain Dooley wrote: hey, i don't have any messages to reply to on this thread cos i deleted them, but if kannel reliably reverses the order of messages and you need them in the opposite order, is it a reasonably simple task to reverse long messages before you send them? in PHP: if(strlen($msg)160) { $bits = breakMessageInto153CharacterBits($msg); array_reverse($bits); foreach($bits as $bit) kannelSend($bit); } of course you'd need to implement breakMessageInto153CharacterBits () :) that would involve a few calls to substr()... nothing too hairy or resource hungry. cheers iain
Re: multi-part sms order
I dug around in the code and figured out what was going on. I've submitted a bug on it (#436), along with a simple fix. On Jan 22, 2008, at 9:45 PM, Andrew B wrote: Hi Aaron, I have noticed the same issue when sending MMS notifications from mbuni (or even directly from kannel). Have you found anything more about this? I feel this is the problem that my phone can't decode the multi- part MMS Notification messages. Thanks -Andrew
Re: multi-part sms order
I've finally had time to revisit this issue. Turns out that kannel sends multi-part smses in *reverse* order. This happens whether concatenation is true or false. For example, lets say I send this 220 character-long message: test abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde f The kannel modem log looks like this (edited for brevity): DEBUG: AT2[modem]: TP-Validity-Period: 24.0 hours DEBUG: AT2[modem]: -- AT+CMGS=79^M DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: send command status: 1 DEBUG: AT2[modem]: -- 0051000C91362950813311A74A05000300020240E6333AAD5E83C2E231B90C329FD1 69F51A14168FC96590F98C4EABD7A0B0784C2E83CC67745ABD0685C5637219643EA3D3EA 35282C1E93CB2033 DEBUG: AT2[modem]: -- ^Z DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: -- +CMGS: 239 DEBUG: AT2[modem]: -- OK DEBUG: AT2[modem]: send command status: 0 DEBUG: AT2[modem]: TP-Validity-Period: 24.0 hours DEBUG: AT2[modem]: -- AT+CMGS=154^M DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: send command status: 1 DEBUG: AT2[modem]: -- 0071000C91362950813311A7A0050003000201E8E5391D14168FC96590F98C4EABD7 A0B0784C2E83CC67745ABD0685C5637219643EA3D3EA35282C1E93CB20F3199D56AF4161 F1985C0699CFE8B47A0D0A8BC7E432C87C46A7D56B50583C269741E6333AAD5E83C2E231 B90C329FD169F51A14168FC96590F98C4EABD7A0B0784C2E83CC67745ABD0685C5637219 643EA3D3EA35282C1E93CB DEBUG: AT2[modem]: -- ^Z DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: -- +CMGS: 239 DEBUG: AT2[modem]: -- OK DEBUG: AT2[modem]: send command status: 0 Just eye-balling it looks suspicious. Since the message length is 220, the two parts are not going to be the same size. Shouldn't the big part get sent first? In fact, decoding the PDUs confirms my suspicion (using this). The first pdu sent to the modem is fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde f which is clearly the second part. The second pdu sent to the modem is test abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde which is clearly the first part. Why is kannel reversing the sms order sent to the modem? Thanks, aaron On Nov 5, 2007, at 12:44 PM, info.ubichip wrote: Hi all, AFAIK, send content through SMS should be managed by a protocol such as SAR : Segmentation And Reassembly, this is a Mécanism used to segment and reassemble the different paquets SAR is used with wap gateway and is supposed to be handled by the phone as well. The fact that the packets are arrived in the correct order is upon the operator responsibility (typically differents SMS are not always proceed by the same SMSC), there is nothing to do on the kannel side. Hope that helps, Regards From: Ady Wicaksono [mailto:[EMAIL PROTECTED] Sent: dimanche 4 novembre 2007 20:37 To: [EMAIL PROTECTED] Cc: users@kannel.org Subject: Re: multi-part sms order It's normal, and offcourse mobile phone must wait all messages to arrive first until it can reassemble the message. On 11/5/07, Aaron Simmons [EMAIL PROTECTED] wrote: My system is sending a lot of multi-part smses. While the sending works, I've noticed that the parts usually arrive in reverse order or out of order. e.g., if I'm sending a three-part sms, part three will arrive at the user's phone first, followed by part two, followed by part one. The user's phone will of course reassemble the message, but they must wait to read their message until part one arrives. Is anyone else seeing this? Or is it an idiosyncracy of the gsm phone I'm using to send the messages? I'm using kannel 1.4.1 with a nokia. Thanks, aaron -- Regards, Ady Wicaksono Email: ady.wicaksono at gmail.com http://adywicaksono.wordpress.com/ Antivirus avast!: message Sortant sain. Base de donnees virale (VPS) : 071104-0, 04/11/2007 Analyse le : 04/11/2007 20:44:24 avast! - copyright (c) 1988-2007 ALWIL Software.
Re: multi-part sms order
I originally found this issue in 1.4.1. However, I just did a cvs checkout and it occurs there as well. On Jan 22, 2008, at 10:38 AM, Aaron Simmons wrote: I've finally had time to revisit this issue. Turns out that kannel sends multi-part smses in *reverse* order. This happens whether concatenation is true or false. For example, lets say I send this 220 character-long message: test abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde f The kannel modem log looks like this (edited for brevity): DEBUG: AT2[modem]: TP-Validity-Period: 24.0 hours DEBUG: AT2[modem]: -- AT+CMGS=79^M DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: send command status: 1 DEBUG: AT2[modem]: -- 0051000C91362950813311A74A05000300020240E6333AAD5E83C2E231B90C329F D169F51A14168FC96590F98C4EABD7A0B0784C2E83CC67745ABD0685C5637219643EA3 D3EA35282C1E93CB2033 DEBUG: AT2[modem]: -- ^Z DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: -- +CMGS: 239 DEBUG: AT2[modem]: -- OK DEBUG: AT2[modem]: send command status: 0 DEBUG: AT2[modem]: TP-Validity-Period: 24.0 hours DEBUG: AT2[modem]: -- AT+CMGS=154^M DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: send command status: 1 DEBUG: AT2[modem]: -- 0071000C91362950813311A7A0050003000201E8E5391D14168FC96590F98C4EAB D7A0B0784C2E83CC67745ABD0685C5637219643EA3D3EA35282C1E93CB20F3199D56AF 4161F1985C0699CFE8B47A0D0A8BC7E432C87C46A7D56B50583C269741E6333AAD5E83 C2E231B90C329FD169F51A14168FC96590F98C4EABD7A0B0784C2E83CC67745ABD0685 C5637219643EA3D3EA35282C1E93CB DEBUG: AT2[modem]: -- ^Z DEBUG: AT2[modem]: -- DEBUG: AT2[modem]: -- +CMGS: 239 DEBUG: AT2[modem]: -- OK DEBUG: AT2[modem]: send command status: 0 Just eye-balling it looks suspicious. Since the message length is 220, the two parts are not going to be the same size. Shouldn't the big part get sent first? In fact, decoding the PDUs confirms my suspicion (using this). The first pdu sent to the modem is fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde f which is clearly the second part. The second pdu sent to the modem is test abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde fghijk abcde which is clearly the first part. Why is kannel reversing the sms order sent to the modem? Thanks, aaron On Nov 5, 2007, at 12:44 PM, info.ubichip wrote: Hi all, AFAIK, send content through SMS should be managed by a protocol such as SAR : Segmentation And Reassembly, this is a Mécanism used to segment and reassemble the different paquets SAR is used with wap gateway and is supposed to be handled by the phone as well. The fact that the packets are arrived in the correct order is upon the operator responsibility (typically differents SMS are not always proceed by the same SMSC), there is nothing to do on the kannel side. Hope that helps, Regards From: Ady Wicaksono [mailto:[EMAIL PROTECTED] Sent: dimanche 4 novembre 2007 20:37 To: [EMAIL PROTECTED] Cc: users@kannel.org Subject: Re: multi-part sms order It's normal, and offcourse mobile phone must wait all messages to arrive first until it can reassemble the message. On 11/5/07, Aaron Simmons [EMAIL PROTECTED] wrote: My system is sending a lot of multi-part smses. While the sending works, I've noticed that the parts usually arrive in reverse order or out of order. e.g., if I'm sending a three-part sms, part three will arrive at the user's phone first, followed by part two, followed by part one. The user's phone will of course reassemble the message, but they must wait to read their message until part one arrives. Is anyone else seeing this? Or is it an idiosyncracy of the gsm phone I'm using to send the messages? I'm using kannel 1.4.1 with a nokia. Thanks, aaron -- Regards, Ady Wicaksono Email: ady.wicaksono at gmail.com http://adywicaksono.wordpress.com/ Antivirus avast!: message Sortant sain. Base de donnees virale (VPS) : 071104-0, 04/11/2007 Analyse le : 04/11/2007 20:44:24 avast! - copyright (c) 1988-2007 ALWIL Software.
Re: problem with kannel and ubuntu
Well, sure, I can change it, but the package has a bug. Will this get rolled into the next release? Does kannel have a bug-reporting site? On 12/16/07, Milan P. Stanic [EMAIL PROTECTED] wrote: Or, just edit /etc/init.d/kannel and change that line.
problem with kannel and ubuntu
I'm using kannel with Ubuntu (via apt-get) and am running into a problem. Seems that the kannel init.d script requires /var/run/kannel to exist in order to run. However, ubuntu maps /var/run to a tempfs in ram, so it gets wiped out after every reboot. Kannel needs to use a different path, or it needs to have a startup script create this path. Is this a known bug? Will it be addressed in the next version? Thanks, aaron
Re: problem with kannel and ubuntu
Looking more closely, the init.d script that the package uses (debian/kannel.init) has this line PIDFILES=/var/run/kannel while the (somewhat similar) sample init.d script (utils/kannel-init.d) has this line PIDFILES=/var/run Using the second init.d script will work fine, although it is not installed with the package (you have to download the source to get it). On Dec 16, 2007 5:41 PM, Aaron Simmons [EMAIL PROTECTED] wrote: I'm using kannel with Ubuntu (via apt-get) and am running into a problem. Seems that the kannel init.d script requires /var/run/kannel to exist in order to run. However, ubuntu maps /var/run to a tempfs in ram, so it gets wiped out after every reboot. Kannel needs to use a different path, or it needs to have a startup script create this path. Is this a known bug? Will it be addressed in the next version? Thanks, aaron
Re: can kannel check my credit using *888# command
Rather than placing a call, some carriers have a number you can send an sms to and they will reply with a balance-notice sms. I'm running a system with kannel using the Smart carrier in the Philippines. For them you send ?1515 to 214 and they'll send a balance notice text, which is easy enough to run through a regexp and get the date/balance out. On Nov 21, 2007 3:10 AM, info.ubichip [EMAIL PROTECTED] wrote: Yes but in this solution, you have to stop kannel and then make your kermit stuff, isn't it ? -- *From:* Luki Lusiano [mailto:[EMAIL PROTECTED] *Sent:* mardi 20 novembre 2007 01:42 *To:* users@kannel.org *Subject:* Re: can kannel check my credit using *888# command Hi *Alvaro Cornejo* Problem solved!!! Thank you for pointing to me to use terminal sw, i'm using kermit. and this is my command, hope this will help other who face the same problem ( my modem speed is 19200 using ttyS0) run this : # kermit (press enter) C-Kermit set line /dev/ttyS0 (press enter) C-Kermit set speed 19200 (press enter) C-Kermit set carrier-watch off (press enter) C-Kermit set modem type generic (press enter) C-Kermit set dial display on (press enter) C-Kermit c (press enter) (after you press enter this line will show up) Connecting to /dev/ttyS0, speed 19200 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. (here you type atd*888#) atd*888# (hoaaa!!! you see the result) __ * to quit press ctrl+\ then release both key and then press c Thank you all hope this will someone. *Alvaro Cornejo [EMAIL PROTECTED]* wrote: Hi Luki If you don´t use it now, you can setup kannel´s keepalive config of the smsc to send the AT equivalent command to the *888# to the modem ( I don´t know its equivalent) and set the keepalive retry to whatever interval you need. The result of the command can be viewed in kannel log (debug level). Since kannel has no way -as far as I know- to interact with the modem with other commands other than the buit-in -unless you patch smsc_at- you might need to stop kannel, access the modem through cu, minicom, getty or other terminal sw, enter the command(s) needed and then restart kannel. Regards Alvaro On 11/19/07, Luki Lusiano wrote: Hi, i'm using kannel for 2 years now and I thank you for this great program. I hope this question is never been asked before, try to search it, but no luck. The question is : can kannel check my credit using *888# command i'm using prepaid mobile phone, thats mean that i have to buy voucher and put the code to the mobilephone to continue to use the phone, from the voucher i get my credit to make call or send sms. But the problem is, the my web and sms server is located at different island (500 KM from my place). To know that my mobile is still active i'm using this command at the phone *888# and receive this reply your credit is _some_number_ and you active periode until _some_date_ can i login remotely by using ssh and type some command at the server and i receive the answer from the phone? What is the command or the code? if it can, i'm planning make a script to check and send it using sms to my mobile phone. Thank You All. Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. -- |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.smsglobal.com.mx y www.pravcom.com -- Get easy, one-click access to your favorites. Make Yahoo! your homepage.http://us.rd.yahoo.com/evt=51443/*http:/www.yahoo.com/r/hs -- Antivirus avast! http://www.avast.com: message Sortant sain. Base de donnees virale (VPS) : 071120-0, 20/11/2007 Analyse le : 20/11/2007 11:10:35 avast! - copyright (c) 1988-2007 ALWIL Software.
automated setup of kannel modem smsc
Is there a way to (programmatically) tell whether a modem smsc is successfully communicating with its modem? e.g., a way to run smsbox, or a function in gwlib? I would like to have a script detect whether the smsc is having problems (can't open port, doesn't detect modem type, having trouble with init-string, etc). Thanks, aaron
sqlbox and keywords/regex
Does anyone have an example of using sqlbox to do keyword processing? I'm using sqlbox-- it has created the send_sms and sent_sms tables. I'm not clear where the keywords/regexs go-- there doesn't appear to be a table for it. Perhaps I'm misunderstanding how this works? On Oct 22, 2007 10:36 AM, seik [EMAIL PROTECTED] wrote: you could set sqlbox to get all the traffic - MO, DLR, MT in one table, via simple default service description. so you may skip the http request step and the regexps will be performed on sql level. even, in case you use postgresql , you could set rules on insert in a view to automate the processing according the incoming text content, but but this is not a kannel related issue i believe. -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 22 Октомври 2007 г. To: seikath Subject:keyword-regex and matching spaces What I've gathered of sqlbox is that it contains a queue table for smses to send and a table of logs and DLRs. Does sqlbox handle keyword matching, or is that still up to the sms-service conf file and/or external app? On 10/21/07, seik [EMAIL PROTECTED] wrote: well, you always could read the source from here http://www.kannel.org/~mconte/sqlbox/http://www.kannel.org/%7Emconte/sqlbox/ and kannel users mailing list like this one: http://www.kannel.org/pipermail/users/2006-October/000859.html cheers -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 21 Октомври 2007 г. To: [EMAIL PROTECTED] Subject:keyword-regex and matching spaces Where is sqlbox documented? Is it a new feature? On Aug 31, 2007, at 9:05 PM, seik wrote: exactly sqlbox to handle all the traffic ONE default service and the services routing rules are applied upon db insert much easier to implement any new service without touching kannel instance at all -Original Message- From: Rodrigo Cremaschi [EMAIL PROTECTED] ] Sent: 31 ?? 2007 ?. To: seik Subject:keyword-regex and matching spaces Hello Aaron, This seems to be kind of a philosofical discussion, but at some point in time, you will find much easier to modify a script than to modify the config file and restart kannel just for a minor change. Best regards, Rodrigo On 8/31/07, Aaron Simmons [EMAIL PROTECTED] wrote: I've run into a problem with keyword-regexp and matching spaces. Kannel won't match spaces. Though it doesn't appear to be documented (clearly?) in the Kannel User's Guide, its mentioned a couple times on this mailing list. My question is: why? Does Kannel throw out everything past the first space and only feed the first word to the regexp engine? I understand that the sms-service feature is designed to facilitate single- keyword matching, but still...this seems like an arbitrary limitation. For any kind of semi-complex patterns, the user has to send the sms off to a program that can handle regex's with spaces. Its doable, but its a pain. I'd rather have all of my logic in the conf file and not split between the conf file and some other scripts. Thanks, aaron
Re: sqlbox and keywords/regex
I see, so kannel isn't actually doing anything with keywords. The keyword matching is done by your own code. On Nov 5, 2007 9:56 PM, [EMAIL PROTECTED] wrote: in case your config processes MO traffic only, your sql should do the regexp you will have insert events only -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 05 Ноември 2007 г. To: [EMAIL PROTECTED] Subject:sqlbox and keywords/regex Does anyone have an example of using sqlbox to do keyword processing? I'm using sqlbox-- it has created the send_sms and sent_sms tables. I'm not clear where the keywords/regexs go-- there doesn't appear to be a table for it. Perhaps I'm misunderstanding how this works? On Oct 22, 2007 10:36 AM, seik [EMAIL PROTECTED] wrote: you could set sqlbox to get all the traffic - MO, DLR, MT in one table, via simple default service description. so you may skip the http request step and the regexps will be performed on sql level. even, in case you use postgresql , you could set rules on insert in a view to automate the processing according the incoming text content, but but this is not a kannel related issue i believe. -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 22 Октомври 2007 г. To: seikath Subject:keyword-regex and matching spaces What I've gathered of sqlbox is that it contains a queue table for smses to send and a table of logs and DLRs. Does sqlbox handle keyword matching, or is that still up to the sms-service conf file and/or external app? On 10/21/07, seik [EMAIL PROTECTED] wrote: well, you always could read the source from here http://www.kannel.org/~mconte/sqlbox/http://www.kannel.org/%7Emconte/sqlbox/ and kannel users mailing list like this one: http://www.kannel.org/pipermail/users/2006-October/000859.html cheers -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 21 Октомври 2007 г. To: [EMAIL PROTECTED] Subject:keyword-regex and matching spaces Where is sqlbox documented? Is it a new feature? On Aug 31, 2007, at 9:05 PM, seik wrote: exactly sqlbox to handle all the traffic ONE default service and the services routing rules are applied upon db insert much easier to implement any new service without touching kannel instance at all -Original Message- From: Rodrigo Cremaschi [EMAIL PROTECTED] ] Sent: 31 ?? 2007 ?. To: seik Subject:keyword-regex and matching spaces Hello Aaron, This seems to be kind of a philosofical discussion, but at some point in time, you will find much easier to modify a script than to modify the config file and restart kannel just for a minor change. Best regards, Rodrigo On 8/31/07, Aaron Simmons [EMAIL PROTECTED] wrote: I've run into a problem with keyword-regexp and matching spaces. Kannel won't match spaces. Though it doesn't appear to be documented (clearly?) in the Kannel User's Guide, its mentioned a couple times on this mailing list. My question is: why? Does Kannel throw out everything past the first space and only feed the first word to the regexp engine? I understand that the sms-service feature is designed to facilitate single- keyword matching, but still...this seems like an arbitrary limitation. For any kind of semi-complex patterns, the user has to send the sms off to a program that can handle regex's with spaces. Its doable, but its a pain. I'd rather have all of my logic in the conf file and not split between the conf file and some other scripts. Thanks, aaron
Re: multi-part sms order
fyi, this is a kannel setup using a gsm cellphone, not smpp or any other gateway. The weird thing is, its quite consistent. I can send a three-part sms *by hand* using the same phone and it will arrive at its destination in order (part 1 first, etc). But when I send the same three-part sms via kannel it arrives backwards (part 3 first, etc). This sounds like a dumb question, but...what order does kannel send a multipart message in? On Nov 5, 2007 12:44 PM, info.ubichip [EMAIL PROTECTED] wrote: Hi all, AFAIK, send content through SMS should be managed by a protocol such as SAR : Segmentation And Reassembly, this is a Mécanism used to segment and reassemble the different paquets SAR is used with wap gateway and is supposed to be handled by the phone as well. The fact that the packets are arrived in the correct order is upon the operator responsibility (typically differents SMS are not always proceed by the same SMSC), there is nothing to do on the kannel side. Hope that helps, Regards -- *From:* Ady Wicaksono [mailto:[EMAIL PROTECTED] *Sent:* dimanche 4 novembre 2007 20:37 *To:* [EMAIL PROTECTED] *Cc:* users@kannel.org *Subject:* Re: multi-part sms order It's normal, and offcourse mobile phone must wait all messages to arrive first until it can reassemble the message. On 11/5/07, *Aaron Simmons* [EMAIL PROTECTED] wrote: My system is sending a lot of multi-part smses. While the sending works, I've noticed that the parts usually arrive in reverse order or out of order. e.g., if I'm sending a three-part sms, part three will arrive at the user's phone first, followed by part two, followed by part one. The user's phone will of course reassemble the message, but they must wait to read their message until part one arrives. Is anyone else seeing this? Or is it an idiosyncracy of the gsm phone I'm using to send the messages? I'm using kannel 1.4.1 with a nokia. Thanks, aaron -- Regards, Ady Wicaksono Email: ady.wicaksono at gmail.com http://adywicaksono.wordpress.com/ -- Antivirus avast! http://www.avast.com: message Sortant sain. Base de donnees virale (VPS) : 071104-0, 04/11/2007 Analyse le : 04/11/2007 20:44:24 avast! - copyright (c) 1988-2007 ALWIL Software.
Re: init-string on modem configuration
Kannel's probably not even using your init-string-- it needs a 'detect-string' to match against your phone (if you don't know what string to use, watch the output of the smsc). Take a look at doc/examples/modems.conf On Nov 6, 2007 2:04 PM, Aditya M [EMAIL PROTECTED] wrote: anyone know about configuration init-string on gsm modem motorola L7 in kannel. i try wap push with my configuration, on smsbox succesfull process but on bearerbox show the messages 'invalid PDU mode parameter'. i think my modem setting on init-string is wrong, but anyone can help me about setting on init-string here my modem configuration : group = smsc smsc = at smsc-id = l7 modemtype = Motorola device = /dev/ttyACM0 speed = 9600 sms-center = +6285500xx group = modems id = Motorola name = Motorola init-string = AT+CMEE=2; +CNMI=0,2,0,0,0 need-sleep = true speed = 9600 -- View this message in context: http://www.nabble.com/init-string-on-modem-configuration-tf4756239.html#a13601295 Sent from the Kannel - User mailing list archive at Nabble.com.
multi-part sms order
My system is sending a lot of multi-part smses. While the sending works, I've noticed that the parts usually arrive in reverse order or out of order. e.g., if I'm sending a three-part sms, part three will arrive at the user's phone first, followed by part two, followed by part one. The user's phone will of course reassemble the message, but they must wait to read their message until part one arrives. Is anyone else seeing this? Or is it an idiosyncracy of the gsm phone I'm using to send the messages? I'm using kannel 1.4.1 with a nokia. Thanks, aaron
Re: building sqlbox
Now I'm trying to build sqlbox on Mac OS X and getting multiple definitions errors like the following. Anyone know what could be causing this?? gcc -g -O2 -DDARWIN=1 -I/usr/local/include/kannel -g -O2 -DDARWIN=1 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/include -I/sw/include/libxml2 -I/sw/include -I/usr/include/openssl -I/sw/include/mysql -o sqlbox sqlbox.o sqlbox_mysql.o sqlbox_pgsql.o sqlbox_sql.o -L/Developer/ SDKs/MacOSX10.4u.sdk/usr/lib -L/usr/local/lib/kannel -lgw -lwap - lresolv -L/sw/lib -lxml2 -lpthread -liconv -L/usr/lib -lcrypto - lssl -L/sw/lib/mysql /sw/lib/mysql/libmysqlclient.dylib -lz -lm - lgwlib /usr/bin/ld: multiple definitions of symbol _uuid_clear /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib(clear.So) definition of _uuid_clear /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_clear in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _uuid_copy /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib(copy.So) definition of _uuid_copy /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_copy in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _uuid_generate /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (gen_uuid.So) definition of _uuid_generate /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_generate in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _uuid_generate_random /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (gen_uuid.So) definition of _uuid_generate_random /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_generate_random in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _uuid_generate_time /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (gen_uuid.So) definition of _uuid_generate_time /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_generate_time in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _uuid_parse /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib(parse.So) definition of _uuid_parse /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_parse in section (__TEXT,__text) /usr/bin/ld: multiple definitions of symbol _uuid_unparse /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libpthread.dylib (unparse.So) definition of _uuid_unparse /usr/local/lib/kannel/libgwlib.a(gw_uuid.o) definition of _uuid_unparse in section (__TEXT,__text) collect2: ld returned 1 exit status make[2]: *** [sqlbox] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 On Nov 5, 2007, at 1:17 PM, Aaron Simmons wrote: I finally figured out what was wrong with my sqlbox configure on mac os x. Had to dig around in the configure log. The test for whether gwlib works tries to compile a little test program that links to it. The test build was failing, complaining that it couldn't link to gwlib.a because its table of contents is out of date; rerun ranlib(1) (can't load from it). So I did sudo ranlib /usr/local/lib/kannel/*.a and now the configure works fine. :) Don't know what happened to the libs to make them goof up like that... On Oct 23, 2007 10:09 PM, Alejandro Guerrieri [EMAIL PROTECTED] wrote: I've built on Mac OSX 10.4 with no problems before. Check the configure script output, where is it searching for the libs? Running ./configure --help should print the available switches. Regards, Alejandro On 10/23/07, Aaron Simmons [EMAIL PROTECTED] wrote: I did install kannel. I rebuilt it for mysql and did 'sudo make install' on it before starting on sqlbox. I checked and the built kannel libs are installed to where they're supposed to be. Perhaps on the mac the libs are being put somewhere different than normal and the sqlbox configure isn't taking that into account. How do you tell the configure script to look in a specific place for the kannel libs? On 10/23/07, Alejandro Guerrieri [EMAIL PROTECTED] wrote: It happened to me before. sqlbox looks for gwlib on it's _installed_ location. If you have installed kannel on that machine, you shouldn't have any problems, otherwise you'll have to point the configure script to an alternate gwlib path. Hope it helps, Alejandro On 10/22/07, info.ubichip [EMAIL PROTECTED] wrote: Hi, If the « configure » process is not finding the path of kannel, you have to tell it with options like you build kannel before. Hope that helps From: Aaron Simmons [mailto:[EMAIL PROTECTED] Sent: lundi 22 octobre 2007 06:35 To: users@kannel.org Subject: building sqlbox I've re-built kannel 1.4.1 by doing a configure with these options --with-mysql --with-mysql-dir=/usr/local/mysql --with-dlr=mysql -- enable-mysql-dlr --enable-start-stop-daemon followed by a make and a 'sudo make install'. Now I'm trying to build sqlbox-standalone. However, the configure is failing on: checking Kannel version... 1.4.1 checking Kannel libs
building sqlbox
I've re-built kannel 1.4.1 by doing a configure with these options --with-mysql --with-mysql-dir=/usr/local/mysql --with-dlr=mysql --enable-mysql-dlr --enable-start-stop-daemon followed by a make and a 'sudo make install'. Now I'm trying to build sqlbox-standalone. However, the configure is failing on: checking Kannel version... 1.4.1 checking Kannel libs... -L/usr/local/lib/kannel -lgw -lwap -lgwlib - lssl -lresolv -lm -lpthread -liconv -L/sw/lib -lxml2 -lz -lpthread -L/sw/lib -liconv -lm -L/usr/lib -lcrypto - lssl -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm checking Kannel includes... -I/usr/local/include/kannel -g -O2 - DDARWIN=1 -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -I/Developer/SDKs/ MacOSX10.4u.sdk/usr/include -I/sw/include/libxml2 -I/sw/include -I/usr/include/openssl -I/usr/ local/mysql/include *checking for cfg_create in -lgwlib... no* *configure: error: Kannel gwlib is required!* The kannel libs are available at the location configure thinks they are. Further, I checked using 'nm' and cfg_create is in libgwlib.a. I don't understand what the problem is. Thanks, aaron
Re: keyword-regex and matching spaces
Where is sqlbox documented? Is it a new feature? On Aug 31, 2007, at 9:05 PM, seik wrote: exactly sqlbox to handle all the traffic ONE default service and the services routing rules are applied upon db insert much easier to implement any new service without touching kannel instance at all -Original Message- From: Rodrigo Cremaschi [EMAIL PROTECTED] Sent: 31 ?? 2007 ?. To: seik Subject:keyword-regex and matching spaces Hello Aaron, This seems to be kind of a philosofical discussion, but at some point in time, you will find much easier to modify a script than to modify the config file and restart kannel just for a minor change. Best regards, Rodrigo On 8/31/07, Aaron Simmons [EMAIL PROTECTED] wrote: I've run into a problem with keyword-regexp and matching spaces. Kannel won't match spaces. Though it doesn't appear to be documented (clearly?) in the Kannel User's Guide, its mentioned a couple times on this mailing list. My question is: why? Does Kannel throw out everything past the first space and only feed the first word to the regexp engine? I understand that the sms-service feature is designed to facilitate single- keyword matching, but still...this seems like an arbitrary limitation. For any kind of semi-complex patterns, the user has to send the sms off to a program that can handle regex's with spaces. Its doable, but its a pain. I'd rather have all of my logic in the conf file and not split between the conf file and some other scripts. Thanks, aaron
building with mysql on mac os x
I'm using kannel 1.4.1 on mac os x 10.4.10. Building kannel with mysql support doesn't work. Configuring will fall unless you specify --with-mysql-dir=/usr/local/mysql I guess because mysql is in a weird place on the mac? Since it configured I would expect it to then compile, but it won't. It gets errors like this: error: `MYSQL_RES' undeclared (first use in this function) Then I noticed that, despite configure completing successfully, it complains about mysql/mysql.h usability: Configuring DB support ... checking whether to compile with MySQL support... searching checking for mysql_config... /usr/local/mysql/bin/mysql_config checking mysql version... 4.0.26 checking mysql reentrant libs... -L/usr/local/mysql/lib - lmysqlclient_r -lz -lm checking for mysql_init in -lmysqlclient_r... yes checking mysql includes... -I/usr/local/mysql/include *checking mysql/mysql.h usability... no* *checking mysql/mysql.h presence... no* *checking for mysql/mysql.h... no* checking mysql/mysql_version.h usability... no checking mysql/mysql_version.h presence... no checking for mysql/mysql_version.h... no checking whether to compile with MySQL support... yes checking whether to compile with LibSDB support... disabled checking whether to compile with SQLite support... disabled checking whether to compile with SQLite3 support... disabled checking whether to compile with Oracle support... disabled checking whether to compile with PostgresSQL support... disabled So mysql is present, but not accessible in the standard way? What a strange way for apple to have deployed it. Has anyone gotten this to work? thanks, aaron
Re: Re[2]: keyword-regex and matching spaces
What I've gathered of sqlbox is that it contains a queue table for smses to send and a table of logs and DLRs. Does sqlbox handle keyword matching, or is that still up to the sms-service conf file and/or external app? On 10/21/07, seik [EMAIL PROTECTED] wrote: well, you always could read the source from here http://www.kannel.org/~mconte/sqlbox/ and kannel users mailing list like this one: http://www.kannel.org/pipermail/users/2006-October/000859.html cheers -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 21 Октомври 2007 г. To: [EMAIL PROTECTED] Subject:keyword-regex and matching spaces Where is sqlbox documented? Is it a new feature? On Aug 31, 2007, at 9:05 PM, seik wrote: exactly sqlbox to handle all the traffic ONE default service and the services routing rules are applied upon db insert much easier to implement any new service without touching kannel instance at all -Original Message- From: Rodrigo Cremaschi [EMAIL PROTECTED] Sent: 31 ?? 2007 ?. To: seik Subject:keyword-regex and matching spaces Hello Aaron, This seems to be kind of a philosofical discussion, but at some point in time, you will find much easier to modify a script than to modify the config file and restart kannel just for a minor change. Best regards, Rodrigo On 8/31/07, Aaron Simmons [EMAIL PROTECTED] wrote: I've run into a problem with keyword-regexp and matching spaces. Kannel won't match spaces. Though it doesn't appear to be documented (clearly?) in the Kannel User's Guide, its mentioned a couple times on this mailing list. My question is: why? Does Kannel throw out everything past the first space and only feed the first word to the regexp engine? I understand that the sms-service feature is designed to facilitate single- keyword matching, but still...this seems like an arbitrary limitation. For any kind of semi-complex patterns, the user has to send the sms off to a program that can handle regex's with spaces. Its doable, but its a pain. I'd rather have all of my logic in the conf file and not split between the conf file and some other scripts. Thanks, aaron
webkannel?
The kannel website mentions a Webmin module for configuring kannel called webkannel: http://kannel.org/addons.shtml However, the address listed is wrong. Anyone know what the correct address is? Thanks, aaron
Re: Beginner questions about SMS in general
2. You get an account with some SMS provider, VAS ASP, or some mobile operator. You setup kannel to connect to them using the protocol of their choice (SMPP, UCP, CIMD, HTTP, etc etc) and send you messages thought them. You still need to pay for the traffic to those providers, ASP's or operators. Another newbie question... What is VAS ASP? Is that Value Added Service for Active Server Pages? e.g., an sms interface for asp? On 9/12/07, Philip Reed [EMAIL PROTECTED] wrote: Dimitris, Thanks for the thorough reply. This is more or less what I had intuited from reading that tutorial and Kannel's docs. However, here's the part I don't understand. I passed along more or less what you said to my manager, and he pointed out that Verizon (his carrier) allows free texting by sending emails to the vtext.com domain, e.g. HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] will text that number if it's a Verizon user. I find that not only do most major carriers offer this free service, but apparently teleflip.com acts as a free gateway to all of them. See HYPERLINK http://www.tech-recipes.com/instant_messaging_tips362.html; http://www.tech- recipes.com/instant_messaging_tips362.html . So now my question is, what's the benefit to setting up your own account with a provider / ASP? I would imagine there's still some reason why people do it, e.g. greater throughput. Thanks, Philip From: Δημήτρης Ευμορφόπουλος [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 2:00 AM To: Philip Reed Subject: RE: Beginner questions about SMS in general Hello Philip, You have got the whole issue right up to a point, and that is sending free SMSs .. Nothing is free in this world J . Now here is the deal. 1. You setup one or more phones use something like kannel to use them as SMSCs and you send all your messages through them. You still need to pay for the phones, sims and the sms traffic you make over those sims. 2. You get an account with some SMS provider, VAS ASP, or some mobile operator. You setup kannel to connect to them using the protocol of their choice (SMPP, UCP, CIMD, HTTP, etc etc) and send you messages thought them. You still need to pay for the traffic to those providers, ASP's or operators. 3. You go to an ASP and they give you an HTTP url that you 'get/post' to send your messages. You still need to pay for the traffic. In all cases (and these are all cases available) you need to pay. There is no such thing as a free service unless you offer it free and get your income from some other source like some free SMS sites do. (I know I have helped setup 2 of those, one gone down a while ago) Your final choice is reverse charge premium SMS, which is not offered by all mobile operators, and is usually localized. This is a premium sms service where your customers are charged for receiving and SMS, not sending one. If you have access to an operator or ASP that carries such a premium number/service and your customers are localized to this ASP/operator than you can still use kannel to connect to the operator to send your messages there, and get some income for sending messages. If you customers are all over the world, then forget I ever mentioned it. Reverse charge premium sms is not widely offered since it is easy to overcharge people for messages they do not want, either on purpose or by software error. So finally if you are looking for a way to send SMSs for free you are out of luck. If you need to send SMSs without charging your customers then you need to find an alternative source of income to compensate for the SMS charges as well as a cheap SMS provider/ASP/operator. Dimitris Evmorfopoulos _ From: Philip Reed [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 11:31 PM To: users@kannel.org Subject: Beginner questions about SMS in general These questions are going to be terribly rudimentary because I don't yet understand some fundamental questions about how Kannel fits in the big picture. I've perused the FAQ but not really found answers to these, but feel free to redirect me to somewhere I can find answers. I'm tasked with finding a way to provide text messages to our Web site users with certain information on request.I've read the first 11 chapters of this SMS tutorial: HYPERLINK http://www.developershome.com/sms/http://www.developershome.com/sms/ . It seems to imply that we need to either send (1)our messages via a mobile phone or modem, (2) directly by setting up an account with an SMSC, or (3) by paying a service provider on a per-message basis. I infer that Kannel fits into those last two options, and that, although Kannel itself is free, it doesn't eliminate the need to pay someone for access to an SMSC (either directly to the SMSC or via a service provider). Is this
Re: keyword-regex and matching spaces
So you're suggesting simply have kannel forward everything to some other service: group = sms-service keyword = default get-url = http://localhost:5/gotsms?text=%afrom=%p This design makes sense of course (and will likely be the way I go). However, I'm still not sure why kannel's regexp's are implemented the way they are. Is it simply that no one is using the regexp feature and they're just parsing the smses in their own software? On Aug 31, 2007, at 8:55 PM, Rodrigo Cremaschi wrote: Hello Aaron, This seems to be kind of a philosofical discussion, but at some point in time, you will find much easier to modify a script than to modify the config file and restart kannel just for a minor change. Best regards, Rodrigo On 8/31/07, Aaron Simmons [EMAIL PROTECTED] wrote: I've run into a problem with keyword-regexp and matching spaces. Kannel won't match spaces. Though it doesn't appear to be documented (clearly?) in the Kannel User's Guide, its mentioned a couple times on this mailing list. My question is: why? Does Kannel throw out everything past the first space and only feed the first word to the regexp engine? I understand that the sms-service feature is designed to facilitate single-keyword matching, but still...this seems like an arbitrary limitation. For any kind of semi-complex patterns, the user has to send the sms off to a program that can handle regex's with spaces. Its doable, but its a pain. I'd rather have all of my logic in the conf file and not split between the conf file and some other scripts. Thanks, aaron
keyword-regex and matching spaces
I've run into a problem with keyword-regexp and matching spaces. Kannel won't match spaces. Though it doesn't appear to be documented (clearly?) in the Kannel User's Guide, its mentioned a couple times on this mailing list. My question is: why? Does Kannel throw out everything past the first space and only feed the first word to the regexp engine? I understand that the sms-service feature is designed to facilitate single-keyword matching, but still...this seems like an arbitrary limitation. For any kind of semi-complex patterns, the user has to send the sms off to a program that can handle regex's with spaces. Its doable, but its a pain. I'd rather have all of my logic in the conf file and not split between the conf file and some other scripts. Thanks, aaron