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)
| r462 | r463 | |
|---|---|---|
| 1409 | 1409 | |
| 1410 | 1410 | if (ast->_state != OPBX_STATE_UP) { |
| 1411 | 1411 | /* 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 | } | |
| 1413 | 1417 | /* Finally send the 200 OK acknowledging the call was answered */ |
| 1414 | 1418 | eXosip_lock(); |
| 1415 | 1419 | eXosip_call_build_answer(call->tid, 200, &answer); |
| --- | --- | |
| 1419 | 1423 | eXosip_call_send_answer (call->tid, 200, answer); |
| 1420 | 1424 | opbx_log(LOG_NOTICE, "Answered the call!\n"); |
| 1421 | 1425 | 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) { | |
| 1426 | 1427 | opbx_log(LOG_NOTICE,"Going... out\n"); |
| 1427 | 1428 | } |
| 1428 | 1429 | /* Set state to up now */ |
![Home changeset 463 [home]](/images/logo.png?1180520111)
RSS Feeds