Download CDR Wave File.

  • Authentication required.
  • Params:
    • "wavname", "calldate" are required.
  • Notice:
    • "wavname", "calldate" should be in String format.
    • "wavname": Basename only without directory "xxx-xxxxxx-xxx-xxxxx-xxxx.xxx.wav", e.g "out-05355620760-101-20151208-102449-1449563089.106.wav".
    • calldate: Date string formated as "%Y-%m-%d", e.g. "2016-09-01".

CURL Example:

curl -X POST https://oim.pasifiktelekom.com.tr/en/api/pbx/cdr/wav/ \
     -H 'Content-Type:application/json' -H 'accept:application/json' -H 'Authorization:XXXXXXXXXXXXXXXXXXXX' \
     -d '{"wavname": "xxx-xxxxxx-xxx-xxxxx-xxxx.xxx.wav", "calldate": "2016-10-07"}'

For Custom Search by related file name accept regular expression like grep in shellscrip, it returns one file only or fail.

curl -X POST https://oim.pasifiktelekom.com.tr/en/api/pbx/cdr/wav/ \
     -H 'Content-Type:application/json' -H 'accept:application/json' -H 'Authorization:XXXXXXXXXXXXXXXXXXXX' \
     -d '{"wavname": "xxxx.xxx", "calldate": "2016-10-07"}'
GET /en/api/pbx/cdr/wav/?format=api
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "message": "OK",
    "code": "200"
}