Module: kamailio
Branch: master
Commit: 92f8fdabcffd84e315d749bae8ded3490f8de014
URL:
https://github.com/kamailio/kamailio/commit/92f8fdabcffd84e315d749bae8ded34…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-06-07T17:15:48+02:00
core: unset routename when default_routename is set
fix #1536
---
Modified: src/core/cfg.lex
---
Diff:
https://github.com/kamailio/kamailio/commit/92f8fdabcffd84e315d749bae8ded34…
Patch:
https://github.com/kamailio/kamailio/commit/92f8fdabcffd84e315d749bae8ded34…
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex
index 192b488938..ddef8a03ea 100644
--- a/src/core/cfg.lex
+++ b/src/core/cfg.lex
@@ -569,23 +569,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; }