[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
Thu May 19 17:06:10 CDT 2011


branch "master" has been updated
       via  98584e0f7b7db43e806c59053c5c3df397152521 (commit)
      from  8eb9a6461494bff1489e01b5541b569e7ecef3bc (commit)

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


- Log -----------------------------------------------------------------
commit 98584e0f7b7db43e806c59053c5c3df397152521
Author: Joshua Colp <jcolp at digium.com>
Date:   Thu May 19 19:07:35 2011 -0300

    The act of pushing configuration for an endpoint is what ends up creating it.

diff --git a/src/SipConfiguration.cpp b/src/SipConfiguration.cpp
index 1b40dad..055f7b1 100644
--- a/src/SipConfiguration.cpp
+++ b/src/SipConfiguration.cpp
@@ -1045,11 +1045,7 @@ private:
         SipEndpointPtr endpoint = mEndpointFactory->findByName(group->name);
         if (!endpoint)
         {
-            //
-            // XXX - something better to do than just ignore?
-            // Should never happen, and we can't do anything else without really messing things up.
-            //
-            return 0;
+	    endpoint = mEndpointFactory->createEndpoint(group->name);
         }
         return boost::shared_ptr<EndpointConfigHelper>(
             new EndpointConfigHelper(endpoint, mEndpointFactory, mRoutingServiceLocatorRegistry, mRoutingId))->getVisitor();

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


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list