[server] / trunk / server / src / appdiastar.cxx Repository:
ViewVC logotype

Diff of /trunk/server/src/appdiastar.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1217, Fri Apr 20 09:55:38 2012 UTC revision 1218, Wed Jun 6 13:16:07 2012 UTC
# Line 505  Line 505 
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;
# Line 760  Line 760 
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);
# Line 1184  Line 1184 
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.
# Line 1362  Line 1362 
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,
# Line 1370  Line 1370 
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,
# Line 1405  Line 1405 
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,
# Line 1413  Line 1413 
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,
# Line 1543  Line 1543 
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_,

Legend:
Removed from v.1217  
changed lines
  Added in v.1218

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.8