Re: receiving a Vcard and save toa DB

joseph mercado <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
okay i did what u just said, here is my config

# SMS SERVICE Default
# there should be default always
keyword = default
get-url =
"http://localhost/magnus/vcardhandler.php?num=%p&message=%a"
max-messages = 0


i made vcardhander.php to just dump the value pass to
him to a flat file. Tried to send a vcard from nokia
phone and it gets dump. My problem occurs when i send
another vcard or plain text message having "magnus" as
my key word, it didnt event fetch the URL defien to
him in the services. I also notice that when i stop
kannel(bearerbox and smsbox) i saw the bearebox.log
that it receives 2 (since i sent 1 vcard and text with
"magnus" as keyword) messages........what wrong with
my config? did i miss somethings?


thanks again!!!


--- Stipe Tolj <[email protected]> wrote:
> joseph mercado wrote:
> > 
> > Thanks for the advice, one more thing, i did
> > "catchall" the text message send using %a, do i
> need
> > to specify a keyword so that kannel know if a
> plain
> > text or vcard was send? below is what i did in my
> > kannel.conf SERVICE DEFINITION
> > 
> > ##SMS SERVICE
> > 
> > ## catch vcard
> > group = sms-service
> > keyword = magnus
> > get-url =
> >
>
"http://localhost/magnus/vcardhandler.php?num=%p&message=%a"
> > max-messages = 0
> > 
> > ## catch vcard
> > group = sms-service
> > keyword = magnus
> > get-url =
> >
>
"http://localhost/magnus/query.php?num=%p&message=%r"
> > max-messages = 3
> 
> the URLs are only triggered if the first word
> (keyword) of the message
> is magnus. I guess this will not be the case for
> vcards. You should
> set the keyword to 'default', which means if no
> previous keyword
> sms-service group matches it will go to this, not
> checking the first
> word anyway.
> 
> Hence it's a "all previous didn't match, so take
> this" mechanism.
> 
> Stipe
> 
> [email protected]
>
-------------------------------------------------------------------
> Wapme Systems AG
> 
> Vogelsanger Weg 80
> 40470 Düsseldorf
> 
> Tel: +49-211-74845-0
> Fax: +49-211-74845-299
> 
> E-Mail: [email protected]
> Internet: http://www.wapme-systems.de
>
-------------------------------------------------------------------
> wapme.net - wherever you are


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.