Hi, I would like to suggest an alternative approach, using wapbox's ppg:
1) Configure sms service by keyword: group = sms-service keyword = ringtone get-url = "http://server1:15130/sms.php?user=xxx&pass=xxx&from=%p&to=%P&text=%r" This should route your sms + keywords to your php web server. Now you are in the driver's seat. 2) Use wapbox ppg to push link group = ppg ppg-url = "/feedme" ppg-port = 13007 default-smsc = smsc1 concurrent-pushes = 1000 trusted-pi = true users = 1024 service-name = ppg ppg-sm-id = dlrbox default-dlr-url = "http://www.server2.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P" #ppg-deny-ip = "*.*.*.*" ppg-allow-ip = "*.*.*.*" # PPG USER SETUP, for authorizing a specific push user group = wap-push-user wap-push-user = wapuser ppg-username = xxx ppg-password = xxx default-smsc = smsc1 This is all the setup needed to send the WAP push with the link through smsc1. 3) Program sms.php from (1) as the push initiator. Basically you just need to do an XML POST to http://www.kannel.gr:13007/feedme The post data should be: --asdlfkjiurwghasf Content-Type: application/xml <?xml version="1.0"?> <!DOCTYPE pap PUBLIC "-//WAPFORUM/DTD PAP//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd"> <pap> <push-message [email protected] deliver-before-timestamp="2009-01-01T00:00:00Z" deliver-after-timestamp="2008-09-01T00:00:00Z" progress-notes-requested="false"> <address address-value="WAPPUSH=xxxxxxxxxx/[email protected]"/> <quality-of-service priority="high" delivery-method="unconfirmed" network-required="true" network="gsm" bearer-required="true" bearer="SMS"/> </push-message> </pap> --asdlfkjiurwghasf Content-Type: text/vnd.wap.si <?xml version="1.0"?> <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/si.dtd"> <si> <indication href=http://www.ringtones.gr:9200/rock1234 si-id="[email protected]" action="signal-high" created="2008-06-25T15:23:15Z" si-expires="2009-06-30T00:00:00Z"> Eminem: Cleanin' Out My Closet </indication> </si> You should also include the following MIME header: Content-Type: multipart/related; boundary=asdlfkjiurwghasf All servers, server1 (php service), server2 (dlrs), kannel (bearerbox, wapbox & smsbox) can be on the same machine or different ones. You will definitely need bearerbox and wapbox, and if you want dlrs, smsbox. I consider simple POSTing more straightforward in php than sending wbxml through extending classes. You can also skip php altogether. You can use the 'exec' field in sms-service to pipe sms to an executable (script or C) which by itself can create the POST request and push it to wapbox. Hope it helps, ----- Original Message ----- From: hafez ahmad To: creeds Cc: [email protected] Sent: Sunday, December 21, 2008 3:30 PM Subject: Re: Re: ringtone : a simple tutorial Hi creeds, the below tutorial to send the content as wap push, hope it help you http://dev.sellingsource.com/2006/12/07/sending-wap-push-messages-with-kannel-php/ Hafez On Sun, Dec 21, 2008 at 1:42 PM, creeds <[email protected]> wrote: Even i am in need of this solution. Hope u have already got the solution as this post is quite a long time so help me out to send a ringtones when one send sms with certain keywords requesting ringtones. regards, mamunbabubd wrote: > > > please answer me the following question: > > I want to set up a ringtone service using kannel and for that i want to > use wap push SI. The sequence of the service will be as follow: > > 1.users will send a request via sms specifying a keyword for ringtone. > 2.In response of that keyword kannel will send a wap push. > > To do so what will be my kannel.conf configuration. where will i specify > the keyword for ringtone in kannnel.conf for incoming message that will > eventually pass the request for wap push SI. > > > Thanks > Mamun > > -- > This message was sent on behalf of [email protected] at > openSubscriber.com > http://www.opensubscriber.com/message/[email protected]/4111775.html > > > -- View this message in context: http://www.nabble.com/ringtone-%3A-a-simple-tutorial-tp4381955p21114322.html Sent from the Kannel - User mailing list archive at Nabble.com. -- Hafez A.Ahmad Amman-Jordan mobile:962-785259011 962-795708728 http://blog.hafezadnan.com
