On Tue, 2002-07-16 at 14:58, Nil Mekki wrote: > > > -----Message d'origine----- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > De la part de Bruno David Rodrigues > Envoy� : samedi 13 juillet 2002 18:02 > � : [EMAIL PROTECTED] > Objet : Re: XML > > On Fri, 2002-07-12 at 19:09, Oded Arbel wrote: > > nil wrote: > > > > >Hi > > > > > >When I receive an sms, I want to post through http a XML message. > > > > > >Does anybody knows how I can do this. > > > > > >the http url is: > > > > > > http://mysms.com/MessageServlet > > > > > > > > >And the xml messages are: > > > > > ><?xml version="1.0" encoding="ISO-8859-1"?> > > > <!DOCTYPE mobilectrl_received_sms> > > > <mobilectrl_received_sms> > > > <header> > > > <customer_id>MYNAME</customer_id> > > > > <mobilectrl_id>.1.12:16ac04:eed9dbe852:-5cc2</mobilectrl_id> > > > </header> > > > <payload> > > > <sms premiumrate="15"> > > > <message>MY Message</message> > > > <from_msisdn > operator="tele2">+3372584253</from_msisdn> > > > </sms> > > > </payload> > > > </mobilectrl_received_sms> > > > > > >I need to put the phone number and the message in the XML doc and > post it for > > >each sms that I receive. > > > > > >Thank you. > > > > > > > > > > > Kannel can't do that directly (though you might want to check the > XMLRPC > > interface that does something similar), but you can set the > sms-service > > to call an executable script or a web script to format the XML and > POST > > it to where you need to. > > > > -- > > Oded Arbel > > m-Wise mobile solutions > > > > > > > > > > Kannel do support post-xml (in and out). It's still unofficial but I'm > using it without problem. > > Please just rebuild the docs with ./configure ... --enable-drafts > > Thanks, > > So, I rebuild, > And then how do I do to post XML messages ? > how do I set the kannel.conf file ? > Could you give me an exemple ?
To POST app->kannel, just post through http://.../sendsms. For kannel->app, just set a post-xml similar to post-url XML format is based on sms-xml draft with some changes to enable autentication and smsc routing, and is defined on documentation.
