Hi Diego

 

So what I did was to add a predefined text to the silent service to make
sure that the request is actually routing to the correct service.
Surprisingly the request didn’t return the predefined text meaning that it
went to the other service instead returning the <Empty reply from service
provider> message. Why is that happening? Is it due to the default service
keywords on the two services? I would assume that the
allowed-receiver-prefix would take precedence in the service routing scheme
and force the request to go to the silent service.

 

Nii Amon,

 

Rancard Solutions Ltd.,

web: HYPERLINK
"http://www.rancardsolutions.com"http://www.rancardsolutions.com

cell: +233.27.617.6997

office: +233.21.782.949

   _____  

From: Diego Helmann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 22, 2006 2:15 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Max-messages and omit-empty

 

Hi

Are you sure that you are falling in the rigth sms-service?

Have you tryed:

omit-empty = true

max-messages = 0

at bouth servicies? Just in the case you are using the other one, because
the use the same get-url. Or change the url in one of them.

 

Regards

 

 

Diego
 

 

 



On 11/21/06, Nii Amon Dsane <HYPERLINK
"mailto:[EMAIL PROTECTED]" [EMAIL PROTECTED] >
wrote: 

Hi

 

I have a problem with Kannel [current version is 1.4.1] pulling responses on
certain services. I have a number of services in my Kannel conf file, two of
which I'm considering. Now one of them accepts from all shortcodes and the
other is specific to a particular shortcode. On that service I do not want
Kannel to pull responses to requests. The configurations for the two
services are listed below: 

 

group = sms-service

keyword = default

catch-all = true

get-url = "HYPERLINK
"http://server:port/processor?keyword=%25k&from=%25p&text=%25r&time=%25t&to=
%25P&smsc=%25i&msg=%25a" \n
http://server:port/processor?keyword=%k&from=%p&text=%r&time=%t&to=%P&smsc=%
i&msg=%a"

 

## Silent Shortcodes -- Kannel should not pull responses to messages sent to
these numbers

 

group = sms-service

keyword = default

catch-all = true

get-url = "HYPERLINK
"http://server:port/processor?keyword=%25k&from=%25p&text=%25r&time=%25t&to=
%25P&smsc=%25i&msg=%25a" \n
http://server:port/processor?keyword=%k&from=%p&text=%r&time=%t&to=%P&smsc=%
i&msg=%a"

omit-empty = true

max-messages = 0

allowed-receiver-prefix = "xxx"

 

I have set the omit-empty parameter on the silent service to true such that
the Kannel will not pull any < Empty reply from service provider> responses
for requests sent to this shortcode. I have also set max-messages parameter
to 0 to make sure that no responses are pulled for requests sent to this
service. The allowed-receiver-prefix dictates how the service routing is
done. 

 

Now I have set up a page that produces an empty page to test. When I send
requests to the silent service [for which kannel should not pull any
responses], I ironically get the <Empty reply from service provider>
response. I would have thought that the omit-empty and max-messages will
definitely ensure that absolutely no responses are sent back to the user. 

 

1.      I have to ask a question though: the kannel documentation states
that max-messages parameter works only when the response is not an error
message in which case Kannel ignores the parameter setting and pulls a
response to the user. If that is the case it would then mean that the <Empty
reply from service provider> is an error message and so Kannel pulls the
response to the user. Is this the case? 
2.      Is there a hierarchy in the message pull parameter usage such that
one of the parameters can override the other i.e. when both omit-empty and
max-messages are set and the response is <Empty reply from service
provider>, then max-messages overrides omit-empty and pulls a response to
the user because it interprets <Empty reply from service provider> as an
error message. 

 

How can I set up these services such that absolutely no messages are pulled
to the user on the second service?

 

Thanks for all your help.

Nii Amon,

 

Rancard Solutions Ltd.,

web: HYPERLINK "http://www.rancardsolutions.com/";
\nhttp://www.rancardsolutions.com

cell: +233.27.617.6997

office: +233.21.782.949

 

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/543 - Release Date: 11/20/2006





 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.12/545 - Release Date: 11/21/2006


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.14/547 - Release Date: 11/22/2006
 

Reply via email to