Israel Gottlieb
2016-May-18 12:05 UTC
[asterisk-users] variable to get waittime of caller exiting queue
Hi all Is there anyway i could get in the dialplan the amount of time a caller waited in the queue before exiting? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160518/b3b082aa/attachment.html>
Faheem Muhammad
2016-May-18 14:48 UTC
[asterisk-users] variable to get waittime of caller exiting queue
Israel, You can calculate the time diff by this dialplan snippet. --------------------------------------------------------------------------------------- exten _X.,1,Set(callstarttime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)}) exten => _X.,n,Queue(queue1,,,,) exten _X.,n,Set(callendtime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)}) exten =_X.,n,Set(diff=$[${calltime1} -${calltime}]) exten=_X.,n,NoOp(diff) --------------------------------------------------------------------------------------------- Regards, Muhammad On Wed, May 18, 2016 at 5:05 PM, Israel Gottlieb <isrlgb at gmail.com> wrote:> Hi all > > Is there anyway i could get in the dialplan the amount of time a caller > waited in the queue before exiting? > > Thanks > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160518/93a54725/attachment.html>
Israel Gottlieb
2016-May-18 16:26 UTC
[asterisk-users] variable to get waittime of caller exiting queue
thank you On Wed, May 18, 2016 at 5:48 PM, Faheem Muhammad <faheem2084 at gmail.com> wrote:> Israel, > You can calculate the time diff by this dialplan snippet. > > > --------------------------------------------------------------------------------------- > exten > _X.,1,Set(callstarttime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)}) > exten => _X.,n,Queue(queue1,,,,) > exten > _X.,n,Set(callendtime=${STRFTIME(${EPOCH},,%Y%m%d)}${STRFTIME(${EPOCH},,%H%M%S)}) > exten =_X.,n,Set(diff=$[${calltime1} -${calltime}]) > exten=_X.,n,NoOp(diff) > > --------------------------------------------------------------------------------------------- > > Regards, > Muhammad > > > On Wed, May 18, 2016 at 5:05 PM, Israel Gottlieb <isrlgb at gmail.com> wrote: > >> Hi all >> >> Is there anyway i could get in the dialplan the amount of time a caller >> waited in the queue before exiting? >> >> Thanks >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160518/85140b48/attachment.html>