Hamkaran.cloud
  1. Hamkaran Cloud Phone
Hamkaran.cloud
  • Hamkaran Cloud Phone
    • Get Call Center Reports
      GET
    • Get Extension Status
      GET
    • Get Call Recording by UID
      POST
    • Create Call
      POST
    • HangUp Call
      POST
    • Send a pre-recorded call
      POST
    • Get a pre-recorded call Details
      POST
  1. Hamkaran Cloud Phone

Get Call Center Reports

GET
https://api.hamkaran.cloud/api/hamkaran/v1/reports
This API allows users to obtain complete call center reports in JSON format. By sending a request to this endpoint, the system provides a comprehensive list of all call center calls, including details such as call time, duration, call status, and other relevant information. This functionality is part of Hamkaran Cloud's cloud telephony solutions, helping organizations to better monitor and manage their call center performance.
For more information, visit https://hamkaran.cloud.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.hamkaran.cloud/api/hamkaran/v1/reports?datefrom=&dateto=&page=&source=&internalnumber=' \
--header 'key: {{Hamkaran Webservice key}}'
Response Response Example
Successful Request Response
{
    "data": {
        "total": 21965,
        "pages": 1464,
        "page": "1",
        "customer_code": 100,
        "rows": [
            {
                "eventtime": "1403-03-21",
                "time": "21:12",
                "status": "ANSWER",
                "daysOfweek": "دوشنبه",
                "timestamp": 1718041336,
                "cid_num": "",
                "exten": "902",
                "type": "outgoing",
                "type_name": "خروجی",
                "channame": "Local/100902@from-internal-0001604b;1",
                "uniqueid": "1718041336.297594",
                "parsedapp": null,
                "id": "1718041336_297594",
                "duration": "00:21",
                "year": "2024",
                "month": "06",
                "day": "10",
                "file": "https://api.hamkaran.cloud/v1/recordpath/L29wdC9zY3JpcHQvbW9uaXRvci8yMDI0LzA2LzEwL291dC0wOTE5NzUxMTQ1MC0xMDA5MDItMjAyNDA2MTAtMTc0MjIxLTE3MTgwNDEzMzYuMjk3NTk0Lndhdg==",
                "moreinfo": [
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919502,
                        "eventtype": "CHAN_START",
                        "eventtime": "2024-06-10 17:42:16",
                        "cid_name": "",
                        "cid_num": "",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "100902",
                        "context": "from-internal",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041336,
                        "timestamp": 1718041336
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919503,
                        "eventtype": "CHAN_START",
                        "eventtime": "2024-06-10 17:42:16",
                        "cid_name": "",
                        "cid_num": "",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "100902",
                        "context": "from-internal",
                        "channame": "Local/100902@from-internal-0001604b;2",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297595",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041336,
                        "timestamp": 1718041336
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919506,
                        "eventtype": "CHAN_START",
                        "eventtime": "2024-06-10 17:42:16",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "from-internal",
                        "channame": "SIP/100902-0001c9e3",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297598",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041336,
                        "timestamp": 1718041336
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919528,
                        "eventtype": "ANSWER",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "100902",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "100902",
                        "context": "from-internal",
                        "channame": "SIP/100902-0001c9e3",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297598",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341,
                        "time": "21:12:21"
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919529,
                        "eventtype": "ANSWER",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "Local/100902@from-internal-0001604b;2",
                        "appname": "Dial",
                        "appdata": "SIP/100902,20,HhTtrIM(auto-blkvm)b(func-apply-sipheaders^s^1)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297595",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919530,
                        "eventtype": "ANSWER",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "09197511450",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "100902",
                        "context": "from-internal",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "AppDial2",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341,
                        "time": "21:12:21"
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919531,
                        "eventtype": "BRIDGE_ENTER",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "100902",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "SIP/100902-0001c9e3",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297598",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"4b03330f-5b4c-4f31-802f-70da4de5d459\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919532,
                        "eventtype": "BRIDGE_ENTER",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "Local/100902@from-internal-0001604b;2",
                        "appname": "Dial",
                        "appdata": "SIP/100902,20,HhTtrIM(auto-blkvm)b(func-apply-sipheaders^s^1)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297595",
                        "peer": "SIP/100902-0001c9e3",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"4b03330f-5b4c-4f31-802f-70da4de5d459\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919533,
                        "eventtype": "APP_START",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "09197511450",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "recordcheck",
                        "context": "sub-record-check",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "MixMonitor",
                        "appdata": "2024/06/10/out-09197511450-100902-20240610-174221-1718041336.297594.wav,abi(20240610-174221-1718041336.297594),",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919534,
                        "eventtype": "APP_END",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "09197511450",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "recordcheck",
                        "context": "sub-record-check",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "MixMonitor",
                        "appdata": "2024/06/10/out-09197511450-100902-20240610-174221-1718041336.297594.wav,abi(20240610-174221-1718041336.297594),",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919535,
                        "eventtype": "CHAN_START",
                        "eventtime": "2024-06-10 17:42:21",
                        "cid_name": "",
                        "cid_num": "",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "from-trunk",
                        "channame": "SIP/soft_switch-0001c9e6",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041341.297601",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041341,
                        "timestamp": 1718041341
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919550,
                        "eventtype": "ANSWER",
                        "eventtime": "2024-06-10 17:42:31",
                        "cid_name": "CID:100902",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "09197511450",
                        "context": "from-trunk",
                        "channame": "SIP/soft_switch-0001c9e6",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041341.297601",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041351,
                        "timestamp": 1718041351,
                        "time": "21:12:31"
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919551,
                        "eventtype": "BRIDGE_ENTER",
                        "eventtime": "2024-06-10 17:42:31",
                        "cid_name": "CID:100902",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "",
                        "context": "from-trunk",
                        "channame": "SIP/soft_switch-0001c9e6",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041341.297601",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"7ecafc15-e04a-4c20-95bc-3d33f5aec441\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041351,
                        "timestamp": 1718041351
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919552,
                        "eventtype": "BRIDGE_ENTER",
                        "eventtime": "2024-06-10 17:42:31",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "09197511450",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dialout-trunk",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "Dial",
                        "appdata": "SIP/soft_switch/09197511450,300,Tb(func-apply-sipheaders^s^1,(5))",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "SIP/soft_switch-0001c9e6",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"7ecafc15-e04a-4c20-95bc-3d33f5aec441\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041351,
                        "timestamp": 1718041351
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919553,
                        "eventtype": "BRIDGE_EXIT",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "CID:100902",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "",
                        "context": "from-trunk",
                        "channame": "SIP/soft_switch-0001c9e6",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041341.297601",
                        "peer": "Local/100902@from-internal-0001604b;1",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"7ecafc15-e04a-4c20-95bc-3d33f5aec441\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919554,
                        "eventtype": "BRIDGE_EXIT",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "09197511450",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dialout-trunk",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "Dial",
                        "appdata": "SIP/soft_switch/09197511450,300,Tb(func-apply-sipheaders^s^1,(5))",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"7ecafc15-e04a-4c20-95bc-3d33f5aec441\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919555,
                        "eventtype": "HANGUP",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "CID:100902",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "",
                        "context": "from-trunk",
                        "channame": "SIP/soft_switch-0001c9e6",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041341.297601",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"hangupcause\":16,\"hangupsource\":\"SIP/soft_switch-0001c9e6\",\"dialstatus\":\"\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919556,
                        "eventtype": "CHAN_END",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "CID:100902",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "",
                        "context": "from-trunk",
                        "channame": "SIP/soft_switch-0001c9e6",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041341.297601",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919557,
                        "eventtype": "HANGUP",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "09197511450",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "h",
                        "context": "from-internal",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "AppDial2",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"hangupcause\":16,\"hangupsource\":\"SIP/soft_switch-0001c9e6\",\"dialstatus\":\"ANSWER\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919558,
                        "eventtype": "CHAN_END",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "09197511450",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "h",
                        "context": "from-internal",
                        "channame": "Local/100902@from-internal-0001604b;1",
                        "appname": "AppDial2",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297594",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919559,
                        "eventtype": "BRIDGE_EXIT",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "Local/100902@from-internal-0001604b;2",
                        "appname": "Dial",
                        "appdata": "SIP/100902,20,HhTtrIM(auto-blkvm)b(func-apply-sipheaders^s^1)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297595",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"4b03330f-5b4c-4f31-802f-70da4de5d459\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919560,
                        "eventtype": "BRIDGE_EXIT",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "100902",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "SIP/100902-0001c9e3",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297598",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"bridge_id\":\"4b03330f-5b4c-4f31-802f-70da4de5d459\",\"bridge_technology\":\"simple_bridge\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919561,
                        "eventtype": "HANGUP",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "100902",
                        "context": "followme-sub",
                        "channame": "Local/100902@from-internal-0001604b;2",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297595",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"hangupcause\":16,\"hangupsource\":\"\",\"dialstatus\":\"ANSWER\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919562,
                        "eventtype": "CHAN_END",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "",
                        "cid_num": "09197511450",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "100902",
                        "context": "followme-sub",
                        "channame": "Local/100902@from-internal-0001604b;2",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297595",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919563,
                        "eventtype": "HANGUP",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "100902",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "SIP/100902-0001c9e3",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297598",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"hangupcause\":16,\"hangupsource\":\"\",\"dialstatus\":\"\"}",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357,
                        "time": "21:12:37"
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919564,
                        "eventtype": "CHAN_END",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "100902",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "SIP/100902-0001c9e3",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297598",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    },
                    {
                        "linkedid": "1718041336.297594",
                        "id": 132919565,
                        "eventtype": "LINKEDID_END",
                        "eventtime": "2024-06-10 17:42:37",
                        "cid_name": "100902",
                        "cid_num": "100902",
                        "cid_ani": "100902",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "s",
                        "context": "macro-dial-one",
                        "channame": "SIP/100902-0001c9e3",
                        "appname": "AppDial",
                        "appdata": "(Outgoing Line)",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718041336.297598",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718041357,
                        "timestamp": 1718041357
                    }
                ]
            },
            {
                "eventtime": "1403-03-21",
                "time": "16:45",
                "status": "Failed",
                "daysOfweek": "دوشنبه",
                "timestamp": 1718025306,
                "cid_num": "989197841604",
                "exten": "2191018791",
                "type": "incoming",
                "type_name": "ورودی",
                "channame": "SIP/soft_switch-0001b732",
                "uniqueid": "1718025306.285385",
                "parsedapp": null,
                "id": "1718025306_285385",
                "duration": "00:10",
                "year": "2024",
                "month": "06",
                "day": "10",
                "file": false,
                "moreinfo": [
                    {
                        "linkedid": "1718025306.285385",
                        "id": 132863897,
                        "eventtype": "CHAN_START",
                        "eventtime": "2024-06-10 13:15:06",
                        "cid_name": "989197841604",
                        "cid_num": "989197841604",
                        "cid_ani": "",
                        "cid_rdnis": "",
                        "cid_dnid": "",
                        "exten": "2191018791",
                        "context": "from-trunk",
                        "channame": "SIP/soft_switch-0001b732",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718025306.285385",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718025306,
                        "timestamp": 1718025306,
                        "time": "16:45:06"
                    },
                    {
                        "linkedid": "1718025306.285385",
                        "id": 132863898,
                        "eventtype": "APP_START",
                        "eventtime": "2024-06-10 13:15:06",
                        "cid_name": "989197841604",
                        "cid_num": "989197841604",
                        "cid_ani": "989197841604",
                        "cid_rdnis": "",
                        "cid_dnid": "2191018791",
                        "exten": "recordcheck",
                        "context": "sub-record-check",
                        "channame": "SIP/soft_switch-0001b732",
                        "appname": "MixMonitor",
                        "appdata": "2024/06/10/in-2191018791-989197841604-20240610-131506-1718025306.285385.wav,abi(20240610-131506-1718025306.285385),",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718025306.285385",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718025306,
                        "timestamp": 1718025306
                    },
                    {
                        "linkedid": "1718025306.285385",
                        "id": 132863899,
                        "eventtype": "APP_END",
                        "eventtime": "2024-06-10 13:15:06",
                        "cid_name": "989197841604",
                        "cid_num": "989197841604",
                        "cid_ani": "989197841604",
                        "cid_rdnis": "",
                        "cid_dnid": "2191018791",
                        "exten": "recordcheck",
                        "context": "sub-record-check",
                        "channame": "SIP/soft_switch-0001b732",
                        "appname": "MixMonitor",
                        "appdata": "2024/06/10/in-2191018791-989197841604-20240610-131506-1718025306.285385.wav,abi(20240610-131506-1718025306.285385),",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718025306.285385",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718025306,
                        "timestamp": 1718025306
                    },
                    {
                        "linkedid": "1718025306.285385",
                        "id": 132863900,
                        "eventtype": "ANSWER",
                        "eventtime": "2024-06-10 13:15:07",
                        "cid_name": "989197841604",
                        "cid_num": "989197841604",
                        "cid_ani": "989197841604",
                        "cid_rdnis": "",
                        "cid_dnid": "2191018791",
                        "exten": "cid_lockup",
                        "context": "hamkaran",
                        "channame": "SIP/soft_switch-0001b732",
                        "appname": "AGI",
                        "appdata": "hamkaran_cid_lokup.php,989197841604,2191018791",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718025306.285385",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718025307,
                        "timestamp": 1718025307
                    },
                    {
                        "linkedid": "1718025306.285385",
                        "id": 132863929,
                        "eventtype": "HANGUP",
                        "eventtime": "2024-06-10 13:15:16",
                        "cid_name": "989197841604",
                        "cid_num": "989197841604",
                        "cid_ani": "989197841604",
                        "cid_rdnis": "",
                        "cid_dnid": "2191018791",
                        "exten": "h",
                        "context": "ivr-1",
                        "channame": "SIP/soft_switch-0001b732",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718025306.285385",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "{\"hangupcause\":16,\"hangupsource\":\"SIP/soft_switch-0001b732\",\"dialstatus\":\"\"}",
                        "eventunixtime": 1718025316,
                        "timestamp": 1718025316
                    },
                    {
                        "linkedid": "1718025306.285385",
                        "id": 132863930,
                        "eventtype": "CHAN_END",
                        "eventtime": "2024-06-10 13:15:16",
                        "cid_name": "989197841604",
                        "cid_num": "989197841604",
                        "cid_ani": "989197841604",
                        "cid_rdnis": "",
                        "cid_dnid": "2191018791",
                        "exten": "h",
                        "context": "ivr-1",
                        "channame": "SIP/soft_switch-0001b732",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718025306.285385",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718025316,
                        "timestamp": 1718025316
                    },
                    {
                        "linkedid": "1718025306.285385",
                        "id": 132863931,
                        "eventtype": "LINKEDID_END",
                        "eventtime": "2024-06-10 13:15:16",
                        "cid_name": "989197841604",
                        "cid_num": "989197841604",
                        "cid_ani": "989197841604",
                        "cid_rdnis": "",
                        "cid_dnid": "2191018791",
                        "exten": "h",
                        "context": "ivr-1",
                        "channame": "SIP/soft_switch-0001b732",
                        "appname": "",
                        "appdata": "",
                        "amaflags": 3,
                        "accountcode": "",
                        "uniqueid": "1718025306.285385",
                        "peer": "",
                        "userdeftype": "",
                        "extra": "",
                        "eventunixtime": 1718025316,
                        "timestamp": 1718025316
                    }
                ]
            }
        ],
        "recordings": {
            "recordings": {
                "1718024565.284564": {
                    "file": "https://api.hamkaran.cloud/v1/recordpath/*********"
                },
                "1718025306.285385": {
                    "file": "https://api.hamkaran.cloud/v1/recordpath/*********"
                },
                "1718041336.297594": {
                    "file": "https://api.hamkaran.cloud/v1/recordpath/*********"
                }
            }
        }
    }
}

Request

Query Params
datefrom
string 
required
dateto
string 
required
page
string 
required
source
string 
required
internalnumber
string 
required
Header Params
key
string 
required
Example:
{{Hamkaran Webservice key}}
Body Params multipart/form-data
object {0}

Responses

🟢200Response List
text/html
Body
object {0}
Next
Get Extension Status
Built with