[asterisk-bugs] [JIRA] (ASTERISK-24686) The problem with the correct sample exten in realtime mode
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Thu Jan 15 19:49:35 CST 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224454#comment-224454 ]
Matt Jordan edited comment on ASTERISK-24686 at 1/15/15 7:49 PM:
-----------------------------------------------------------------
I change in pbx_realtime.c
add on line 176 this:
\[mjordan\]: Inline code removed
Patches cannot be provided in-line. Please follow the instructions for contributing patches back to Asterisk:
https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process
was (Author: bogdik):
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