VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
isrlgb at gmail.com Guest
|
Posted: Wed May 18, 2016 7:18 am Post subject: [asterisk-users] variable to get waittime of caller exiting |
|
|
Hi all
Is there anyway i could get in the dialplan the amount of time a caller waited in the queue before exiting?
Thanks |
|
Back to top |
|
|
faheem2084 at gmail.com Guest
|
Posted: Wed May 18, 2016 9:49 am Post subject: [asterisk-users] variable to get waittime of caller exiting |
|
|
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@gmail.com (isrlgb@gmail.com)> wrote:
|
|
Back to top |
|
|
isrlgb at gmail.com Guest
|
Posted: Wed May 18, 2016 11:26 am Post subject: [asterisk-users] variable to get waittime of caller exiting |
|
|
thank you
On Wed, May 18, 2016 at 5:48 PM, Faheem Muhammad <faheem2084@gmail.com (faheem2084@gmail.com)> wrote:
Quote: | 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@gmail.com (isrlgb@gmail.com)> wrote:
--
_____________________________________________________________________
-- 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
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|