[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Aug 26 10:04:37 CDT 2010


branch "master" has been updated
       via  2d352e849f713c3b3853afc7c2d887dbba4add9c (commit)
      from  bd2a4b04d55b72ac2eebe5dbe647ddb37b720ecf (commit)

Summary of changes:
 src/SipEndpoint.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 2d352e849f713c3b3853afc7c2d887dbba4add9c
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu Aug 26 12:16:26 2010 -0300

    Change the target URI to a local machine, and set some dummy remote details to get RTP flowing. The RTP stack will automatically switch over when it receives a packet to the correct address.

diff --git a/src/SipEndpoint.cpp b/src/SipEndpoint.cpp
index ae87008..9c183c5 100644
--- a/src/SipEndpoint.cpp
+++ b/src/SipEndpoint.cpp
@@ -22,12 +22,12 @@ public:
 	   pjsip_dialog *dialog;
 
 	   char local[64];
-	   pj_ansi_sprintf(local, "sip:127.0.0.1:5060");
+	   pj_ansi_sprintf(local, "sip:172.16.1.13:5060");
 	   local_uri = pj_str(local);
 
 	   // TODO: Based on configuration populate the IP address for this remote URI
 	   char remote[64];
-	   pj_ansi_sprintf(remote, "sip:%s:%d", "216.237.114.82", 5060);
+	   pj_ansi_sprintf(remote, "sip:%s:%d", "172.16.1.10", 5060);
 	   remote_uri = pj_str(remote);
 
 	   // Create a UAC dialog for the outgoing call
@@ -345,6 +345,9 @@ void SipEndpoint::requestRTPSessions(Hydra::Media::V1::FormatSeq& formats)
    // Create a local copy of the sinks, this won't get changed by the RTP session so it's all good
    mSinks = session->getSinks();
 
+   Hydra::Media::RTP::V1::StreamSinkRTPPrx sink = Hydra::Media::RTP::V1::StreamSinkRTPPrx::uncheckedCast(mSinks.front());
+   sink->setRemoteDetails("127.0.0.1", 4580);
+
    // For testing push a static payload mapping for ULAW into the RTP session
    Hydra::Media::RTP::V1::PayloadMap payloads;
    Hydra::Media::V1::AudioFormatPtr format = new Hydra::Media::V1::AudioFormat();

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list