Re: test_ppg problem
Aarno Syvänen <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
There is a patch in the devel list that enables test_ppg to read a binary content from a text file. This may help here. Aarno On Wednesday, April 30, 2003, at 01:32 PM, Stipe Tolj wrote: > Hi, > > Shridhar Raju wrote: >> >> Hi Stipe, >> >> M-notification.ind file (mms.txt) is some thing like this >> >> 8c8298313235008d908a808e016488048102010083687474703a2f2f7777772e666c79 >> 65726f >> 6e652e636f6d2f00 >> >> and pap.txt >> >> <?xml version="1.0"?> >> <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN" >> "http://www.wapforum.org/DTD/pap_1.0.dtd"> >> <pap> >> <push-message push-id="[email protected]" >> progress-notes-requested="false"> >> <address >> address-value="WAPPUSH=+919848444808/[email protected]"> >> </address> >> </push-message> >> </pap> >> >> which I copied from previous mails. >> >> #./test_ppg >> "http://202.56.199.69:8080/wap-push?username=foo&password=bar" -a mms >> -c mms >> mms.txt pap.txt. >> >> Access.log >> >> 2003-04-30 14:56:22 Sent SMS [SMSC:FAKE] [SVC:] [ACT:] [from:1234] >> [to:+919848444808] [flags:0:2:0:0:0] >> [msg:123:03061BBE963230322E35362E3139392E36393A3830383000AF848DDDB4803 >> 863383 >> 2393833313332333530303864393038613830386530313634383830343831303230313 >> 030383 >> 3363837343734373033613266326637373737373732653636366337393635373236663 >> 665363 >> 53265363336663664326630300A] [udh:7:0605040B8423F0] >> >> Is this correct. Or Am I still missing something. Please bear with >> me for >> my silly question. > > nop. you still miss the main issue. You pass the hex byte string as > text/plain to PPG. You have to pass it in *binary* form! Which means > 8c80... is really the byte content of a binary file, *not* a text file > containing the byte hex values! > > Stipe > > [email protected] > ------------------------------------------------------------------- > Wapme Systems AG > > Vogelsanger Weg 80 > 40470 Düsseldorf > > Tel: +49-211-74845-0 > Fax: +49-211-74845-299 > > E-Mail: [email protected] > Internet: http://www.wapme-systems.de > ------------------------------------------------------------------- > wapme.net - wherever you are >