Just a small bug fix: Extension matching will be performed by extension's number...
authorAndreas Eversberg <jolly@eversberg.eu>
Wed, 24 Mar 2010 22:05:01 +0000 (23:05 +0100)
committerAndreas Eversberg <jolly@eversberg.eu>
Wed, 24 Mar 2010 22:05:01 +0000 (23:05 +0100)
I really don't know why there is suddenly this bug. Earlier versions did this correctly.

route.c

diff --git a/route.c b/route.c
index aaa5606..ca8ded8 100644 (file)
--- a/route.c
+++ b/route.c
@@ -1953,7 +1953,7 @@ struct route_action *EndpointAppPBX::route(struct route_ruleset *ruleset)
                                goto match_string_prefix;
 
                                case MATCH_EXTENSION:
                                goto match_string_prefix;
 
                                case MATCH_EXTENSION:
-                               string = e_ext.name;
+                               string = e_ext.number;
                                goto match_string;
 
                                case MATCH_DIALING:
                                goto match_string;
 
                                case MATCH_DIALING: