Here is relevant values from `db/kazoo.db` ``` sqlite> select * from presentity where etag='kfp+326f0d1353a3adb7949e6f6b76a06906c7@e8634ea1-68a0-471a-ac32-e7fd5ef5197e'; 15|201|ai.cust.ai.co.uk|dialog|kfp+326f0d1353a3adb7949e6f6b76a06906c7@e8634ea1-68a0-471a-ac32-e7fd5ef5197e|0|1524099505|<?xml version="1.0" encoding="UTF-8"?><dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="1" state="full" entity="sip:201@ai.cust.ai.co.uk"><dialog id="kfp+326f0d1353a3adb7949e6f6b76a06906c7@e8634ea1-68a0-471a-ac32-e7fd5ef5197e" call-id="kfp+326f0d1353a3adb7949e6f6b76a06906c7@e8634ea1-68a0-471a-ac32-e7fd5ef5197e" direction="recipient"><state>early</state><local><identity display="201">sip:201@ai.cust.ai.co.uk</identity><target uri="sip:201@ai.cust.ai.co.uk"/></local><remote><identity display="anonymous">sip:anonymous@ai.cust.ai.co.uk</identity><target uri="sip:201@ai.cust.ai.co.uk"/></remote></dialog></dialog-info>|sip:31.28.75.194:11000|0 sqlite> ``` And same formated XML value ``` <?xml version="1.0" encoding="UTF-8"?> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="1" state="full" entity="sip:201@ai.cust.ai.co.uk"> <dialog id="kfp+320867f87e21b7d6ba0621b609ce7f6a7f@bafd2f3d-d3a9-4c7d-be75-10fca3f358ca" call-id="kfp+320867f87e21b7d6ba0621b609ce7f6a7f@bafd2f3d-d3a9-4c7d-be75-10fca3f358ca" direction="recipient"> <state>early</state> <local> <identity display="201">sip:201@ai.cust.ai.co.uk</identity> <target uri="sip:201@ai.cust.ai.co.uk" /> </local> <remote> <identity display="03333444466">sip:03333444466@ai.cust.ai.co.uk</identity> <target uri="sip:201@ai.cust.ai.co.uk" /> </remote> </dialog> </dialog-info> ``` I cannot get PCAP file for Call-ID `bafd2f3d-d3a9-4c7d-be75-10fca3f358ca`. But I can find 3 similar other call. [call-1.pcap.gz](https://github.com/kamailio/kamailio/files/1990763/call-1.pcap.gz) [call-2.pcap.gz](https://github.com/kamailio/kamailio/files/1990764/call-2.pcap.gz) [call-3.pcap.gz](https://github.com/kamailio/kamailio/files/1990765/call-3.pcap.gz)
Looks as kamailio not receive dialog update from ecallmgr when FS cannot create channel: 1) `NORMAL_UNSPECIFIED` (in example above kazoo CDR contains hangup_code 900) 2) `480 Temporarily not available` in call-1.pcap and call-2.pcap.
Or when FS generate event `481 Call Does Not Exist` for already completed call (call-3.pcap).
**Relevan kazoo CDR for** call-1 ``` [root@node0 ~]# curl -s -S 'https://cust.ai.co.uk/v2/accounts/a73004697e232c237b9e16a34889d9e7/cdrs/2018...' -H 'X-Auth-Token: XXXXXX' | jq -j '.data' { "custom_channel_vars": { "account_id": "a73004697e232c237b9e16a34889d9e7", "authorizing_id": "616c66a3cd184d22182bd98dc0d4ccab", "authorizing_type": "device", "bridge_id": "06ef7f3e-cd66-1236-4389-0242ac110006", "channel_authorized": "true", "ecallmgr_node": "ecallmgr@kazoo-app02.cloudpbx.ai.co.uk", "global_resource": "false", "inception": "441480877546@cust.ai.co.uk", "owner_id": "ca5953c3e3c11c9aefdb08807f361c46", "realm": "monkey.cust.ai.co.uk", "username": "mth_joshua" }, "to": "1502@monkey.cust.ai.co.uk", "timestamp": 63693005097, "switch_url": "sip:mod_sofia@31.28.75.195:11000", "switch_uri": "sip:31.28.75.195:11000", "switch_nodename": "freeswitch@freeswitch01.cloudpbx.ai.co.uk", "switch_hostname": "freeswitch01.cloudpbx.ai.co.uk", "ringing_seconds": "0", "request": "mth_joshua@monkey.cust.ai.co.uk", "presence_id": "1502@monkey.cust.ai.co.uk", "other_leg_direction": "inbound", "other_leg_destination_number": "441480877546", "other_leg_caller_id_number": "07739343636", "other_leg_caller_id_name": "07739343636", "other_leg_call_id": "06ef7f3e-cd66-1236-4389-0242ac110006", "media_server": "freeswitch01.cloudpbx.ai.co.uk", "local_sdp": "v=0\r\no=FreeSWITCH 1525754553 1525754554 IN IP4 31.28.75.195\r\ns=FreeSWITCH\r\nc=IN IP4 31.28.75.195\r\nt=0 0\r\nm=audio 31338 RTP/AVP 8 0 101 13\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=rtcp:31339 IN IP4 31.28.75.195\r\na=rtpmap:13 CN/8000\r\na=ptime:20\r\na=sendrecv\r\n", "hangup_code": "sip:480", "hangup_cause": "NO_USER_RESPONSE", "from": "07739343636@monkey.cust.ai.co.uk", "duration_seconds": "0", "custom_sip_headers": { "x_kazoo_invite_format": "username", "x_kazoo_aor": "sip:mth_joshua@monkey.cust.ai.co.uk", "x_cid": "590a-585-482018132449-Slough_1-0-178.22.140.242" }, "custom_application_vars": {}, "channel_state": "REPORTING", "channel_name": "sofia/sipinterface_1/mth_joshua@monkey.cust.ai.co.uk", "channel_created_time": 1525785891398751, "channel_call_state": "HANGUP", "caller_id_number": "07739343636", "caller_id_name": "BROOKLANDS DOOR07739343636", "callee_id_number": "+442033580210", "callee_id_name": "Joshua Panter", "call_direction": "outbound", "billing_seconds": "0", "call_id": "b80e7a23-e2c9-407b-a061-f6c279efc7bb", "node": "ecallmgr@kazoo-app01.cloudpbx.ai.co.uk", "msg_id": "1525785897689011", "event_name": "CHANNEL_DESTROY", "event_category": "call_event", "app_version": "4.0.0", "app_name": "ecallmgr", "interaction_id": "63693005090-a21e1751", "interaction_key": "a21e1751", "interaction_time": 63693005090, "id": "201805-b80e7a23-e2c9-407b-a061-f6c279efc7bb" } ``` call-2 ``` [root@node0 ~]# curl -s -S 'https://cust.ai.co.uk/v2/accounts/a73004697e232c237b9e16a34889d9e7/cdrs/2018...' -H 'X-Auth-Token: XXXXX' | jq -j '.data' { "custom_channel_vars": { "account_id": "a73004697e232c237b9e16a34889d9e7", "authorizing_id": "e73b17c812973b68f92507d0dd74304e", "authorizing_type": "device", "bridge_id": "5a9c1087-ce43-1236-4389-0242ac110006", "channel_authorized": "true", "ecallmgr_node": "ecallmgr@kazoo-app01.cloudpbx.ai.co.uk", "global_resource": "false", "inception": "442033580210@cust.ai.co.uk", "owner_id": "4fd0a8df2bb325a29d4a9a11edfa1a5b", "realm": "monkey.cust.ai.co.uk", "username": "mth_lyam" }, "to": "1508@monkey.cust.ai.co.uk", "timestamp": 63693100163, "switch_url": "sip:mod_sofia@31.28.75.195:11000", "switch_uri": "sip:31.28.75.195:11000", "switch_nodename": "freeswitch@freeswitch01.cloudpbx.ai.co.uk", "switch_hostname": "freeswitch01.cloudpbx.ai.co.uk", "ringing_seconds": "0", "request": "mth_lyam@monkey.cust.ai.co.uk", "presence_id": "1508@monkey.cust.ai.co.uk", "other_leg_direction": "inbound", "other_leg_destination_number": "442033580210", "other_leg_caller_id_number": "01217947206", "other_leg_caller_id_name": "01217947206", "other_leg_call_id": "5a9c1087-ce43-1236-4389-0242ac110006", "media_server": "freeswitch01.cloudpbx.ai.co.uk", "local_sdp": "v=0\r\no=FreeSWITCH 1525862698 1525862699 IN IP4 31.28.75.195\r\ns=FreeSWITCH\r\nc=IN IP4 31.28.75.195\r\nt=0 0\r\nm=audio 18260 RTP/AVP 8 0 101 13\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=rtcp:18261 IN IP4 31.28.75.195\r\na=rtpmap:13 CN/8000\r\na=ptime:20\r\na=sendrecv\r\n", "hangup_code": "sip:480", "hangup_cause": "NO_USER_RESPONSE", "from": "01217947206@monkey.cust.ai.co.uk", "duration_seconds": "0", "custom_sip_headers": { "x_kazoo_invite_format": "username", "x_kazoo_aor": "sip:mth_lyam@monkey.cust.ai.co.uk", "x_cid": "772a-58a-49201815498-Slough_1-0-178.22.140.242" }, "custom_application_vars": {}, "channel_state": "REPORTING", "channel_name": "sofia/sipinterface_1/mth_lyam@monkey.cust.ai.co.uk", "channel_created_time": 1525880958618694, "channel_call_state": "HANGUP", "caller_id_number": "01217947206", "caller_id_name": "01217947206", "callee_id_number": "+442033580210", "callee_id_name": "Lyam James-Keeble", "call_direction": "outbound", "billing_seconds": "0", "call_id": "0d095ad6-28cb-4650-9b80-14efe1c44b7c", "node": "ecallmgr@kazoo-app01.cloudpbx.ai.co.uk", "msg_id": "1525880963248707", "event_name": "CHANNEL_DESTROY", "event_category": "call_event", "app_version": "4.0.0", "app_name": "ecallmgr", "interaction_id": "63693100149-8202a4d4", "interaction_key": "8202a4d4", "interaction_time": 63693100149, "id": "201805-0d095ad6-28cb-4650-9b80-14efe1c44b7c" } ``` call-3 ``` [root@node0 ~]# curl -s -S 'https://cust.ai.co.uk/v2/accounts/85f98bf1d9dc8e1fd2a2f6ab76ca6a8a/cdrs/2018...' -H 'X-Auth-Token: XXXX' | jq -j '.data' { "custom_channel_vars": { "account_id": "85f98bf1d9dc8e1fd2a2f6ab76ca6a8a", "authorizing_id": "5117e7d09ad6d9b83b6af54e77dc2879", "authorizing_type": "device", "bridge_id": "4c7e0c5f-c8c5-1236-5aa2-02efc1858da8", "channel_authorized": "true", "ecallmgr_node": "ecallmgr@kazoo-app02.cloudpbx.ai.co.uk", "global_resource": "false", "owner_id": "8f9bb35da6eca7330b5074bbcc2d7c05", "realm": "lcn.cust.ai.co.uk", "username": "user_68s66l" }, "user_agent": "Yealink SIP-T41S 66.81.0.110", "to_uri": "user_68s66l@lcn.cust.ai.co.uk", "to_tag": "1618781421", "to": "2010@lcn.cust.ai.co.uk", "timestamp": 63692496260, "switch_url": "sip:mod_sofia@31.28.75.195:11000", "switch_uri": "sip:31.28.75.195:11000", "switch_nodename": "freeswitch@freeswitch01.cloudpbx.ai.co.uk", "switch_hostname": "freeswitch01.cloudpbx.ai.co.uk", "ringing_seconds": "0", "request": "user_68s66l@lcn.cust.ai.co.uk", "remote_sdp": "v=0\r\no=- 20667 20667 IN IP4 185.135.166.77\r\ns=SDP data\r\nc=IN IP4 185.135.166.77\r\nt=0 0\r\nm=audio 12354 RTP/AVP 0 101\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-15\r\na=ptime:20\r\n", "presence_id": "2010@lcn.cust.ai.co.uk", "other_leg_direction": "inbound", "other_leg_destination_number": "2010", "other_leg_caller_id_number": "07771964749", "other_leg_caller_id_name": "07771964749", "other_leg_call_id": "4c7e0c5f-c8c5-1236-5aa2-02efc1858da8", "media_server": "freeswitch01.cloudpbx.ai.co.uk", "local_sdp": "v=0\r\no=FreeSWITCH 1525258705 1525258706 IN IP4 31.28.75.195\r\ns=FreeSWITCH\r\nc=IN IP4 31.28.75.195\r\nt=0 0\r\nm=audio 18350 RTP/AVP 0 8 101 13\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=rtcp:18351 IN IP4 31.28.75.195\r\na=rtpmap:13 CN/8000\r\na=ptime:20\r\na=sendrecv\r\n", "hangup_code": "sip:200", "hangup_cause": "NORMAL_CLEARING", "from_uri": "07771964749@lcn.cust.ai.co.uk", "from_tag": "rr2e7vFjFK7Hm", "from": "07771964749@lcn.cust.ai.co.uk", "duration_seconds": "5", "disposition": "ANSWER", "custom_sip_headers": { "x_kazoo_invite_format": "username", "x_kazoo_aor": "sip:user_68s66l@lcn.cust.ai.co.uk" }, "custom_application_vars": {}, "channel_state": "REPORTING", "channel_name": "sofia/sipinterface_1/user_68s66l@lcn.cust.ai.co.uk", "channel_created_time": 1525277055138697, "channel_call_state": "HANGUP", "caller_id_number": "07771964749", "caller_id_name": "07771964749", "callee_id_number": "2010", "callee_id_name": "Mark Durham", "call_direction": "outbound", "billing_seconds": "0", "call_id": "277da4cc-ce99-4551-a219-a408285db584", "node": "ecallmgr@kazoo-app01.cloudpbx.ai.co.uk", "msg_id": "1525277060948700", "event_name": "CHANNEL_DESTROY", "event_category": "call_event", "app_version": "4.0.0", "app_name": "ecallmgr", "interaction_id": "63692496254-80200771", "interaction_key": "80200771", "interaction_time": 63692496254, "id": "201805-277da4cc-ce99-4551-a219-a408285db584" } ```