Module: kamailio
Branch: 5.1
Commit: 1ea010dd4db8e6486cf0fa928a2b11ffb0d441fa
URL:
https://github.com/kamailio/kamailio/commit/1ea010dd4db8e6486cf0fa928a2b11f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-06-07T17:36:15+02:00
core: unset routename when default_routename is set
fix #1536
(cherry picked from commit 92f8fdabcffd84e315d749bae8ded3490f8de014)
---
Modified: src/core/cfg.lex
---
Diff:
https://github.com/kamailio/kamailio/commit/1ea010dd4db8e6486cf0fa928a2b11f…
Patch:
https://github.com/kamailio/kamailio/commit/1ea010dd4db8e6486cf0fa928a2b11f…
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex
index cd6808d063..4d3931d419 100644
--- a/src/core/cfg.lex
+++ b/src/core/cfg.lex
@@ -562,23 +562,23 @@ IMPORTFILE "import_file"
<INITIAL>{ISAVPFLAGSET} { count(); yylval.strval=yytext; return ISAVPFLAGSET; }
<INITIAL>{AVPFLAGS_DECL} { count(); yylval.strval=yytext; return AVPFLAGS_DECL; }
<INITIAL>{MSGLEN} { count(); yylval.strval=yytext; return MSGLEN; }
-<INITIAL>{ROUTE} { count(); default_routename="DEFAULT_ROUTE";
+<INITIAL>{ROUTE} { count(); routename=0;
default_routename="DEFAULT_ROUTE";
yylval.strval=yytext; return ROUTE; }
-<INITIAL>{ROUTE_REQUEST} { count(); default_routename="DEFAULT_ROUTE";
+<INITIAL>{ROUTE_REQUEST} { count(); routename=0;
default_routename="DEFAULT_ROUTE";
yylval.strval=yytext; return ROUTE_REQUEST; }
-<INITIAL>{ROUTE_ONREPLY} { count(); default_routename="DEFAULT_ONREPLY";
+<INITIAL>{ROUTE_ONREPLY} { count(); routename=0;
default_routename="DEFAULT_ONREPLY";
yylval.strval=yytext;
return ROUTE_ONREPLY; }
-<INITIAL>{ROUTE_REPLY} { count(); default_routename="DEFAULT_ONREPLY";
+<INITIAL>{ROUTE_REPLY} { count(); routename=0;
default_routename="DEFAULT_ONREPLY";
yylval.strval=yytext; return ROUTE_REPLY; }
-<INITIAL>{ROUTE_FAILURE} { count(); default_routename="DEFAULT_FAILURE";
+<INITIAL>{ROUTE_FAILURE} { count(); routename=0;
default_routename="DEFAULT_FAILURE";
yylval.strval=yytext;
return ROUTE_FAILURE; }
-<INITIAL>{ROUTE_BRANCH} { count(); default_routename="DEFAULT_BRANCH";
+<INITIAL>{ROUTE_BRANCH} { count(); routename=0;
default_routename="DEFAULT_BRANCH";
yylval.strval=yytext; return ROUTE_BRANCH; }
-<INITIAL>{ROUTE_SEND} { count(); default_routename="DEFAULT_SEND";
+<INITIAL>{ROUTE_SEND} { count(); routename=0;
default_routename="DEFAULT_SEND";
yylval.strval=yytext; return ROUTE_SEND; }
-<INITIAL>{ROUTE_EVENT} { count(); default_routename="DEFAULT_EVENT";
+<INITIAL>{ROUTE_EVENT} { count(); routename=0;
default_routename="DEFAULT_EVENT";
yylval.strval=yytext;
state=EVRT_NAME_S; BEGIN(EVRTNAME);
return ROUTE_EVENT; }