Re: Adding new HTTP smsc in kannel

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Kannel Software Foundation (KSF)
Message-ID <[email protected]>
[email protected] wrote:

> Hi All,
> 
> Adding  new http smsc in kannel requires source code modification in the
> file smsc_http.c, and implement of 3 fonctions :
> xxx_send_sms
> xxx_parse_reply
> xxx_receive_sms
> 
> My problem is that I want to have only 3 fonctions for all http smsc,
> and then add new http smsc in config file.
> 
> Has somebody done this? or has ideas?

Hi Djiby,

now, I have added a HTTP SMSC type 'generic' then can be used for "natively
easy" HTTP APIs that use pure HTTP GET and you define a regex expression to
define the success/failure outcome on the HTTP response.

See Kannel user's guide at:

http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN2212

and you find the following example group described:

  group = smsc
  smsc = http
  system-type = generic
  port = 13015
  send-url = "http://www.foobar.com/mt.php?from=%P&to=%p&text=%b"
  status-success-regex = "ok"
  status-permfail-regex = "failure"
  status-tempfail-regex = "retry later"

Is this what you intend?

Stipe

-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
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.