-
- Downloads
channeled_transport: connect setOnRecv when ready to receive data
A ChannelSocket can starts to receive datas while waiting acceptance for the channel. In this case, received datas will be injected when setOnRecv will be called on the channel. However, in channeled_transport, setOnRecv injects data to pjsip and is handled by the SIPVoIPLink where transaction_request_cb will retrieve the infos via the transports_. This means, that, in order to successfully handle data, we MUST inject data when transports_ is correct. In this patch, SipTransportBroker::getChanneledTransport is modified to connect the callbacks after adding the transport to the map and inject data in the correct methods. This fix sporadic failures for testInviteFromMessageAfterRemoved Change-Id: I2767801a9dad77439fb2f2adedbc9b900add8cea
Showing
- src/jamidht/channeled_transport.cpp 8 additions, 3 deletionssrc/jamidht/channeled_transport.cpp
- src/jamidht/channeled_transport.h 6 additions, 0 deletionssrc/jamidht/channeled_transport.h
- src/jamidht/jamiaccount.cpp 3 additions, 2 deletionssrc/jamidht/jamiaccount.cpp
- src/jamidht/multiplexed_socket.cpp 11 additions, 3 deletionssrc/jamidht/multiplexed_socket.cpp
- src/sip/siptransport.cpp 6 additions, 2 deletionssrc/sip/siptransport.cpp
- src/sip/siptransport.h 4 additions, 2 deletionssrc/sip/siptransport.h
Loading
Please register or sign in to comment