[SIP Beyond VoIP] MSRP File transfer
o.kanniball.o at gmail.com
Tue Aug 30 20:05:35 CEST 2011
I've re-writed the method /_write_file/ in MSRPSession class in order to
take a file and send the chunks in MSRP send messages, as I wish to do.
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.
I've uploaded the function here: https://gist.github.com/1181470
My suspect is /cb_and_timer/ since there is one instance per transaction
id, but /outgoing_file.on_transaction_response/ acts in message_id, wich
is the same for all the messages.
Can anybody give me an hint?
Thanks for your attention,
On 29-08-2011 17:15, Adrian Georgescu wrote:
> Well, is a software library, nobody stops you to use it differently and send the files in any ways you consider appropriate.
> On Aug 29, 2011, at 6:11 PM, Paulo Fidalgo wrote:
>> 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:
>>> On Aug 29, 2011, at 5:52 PM, Paulo Fidalgo wrote:
>>>> 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).
>>> What do you mean by 'only data' ? A single MSRP message is sent, but the data is streamed in 64KB pieces.
>>> Saúl Ibarra Corretgé
>>> AG Projects
>> SIPBeyondVoIP mailing list
>> SIPBeyondVoIP at lists.ag-projects.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SIPBeyondVoIP