|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
submit single MO sms to multiple servicesHi,
Please advise how I can submit a _single_ mo sms message to multiple sms services. Tried the following but only one of the groups work: >>>> kannel.conf, note hosts are different # # SMS-SERVICE # group = sms-service keyword = default catch-all = true get-url = http://host1:13113/smsmt?sender=%p&text=%a max-messages = 0 # dont reply to MO concatenation = true omit-empty = true # # SMS-SERVICE # group = sms-service keyword = default catch-all = true get-url = http://host2:13113/smsmt?sender=%p&text=%a max-messages = 0 # dont reply to MO concatenation = true omit-empty = true >>>>> ANother attempt, single group by multiple URLs # # SMS-SERVICE # group = sms-service keyword = default catch-all = true get-url = http://host1:13113/smsmt?sender=%p&text=%a get-url = http://host2:13113/smsmt?sender=%p&text=%a max-messages = 0 # dont reply to MO concatenation = true omit-empty = true Help is much appreciated |
|
|
Re: submit single MO sms to multiple servicesI believe that's not possible inside the kannel configuration. At
least, I was unable to figure out a way to do it when I tried. I just wrote a simple php script that makes multiple calls to the additional hosts. This is an example of how you might do that: <?php $hosts = array ("http://host1:13113/smsmt", "http://host2:13113/smsmt"); foreach ( $hosts as $host ) { $curl_handle=curl_init(); $req_url = $host.'?'.$_SERVER['QUERY_STRING']; curl_setopt($curl_handle,CURLOPT_URL, $req_url); curl_exec($curl_handle); curl_close($curl_handle); } ?> On Sun, Aug 24, 2008 at 6:05 PM, Vlad Troyanker <vlad.troyanker@...> wrote: > Hi, > > Please advise how I can submit a _single_ mo sms message to multiple sms > services. > > Tried the following but only one of the groups work: > >>>>> kannel.conf, note hosts are different > # > # SMS-SERVICE > # > group = sms-service > keyword = default > catch-all = true > get-url = http://host1:13113/smsmt?sender=%p&text=%a > max-messages = 0 # dont reply to MO > concatenation = true > omit-empty = true > > # > # SMS-SERVICE > # > group = sms-service > keyword = default > catch-all = true > get-url = http://host2:13113/smsmt?sender=%p&text=%a > max-messages = 0 # dont reply to MO > concatenation = true > omit-empty = true > > >>>>>> ANother attempt, single group by multiple URLs > # > # SMS-SERVICE > # > group = sms-service > keyword = default > catch-all = true > get-url = http://host1:13113/smsmt?sender=%p&text=%a > get-url = http://host2:13113/smsmt?sender=%p&text=%a > max-messages = 0 # dont reply to MO > concatenation = true > omit-empty = true > > > > Help is much appreciated > |
|
|
Re: submit single MO sms to multiple servicesHi there!
The best way is to use a "dispatcher" script. Two benefits from this: 1) You won't need to restart Kannel in case of adding new services. 2) You have a central administration point for all your services. The get-url conf line will look like this: get-url = http://host1:13113/dispatch.php?sender=%p&text=%a Regards, Rodrigo. On Sun, Aug 24, 2008 at 11:01 PM, Garth Patil <garthpatil@...> wrote: > I believe that's not possible inside the kannel configuration. At > least, I was unable to figure out a way to do it when I tried. I just > wrote a simple php script that makes multiple calls to the additional > hosts. This is an example of how you might do that: > <?php > $hosts = array ("http://host1:13113/smsmt", "http://host2:13113/smsmt"); > foreach ( $hosts as $host ) { > $curl_handle=curl_init(); > $req_url = $host.'?'.$_SERVER['QUERY_STRING']; > curl_setopt($curl_handle,CURLOPT_URL, $req_url); > curl_exec($curl_handle); > curl_close($curl_handle); > } > ?> > > > On Sun, Aug 24, 2008 at 6:05 PM, Vlad Troyanker > <vlad.troyanker@...> wrote: >> Hi, >> >> Please advise how I can submit a _single_ mo sms message to multiple sms >> services. >> >> Tried the following but only one of the groups work: >> >>>>>> kannel.conf, note hosts are different >> # >> # SMS-SERVICE >> # >> group = sms-service >> keyword = default >> catch-all = true >> get-url = http://host1:13113/smsmt?sender=%p&text=%a >> max-messages = 0 # dont reply to MO >> concatenation = true >> omit-empty = true >> >> # >> # SMS-SERVICE >> # >> group = sms-service >> keyword = default >> catch-all = true >> get-url = http://host2:13113/smsmt?sender=%p&text=%a >> max-messages = 0 # dont reply to MO >> concatenation = true >> omit-empty = true >> >> >>>>>>> ANother attempt, single group by multiple URLs >> # >> # SMS-SERVICE >> # >> group = sms-service >> keyword = default >> catch-all = true >> get-url = http://host1:13113/smsmt?sender=%p&text=%a >> get-url = http://host2:13113/smsmt?sender=%p&text=%a >> max-messages = 0 # dont reply to MO >> concatenation = true >> omit-empty = true >> >> >> >> Help is much appreciated >> > > |
| Free Forum Powered by Nabble | Forum Help |