Mini-Fix: don't read settings, where not required.
authorAndreas Eversberg <andreas@eversberg.eu>
Sun, 5 Apr 2009 11:22:32 +0000 (13:22 +0200)
committerAndreas Eversberg <andreas@eversberg.eu>
Sun, 5 Apr 2009 11:22:32 +0000 (13:22 +0200)
action.cpp

index 080e8f6..bd7239e 100644 (file)
@@ -142,7 +142,7 @@ void EndpointAppPBX::action_dialing_internal(void)
        }
 
        /* check if extension exists AND only if not multiple extensions */
-       if (!read_extension(&ext, dialinginfo.id) && !strchr(dialinginfo.id,','))
+       if (!strchr(dialinginfo.id,',') && !read_extension(&ext, dialinginfo.id))
        {
                trace_header("ACTION extension (extension doesn't exist)", DIRECTION_NONE);
                add_trace("extension", NULL, dialinginfo.id);