Fix routing behavior of inbound calls from gateways that only match gateway based on the gw request uri param

we now honor the extension gateway param only if it is explicitly set, but will not route to the username param if extension is not set
also, new special value for extension "auto" that should use the request uri unless it has gw+ and then it will use the to uri
This commit is contained in:
Michael Jerris
2011-01-06 15:35:12 -06:00
committed by Brian West
parent 70697b8835
commit 0132cd3fc7
2 changed files with 32 additions and 13 deletions
+1
View File
@@ -403,6 +403,7 @@ struct sofia_gateway {
char *register_from;
char *register_contact;
char *extension;
char *real_extension;
char *register_to;
char *register_proxy;
char *register_sticky_proxy;