On Mon, Jul 13, 2009 at 9:20 PM, Jovan Kostovski<[email protected]> wrote:
> On Mon, Jul 13, 2009 at 8:19 PM, Elvis Jorge<[email protected]> wrote:
>> Ok, Thanks Jovan but I´m having the same problem. I should show the log
>> file, but Kannel is not detected the SMS incoming, in the log files there
>> isn´t nothing about incoming sms.
>
> I'm not sure about the logs, I don't know if the unprocessed messages
> are logged.
> Try to run bearerbox in debug mode and paste the output of the part
> where you receive the message:
> ./bearerbox -v 0 kannel.conf
>
>
>> Please help me with this problem, because I need to do that as soon as
>> posible, the SMS that I receive has the fallowing form: 999#28*62#19*19*35#
>> I'm going to receive SMS with numbers.
>
> Now I see why don't receive the message :)
>
> The keyword is not matching ;)
> Instead of using the keyword parameter you can use:
> keyword-regex - and set a posix regular expression for catching the message
> allowed-prefix - if you know the number(s) of the sender(s) of the message
>
> Try to remove the keyword parameter and use:
> keyword-regex = '^[0-9]{3}#[0-9]{2}\*[0-9]{2}#[0-9]{2}#$'
>
> This regular expression will match the whole message text
>
> BR, Jovan
>
Elvis,
I made a mistake when writing the regex, sorry.
Here is the corect one for matching the whole message text:
keyword-regex = '^[0-9]{3}#[0-9]{2}\*[0-9]{2}#[0-9]{2}\*[0-9]{2}\*[0-9]{2}#$'
BR, Jovan
--
Advice for software developers and horse racing enthusiasts: Avoid hacks