Hi,

There are two things:

1. Using \x00 to indicate a binary value of 0 means that the message is
truncated at that point as it is treated as an end of string.
I think this might be a bug.

2. Because of this there are dificulties in using the SIPp tester for SIP-t
testing as the ISUP messages can be sent as Content-Transfer-Encoding:binary
in a multipart/mixed MIME format.

To get around this for myself I made some changes (to send_message) to find
the binary content and perform the translation to binary at that point,
modifying the buffer "msg" and its associated "len" before calling sendto.
But this is a hack and there are a number of flaws in doing it like this (
e.g. compression, multiple binary parts) but it works for me, at least for
the moment.

A solution might be to change from using string format for storage to a
character array with a length, maybe a new class.
But maybe there's not much demand for this feature.

Br, Maurice.



On 1/8/07, Maurice Hayes <[EMAIL PROTECTED]> wrote:

Hi,

In a SIP INVITE I am trying to include a binary Content-Type (for SIP-t
support).
Using \x it's possible to get binary data sent in the invite.

But when '0' needs to be transmitted the invite is truncated at that
point.
I guess this is because the '0' is taken as an end of string marker?

Any ideas how to get around this?

Thanks, Maurice.

Please see the sample below, the \x00 triggers the truncation:

      Content-Type:multipart/mixed; boundary=bound49
      Content-Length:[len]
      MIME-Version:1.0

      --bound49
      Content-Type:application/SDP;charset=ISO-10646

      v=0
      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
      s=MMS call
      c=IN IP[media_ip_type] [media_ip]
      t=0 0
      m=audio [media_port] RTP/AVP 0
      a=rtpmap:0 GSM-EFR/8000

      --bound49
      Content-Type: application/ISUP; version=si1; base=itu-t92+
      Content-Transfer-Encoding:binary

      \x06\x01\x07\x02\x00\x09\x01\x03\x04

      --bound49--

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to