Read Userguide carefully, if you use %s, which is next word after keyword.
In your case if MO is "test okei", then your that service will be called.
But if send onu "test" it will call default because it did not match, as
there is no second word. Thus using these kind of parameter, you can have
different services for same keywords. For more detail go thru userguide.

Hope this explains your query.

Shridhar Raju

----- Original Message -----
From: "Caesare Morata" <[EMAIL PROTECTED]>
To: "Kannel" <[EMAIL PROTECTED]>
Sent: Saturday, April 20, 2002 3:22 PM
Subject: a blank parameter?


> Im having a php page that checks the second word of the sms msg.
>
> Ex.
>
> <?php
> if($what == "okei")
> {
>    echo "Test service done, you said $what";
> }
> if($what == "")
> {
>    echo " you said nothing!";
> }
> ?>
>
> and in my sms-service:
>
> keyword = test
> url = "http://167.0.23.1/test.php?$what=%s";
>
> on my phone i send "test okei"
>
> As with that msg i can get the result as " Test service done, you said
okei".
> where "okei" is the parameter as $what.
>
> but if i send it just as "test",
> it displays my "default" sms-service msg.
>
> with a form page, i get it right. but from kannel, it seems not to
> recognise it.
>
> where is my problem?
>


Reply via email to