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

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue May 17 09:20:16 CDT 2011


branch "master" has been updated
       via  a4f034dcfb22c527a701dc32eb24df15faf38622 (commit)
      from  81752bfad6b946001b867f04ab47ed1a73203b54 (commit)

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


- Log -----------------------------------------------------------------
commit a4f034dcfb22c527a701dc32eb24df15faf38622
Author: Joshua Colp <jcolp at digium.com>
Date:   Tue May 17 11:21:31 2011 -0300

    Do not bind to 0.0.0.0 port 5060 by default if nothing is specified in the Ice config.

diff --git a/src/PJSipManager.cpp b/src/PJSipManager.cpp
index 35a5c12..f87a9cd 100644
--- a/src/PJSipManager.cpp
+++ b/src/PJSipManager.cpp
@@ -106,7 +106,13 @@ bool PJSipManager::setTransports(pjsip_endpoint *endpoint, const Ice::Properties
     //addresses to be specified.
     pj_sockaddr udpAddr;
     pj_status_t status;
-    std::string udpBindAddr = props->getPropertyWithDefault("Sip.Transport.UdpBindAddr", "0.0.0.0:5060");
+    std::string udpBindAddr = props->getProperty("Sip.Transport.UdpBindAddr");
+
+    if (udpBindAddr.empty())
+    {
+	return true;
+    }
+
     pj_str_t udpString;
     pj_cstr(&udpString, udpBindAddr.c_str());
     //UNSPEC family means "you figure out the address family, pjlib!"

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list