Page 1 of 1

call url

PostPosted: Tue Nov 07, 2017 7:34 am
by ed123
Hi,

What are the variables that I can use for the following data that I need to put in a call url?

start call
end call
agent extension
agent name


VERSION: 2.14-617a
BUILD: 170529-2320

Re: call url

PostPosted: Tue Nov 07, 2017 4:09 pm
by blackbird2306
agent name = --A--fullname--B--
agent extension = --A--SIPexten--B-- OR --A--phone_login--B--

There are no variables for "start call" and "end call". But when using "Dispo Call URL" there are extra variables so you can achieve something which comes closest to what you intended:

Timestamp when call disposition happens (almost equal to end call time):
--A--epoch--B-- = unix timestamp

or more database friendly format
--A--SQLdate--B-- = date with format ("Y-m-d H:i:s")


and:
--A--talk_time--B-- = talk time in seconds


now it's possible to calculate the approximately start call time:

start_call = epoch - talk_time

See more details here:
http://vicidial.org/docs/CALL_URL_FEATURES.txt