Hi Bill,

I think it is just arguments (via STDIN), have you tried to use the %x
values as parameters for the exec option:
E.g. exec=/usr/local/bin/kannel_exec.cgi %p %P %d etc.

I have never tried it before, but it is easy to setup a test run.
If I find the time today or tommorow, I will try it and let you know.

Bye,

Edwin

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Bill Brigden
Sent: woensdag 16 juli 2003 17:36
To: [EMAIL PROTECTED]
Subject: Re: Is http interface the only way to send sms ?


As far as using the exec type - I have looked through the source but not
100% sure of how the incoming data is passed to the program - via
standard input, or by command line?

Could anyone clarify this?

Cheers

----- Original Message -----
From: "Edwin R. Poot" <[EMAIL PROTECTED]>
To: "'Rudy T.'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 4:31 PM
Subject: RE: Is http interface the only way to send sms ?


> Hello Rudy,
>
> The file based interface is only one way, so for incoming SMS-es the 
> defined SMS service just reads the contents of a defined file and 
> sents it back as a reply. What you could do is use the exec for 
> writing the incoming SMS (MO) to a file in a specific directory with a

> specific name and for outgoing SMS-es (MT) you could wrap the HTTP 
> sendsms url with a program/script that accepts files and sents it out 
> to that url. This is nog very difficult as it is just normal 
> webprogramming.
>
> Hope this helps...
>
> Kind regards,
>
>
> Edwin Poot
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

> Of Rudy T.
> Sent: woensdag 16 juli 2003 16:50
> To: [EMAIL PROTECTED]
> Subject: RE: Is http interface the only way to send sms ?
>
>
> Dear Edwin R. Poot,
>
> Thanks for the reply,
> I have same further question as Steele Stuart. I think I've read the 
> docs (Kannel user guide) thoroughly enough and I'm pretty sure the 
> file-based interface method isnot in the documentation.
>
> Can you help elaborate further. Is it like putting the variables 
> (sender, message, etc.) in a file and the configuration will make 
> Kannel to read it ? With my limited ability to write a program, a file

> based approach seems to be more flexible (i.e. easier) for me to build

> the front-end interface for sending sms (that is, other than web html 
> front-end which is natural for http/cgi-bin approach).
>
> Regards,
> Rudy
>
>
> At 02:38 PM 7/16/03 +0100, Steele Stuart wrote:
> >Can you tell me where the specific documentation for this is,
> >(chapter?)
> >
> >Stuart
> >
> >-----Original Message-----
> >From: Edwin R. Poot [mailto:[EMAIL PROTECTED]
> >Sent: 16 July 2003 12:33
> >To: 'Rudy T.'; [EMAIL PROTECTED]
> >Subject: RE: Is http interface the only way to send sms ?
> >
> >
> >Hi Rudy,
> >
> >No there are more ways to do it.
> >
> >You could use a filebased interface, just place a file on your server

> >and configure the location in the configuration.
> >
> >Or you could use the exec feature, that executes a program/script 
> >when an SMS is received for that specific service (based on 
> >keyword(s)). Or use the default keyword if you want to redirect all 
> >received SMS to that program/script.
> >
> >Kind regards,
> >
> >
> >Edwin Poot
> >
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> >Behalf Of Rudy T.
> >Sent: woensdag 16 juli 2003 7:47
> >To: [EMAIL PROTECTED]
> >Subject: Is http interface the only way to send sms ?
> >
> >
> >Dear All,
> >
> >Thank you for opening this email.
> >I have two questions regarding sending and receiving sms (sorry for 
> >such elementary questions, I already tried to look for answer in the
> mail
> >archive).
> >
> >1) Is the http interface (cgi-bin/sendsms) the *only* way to send sms

> >?
>
> >If no, what is that other way to send sms (built-in into Kannel) ?
> >
> >2) In case I would like to record the incoming sms messages (in file 
> >or
>
> >mysql), is there any built-in command/variables for it or do I need 
> >to write the script myself ?
> >
> >Regards,
> >Rudy
> >
>
>


Reply via email to