Send User Data question

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Send User Data question

George Karagheaur-2
Dear all,
I am stuck in a simple i think problem, but already 2 nights without sleep :) Maybe somebody can guide me.

I am trying to send some data message using kannel and calling HTTP GET like this:

http://YYY:XX/cgi-bin/sendsms?username=xxxxx&password=xxxx&to=xxxxx&from=1111&text=FF0601010013010013800C00310031003000200070002E0800&dlr-mask=31&pid=127&coding=1&mclass=2

i need the text body to be transmited as it is to the sim card, instead i get:

2012-04-04 05:37:21 [283] [6] DEBUG: data: 46 46 30 36 30 31 30 31 30 30 31 33 30 31 30 30 FF06010100130100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 31 33 38 30 30 43 30 30 33 31 30 30 33 31 30 30 13800C0031003100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 33 30 30 30 32 30 30 30 37 30 30 30 32 45 30 38 3000200070002E08
2012-04-04 05:37:21 [283] [6] DEBUG: data: 30 30 00

I need this FF and so on to be send exactly as data.

Can somebody tell me, where i am making mistake, because i am sure the problem is very simple, but still cant find it :(
--
Best regards,
George Karagheaur
Mob: +79165482960
Skype: george.karagheaur
Email/MSN: [hidden email]


Reply | Threaded
Open this post in threaded view
|

RE: Send User Data question

Werner Coetzee
 

Werner Coetzee - Senior C Developer

E [hidden email]
T +27 21 910 7700  F +27 21 910 7701
TThis e-mail message and all attachments transmitted with it are confidential and are intended solely for the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachment(s) is strictly prohibited. Clickatell does not recognise that a contract can be concluded by way of electronic communication. All contracts must be signed on paper and only authorised signatories in terms of the Clickatell Authorised Signatory Policy may contract on behalf of Clickatell. All provisions to the contrary contained in the Electronic Communications and Transactions Act 25 of 2002 are hereby specifically excluded.
Facebook Twitter LinkedIn

Hi

 

Your text must be sent as url-encoded binary data to sendsms, you're sending it as plain text, e.g:

 

&text=%FF%06%01%01%00%13%01...

 

Regards

Werner

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of George Karagheaur
Sent: 04 April 2012 07:45
To: [hidden email]
Subject: Send User Data question

 

Dear all,

I am stuck in a simple i think problem, but already 2 nights without sleep :) Maybe somebody can guide me.

 

I am trying to send some data message using kannel and calling HTTP GET like this:


<a href="http://YYY:XX/cgi-bin/sendsms?username=xxxxx&amp;password=xxxx&amp;to=xxxxx&amp;from=1111&amp;text=FF0601010013010013800C00310031003000200070002E0800&amp;dlr-mask=31&amp;pid=127&amp;coding=1&amp;mclass=2">http://YYY:XX/cgi-bin/sendsms?username=xxxxx&password=xxxx&to=xxxxx&from=1111&text=FF0601010013010013800C00310031003000200070002E0800&dlr-mask=31&pid=127&coding=1&mclass=2

 

i need the text body to be transmited as it is to the sim card, instead i get:

 

2012-04-04 05:37:21 [283] [6] DEBUG: data: 46 46 30 36 30 31 30 31 30 30 31 33 30 31 30 30 FF06010100130100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 31 33 38 30 30 43 30 30 33 31 30 30 33 31 30 30 13800C0031003100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 33 30 30 30 32 30 30 30 37 30 30 30 32 45 30 38 3000200070002E08
2012-04-04 05:37:21 [283] [6] DEBUG: data: 30 30 00

 

I need this FF and so on to be send exactly as data.

 

Can somebody tell me, where i am making mistake, because i am sure the problem is very simple, but still cant find it :(

--

Best regards,

George Karagheaur

Mob: +79165482960

Skype: george.karagheaur

Email/MSN: [hidden email]

 

 

 
Reply | Threaded
Open this post in threaded view
|

Re: Send User Data question

George Karagheaur-2
Werner,
Thank you very much for the answer. It worked. Really as usual simple mistake)

Have a nice day and thanks again for help.

On Wed, Apr 4, 2012 at 10:53 AM, Werner Coetzee <[hidden email]> wrote:
 

Werner Coetzee - Senior C Developer

E [hidden email]
T +27 21 910 7700  F +27 21 910 7701
TThis e-mail message and all attachments transmitted with it are confidential and are intended solely for the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachment(s) is strictly prohibited. Clickatell does not recognise that a contract can be concluded by way of electronic communication. All contracts must be signed on paper and only authorised signatories in terms of the Clickatell Authorised Signatory Policy may contract on behalf of Clickatell. All provisions to the contrary contained in the Electronic Communications and Transactions Act 25 of 2002 are hereby specifically excluded.

Hi

 

Your text must be sent as url-encoded binary data to sendsms, you're sending it as plain text, e.g:

 

&text=%FF%06%01%01%00%13%01...

 

Regards

Werner

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of George Karagheaur
Sent: 04 April 2012 07:45
To: [hidden email]
Subject: Send User Data question

 

Dear all,

I am stuck in a simple i think problem, but already 2 nights without sleep :) Maybe somebody can guide me.

 

I am trying to send some data message using kannel and calling HTTP GET like this:


<a href="http://YYY:XX/cgi-bin/sendsms?username=xxxxx&amp;password=xxxx&amp;to=xxxxx&amp;from=1111&amp;text=FF0601010013010013800C00310031003000200070002E0800&amp;dlr-mask=31&amp;pid=127&amp;coding=1&amp;mclass=2" target="_blank">http://YYY:XX/cgi-bin/sendsms?username=xxxxx&password=xxxx&to=xxxxx&from=1111&text=FF0601010013010013800C00310031003000200070002E0800&dlr-mask=31&pid=127&coding=1&mclass=2

 

i need the text body to be transmited as it is to the sim card, instead i get:

 

2012-04-04 05:37:21 [283] [6] DEBUG: data: 46 46 30 36 30 31 30 31 30 30 31 33 30 31 30 30 FF06010100130100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 31 33 38 30 30 43 30 30 33 31 30 30 33 31 30 30 13800C0031003100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 33 30 30 30 32 30 30 30 37 30 30 30 32 45 30 38 3000200070002E08
2012-04-04 05:37:21 [283] [6] DEBUG: data: 30 30 00

 

I need this FF and so on to be send exactly as data.

 

Can somebody tell me, where i am making mistake, because i am sure the problem is very simple, but still cant find it :(

--

Best regards,

George Karagheaur

Mob: +79165482960

Skype: george.karagheaur

Email/MSN: [hidden email]

 

 

 



--
Best regards,
George Karagheaur
Mob: +79165482960
Skype: george.karagheaur
Email/MSN: [hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Send User Data question

Andreas Fink-4
In reply to this post by George Karagheaur-2
you have to URL encode your bytes.
what you are doing is you are sending a text containing FF 06... characters not the bytes they should represent

Try with &text= %FF%06%01...

On 04.04.2012, at 07:44, George Karagheaur wrote:

Dear all,
I am stuck in a simple i think problem, but already 2 nights without sleep :) Maybe somebody can guide me.

I am trying to send some data message using kannel and calling HTTP GET like this:

<a href="http://YYY:XX/cgi-bin/sendsms?username=xxxxx&amp;password=xxxx&amp;to=xxxxx&amp;from=1111&amp;text=FF0601010013010013800C00310031003000200070002E0800&amp;dlr-mask=31&amp;pid=127&amp;coding=1&amp;mclass=2">http://YYY:XX/cgi-bin/sendsms?username=xxxxx&password=xxxx&to=xxxxx&from=1111&text=FF0601010013010013800C00310031003000200070002E0800&dlr-mask=31&pid=127&coding=1&mclass=2

i need the text body to be transmited as it is to the sim card, instead i get:

2012-04-04 05:37:21 [283] [6] DEBUG: data: 46 46 30 36 30 31 30 31 30 30 31 33 30 31 30 30 FF06010100130100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 31 33 38 30 30 43 30 30 33 31 30 30 33 31 30 30 13800C0031003100
2012-04-04 05:37:21 [283] [6] DEBUG: data: 33 30 30 30 32 30 30 30 37 30 30 30 32 45 30 38 3000200070002E08
2012-04-04 05:37:21 [283] [6] DEBUG: data: 30 30 00

I need this FF and so on to be send exactly as data.

Can somebody tell me, where i am making mistake, because i am sure the problem is very simple, but still cant find it :(
--
Best regards,
George Karagheaur
Mob: +79165482960
Skype: george.karagheaur
Email/MSN: [hidden email]



Reply | Threaded
Open this post in threaded view
|

RE: Send User Data question

bhavya
This post has NOT been accepted by the mailing list yet.
In reply to this post by Werner Coetzee
Hi Werner,

Please share your skype ID, need your help to send binary message in sim via kannel.Its very very urgent.
Please help !!!


Regards,
Bhavya khanna
Reply | Threaded
Open this post in threaded view
|

RE: Send User Data question

bhavya
This post has NOT been accepted by the mailing list yet.
I am sending Hex value into sim, but not able to recieve in sim.Message format is given below:


http://172.17.3.79:13013/cgi-bin/sendsms?username=otauser&password=otapassword&from=******&to=********
&text=%02%70%00%00%58%15%16%01%15%15%B0%00%10%BB%70%EE%81%5D%1A%BB%15%35%F1%6C%60%3C%D8%74%AC%B1%6E%84%16%9D%9D%FC%C8%87%5C%F0%66%63%ED%4D%0D%7E%F9%D2%36%98%AE%2D%8A%97%65%08%DB%8A%27%09%FA%A8%C2%6F%34%4C%83%99%54%F6%07%06%63%F3%58%2F%4E%B8%89%AE%AC%7B%D1%5B%21%92%1A%33%27%D8%CC%AE%2A
dlr-mask=31&pid=127&coding=1&mclass=2


Please check and verify.


Regards,
Bhavya khanna