On 2004-08-26 11:04:31 +0800 Jane P. Ifurung <[EMAIL PROTECTED]> wrote:



Hello! I'm a bit confused with this MO and MT configuration. I
understand the process for MO is from the subscriber to my Kannel, while
the MT is from my Kannel to the subscriber.
For MO configuration, I understand this is defined in the sms-service
group, wherein we specify the keyword (the first word of the message
sent by the subscriber) and the get-url that points to the HTTP URL of
my application which will process the message received by Kannel and
responds back to the user. My question is, when my application responds
back with the appropriate data to the subscriber, how does it know which
SMSC to send through/connect to? Is this through redirecting to the url
of the sendssms with the appropriate parameters?

yep. you can limit the smsc to a range of smsc-ids. and then use the smsc cgi variable in your urls.


For an MT configuration, I understand this is defined in the
sendsms-user group, wherein we specify the IPs that are allowed to
initiate the SMS push. The sendsms can be accessed by doing an HTPT GET
or POST to my smsbox with the appropriate parameters.
Example of sms push is
http://host-of-my-kannel-smsbox:the-sendsms-port-in-my-smsbox-group/cgi-
bin/sendsms?username=usename
<http://host-of-my-kannel-smsbox:the-sendsms-port-in-my-smsbox-group/cgi
-bin/sendsms?username=usename&password=pass&from=access-code-provided-by
-Telco&to=number-of-recipient&text=my-rulencoded-text&dlr-mask=31&dlr-ur
l=url-to-store-the-delivery-report-generation&mclass=1>
&password=pass&from=access-code-provided-by-Telco&to=number-of-recipient
&text=my-rulencoded-text&dlr-mask=31&dlr-url=url-to-store-the-delivery-r
eport-generation&mclass=1.


My question for the above is, where should I type those? Always in a
web-browser? Could I make an application in my HTTP server that would
redirect to the above url and append those parameters?


Nope. I dont know how to post using php so i use a c program to process the request and post back the reply using a canned GET url. This is all done using c socket calls, read, write etc. I have never succeeded using POST with sendsms but GET is adequate for my needs. If you can setup smsc_http then you can post to that. I have not tried it yet though. Dont know how that works with MT.


Thank you in advance!
Regards,

Jane





Reply via email to