Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
isrlgb at gmail.com
Guest





PostPosted: Wed May 18, 2016 7:18 am    Post subject: [asterisk-users] variable to get waittime of caller exiting Reply with quote

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





PostPosted: Wed May 18, 2016 9:49 am    Post subject: [asterisk-users] variable to get waittime of caller exiting Reply with 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:
Quote:
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
Back to top
isrlgb at gmail.com
Guest





PostPosted: Wed May 18, 2016 11:26 am    Post subject: [asterisk-users] variable to get waittime of caller exiting Reply with quote

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:


Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services