[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
Wed Aug 25 08:02:52 CDT 2010


branch "master" has been updated
       via  aa827ddff0f08efc30f128efa3a9a12f3f136d2e (commit)
      from  ec53acb6b8f8d52a6484dd25e04827dede7eedf9 (commit)

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


- Log -----------------------------------------------------------------
commit aa827ddff0f08efc30f128efa3a9a12f3f136d2e
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Aug 25 10:14:57 2010 -0300

    Begin populating the local and remote URIs.

diff --git a/src/SipEndpoint.cpp b/src/SipEndpoint.cpp
index 535cd99..adefcc0 100644
--- a/src/SipEndpoint.cpp
+++ b/src/SipEndpoint.cpp
@@ -19,7 +19,14 @@ public:
 	   pj_str_t local_uri, remote_uri;
 	   pjsip_dialog *dialog;
 
-	   // TODO: Populate local and remote URI with actual sane values
+	   char local[64];
+	   pj_ansi_sprintf(local, "sip:127.0.0.1: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", "127.0.0.1", 5060);
+	   remote_uri = pj_str(remote);
 
 	   // Create a UAC dialog for the outgoing call
 	   if ((pjsip_dlg_create_uac(pjsip_ua_instance(), &local_uri, &local_uri, &remote_uri, &remote_uri, &dialog)) != PJ_SUCCESS)

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


-- 
asterisk-scf/integration/sip.git



More information about the asterisk-scf-commits mailing list