call url

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

call url

Postby ed123 » Tue Nov 07, 2017 7:34 am

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
ed123
 
Posts: 294
Joined: Mon Mar 15, 2010 9:19 pm

Re: call url

Postby blackbird2306 » Tue Nov 07, 2017 4:09 pm

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
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 106 guests