diff options
author | Joshua Colp <jcolp@digium.com> | 2006-10-02 20:58:48 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-10-02 20:58:48 +0000 |
commit | 8ff3dd273a3c75cce15d7f1a6541a53c69c13a0f (patch) | |
tree | 640ff0d9179e6ce366da57f43e8cadb7bab4d705 /apps/app_queue.c | |
parent | 3e4a081e1cdae046b37c16177f6ea5d57ae8c7fb (diff) |
Expand setinterfacevar option to also set a variable, MEMBERNAME, which contains the member's name. (issue #8046 reported by jmls)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 7e37b1923..79a8f2ebd 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2580,8 +2580,10 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce ast_log(LOG_DEBUG, "app_queue: sendurl=%s.\n", url); ast_channel_sendurl(peer, url); } - if (qe->parent->setinterfacevar) + if (qe->parent->setinterfacevar) { pbx_builtin_setvar_helper(qe->chan, "MEMBERINTERFACE", member->interface); + pbx_builtin_setvar_helper(qe->chan, "MEMBERNAME", member->membername); + } if (!ast_strlen_zero(agi)) { if (option_debug) ast_log(LOG_DEBUG, "app_queue: agi=%s.\n", agi); |