Check out the SMS-service configuration's documentation. You will need something like this:
group = sms-service keyword = default get-url = http://www.marceloolivas.com/kannel/SMSHandlerServlet?sender=%p&receiver=%P&text=%a&smsc-id=%i&time=%t&meta-data=%D accept-x-kannel-headers = true max-messages = 0 send-sender = true Where the get-url is the site of your URL with your servlet. You can see the parameters in the link of the top under "Table 6-9. Parameters (Escape Codes)". Once again, check out the documentation, it's pretty good! As you can imagine, this is for the incoming messages (MOs). As far as the outgoing message (MT), you will have to use the HTTP API for Kannel (not a jar - just the HTTP parameters). Here is an example below: http://kannelserver:13013/cgi-bin/sendsms?username=tester&password=foobar&from=1234&to=1234567890&text=kannel+in-heeza&smsc=SMSC_CONNECTION&dlr-url=http%3A%2F%2Fkannelserver%3A9090%2Fkanneldlr%2Fdlr%3Fuuid%3D87fb9dbc-afcd-4b70-9738-bc17b8a71f0c%26dlr-status%3D%25d%26dlr-errcode%3D%25B%26dlr-tlvs%3D%25D&dlr-mask=31 Let me know if that helps! Regards, Marcelo On Sep 22, 2010, at 9:19 PM, sirc saira wrote: > > Dear Guys, > I just new to Kannel. > > Yes, I am interested to know does a servlet send and receive message to/from > kannel? May i know more about URL push without smslib. may i have some > examples. > > I am very grateful for your help. > > Here is my kannel configuration, it 's a mess i think. i have being making > 'experiments' about it. > > > group = core > admin-port = 13000 > admin-password = bar > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1;192.168.1.128" > smsbox-port = 13001 > wdp-interface-name = "*" > log-file = "/var/log/kannel/bearerbox.log" > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1;192.168.1.*" > > group = smsc > smsc-id = mysmsc > smsc = at > port = 10000 > modemtype = auto > device = /dev/ttyACM0 > speed = 9600 > pin = 2345 > smsc-user = jose > smsc-password = 123 > connect-allow-ip = "192.168.1.128" > > group = smsbox > bearerbox-host = 127.0.0.1 > sendsms-port = 13013 > #log-file = "/tmp/smsbox.log" > #log-level = 0 > > > > > --- On Wed, 9/22/10, Danny Francisco <[email protected]> wrote: > >> From: Danny Francisco <[email protected]> >> Subject: Re: Need help: kannel and java >> To: "sirc saira" <[email protected]> >> Date: Wednesday, September 22, 2010, 9:05 AM >> you don't need smslib with >> kannel. just do a url() push to sendsms. >> Kannel talks to your device directly. smslib does that >> too. >> >> and for incoming msgs. you can create a servlet that kannel >> can access >> >> Best Regards, >> >> Danny >> >> On 9/22/2010 9:10 AM, sirc saira wrote: >>> Hello guys, >>> >>> i have plugged in Nokia 6120 phone and i was able to >> send a text message to another cellphone with minicom using >> AT commands. >>> >>> However i want to send a message using a Java program. >> I read about SMSLib, try the examples with my netbeans IDE, >> but error message keep on saying >>> >>> Message Status: FAILED >>> Failure Cause: NO_ROUTE >>> >>> These are some of my questions. >>> How to check that kannel is now accepting messages, >> say on port 13013? >>> (http://192.168.1.129:13013/cgi-bin/sendsms) >>> >>> What necessary configurations do i need? Is >> smsc-service needed? >>> >>> Can other workstations (say 192.168.1.128) >> connect/send message on this kannel(SMS) gateway? >>> >>> thanks >>> >>> >>> >>> >>> >>> >>> >>> >> >> > > > > >
