On Fri, 2011-01-21 at 14:40, Bob O\'Souna wrote:
> Yes, I have Kannel connected to two SMSCs. 
> 
> Just to ensure we are on the same page, you are saying
> 1) Set the get-url in sms-service group that I receive the sms' to my script

Yes, but I think you did that already. Example:

http://localhost:80/myscripts/sendctrlsms.php?time=%t&from=%q&to=%Q&smscid=%i&charcode=%C&coding=%c&text=%a

Look at port value in the URL. Set it to port where your web server
listen. And IP address/name where is web server is actually works.

You know that you must have HTTP server running and accepting HTTP
request from Kannel configured "via" get-url parameter.

> 2) Leave sendsms-url unchanged as /cgi-bin/sendsms (You also say I can add the
> smsc id parameter to /cgi-bin/sendsms if I so desire - will %I suffice?)

Yes. But if you like to change it you can.
 
> This is fine, but will Kannel automatically use the modified parameters in my
> script? If I set message to "XXXX" from "YYYY" within the script, how can 
> Kannel
> know the new value?

You set parameters in the URL. Look below.

> Do I need to "export" these parameters? (I am sure you know
> what I mean!!)

No, export is not needed.
From your script you send message to Kannel calling /cgi-bin/sendsms
with parameters according to your will. Example:
http://localhost:13013/cgi-bin/sendsms?username=me&password=pass&to=123456789&from=987654321&smsc=preferred_smsc_id&text=Test&dlr-mask=31

There are more parameters, read the userguide for detailed list.

-- 
Kind regards,  Milan
--------------------------------------------------
Arvanta, IT Security        http://www.arvanta.net
Please do not send me e-mail containing HTML code.

Reply via email to