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: [email protected] 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] 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
<<image001.jpg>>
