Page 1 of 1

How to use H323FileTransfer classes?

Posted: Wed Apr 02, 2014 12:48 pm
by spart
Hi, I'm trying to use a H323FileTransfer classes, but does not work :cry:
How can i do it?
Please help me! if only one small example...

Re: How to use H323FileTransfer classes?

Posted: Mon Apr 07, 2014 6:30 am
by spart
In the code, add capability
H323FileTransferCa pability mcap;
mcap.SetCapability Direction(H323Capability::e_ReceiveAndTransm it);
AddCapability(mcap);
then this capability, create a channel
H323FileTransferCh annel *cn = mcap.CreateChannel(connection, H323Channel::IsTransmitter, mcap.GetDefaultSes sionID(), NULL);
cn->Start();
and catch "Write error on data port (22)" in rtp.cxx
Why is this possible?

Re: How to use H323FileTransfer classes?

Posted: Mon Apr 07, 2014 2:36 pm
by shorne
Error 22 is invalid argument when opening the socket. The RTP socket for filetransfer should no different to any other socket for RTP.

H323 file transfer is really prototype code and should be handled that way. Improvements are definitely welcome,

Re: How to use H323FileTransfer classes?

Posted: Tue Apr 08, 2014 5:46 am
by spart
shorne wrote:Error 22 is invalid argument when opening the socket. The RTP socket for filetransfer should no different to any other socket for RTP.

H323 file transfer is really prototype code and should be handled that way. Improvements are definitely welcome,
Thanks for the answer!