diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 21:29:39 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 21:29:39 +0000 |
commit | c977f70f81f8d6abeb251b56e71d67c05d4e4c6b (patch) | |
tree | 19e1a3bfe72426fb7dbb848341e68fd087e1fcbd /channels | |
parent | 1c79f1e9fb0aafeba06856ef93eb544c60fd67e0 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@16558 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 0d77cb918..67bfdea57 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -9573,7 +9573,7 @@ static int iax2_matchmore(struct ast_channel *chan, const char *context, const c } /*! \brief Execute IAX2 dialplan switch */ -static int iax2_exec(struct ast_channel *chan, const char *context, const char *exten, int priority, const char *callerid, int newstack, const char *data) +static int iax2_exec(struct ast_channel *chan, const char *context, const char *exten, int priority, const char *callerid, const char *data) { char odata[256]; char req[256]; @@ -9589,7 +9589,7 @@ static int iax2_exec(struct ast_channel *chan, const char *context, const char * if (dialstatus) { dial = pbx_findapp(dialstatus); if (dial) - pbx_exec(chan, dial, "", newstack); + pbx_exec(chan, dial, ""); } return -1; } else if (priority != 1) @@ -9618,7 +9618,7 @@ static int iax2_exec(struct ast_channel *chan, const char *context, const char * ast_mutex_unlock(&dpcache_lock); dial = pbx_findapp("Dial"); if (dial) { - return pbx_exec(chan, dial, req, newstack); + return pbx_exec(chan, dial, req); } else { ast_log(LOG_WARNING, "No dial application registered\n"); } |