On Tue, 2004-11-16 at 12:15, Marko Helle wrote: > Hi All! > > 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). >
The exact format of the MO (and MT) messages depends on 'system-type' sendsms is used for application<->Kannel interface So, things would work this way: (MO) HTTP-content gateway --(http)--> Kannel-http-smsc-interface(above) (in bearerbox) --(tcp/ip)--> smsbox --(http)---> application and then reply: (MT) application --(http-reply)*--> smsbox --(tcp/ip)--> Kannel-http-smsc (in bearerbox) --(http)--> HTTP-content-gateway *or sendsms push In MO, Kannel replies 'Ok' (or whatever) to content gateway as soon as it receives the SMS Your configuration seems to be okay - except that you have to know how that content gateway uses that HTTP (parameters etc.) I doubt that 'system-type = kannel' works, nor other supported (brunet, xidris, wapme) - if not, you have to make your own version of http-smsc. After all, every content gateway has their own way of receiving/sending messages over HTTP... :] > > > > 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 -- &Kalle Marjola ::: Development ::: Helsinki ::: Enpocket
