mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
as discussed with Mark a few weeks ago, the 'newstack' argument
in pbx_exec is always 1 so it can be removed. This change also takes away ast_exec_extension(), and lets all switch functions (exists, canmatch, exec, matchmore) all use the same prototype, which makes the code a bit cleaner. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -147,13 +147,11 @@ static int loopback_canmatch(struct ast_channel *chan, const char *context, cons
|
||||
return res;
|
||||
}
|
||||
|
||||
static int loopback_exec(struct ast_channel *chan, const char *context, const char *exten, int priority, const char *callerid, int newstack, const char *data)
|
||||
static int loopback_exec(struct ast_channel *chan, const char *context, const char *exten, int priority, const char *callerid, const char *data)
|
||||
{
|
||||
LOOPBACK_COMMON;
|
||||
if (newstack)
|
||||
res = ast_spawn_extension(chan, newcontext, newexten, newpriority, callerid);
|
||||
else
|
||||
res = ast_exec_extension(chan, newcontext, newexten, newpriority, callerid);
|
||||
res = ast_spawn_extension(chan, newcontext, newexten, newpriority, callerid);
|
||||
/* XXX hmmm... res is overridden ? */
|
||||
if (newpattern && !ast_extension_match(newpattern, exten))
|
||||
res = -1;
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user