Why do you need Kannel for that? Can't you tell the SMSC operator to point directly to you PHP script?
If you are _only_ using HTTP-based SMSCs, chances are you won't need to use Kannel at all. Of course if you are operating over many links (some HTTP and some not), you'll need Kannel to provide the "glue", but if you are only using HTTP-based services you can safely work from you language of choice (PHP in your case, as I see). If your case is the later, you should set: 1. An sms-service to process MT's, with a get-url pointing to the HTTP-based send-sms interface or whatever the other part has given you to send SMS messages. 2. For MO's you can accept the SMSC HTTP request directly from PHP and later decide if you need to route it to another SMSC (not HTTP-based) thorugh Kannel or if you can deal with it directly from PHP (If the response goes to an HTTP-based SMSC, you can make the request from PHP, it will be faster than routing it through Kannel). Hope it helps, On Tue, 16 Nov 2004 12:25:07 +0200, Marko Helle <[EMAIL PROTECTED]> wrote: > Hi again, > > Just to be more specific, I need to know how to build url which sends MO > message, i.e. what should be path, is username/password requred, is > keyword concatenated with message, etc. > > :)Marko > > > > > -----Original Message----- > From: Marko Helle [mailto:[EMAIL PROTECTED] > Sent: 16. marraskuuta 2004 12:15 > To: '[EMAIL PROTECTED]' > Subject: Receiving HTTP based MO message > > Hi All! > > I'm trying to configure http based smsc to Kannel. > Kannel should be able to send and receive sms messages with > that smsc. > > I understand how to send sms; I can do it by requesting this url: > http://*.*.*.*:13131/cgi-bin/sendsms?smsc=SMSC1&username=un&password=pw&to=1 > 23456&text=Hello+world > > But how to receive sms (MO). If I understand correctly, I should be able > to emulate smsc with web browser (as it is http based). > So Kannel should receive MO messge when I request url which looks > something like this: > > http://*.*.*.*:13015/<path>?username=un&password=pw&from=777777&message=KEYW > ORD+Message+Body > > When Kannel has received message, it should deliver it to get-url I have > specified in sms-service. > > Can anyone give me some direction how to do this or am I lacking some > fundamental part of knowledge (is this something that Kannel isn't even > supposed to be doing). > > Below is my configuration file: > > group = core > admin-port = 13000 > admin-password = ****** > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "*.*.*.*" > smsbox-port = 13003 > wdp-interface-name = "*" > log-file = "/var/log/kannel/bearerbox.log" > box-deny-ip = "*.*.*.*" > box-allow-ip = "*.*.*.*" > > # SMSBOX SETUP > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13131 > sendsms-chars = "0123456789 " > global-sender = 13131 > access-log = "/kannel.access" > log-file = "/smsbox.log" > log-level = 0 > > group = sendsms-user > username = ****** > password = ****** > user-allow-ip = "*.*.*.*" > dlr-url = http://*.*.*.*/dlr.php?type=%d > > # SMSC1 > > group = smsc > smsc = http > port = 13015 > smsc-id = SMSC1 > allowed-smsc-id = SMSC1 > system-type = kannel > connect-allow-ip = "*.*.*.*" > smsc-username = un > smsc-password = pw > send-url = "http://*.*.*.*/SMSC1.php" > > group = sms-service > keyword = KEYWORD > get-url = "http://*.*.*.*/MOReceiver.php?sender=%p&text=%r" > > :)Marko > > -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/
