[asterisk-users] variable to get waittime of caller exiting queue

Israel Gottlieb isrlgb at gmail.com
Wed May 18 11:26:13 CDT 2016


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>


More information about the asterisk-users mailing list