Commit 70ddbd07 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Copying remote SDP into ss_rsession when it has been processed.

darcs-hash:20050911211647-65a35-704b9b35f952842e460f914c3cab1769e93e5f97.gz
parent d791011f
......@@ -994,11 +994,13 @@ int soa_generate_answer(soa_session_t *ss,
int soa_base_generate_answer(soa_session_t *ss,
soa_callback_f *completed)
{
sdp_session_t const *sdp = ss->ss_local->ssd_sdp;
sdp_session_t const *l_sdp = ss->ss_local->ssd_sdp;
sdp_session_t const *r_sdp = ss->ss_remote->ssd_sdp;
sdp_session_t *rsession;
(void)completed;
if (!sdp)
if (!l_sdp || !r_sdp)
return -1;
soa_set_activity(ss, sdp->sdp_media, 0);
......@@ -1042,14 +1044,20 @@ int soa_process_answer(soa_session_t *ss,
return ss->ss_actions->soa_process_answer(ss, completed);
}
/** Process answer from remote end.
*
*
*/
int soa_base_process_answer(soa_session_t *ss,
soa_callback_f *completed)
{
sdp_session_t const *sdp = ss->ss_local->ssd_sdp;
sdp_session_t const *l_sdp = ss->ss_local->ssd_sdp;
sdp_session_t const *r_sdp = ss->ss_remote->ssd_sdp;
sdp_session_t *rsession;
(void)completed;
if (!sdp)
if (!l_sdp || !r_sdp)
return -1;
soa_set_activity(ss, sdp->sdp_media, 0);
......
......@@ -162,6 +162,8 @@ struct soa_session
/** Remote session description */
struct soa_description ss_remote[1];
sdp_session_t *ss_rsession; /**< Processed remote SDP */
/** SIP features required */
char const * const *ss_local_required;
/** SIP features supported */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment