Just a small bug fix: Extension matching will be performed by extension's number...
[lcr.git] / 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:
-                               string = e_ext.name;
+                               string = e_ext.number;
                                goto match_string;
 
                                case MATCH_DIALING: