Re: thread for sending messages from a database

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
Andreas Fink wrote:
> 
> I think your whole approach is wrong. You should do this kind of
> thing in a separate application. You then can link this separate
> application to gwlib and use gwlib's HTTP library function to deliver
> your messages from the database on to kannel. This will make your
> code much more portable, you dont have to mess with all the internals
> of Msg * and your code works with multiple SMSC types.

Andreas is right here. We try to avoid muggling external APIs into
Kannel as much as possible. For some reasons it's necessary as
permanent storage backend, like DLRs.

But for batched SMS transmission out of a database you should use an
external component that queries your db and talks HTTP to Kannel's
interface in this way:


      Kannel's         HTTP                           SQL queries
    HTTP interface  <-------->   Your application   <------------->
RDBMS
      (smsbox)                  (maybe PHP or Perl)


Stipe

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Münsterstr. 248
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
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.