| 505 |
strcpy(response->args, "Missing RTP-Audio header"); |
strcpy(response->args, "Missing RTP-Audio header"); |
| 506 |
return response; |
return response; |
| 507 |
} |
} |
| 508 |
IpInfo remote_rtp_audio(rtp_audio); |
RtpIpInfo remote_rtp_audio(rtp_audio, RtpIpInfo::SENDRECV); |
| 509 |
|
|
| 510 |
const char* rtp_video = woomera_mime_get_string(msg->incoming_mime, |
const char* rtp_video = woomera_mime_get_string(msg->incoming_mime, |
| 511 |
woomera_key_rtp_video); |
woomera_key_rtp_video); |
| 512 |
IpInfo remote_rtp_video(rtp_video); |
RtpIpInfo remote_rtp_video(rtp_video, RtpIpInfo::SENDRECV); |
| 513 |
|
|
| 514 |
/* local caller id */ |
/* local caller id */ |
| 515 |
std::string local_number = callParms->calling_number; |
std::string local_number = callParms->calling_number; |
| 760 |
LOGERROR("AppDiaStar::acceptCall() missing header: " << woomera_key_rtp_audio); |
LOGERROR("AppDiaStar::acceptCall() missing header: " << woomera_key_rtp_audio); |
| 761 |
return 0; |
return 0; |
| 762 |
} |
} |
| 763 |
IpInfo remote_rtp_audio(rtp_audio); |
RtpIpInfo remote_rtp_audio(rtp_audio, RtpIpInfo::SENDRECV); |
| 764 |
|
|
| 765 |
const char* rtp_video = woomera_mime_get_string(msg->incoming_mime, |
const char* rtp_video = woomera_mime_get_string(msg->incoming_mime, |
| 766 |
woomera_key_rtp_video); |
woomera_key_rtp_video); |
| 767 |
IpInfo* remote_rtp_video = 0; |
RtpIpInfo* remote_rtp_video = 0; |
| 768 |
if ( rtp_video ) |
if ( rtp_video ) |
| 769 |
{ |
{ |
| 770 |
remote_rtp_video = new IpInfo(rtp_video); |
remote_rtp_video = new RtpIpInfo(rtp_video, RtpIpInfo::SENDRECV); |
| 771 |
} |
} |
| 772 |
|
|
| 773 |
channel->setRemoteRtpAudioInfo(remote_rtp_audio); |
channel->setRemoteRtpAudioInfo(remote_rtp_audio); |
| 1184 |
{ |
{ |
| 1185 |
call->setConnectionId(msg->connection_id); /* Async completion. */ |
call->setConnectionId(msg->connection_id); /* Async completion. */ |
| 1186 |
|
|
| 1187 |
IpInfo remote_rtp_audio(rtp_audio); |
RtpIpInfo remote_rtp_audio(rtp_audio, RtpIpInfo::SENDRECV); |
| 1188 |
IpInfo remote_rtp_video(rtp_video); |
RtpIpInfo remote_rtp_video(rtp_video, RtpIpInfo::SENDRECV); |
| 1189 |
|
|
| 1190 |
/* If the new rtp values are local to this server, try to optimise |
/* If the new rtp values are local to this server, try to optimise |
| 1191 |
* the connection(s) internally. |
* the connection(s) internally. |
| 1362 |
|
|
| 1363 |
/* include the local media details in the response. |
/* include the local media details in the response. |
| 1364 |
*/ |
*/ |
| 1365 |
IpInfo local_rtp_audio; |
RtpIpInfo local_rtp_audio; |
| 1366 |
channel->getLocalRtpAudioInfo(local_rtp_audio); |
channel->getLocalRtpAudioInfo(local_rtp_audio); |
| 1367 |
woomera_mime_set_string(response->mime, |
woomera_mime_set_string(response->mime, |
| 1368 |
woomera_key_rtp_audio, |
woomera_key_rtp_audio, |
| 1370 |
|
|
| 1371 |
if ( channel->isVideo() ) |
if ( channel->isVideo() ) |
| 1372 |
{ |
{ |
| 1373 |
IpInfo local_rtp_video; |
RtpIpInfo local_rtp_video; |
| 1374 |
channel->getLocalRtpVideoInfo(local_rtp_video); |
channel->getLocalRtpVideoInfo(local_rtp_video); |
| 1375 |
woomera_mime_set_string(response->mime, |
woomera_mime_set_string(response->mime, |
| 1376 |
woomera_key_rtp_video, |
woomera_key_rtp_video, |
| 1405 |
|
|
| 1406 |
/* include the local media details in the response. |
/* include the local media details in the response. |
| 1407 |
*/ |
*/ |
| 1408 |
IpInfo local_rtp_audio; |
RtpIpInfo local_rtp_audio; |
| 1409 |
channel->getLocalRtpAudioInfo(local_rtp_audio); |
channel->getLocalRtpAudioInfo(local_rtp_audio); |
| 1410 |
woomera_mime_set_string(response->mime, |
woomera_mime_set_string(response->mime, |
| 1411 |
woomera_key_rtp_audio, |
woomera_key_rtp_audio, |
| 1413 |
|
|
| 1414 |
if ( channel->isVideo() ) |
if ( channel->isVideo() ) |
| 1415 |
{ |
{ |
| 1416 |
IpInfo local_rtp_video; |
RtpIpInfo local_rtp_video; |
| 1417 |
channel->getLocalRtpVideoInfo(local_rtp_video); |
channel->getLocalRtpVideoInfo(local_rtp_video); |
| 1418 |
woomera_mime_set_string(response->mime, |
woomera_mime_set_string(response->mime, |
| 1419 |
woomera_key_rtp_video, |
woomera_key_rtp_video, |
| 1543 |
{ |
{ |
| 1544 |
LOGINFO("AppDiaStar::onMedia() callid: " << call->getId()); |
LOGINFO("AppDiaStar::onMedia() callid: " << call->getId()); |
| 1545 |
|
|
| 1546 |
IpInfo local_rtp_audio; |
RtpIpInfo local_rtp_audio; |
| 1547 |
channel->getLocalRtpAudioInfo(local_rtp_audio); |
channel->getLocalRtpAudioInfo(local_rtp_audio); |
| 1548 |
|
|
| 1549 |
IpInfo local_rtp_video; |
RtpIpInfo local_rtp_video; |
| 1550 |
channel->getLocalRtpVideoInfo(local_rtp_video); |
channel->getLocalRtpVideoInfo(local_rtp_video); |
| 1551 |
|
|
| 1552 |
woomera_callctlr_on_media(woomeraCallCtlr_, |
woomera_callctlr_on_media(woomeraCallCtlr_, |