API_FID_Telephony_May2021
API_FID_Telephony_May2021
Telephony
© JUSAN 2021
C/Vivero, 5 – planta 1ª
Document of specifications for CP/PM
28040 Madrid, Spain
Tel: +34(91) 456 01 10
data integration (booking&CDR)
Fax: +34(91) 553 14 11
[email protected]
www.jusan.es
Project Request by Request Date
Fidelity Api - Telephony Jusan S.A. 26/09/2018
1. DOCUMENT CONTROL
1.4. Participants
1.5. Revision
2. INTRODUCTION
Telephony API gives third party applications the possibility to use phone
interface methods.
3.1. Methods
https://[server]:[port]/telephonyapi/api/telephony/dia l
Summary Makes a call
Type POST
Header Content-Type application/json
Parameters data {
"from": "131",
"to": "163",
"agtRef": "AGB"
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
HTTP status 200: OK indicates that the request succeeded and
returns the call guid.
https://[server]:[port]/telephonyapi/api/telephony/dia lAsync
Summary Makes an asynchronous call
Type POST
Header Content-Type application/json
Parameters data {
"from": "131",
"to": "163",
"agtRef": "AGB"
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
https://[server]:[port]/telephonyapi/api/telephony/getcontactinfo
Summary Retrieves information about the contact status associated to the given
campaign and phone.
Type POST
Header Content-Type application/json
Parameters data {
"campaign": " RECALL_SA",
" phone": "163"
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
HTTP status 200: OK indicates that the request succeeded and
returns the contact status:
{ "Status": "Processed"}
https://[server]:[port]/telephonyapi/api/telephony/getcallinfo
Summ Retrieves inf ormation about the call associated to the given guid.
ary
Type POST
Header Content-Type application/json
Param data {
eters "guid": "8cb45c39-9f76-497e-bc49-
5ed5504d6765"
}
Return HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill the
s request.
HTTP status 500: InternalServerError indicates that a generic error has
occurred on the server
HTTP status 200: OK indicates that the request succeeded and returns the
call info:
{
"Guid": "8cb45c39-9f76-497e-bc49-5ed5504d6765",
"CTICallId": "65972",
"CalledPhone": "163",
"EndTime": "2018-07-11T12:23:05.89",
"Duration": "0",
"Result": "ANSWERED",
"RefAgent": null,
"RecordFile":
"c:\\recordings\\20180323\\B$SIPDED2$anonymous$37167066600$DED2$3K1_T
ELEPHONY$10d07m2018y$10h05m41s$0a7In",
"Type": "OUTGOING"
}
https://[server]:[port]/telephonyapi/api/telephony/setcalladditiona ldata
Summary Sets additional data to the call.
Type POST
Header Content-Type application/json
Parameters data {
"guid": "8cb45c39-9f76-497e-bc49-
5ed5504d6765",
"values": [{"key": "name", "value":
"Andrés"}]
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
HTTP status 200: OK indicates that the request succeeded
https://[server]:[port]/telephonyapi/api/telephony/getcalladditiona ldata
Summary Retrieves additional data about the call associated to the given guid.
Type POST
Header Content-Type application/json
Parameters data {
"guid": "8cb45c39-9f76-497e-bc49-
5ed5504d6765"
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
HTTP status 200: OK indicates that the request succeeded and a list
of additional data:
[{"key": "name", "value": "Andrés"}]
https://[server]:[port]/telephonyapi/api/telephony/setCallFileName
Summary Sets dif f erent f ile name to the call.
Type POST
Header Content-Type application/json
Parameters data {
"extension": "121",
"filename": "\\192.168.1.1\REQ\test.wav"
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
HTTP status 200: OK indicates that the request succeeded and a list
of additional data:
[{"Success": true, "ErrorCode": 0, "ErrorDescription": ""}]
https://[server]:[port]/telephonyapi/api/telephony/getrecording
Summary Returns URL with the recording associated to the given call guid.
Type POST
Header Content-Type application/json
Parameters data {
"guid": "8cb45c39-9f76-497e-bc49-
5ed5504d6765"
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
HTTP status 200: OK indicates that the request succeeded and an
URL: https://127.0.0.1/telephonyapi/recordings/ 8cb45c39-9f76-
497e-bc49-5ed5504d6765.wav
https://[server]:[port]/telephonyapi/api/telephony/searchcall
Summary Retrieves calls guids.
Type POST
Header Content-Type application/json
Parameters data {
"called": "912345678",
"caller": "123",
"startDate": "20380926 10:24:34",
"endDate": "20380926 10:34:34" //date
format: yyyyMMdd HH:mm:ss
}
Returns HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill
the request.
HTTP status 500: InternalServerError indicates that a generic error
has occurred on the server
HTTP status 200: OK indicates that the request succeeded and a list
of additional data:
[{"guid": "abc45c39-9f76-497e-bc49-5ed5504d6765"},
{"guid": "bac45c39-9f76-497e-bc49-5ed5504d6765"}]
https://[server]:[port]/telephonyapi/api/telephony/hangup
Summ Hungs up an extension with the generated GUID in .
ary
Type POST
Header Content-Type application/json
Param data {
eters "from": "131",
"agtRef": "AGB",
"guid": "a902348d-a7fe-427e-899b-
8c2674ff7f81"
}
Return HTTP status 403: f orbidden indicates that the server ref uses to f ulf ill the
s request.
HTTP status 500: InternalServerError indicates that a generic error has
occurred on the server
HTTP status 200: OK indicates that the request succeeded and returns
current call inf ormation:
{
"Guid": "8cb45c39-9f76-497e-bc49-5ed5504d6765",
"CTICallId": "65972",
"CalledPhone": "163",
"EndTime": "2018-07-11T12:23:05.89",
"Duration": "0",
"Result": "TALKING",
"RefAgent": null,
"RecordFile":
"c:\\recordings\\20180323\\B$SIPDED2$anonymous$37167066600$DED2$3K1_T
ELEPHONY$10d07m2018y$10h05m41s$0a7In",
"Type": "OUTGOING"
}