Thanks Alvaro. I’ll write a simple perl script to route the SMSs.
From: Alvaro Cornejo [mailto:[EMAIL PROTECTED] Sent: Monday, 11 February 2008 6:13 AM To: Cyrus Patel; 'Shridhar Raju' Cc: users@kannel.org Subject: RE: sms-service HTTP routing based on from MSISDN You can send all messages to a script that will do the MSISDN parse and post the message to the right smsc. This would be more felxible if alter you will need to change routing or add additional services Alvaro -----Mensaje original----- De: Cyrus Patel [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 07 de Febrero de 2008 00:01 Para: Shridhar Raju CC: users@kannel.org Asunto: RE: sms-service HTTP routing based on from MSISDN Tried that – didn’t work… From: Shridhar Raju [mailto:[EMAIL PROTECTED] Sent: Thursday, 7 February 2008 3:52 PM To: Cyrus Patel Cc: [EMAIL PROTECTED]; users@kannel.org Subject: RE: sms-service HTTP routing based on from MSISDN Try without "+" sign. Regards Shridhar Raju +919891005391 -----Original Message----- From: Cyrus Patel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 9:31 AM To: [EMAIL PROTECTED]; users@kannel.org Subject: RE: sms-service HTTP routing based on from MSISDN Hi, Thanks for the reply. I tried it out and read the doc again but I’m still stuck. Here is what I tried: group = sms-service keyword = default allowed-receiver-prefix = +612345678 # Other server get-url = "http://192.168.100.139:60185/sms?user=kannel&pass=rL4y&from=%p&to=%P&udh=%u&text=%b" max-messages = 0 concatenation = true group = sms-service keyword = default # Default server get-url = "http://192.168.100.221:60185/sms?user=kannel&pass=rL4y&from=%p&to=%P&udh=%u&text=%b" max-messages = 0 concatenation = true The idea was that if a SMS came from +612345678 it would get routed to 192.168.100.139 otherwise it would go to 192.168.100.221 (the default server). However this is not working – all SMSs are being sent to 192.168.100.221. I’m using Kannel 1.4.1. Thanks, Cyrus From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 6 February 2008 8:08 PM To: Cyrus Patel; users@kannel.org Subject: Re: sms-service HTTP routing based on from MSISDN I use the following successfully for the 3 shortcodes, but this is based on the Shortcode being sent to. If the MSISDN's you want to route on is a predefined list, you can try using allowed-receiver-prefix in group = sms-service keyword = default allowed-receiver-prefix = 49XXX get-url = "http://XXXXXXX.xxx/mo.php?sender=%p&to=%P&bind=%i&smsid=%I&coding=%c&billing=%B&msg=%b&u dh=%u&keyword=%k&rmsg=%r" max-messages = 0 assume-plain-text = true omit-empty = true group = sms-service keyword = default allowed-receiver-prefix = 29XXX get-url = "http://xxx.YYYYY.zzz/mo.php?sender=%p&to=%P&bind=%i&smsid=%I&coding=%c&billing=%B&ms g=%b&udh=%u&keyword=%k&rmsg=%r" max-messages = 0 assume-plain-text = true omit-empty = true group = sms-service keyword = default allowed-receiver-prefix = 53XXX get-url = "http://YYYY.ZZZZZZ.xx.xx/mo.php?sender=%p&to=%P&bind=%i&smsid=%I&coding=%c&billing=%B&msg=%b&udh=%u& keyword=%k&rmsg=%r" max-messages = 0 assume-plain-text = true omit-empty = true ----- Original Message ----- From: Cyrus Patel To: users@kannel.org Sent: Wednesday, February 06, 2008 8:04 AM Subject: sms-service HTTP routing based on from MSISDN Hello, Is there a way to route MO SMSs to different HTTP servers based on the from MSISDN? My current sms-service group for example looks like this: group = sms-service keyword = default # machine 1 get-url = "http://192.168.101.17:60185/sms?user=kannel&pass=rL4y&from=%p&to=%P&udh=%u&text=%b" # machine 2 #get-url = "http://192.168.95.22:60185/sms?user=kannel&pass=rL4y&from=%p&to=%P&udh=%u&text=%b" Currently to route SMSs to machine 1 or 2 I need to comment out either URL manually. I’ve seen that you can route based on a keyword regex but I cannot do that as my SMSs are 03.48 binary messages. Thanks in advance, Cyrus Cyrus Patel Senior Software Engineer Seeker Wireless TEL: +61 2 9499 9848 FAX: +61 2 9499 9845 MOB: +61 413 685 795 [EMAIL PROTECTED] image001 Seeker Wireless Pty. Ltd., ABN 95 106 550 805. This electronic mail includes information from Seeker Wireless Pty Ltd which may be privileged or confidential. This information is for the use of the individual(s) or entity named in the greeting above. If you are not the intended recipient please be aware that any use of this information is prohibited. If you have received this electronic mail in error, please notify the sender (above) by return email. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.20/1261 - Release Date: 5/02/2008 8:57 PM No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.20/1261 - Release Date: 5/02/2008 8:57 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date: 6/02/2008 8:14 PM ************************************************************************ ideacellular.com E-Mail Domain is now idea.adityabirla.com E-Mail Domain ************************************************************************ An idea can change your life. ************** LEGAL DISCLAIMER ************ This E-Mail may contain Confidential and/or legally privileged Information and is meant for the intended recipient(s) only. If you have received this e-mail in error and are not the intended recipient/s, kindly notify us at [EMAIL PROTECTED] and then delete this e-mail immediately from your system. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail, its contents or its attachment/s other than by its intended recipient/s is strictly prohibited and may be unlawful. Internet Communications cannot be guaranteed to be secure or error-free as information could be delayed, intercepted, corrupted, lost, or contain viruses. IDEA Cellular Limited does not accept any liability for any errors, omissions, viruses or computer problems experienced by any recipient as a result of this e-mail. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date: 6/02/2008 8:14 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.21/1263 - Release Date: 6/02/2008 8:14 PM No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.2/1272 - Release Date: 11/02/2008 5:28 PM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.2/1272 - Release Date: 11/02/2008 5:28 PM