Added the MEMBERREALTIME variable when using setinterfacevar in queues.conf
authorMark Michelson <mmichelson@digium.com>
Wed, 29 Aug 2007 22:05:37 +0000 (22:05 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 29 Aug 2007 22:05:37 +0000 (22:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81365 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 828a72b..b797b37 100644 (file)
@@ -2825,8 +2825,8 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
                /* if setinterfacevar is defined, make member variables available to the channel */
                /* use  pbx_builtin_setvar to set a load of variables with one call */
                if (qe->parent->setinterfacevar) {
-                       snprintf(interfacevar,sizeof(interfacevar), "MEMBERINTERFACE=%s|MEMBERNAME=%s|MEMBERCALLS=%d|MEMBERLASTCALL=%ld|MEMBERPENALTY=%d|MEMBERDYNAMIC=%d",
-                               member->interface, member->membername, member->calls, (long)member->lastcall, member->penalty, member->dynamic);
+                       snprintf(interfacevar,sizeof(interfacevar), "MEMBERINTERFACE=%s|MEMBERNAME=%s|MEMBERCALLS=%d|MEMBERLASTCALL=%ld|MEMBERPENALTY=%d|MEMBERDYNAMIC=%d|MEMBERREALTIME=%d",
+                               member->interface, member->membername, member->calls, (long)member->lastcall, member->penalty, member->dynamic, member->realtime);
                        pbx_builtin_setvar(qe->chan, interfacevar);
                }