On Thu 2012-09-06 (16:45), Guy Antony Halse wrote: > What I'd like is a single sendsms-user that can send to any number (prefix) > without the end user needing to know anything about the underlying routing > or the sender number. Thus I need a way to set the sender number based on > the destination prefix.
I've managed to do this by running multiple instances of Kannel. I have a "master" instance that receives web requests from users (it has a number of sendsms-users, corresponding to real users). The master has a number of smscs configured, each being another instance of kannel (smsc = http, system-type = kannel). Individual destination prefixes are routed to different instances by using the allowed-prefix/denied-prefix options. I then have four separate "slave" instances, all of which connect to the same SMPP provider. However, the connections from the "master" come into a single proxy sendsms-user (the only user in each instance). This user uses faked-sender to set the correct source address for the prefix. So I do prefix routing in the master, and use it to set the sender address in a slave. This works, but it is an ugly hack :( The net result is that I'm establishing four separate SMPP connections to the same provider, one for each source address I need to set (one per slave instance). This is obviously not particularly efficient, and it confuses the routing of incoming SMSes (the SMS is received by the first instance to poll, and has to route it to the master because it might be for the wrong prefix). I'm waiting for the provider to complain about the four connections. If anyone has a cleaner way to do this (preferably with a single instance of kannel), please let me know :) - Guy -- Manager: Systems, IT Division, Rhodes University, Grahamstown, South Africa Email: [email protected] Web: http://mombe.org/ IRC: [email protected] *** ANSI Standard Disclaimer *** J.A.P.H
