Skip to content
Snippets Groups Projects
Commit 121f15db authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1722] Chage AudioRtpInit from answer to mod_on_rx_request

parent 238fdb78
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,15 @@ namespace sfl { ...@@ -90,6 +90,15 @@ namespace sfl {
*/ */
inline void * getAudioRtpSession(void) { return _rtpSession; } inline void * getAudioRtpSession(void) { return _rtpSession; }
/**
* @param None
* @return The internal audio rtp session type
* Symmetric = 0
* Zrtp = 1
* Sdes = 2
*/
inline RtpMethod getAudioRtpType(void) { return _rtpSessionType; }
/** /**
* Get the current AudioZrtpSession. Throws an AudioRtpFactoryException * Get the current AudioZrtpSession. Throws an AudioRtpFactoryException
* if the current rtp thread is null, or if it's not of the correct type. * if the current rtp thread is null, or if it's not of the correct type.
......
...@@ -809,11 +809,13 @@ SIPVoIPLink::answer (const CallID& id) ...@@ -809,11 +809,13 @@ SIPVoIPLink::answer (const CallID& id)
local_sdp = call->getLocalSDP(); local_sdp = call->getLocalSDP();
/*
try { try {
call->getAudioRtp()->initAudioRtpSession (call); call->getAudioRtp()->initAudioRtpSession (call);
} catch (...) { } catch (...) {
_debug ("Failed to create rtp thread from answer"); _debug ("Failed to create rtp thread from answer");
} }
*/
inv_session = call->getInvSession(); inv_session = call->getInvSession();
...@@ -3628,6 +3630,12 @@ mod_on_rx_request (pjsip_rx_data *rdata) ...@@ -3628,6 +3630,12 @@ mod_on_rx_request (pjsip_rx_data *rdata)
// We retrieve the remote sdp offer in the rdata struct to begin the negociation // We retrieve the remote sdp offer in the rdata struct to begin the negociation
call->getLocalSDP()->set_ip_address (addrSdp); call->getLocalSDP()->set_ip_address (addrSdp);
try {
call->getAudioRtp()->initAudioRtpSession (call);
} catch (...) {
_debug ("Failed to create rtp thread from answer");
}
get_remote_sdp_from_offer (rdata, &r_sdp); get_remote_sdp_from_offer (rdata, &r_sdp);
status = call->getLocalSDP()->receiving_initial_offer (r_sdp); status = call->getLocalSDP()->receiving_initial_offer (r_sdp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment