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; [email protected]
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: [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]



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

Reply via email to