[asterisk-bugs] [JIRA] (ASTERISK-24686) The problem with the correct sample exten in realtime mode
Bogdan Shatalov (JIRA)
noreply at issues.asterisk.org
Wed Jan 14 10:33:34 CST 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224454#comment-224454 ]
Bogdan Shatalov commented on ASTERISK-24686:
--------------------------------------------
I change in pbx_realtime.c
add on line 176 this:
int countext = strlen(exten);
char buf[countext+20],xmask[countext+20],nmask[countext+20];
strcpy(xmask,"_");
strcpy(nmask,"_");
strcpy(buf,"");
int isg;
for ( isg = 0; isg < countext; isg++ ) { strcat(buf,"X"); }
strcat(xmask,buf);
strcpy(buf,"");
for ( isg = 0; isg < countext; isg++ ) { strcat(buf,"N"); }
strcat(nmask,buf);
replace line 191 on this:
cfg = ast_load_realtime_multientry(table, "exten LIKE", xmask, "context", context, "priority", pri, SENTINEL);<>
if (!cfg) {cfg = ast_load_realtime_multientry(table, "exten LIKE", nmask, "context", context, "priority", pri, SENTINEL);<>}
if (!cfg) {cfg = ast_load_realtime_multientry(table, "exten LIKE", "\\_%", "context", context, "priority", pri, SENTINEL);>}
> The problem with the correct sample exten in realtime mode
> ----------------------------------------------------------
>
> Key: ASTERISK-24686
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24686
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: PBX/pbx_realtime
> Affects Versions: 11.15.0
> Reporter: Bogdan Shatalov
>
> If there is a mask _XXX priority 1
> and _Х. mask with priority 1,
> then it will work _Х.
> in extensions.conf would work _XXX priority 1
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list