<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I've re-writed the method <i>_write_file</i> in MSRPSession class
    in order to take a file and send the chunks in MSRP send messages,
    as I wish to do.<br>
    <br>
    I suspect that I should be doing something wrong with the response
    timers, because when I run the client (with caller and calle) in the
    same machine I can get a file transfer of ~70MB to finish, but when
    running on diferent machines (either the sip-session or boghe) the
    transfer is canceled.<br>
    <br>
    I've uploaded the function here: <a class="moz-txt-link-freetext" href="https://gist.github.com/1181470">https://gist.github.com/1181470</a><br>
    <br>
    My suspect is <i>cb_and_timer</i> since there is one instance per
    transaction id, but  <i>outgoing_file.on_transaction_response</i>
    acts in message_id, wich is the same for all the messages.<br>
    <br>
    Can anybody give me an hint?<br>
    <br>
    Thanks for your attention,<br>
    <br>
    Paulo Fidalgo<br>
    <br>
    On 29-08-2011 17:15, Adrian Georgescu wrote:
    <blockquote
      cite="mid:3258296C-A653-4579-9A43-06352428B002@ag-projects.com"
      type="cite">
      <pre wrap="">Well, is a software library, nobody stops you to use it differently and send the files in any ways you consider appropriate.

Adrian

On Aug 29, 2011, at 6:11 PM, Paulo Fidalgo wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi!

I think there's a misunderstanding here. I want to send data chunks in MSRP SEND Messages, and in SIPSIMPLE it sends the whole file streamed in 64KB pieces.
What I want is to send one MSRP SEND Message for every 64KB of data, instead of send a a SEND message then stream the data.

I think both approaches are right according to the RFC, although the one which sends an MSRP message for every chunk introduces more overhead.

PS: by data I mean file binary data only, not the MSRP message with headers.

Best regards,

Paulo Fidalgo

On 29-08-2011 17:00, Saúl Ibarra Corretgé wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hi,

On Aug 29, 2011, at 5:52 PM, Paulo Fidalgo wrote:

</pre>
          <blockquote type="cite">
            <pre wrap="">Hi Saúl!

You are right, but this is only true for the first chunk, because in further chunks only data is written (in _write_file method).

</pre>
          </blockquote>
          <pre wrap="">What do you mean by 'only data' ? A single MSRP message is sent, but the data is streamed in 64KB pieces.

Regards,

--
Saúl Ibarra Corretgé
AG Projects



</pre>
        </blockquote>
        <pre wrap="">_______________________________________________
SIPBeyondVoIP mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SIPBeyondVoIP@lists.ag-projects.com">SIPBeyondVoIP@lists.ag-projects.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip">http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
  </body>
</html>