On Wed, 2006-01-18 at 13:17 +0100, Lars-Hendrik Schneider wrote:
> Hi Jelle, hi Tjatur,
> 
> Heru Tjatur schrieb:
> > On Tue, 2006-01-17 at 22:21 +0100, js wrote:
> > 
> >>Hi all,
> >>
> >>It's not really clear to me how to define a sms-service that discards
> >>all messages which don't match other sms-service.
> >>I don't want to send a response back to the sender in this case.
> >>
> >>In case someone:
> >>sends an empty message
> >>sends a message containing whatever that doesn't match "hihi" and
> >>"foo"
> >>
> >>#response1
> >>group = sms-service
> >>keyword = hihi
> >>text = "haha"
> >>
> >>#response2
> >>group = sms-service
> >>keyword = foo
> >>text = "bar"
> >>
> >>#handle all the rest
> >>group = sms-service
> >>?
> >>?
> >>
> >>quid?
> >>
> >>
> >>Thanks for pointing me out
> >>
> >>Jelle Smet
> >>
> >>
> >>
> > 
> > Try to add max-messages = 0 parameter in your default sms-services that
> > handled unmatched keyword.
> > 
> 
> this is sometimes quite important. A short story:
> 
> I had a default answer for sms without a matching keyword like "Sorry, 
> but we cannot find a service for your keyword". Once I looked into the 
> logfiles and I was very surprised, that kannel was sending a lot of 
> messages to one number. What had happened? Our mobile phone provider had 
> has sent us an SMS containing an advertisment - so kannel didn't 
> understand it and sent back the default answer. But - you guess it, on 
> the other side at the provider the system answered this SMS with a 
> "Sorry ...", too. So the servers played pingpong via SMS with each 
> other. Because I realised it very early it did not lead do a lot of 
> money for stupid SMS. Since then I always set max-messages for default 
> to zero: "If you don't understand anything, please keep your f*** mouth 
> shut!"
> 
> Greetz from Bonn,
> Lars-Hendrik
> 
> > Hope this could help ...
> > 
> > --tjatur

Hi, Hendrik ...

Regard of what happened to you, for me, I prefer not to reply directly
with the default sms-services, with text parameter [text="Sorry, bla..
bla... bla.."]. So, I process SMSes prior of answering the SMSes. To do
this, I put max-messages=0, to prevent kannel's sms-service reply
directly on incomming SMS. 

All SMS's response is sent to the sender by send-sms, after some
processing step. You could discard or give "Sorry ..." response based on
SMS processing result. In my opinion it would prevent the pingpong SMS
that you described.

Hope this could help...
--tjatur
> > 
> >>
> > 
> > 
> 
> 


Reply via email to