global-sender sms service
Hi All I m connected to my operator using SMPP for premium sms. I receive a keyword on short code 666 and depending on keyword i need to send a billable MT/normal MT back. boiling down little down it means if the global sender is 66601 it means i m sending a chargeable MT of Rs.20/- whereas if global-sender is 666 its a normal MT. I have defined 666.conf for this purpose. now pls let me know how do i change the global sender dynamically ? Is there any way ? Pl. help me Rgds Sriram
DRM separate delivery rights push
Hi All, I am trying to deliver the rights for a DRM protected file, and from what I can gather the XML in the .dr file needs to be pushed directly (not normal wap push with url) to the phone. The best I have been able to come up with is (Via PPG): POST /wappush HTTP/1.1 Host: ** X-Kannel-SMSC: X-Kannel-DLR-Mask: 31 X-Kannel-Smsbox-Id: X-Kannel-From: X-Kannel-DLR-Url: http://*/ppg/results.php?smsc-id=%istatus=%danswer=%Ato=%Pfrom=%pts=%to=%oI=%I Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml Content-Length: 1220 --multipart-boundary Content-type: application/xml ?xml version=1.0? !DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN http://www.wapforum.org/DTD/pap_1.0.dtd; pap push-message push-id=330304 address address-value=WAPPUSH=+***/[EMAIL PROTECTED]/ quality-of-service delivery-method=unconfirmed network=GSM bearer=SMS//push-message /pap --multipart-boundary application/vnd.oma.drm.rights+xml o-ex:rights xmlns:o-ex=http://odrl.net/1.1/ODRL-EX; xmlns:o-dd=http://odrl.net/1.1/ODRL-DD; xmlns:ds=http://www.w3.org/2000/09/xmldsig#/; o-ex:context o-dd:version1.0/o-dd:version /o-ex:context o-ex:agreement o-ex:asset o-ex:context o-dd:uidcid:song20080403151338-2434513837@domain/o-dd:uid /o-ex:context ds:KeyInfo ds:KeyValueerjSJyy7/4vy7TYCb6eh7Q==/ds:KeyValue /ds:KeyInfo /o-ex:asset o-ex:permission o-dd:play o-ex:constraint o-dd:datetime o-dd:start2008-04-03T14:43:19/o-dd:start o-dd:end2008-04-03T16:20:19/o-dd:end /o-dd:datetime /o-ex:constraint /o-dd:play /o-ex:permission /o-ex:agreement /o-ex:rights --multipart-boundary-- HTTP/1.1 202 Accepted Server: Kannel/cvs Content-Length: 253 Content-Type: application/xml ?xml version=1.0? !DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN http://www.wapforum.org/DTD/pap_1.0.dtd; pap badmessage-response code=2000 desc=Not understood due to malformed syntax bad-message-fragment= /badmessage-response /pap Any ideas? I can handle UDH headers and encoded strings if someone knows how to send this that way. Thanks, Kyriacos Sakkas -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **
Re: DRM separate delivery rights push
Hi Again, The sample below is missing contentype for the rights XML part. I have added that and now Kannel parses OK, but as yet no success on the phone. Kyriacos Kyriacos Sakkas wrote: Hi All, I am trying to deliver the rights for a DRM protected file, and from what I can gather the XML in the .dr file needs to be pushed directly (not normal wap push with url) to the phone. The best I have been able to come up with is (Via PPG): POST /wappush HTTP/1.1 Host: ** X-Kannel-SMSC: X-Kannel-DLR-Mask: 31 X-Kannel-Smsbox-Id: X-Kannel-From: X-Kannel-DLR-Url: http://*/ppg/results.php?smsc-id=%istatus=%danswer=%Ato=%Pfrom=%pts=%to=%oI=%I Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml Content-Length: 1220 --multipart-boundary Content-type: application/xml ?xml version=1.0? !DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN http://www.wapforum.org/DTD/pap_1.0.dtd; pap push-message push-id=330304 address address-value=WAPPUSH=+***/[EMAIL PROTECTED]/ quality-of-service delivery-method=unconfirmed network=GSM bearer=SMS//push-message /pap --multipart-boundary application/vnd.oma.drm.rights+xml o-ex:rights xmlns:o-ex=http://odrl.net/1.1/ODRL-EX; xmlns:o-dd=http://odrl.net/1.1/ODRL-DD; xmlns:ds=http://www.w3.org/2000/09/xmldsig#/; o-ex:context o-dd:version1.0/o-dd:version /o-ex:context o-ex:agreement o-ex:asset o-ex:context o-dd:uidcid:song20080403151338-2434513837@domain/o-dd:uid /o-ex:context ds:KeyInfo ds:KeyValueerjSJyy7/4vy7TYCb6eh7Q==/ds:KeyValue /ds:KeyInfo /o-ex:asset o-ex:permission o-dd:play o-ex:constraint o-dd:datetime o-dd:start2008-04-03T14:43:19/o-dd:start o-dd:end2008-04-03T16:20:19/o-dd:end /o-dd:datetime /o-ex:constraint /o-dd:play /o-ex:permission /o-ex:agreement /o-ex:rights --multipart-boundary-- HTTP/1.1 202 Accepted Server: Kannel/cvs Content-Length: 253 Content-Type: application/xml ?xml version=1.0? !DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN http://www.wapforum.org/DTD/pap_1.0.dtd; pap badmessage-response code=2000 desc=Not understood due to malformed syntax bad-message-fragment= /badmessage-response /pap Any ideas? I can handle UDH headers and encoded strings if someone knows how to send this that way. Thanks, Kyriacos Sakkas -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **
Re: DRM separate delivery rights push
Ah ! Joy... Kyriacos Sakkas wrote: Hi Again, The sample below is missing contentype for the rights XML part. I have added that and now Kannel parses OK, but as yet no success on the phone. Kyriacos Kyriacos Sakkas wrote: Hi All, I am trying to deliver the rights for a DRM protected file, and from what I can gather the XML in the .dr file needs to be pushed directly (not normal wap push with url) to the phone. The best I have been able to come up with is (Via PPG): POST /wappush HTTP/1.1 Host: ** X-Kannel-SMSC: X-Kannel-DLR-Mask: 31 X-Kannel-Smsbox-Id: X-Kannel-From: X-Kannel-DLR-Url: http://*/ppg/results.php?smsc-id=%istatus=%danswer=%Ato=%Pfrom=%pts=%to=%oI=%I Content-Type: multipart/related; boundary=multipart-boundary; type=application/xml Content-Length: 1220 --multipart-boundary Content-type: application/xml ?xml version=1.0? !DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN http://www.wapforum.org/DTD/pap_1.0.dtd; pap push-message push-id=330304 address address-value=WAPPUSH=+***/[EMAIL PROTECTED]/ quality-of-service delivery-method=unconfirmed network=GSM bearer=SMS//push-message /pap --multipart-boundary application/vnd.oma.drm.rights+xml o-ex:rights xmlns:o-ex=http://odrl.net/1.1/ODRL-EX; xmlns:o-dd=http://odrl.net/1.1/ODRL-DD; xmlns:ds=http://www.w3.org/2000/09/xmldsig#/; o-ex:context o-dd:version1.0/o-dd:version /o-ex:context o-ex:agreement o-ex:asset o-ex:context o-dd:uidcid:song20080403151338-2434513837@domain/o-dd:uid /o-ex:context ds:KeyInfo ds:KeyValueerjSJyy7/4vy7TYCb6eh7Q==/ds:KeyValue /ds:KeyInfo /o-ex:asset o-ex:permission o-dd:play o-ex:constraint o-dd:datetime o-dd:start2008-04-03T14:43:19/o-dd:start o-dd:end2008-04-03T16:20:19/o-dd:end /o-dd:datetime /o-ex:constraint /o-dd:play /o-ex:permission /o-ex:agreement /o-ex:rights --multipart-boundary-- HTTP/1.1 202 Accepted Server: Kannel/cvs Content-Length: 253 Content-Type: application/xml ?xml version=1.0? !DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN http://www.wapforum.org/DTD/pap_1.0.dtd; pap badmessage-response code=2000 desc=Not understood due to malformed syntax bad-message-fragment= /badmessage-response /pap Any ideas? I can handle UDH headers and encoded strings if someone knows how to send this that way. Thanks, Kyriacos Sakkas -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **
problems regarding testing gateway
i have installed the kannel gateway and also run it..but i m a little confused about testing it with a simulator. i want to ask that what changes and in which variables of the configration files.. i m very much confused ...plz hehlp me out. - Explore your hobbies and interests. Click here to begin.
Re: problems regarding testing gateway
sonu agarwal schrieb: i have installed the kannel gateway and also run it..but i m a little confused about testing it with a simulator. i want to ask that what changes and in which variables of the configration files.. i m very much confused ...plz hehlp me out. did you read the Kannel user's guide? We require users to read the manual first, before asking any how do I start? questions. This is WAY TOO generic. Stipe --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org ---
Response from Kannel
Dear all, please tell me how can I add a new line in strings of responses sent by kannel. forexamle, I want this message; Hello, I am working to look like this, Hello,I am working I am using Java and as far as java language is concerned; new line character is '\n' - but it does not work while i try with responses in Kannel. Please suggest. regards, Connect to the next generation of MSN Messenger Get it now! _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
how to test gateway after installation using mobile simulator
i read the user guide. i ran the gateway..but i want to know that do we have to make changes in the configration file. such as anmin port,wap port, usr allow ip etc if yes then vhich variables and in which config files i have to change plz help - Forgot the famous last words? Access your message archive online. Click here.
Re: Response from Kannel
urlencode the text, it will do the trick. On Thu, Apr 3, 2008 at 2:09 PM, Logic 1902 [EMAIL PROTECTED] wrote: Dear all, please tell me how can I add a new line in strings of responses sent by kannel. forexamle, I want this message; Hello, I am working to look like this, Hello, I am working I am using Java and as far as java language is concerned; new line character is '\n' - but it does not work while i try with responses in Kannel. Please suggest. regards, -- Connect to the next generation of MSN Messenger Get it now! http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline -- Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
RE: Response from Kannel
can you please elaborate a little with an example. I am having much difficulty. thanks Date: Thu, 3 Apr 2008 16:54:15 -0300 From: [EMAIL PROTECTED] To: users@kannel.org Subject: Re: Response from Kannel urlencode the text, it will do the trick. On Thu, Apr 3, 2008 at 2:09 PM, Logic 1902 [EMAIL PROTECTED] wrote: Dear all, please tell me how can I add a new line in strings of responses sent by kannel. forexamle, I want this message; Hello, I am working to look like this, Hello, I am working I am using Java and as far as java language is concerned; new line character is '\n' - but it does not work while i try with responses in Kannel. Please suggest. regards, Connect to the next generation of MSN Messenger Get it now! Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it! _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
RE: Response from Kannel
In php you will do $msg = Hello, \n I am Working; $msg = urlencode($msg); ? Then use $msg in the sendsms string. Regards, -Original Message- From: Logic 1902 [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 2:09 AM To: Alejandro Guerrieri; users@kannel.org Subject: RE: Response from Kannel can you please elaborate a little with an example. I am having much difficulty. thanks Date: Thu, 3 Apr 2008 16:54:15 -0300 From: [EMAIL PROTECTED] To: users@kannel.org Subject: Re: Response from Kannel urlencode the text, it will do the trick. On Thu, Apr 3, 2008 at 2:09 PM, Logic 1902 [EMAIL PROTECTED] wrote: Dear all, please tell me how can I add a new line in strings of responses sent by kannel. forexamle, I want this message; Hello, I am working to look like this, Hello, I am working I am using Java and as far as java language is concerned; new line character is '\n' - but it does not work while i try with responses in Kannel. Please suggest. regards, Connect to the next generation of MSN Messenger Get it now! Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it! _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspx; mkt=en-us
RE: Response from Kannel
What he means is that you need to urlencode the message. This converts control and other characters into hex representations of the same and changes spaces into pluses (+). So the string: $msg = Hello,\nI am working; urlencoded becomes: $msg = Hello%2C%0AI+am+working; The comma was changed to %2C, the newline to %0A and all the space into +'s. I'm not a java programmer but I'm sure there is a function or at least examples of how to do this. I use the following in Perl to accomplish this: # Encode a string into urlencoded format sub encode { local($instring) = @_; # Replace all Non-Numerics with HEX Sequence $instring =~ s/[\x00-\x1F\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\xFF]/hexCodeFromChar($)/eg; # Replace all spaces with Plus Character $instring =~ s/ /+/g; return($instring); } # Decode a string from urlencoded format sub decode { local($instring) = @_; # Replace all PLUS characters with Spaces $instring =~ tr/+/ /; # Replace Hex Codes with real characters $instring =~ s/%(..)/pack(C,hex($1))/eg; return($instring); } # Function used by both sub hexCodeFromChar { my ($char) = @_; my $asc = ord($char); return(sprintf(%c%02X, 37, $asc)); } -- Kevin Reed - TNET Services, Inc. For Mesa, AZ Weather http://www.TNETWeather.com can you please elaborate a little with an example. I am having much difficulty. thanks Date: Thu, 3 Apr 2008 16:54:15 -0300 From: [EMAIL PROTECTED] To: users@kannel.org Subject: Re: Response from Kannel urlencode the text, it will do the trick. On Thu, Apr 3, 2008 at 2:09 PM, Logic 1902 [EMAIL PROTECTED] wrote: Dear all, please tell me how can I add a new line in strings of responses sent by kannel. forexamle, I want this message; Hello, I am working to look like this, Hello, I am working I am using Java and as far as java language is concerned; new line character is '\n' - but it does not work while i try with responses in Kannel. Please suggest. regards,