In past versions I had problems with \xab notation when I needed to
inject a zero byte (which was related to string representation in C) and
I when the \xab notation was sourced from the injection file (csv).
Something is telling me that the \x00 was an issue even when the binary
data were put inline in the scenario, while in the injection file the
\xab notation could not be used at all. But that was back in SIPp 3.3 so
things may have changed in both directions since then.
P.
Dne 31.1.2017 v 12:59 Luis Rojas G. napsal(a):
On 01/30/2017 08:36 PM, Trey Ormsbee wrote:
I gave this a try, the message is not decoded properly in wireshark
it sees the \x as plain text. I think the message body (you're
right about that i called it an sdp) has to be binary.
Well, I know it works, because that is they way I inject binary data
(ISUP binary buffers) with SIP-I.
Luis
-----Original Message-----*From*: Luis Rojas G.
<luis.ro...@sixbell.com
<mailto:%22luis%20rojas%20g.%22%20%3cluis.ro...@sixbell.com%3e>>
*To*: "Ormsbee, Trey" <trey.orms...@interoptechnologies.com
<mailto:%22Ormsbee,%20trey%22%20%3ctrey.orms...@interoptechnologies.com%3e>>,
sipp-users@lists.sourceforge.net <sipp-users@lists.sourceforge.net
<mailto:%22sipp-us...@lists.sourceforge.net%22%20%3csipp-us...@lists.sourceforge.net%3e>>
*Subject*: Re: [Sipp-users] Unable to get binary data into sdp
*Date*: Mon, 30 Jan 2017 17:39:56 -0500
On 01/30/2017 06:42 PM, Trey Ormsbee wrote:
Hello All-
Im trying to stick some binary data in the sdp of a sip message and
am having a problem doing so. Here is the message in the scenario:
<send retrans="500">
<![CDATA[
MESSAGE sip:+1111111111@[field1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[field0]@[field1]>;tag=[call_number]
To: <sip:+11111111111@[field1]>
Call-ID: [call_id]
CSeq: 1 MESSAGE
Contact: sip:[field0]@[local_ip]:[local_port]
Max-Forwards: 70
Content-Type: application/vnd.3gpp.sms
Content-Length: [len]
[field3]
]]>
</send>
I have tried putting the binary data in [feild3] in the csv file,
but that does not seem to work. The binary data is generated by a
perl script so that is an option as well. What is the best way to
put that data into the scenario?
Also if it helps here is a hexdump of the content:
00000000 00 01 00 06 91 11 11 11 11 11 18 11 01 0a 81 22
|..............."|
00000010 22 22 22 22 00 00 aa 80 d4 f2 9c 9e 76 9f 01
|""""........v..|
0000001f
Any help would be appreciated.
Thanks
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org!http://sdm.link/slashdot
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
<mailto:Sipp-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/sipp-users
Hello,
You mean to stick binary data in the body of a SIP message, which is
not an SDP body, but an "application/vnd.3gpp.sms" body.
This is very similar to transport ISUP using SIP-I. In my scripts I
use something like :
Content-Type: application/isup;base=itu-t92+;version=itu
Content-Disposition: session;handling=optional
Content-Length: [len]
*\x0c\x02\x00\x02\x87\x90*
]]>
So you may write that binary data as a sequence of hexadecimal numbers.
Best regards,
Luis
--
Luis Rojas
Software Architect
Sixbell Nekotec Solutions
Los Leones 1200
Providencia
Santiago, Chile
Phone: (+56-2) 22001288
mailto:luis.ro...@sixbell.com
http://www.sixbell.com
--
Luis Rojas
Software Architect
Sixbell Nekotec Solutions
Los Leones 1200
Providencia
Santiago, Chile
Phone: (+56-2) 22001288
mailto:luis.ro...@sixbell.com
http://www.sixbell.com
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users