Changeset 463

Fix RTP stream setup upon answer

Committed by:  file
Date:  Oct 15 2005 * 04:00 (over 3 years ago)

Affected files:

openpbx/trunk/channels/chan_exosip2.c (unified diff)

r462r463
14091409
14101410 if (ast->_state != OPBX_STATE_UP) {
14111411 /* We have everything we need so answer it! */
1412 if (call->rtp_session == NULL && call->direction == DIRECTION_IN) {
1412 if (call->direction == DIRECTION_IN) {
1413 /* If no rtp session is setup - do it now */
1414 if (call->rtp_session == NULL) {
1415 rtp_setup_stream(call);
1416 }
14131417 /* Finally send the 200 OK acknowledging the call was answered */
14141418 eXosip_lock();
14151419 eXosip_call_build_answer(call->tid, 200, &answer);
------
14191423 eXosip_call_send_answer (call->tid, 200, answer);
14201424 opbx_log(LOG_NOTICE, "Answered the call!\n");
14211425 eXosip_unlock();
1422 call->tid++;
1423 /* No RTP stream is setup - we need to establish it - otherwise do nothing */
1424 rtp_setup_stream(call);
1425 } else if (call->rtp_session == NULL && call->direction == DIRECTION_OUT) {
1426 } else if (call->direction == DIRECTION_OUT) {
14261427 opbx_log(LOG_NOTICE,"Going... out\n");
14271428 }
14281429 /* Set state to up now */