Hello James, All, Thanks James you really helped me. I just have one more problem:
I have to get vendor specific parameters from MO messages, wich corresponds to tariff (how much the user pay) and operator. But I can't see in wich variable I have to get it, I have only these ones: from =12144604236 to =24081 message =J k =J r = a =J b =J t =2004-07-07 18:20:30 q =12144604236 Q =24081 i =SMPP_PREMIUM_US_MO_1 d =0 n =default c =1 C =gsm Is there someone to help me with this ? I run Kannel 2.0. Should i Upgrade to have these parameters ? Geetings, Matthias > -----Message d'origine----- > De : James Coleman [mailto:[EMAIL PROTECTED] > Envoye : mardi 6 juillet 2004 12:29 > A : Matthias Etienne (Mediaplazza) > Cc : [EMAIL PROTECTED] > Objet : Re: Just to be sure all is ok > > > On Tue, Jul 06, 2004 at 10:24:33AM +0200, Matthias Etienne > (Mediaplazza) wrote: > > Hello All, > > > > Just to be sure, I would like you confirm me my conf is ok. > > > > The goal: receive MO via a smpp smsc and forward it to a PHP script. > > > > So I have: > > ... > > there are examples with kannel > you have a core group? > > group = core > admin-port = 13000 > smsbox-port = 13001 > admin-password = goobie > log-file = "/www/kannel/log/smsc-kannel.log" > #log-level = 0 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > unified-prefix = "00358,0" > access-log = "/www/kannel/log/smsc-kannel-access.log" > # received sms > store-file = "/www/kannel/log/kannel.store" > #ssl-certkey-file = "mycertandprivkeyfile.pem" > http-proxy-host = proxy > http-proxy-port = 8080 > # store delivery reports (DLR) > # dlr-storage = mysql > > > > > > 1- Created a smsbox group wich looks like: > > > > group = smsbox > > bearerbox-host = localhost > > sendsms-chars = "0123456789 +-" > > log-file = "/www/kannel/log/smsbox.log" > > log-level = 1 > > sendsms-port = 13001 > > setting the sendsms-port the same as the smsbox-port would not be > good I think ... but > I'm not 100% sure! I set sendsms-port to 13013 probably came > from example conf file. > I never see global-sender I think as always override it. > But it would make sense to set it to something sensible. > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13013 > global-sender = 353861234567 > #sendsms-chars = "0123456789 +-" > log-file = "/www/kannel/log/smsc-smsbox.log" > #log-level = 0 > access-log = "/www/kannel/log/smsc-smsbox-access.log" > > > > > > 2- created a smsc group wich looks like this: > > > > ## > > # Connexion Premium SMS US MO 1 > > group = smsc > > smsc = smpp > > smsc-id = "SMPP_PREMIUM_US_MO_1" > > host = "smpp.psms.us.mblox.com" > > receive-port = 3204 > > port = 0 > > smsc-username = "xxxxxxxx" > > smsc-password = "xxxxxxxx" > > system-type = "xxxxxxxxx" > > address-range = "" > > enquire-link-interval = 10 > > reconnect-delay = 2 > > port = 0 seems strange but maybe for your operator it is required? > clickatell game me a range of ports and I set port and > receive-port to same number. > > I just saw on list recently if you only have one smsc it may be necessary > to comment out smsc-id. I have multiple. I'm not sure. Keep it in mind. > > maybe your operator recommends a longer enquire-link-interval ? > > > ## main smsc - clickatell > group = smsc > smsc-id = clickatell > smsc = smpp > host = smpp.clickatell.com > ## ports: 2345 - 2347 > port = 2345 > receive-port = 2345 > smsc-username = "mookie" > smsc-password = "pookie" > ## clickatell product as system type for their validation and billing > system-type = "fookie" > address-range = "" > ## clickatell smpp 2.2.2 requests "Please set your enquire_link > requests to 60 seconds." > enquire-link-interval = 60 > > > You're not sending sms so you don't need a sendsms-user ... > > group = sendsms-user > username = weirdo > password = miaow > #user-deny-ip = "" > #user-allow-ip = "" > dlr-url = "http://me/topupclub-cgi-bin/receivedlruser.cgi" > > > > > > > 3- created a sms-service group: > > > > group = sms-service > > keyword = default > > catch-all = true > > concatenation = true > > accept-x-kannel-headers = true > > get-url = > > "http://mydomain.ext/sys_getmo.php?from=%p&to=%P&message=%b&k=%k&r=%r&a=%a&b > =%b&t=%t&q=%q&Q=%Q&i=%i&d=%d&A=%A&n=%n&c=%c&C=%C&u=%u" I presume your mailer split the line there ... I use kannel 1.2.1 which is a bit old and I found I could not use %u and %A parameters Your mileage will vary so try them but keep in mind they may cause problems. Also set max-messages=0 otherwise mobile will get delivery report sms. # Redirected replies max-messages = 0 # so I receivesms and log it but don't send silly sms to foam group = sms-service keyword = default # %u %A (s45 not used) get-url = "http://me/topupclub-cgi-bin/receivesms.cgi?from=%p&to=%P&text=%a&smscid=%i& dr1=%d&user=%n&coding=%c&charset=%C" max-messages = 0 concatenation = true #catch-all = true # max-messages 0 => no dlr (unless is error) > > Well, do you think this configuration is ok ? Is there a better way to do it Hopefully what I have said above gives you the idea. Does kannel start up okay and what's in the logs? If you've any problems comment out the log-level to get detailed debugging. Have fun! James.
