Giter Club home page Giter Club logo

pnguyen215 / voipkit Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 7.2 MB

The Asterisk VOIP library, implemented in the Go programming language (Golang), is a versatile and powerful tool for building robust voice over IP (VOIP) communication systems.

Home Page: https://github.com/pnguyen215/voipkit

Go 99.88% Makefile 0.12%
golang-library golang-package voip voip-security voip-telephony-providers golang-asterisk asterisk-ami asterisk-manager-api asterisk-pbx devops

voipkit's Introduction

VoipKit

The Asterisk VOIP library, implemented in the Go programming language (Golang), is a versatile and powerful tool for building robust voice over IP (VOIP) communication systems. Leveraging the efficiency and concurrency of Golang, this library enables developers to create scalable and high-performance VOIP applications with ease.

Asterisk in Golang provides a wide range of features, including call routing, real-time call control, voice recording, and support for various VOIP protocols. Its modular architecture allows for customization and integration with other systems and services, making it suitable for diverse applications, from call centers to telemedicine platforms.

With Asterisk in Golang, developers benefit from the strengths of both the Golang language and the Asterisk ecosystem, resulting in reliable and efficient VOIP solutions that meet the demands of modern communication systems.

Requirement

The go version 1.20

Installation

  • Use a specific version (tag)
go get github.com/pnguyen215/[email protected]
  • Latest version
go get -u github.com/pnguyen215/voipkit@latest

Github Action

Reference

voipkit's People

Contributors

pnguyen215 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

voipkit's Issues

Add keep alive socket connection retry automatically

{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:13","DeviceStateChange":"{\"date_received_at\":\"2024-01-29 15:57:13\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}","message":"DeviceStateChange {\"date_received_at\":\"2024-01-29 15:57:13\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:13","ExtensionStatus":"{\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 15:57:13\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}","message":"ExtensionStatus {\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 15:57:13\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:14","DialBegin":"{\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"channel\":\"SIP/1002-00000164\",\"channel_state\":\"4\",\"channel_state_description\":\"Ring\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"macro-dialout-trunk\",\"date_received_at\":\"2024-01-29 15:57:14\",\"destination_account_code\":\"\",\"destination_caller_id_name\":\"CID:842471089995\",\"destination_caller_id_number\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000165\",\"destination_channel_state\":\"0\",\"destination_channel_state_description\":\"Down\",\"destination_connected_line_name\":\"\\u003cunknown\\u003e\",\"destination_connected_line_number\":\"842471089995\",\"destination_context\":\"func-apply-sipheaders\",\"destination_exten\":\"s\",\"destination_lang\":\"en\",\"destination_linked_id\":\"1706518633.523\",\"destination_priority\":\"17\",\"destination_unique_id\":\"1706518634.524\",\"dial_string\":\"CMC_842471089995/0586337315\",\"event\":\"DialBegin\",\"exten\":\"s\",\"lang\":\"en\",\"linked_id\":\"1706518633.523\",\"priority\":\"36\",\"privilege\":\"call,all\",\"unique_id\":\"1706518633.523\"}","message":"DialBegin {\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"channel\":\"SIP/1002-00000164\",\"channel_state\":\"4\",\"channel_state_description\":\"Ring\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"macro-dialout-trunk\",\"date_received_at\":\"2024-01-29 15:57:14\",\"destination_account_code\":\"\",\"destination_caller_id_name\":\"CID:842471089995\",\"destination_caller_id_number\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000165\",\"destination_channel_state\":\"0\",\"destination_channel_state_description\":\"Down\",\"destination_connected_line_name\":\"\\u003cunknown\\u003e\",\"destination_connected_line_number\":\"842471089995\",\"destination_context\":\"func-apply-sipheaders\",\"destination_exten\":\"s\",\"destination_lang\":\"en\",\"destination_linked_id\":\"1706518633.523\",\"destination_priority\":\"17\",\"destination_unique_id\":\"1706518634.524\",\"dial_string\":\"CMC_842471089995/0586337315\",\"event\":\"DialBegin\",\"exten\":\"s\",\"lang\":\"en\",\"linked_id\":\"1706518633.523\",\"priority\":\"36\",\"privilege\":\"call,all\",\"unique_id\":\"1706518633.523\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:14","HangupRequest":"{\"account_code\":\"\",\"caller_id_name\":\"CID:842471089995\",\"caller_id_number\":\"90586337315\",\"cause\":\"1\",\"channel\":\"SIP/CMC_842471089995-00000165\",\"channel_state\":\"0\",\"channel_state_description\":\"Down\",\"connected_line_name\":\"\\u003cunknown\\u003e\",\"connected_line_number\":\"842471089995\",\"context\":\"from-trunk\",\"date_received_at\":\"2024-01-29 15:57:14\",\"event\":\"HangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706518633.523\",\"priority\":\"1\",\"privilege\":\"call,all\",\"unique_id\":\"1706518634.524\"}","message":"HangupRequest {\"account_code\":\"\",\"caller_id_name\":\"CID:842471089995\",\"caller_id_number\":\"90586337315\",\"cause\":\"1\",\"channel\":\"SIP/CMC_842471089995-00000165\",\"channel_state\":\"0\",\"channel_state_description\":\"Down\",\"connected_line_name\":\"\\u003cunknown\\u003e\",\"connected_line_number\":\"842471089995\",\"context\":\"from-trunk\",\"date_received_at\":\"2024-01-29 15:57:14\",\"event\":\"HangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706518633.523\",\"priority\":\"1\",\"privilege\":\"call,all\",\"unique_id\":\"1706518634.524\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:19","SoftHangupRequest":"{\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"cause\":\"16\",\"channel\":\"SIP/1002-00000164\",\"channel_state\":\"7\",\"channel_state_description\":\"Busy\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"date_received_at\":\"2024-01-29 15:57:19\",\"event\":\"SoftHangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706518633.523\",\"priority\":\"11\",\"privilege\":\"call,all\",\"unique_id\":\"1706518633.523\"}","message":"SoftHangupRequest {\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"cause\":\"16\",\"channel\":\"SIP/1002-00000164\",\"channel_state\":\"7\",\"channel_state_description\":\"Busy\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"date_received_at\":\"2024-01-29 15:57:19\",\"event\":\"SoftHangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706518633.523\",\"priority\":\"11\",\"privilege\":\"call,all\",\"unique_id\":\"1706518633.523\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:19","ExtensionStatus":"{\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 15:57:19\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"0\",\"status_text\":\"Idle\"}","message":"ExtensionStatus {\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 15:57:19\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"0\",\"status_text\":\"Idle\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:19","DeviceStateChange":"{\"date_received_at\":\"2024-01-29 15:57:19\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"NOT_INUSE\"}","message":"DeviceStateChange {\"date_received_at\":\"2024-01-29 15:57:19\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"NOT_INUSE\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:57:19","Cdr":"{\"Cnam\":\"Ext_1002\",\"Cnum\":\"1002\",\"Did\":\"\",\"Dst_cnam\":\"\",\"Outbound_cnam\":\"\",\"Outbound_cnum\":\"842471089995\",\"Peeraccount\":\"\",\"Recordingfile\":\"out-90586337315-1002-20240129-155713-1706518633.523.wav\",\"Sequence\":\"379\",\"account_code\":{\"\":\"\"},\"ama_flags\":{\"DOCUMENTATION\":\"\"},\"answer_time\":\"\",\"billable_seconds\":\"0\",\"caller_id\":\"\\\"\\\" \\u003c842471089995\\u003e\",\"channel\":\"SIP/1002-00000164\",\"date_received_at\":\"2024-01-29 15:57:19\",\"destination\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000165\",\"destination_context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"disposition\":\"NO ANSWER\",\"duration\":\"0\",\"end_time\":\"2024-01-29 15:57:14\",\"event\":\"Cdr\",\"last_application\":\"Dial\",\"last_data\":\"SIP/CMC_842471089995/0586337315,300,Tb(func-apply-sipheaders^s^1,(6))U(sub-send\",\"linked_id\":\"1706518633.523\",\"privilege\":\"cdr,all\",\"source\":\"842471089995\",\"start_time\":\"2024-01-29 15:57:13\",\"unique_id\":\"1706518633.523\",\"user_field\":\"\"}","message":"Cdr {\"Cnam\":\"Ext_1002\",\"Cnum\":\"1002\",\"Did\":\"\",\"Dst_cnam\":\"\",\"Outbound_cnam\":\"\",\"Outbound_cnum\":\"842471089995\",\"Peeraccount\":\"\",\"Recordingfile\":\"out-90586337315-1002-20240129-155713-1706518633.523.wav\",\"Sequence\":\"379\",\"account_code\":{\"\":\"\"},\"ama_flags\":{\"DOCUMENTATION\":\"\"},\"answer_time\":\"\",\"billable_seconds\":\"0\",\"caller_id\":\"\\\"\\\" \\u003c842471089995\\u003e\",\"channel\":\"SIP/1002-00000164\",\"date_received_at\":\"2024-01-29 15:57:19\",\"destination\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000165\",\"destination_context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"disposition\":\"NO ANSWER\",\"duration\":\"0\",\"end_time\":\"2024-01-29 15:57:14\",\"event\":\"Cdr\",\"last_application\":\"Dial\",\"last_data\":\"SIP/CMC_842471089995/0586337315,300,Tb(func-apply-sipheaders^s^1,(6))U(sub-send\",\"linked_id\":\"1706518633.523\",\"privilege\":\"cdr,all\",\"source\":\"842471089995\",\"start_time\":\"2024-01-29 15:57:13\",\"unique_id\":\"1706518633.523\",\"user_field\":\"\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 15:58:42","PeerStatus":"{\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 15:58:42\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}","message":"PeerStatus {\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 15:58:42\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:03:37","PeerStatus":"{\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:03:37\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}","message":"PeerStatus {\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:03:37\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:08:32","PeerStatus":"{\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:08:32\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}","message":"PeerStatus {\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:08:32\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:13:28","PeerStatus":"{\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:13:28\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}","message":"PeerStatus {\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:13:28\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:18:23","PeerStatus":"{\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:18:23\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}","message":"PeerStatus {\"address\":\"113.161.81.85:59015\",\"channel_type\":\"SIP\",\"date_received_at\":\"2024-01-29 16:18:23\",\"event\":\"PeerStatus\",\"peer\":\"SIP/1002\",\"peer_status\":\"Registered\",\"privilege\":\"system,all\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:32","DeviceStateChange":"{\"date_received_at\":\"2024-01-29 16:20:32\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}","message":"DeviceStateChange {\"date_received_at\":\"2024-01-29 16:20:32\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:32","ExtensionStatus":"{\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 16:20:32\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}","message":"ExtensionStatus {\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 16:20:32\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:32","DialBegin":"{\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"channel\":\"SIP/1002-00000166\",\"channel_state\":\"4\",\"channel_state_description\":\"Ring\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"macro-dialout-trunk\",\"date_received_at\":\"2024-01-29 16:20:32\",\"destination_account_code\":\"\",\"destination_caller_id_name\":\"CID:842471089995\",\"destination_caller_id_number\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000167\",\"destination_channel_state\":\"0\",\"destination_channel_state_description\":\"Down\",\"destination_connected_line_name\":\"\\u003cunknown\\u003e\",\"destination_connected_line_number\":\"842471089995\",\"destination_context\":\"func-apply-sipheaders\",\"destination_exten\":\"s\",\"destination_lang\":\"en\",\"destination_linked_id\":\"1706520032.526\",\"destination_priority\":\"17\",\"destination_unique_id\":\"1706520032.527\",\"dial_string\":\"CMC_842471089995/0586337315\",\"event\":\"DialBegin\",\"exten\":\"s\",\"lang\":\"en\",\"linked_id\":\"1706520032.526\",\"priority\":\"36\",\"privilege\":\"call,all\",\"unique_id\":\"1706520032.526\"}","message":"DialBegin {\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"channel\":\"SIP/1002-00000166\",\"channel_state\":\"4\",\"channel_state_description\":\"Ring\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"macro-dialout-trunk\",\"date_received_at\":\"2024-01-29 16:20:32\",\"destination_account_code\":\"\",\"destination_caller_id_name\":\"CID:842471089995\",\"destination_caller_id_number\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000167\",\"destination_channel_state\":\"0\",\"destination_channel_state_description\":\"Down\",\"destination_connected_line_name\":\"\\u003cunknown\\u003e\",\"destination_connected_line_number\":\"842471089995\",\"destination_context\":\"func-apply-sipheaders\",\"destination_exten\":\"s\",\"destination_lang\":\"en\",\"destination_linked_id\":\"1706520032.526\",\"destination_priority\":\"17\",\"destination_unique_id\":\"1706520032.527\",\"dial_string\":\"CMC_842471089995/0586337315\",\"event\":\"DialBegin\",\"exten\":\"s\",\"lang\":\"en\",\"linked_id\":\"1706520032.526\",\"priority\":\"36\",\"privilege\":\"call,all\",\"unique_id\":\"1706520032.526\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:32","HangupRequest":"{\"account_code\":\"\",\"caller_id_name\":\"CID:842471089995\",\"caller_id_number\":\"90586337315\",\"cause\":\"1\",\"channel\":\"SIP/CMC_842471089995-00000167\",\"channel_state\":\"0\",\"channel_state_description\":\"Down\",\"connected_line_name\":\"\\u003cunknown\\u003e\",\"connected_line_number\":\"842471089995\",\"context\":\"from-trunk\",\"date_received_at\":\"2024-01-29 16:20:32\",\"event\":\"HangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706520032.526\",\"priority\":\"1\",\"privilege\":\"call,all\",\"unique_id\":\"1706520032.527\"}","message":"HangupRequest {\"account_code\":\"\",\"caller_id_name\":\"CID:842471089995\",\"caller_id_number\":\"90586337315\",\"cause\":\"1\",\"channel\":\"SIP/CMC_842471089995-00000167\",\"channel_state\":\"0\",\"channel_state_description\":\"Down\",\"connected_line_name\":\"\\u003cunknown\\u003e\",\"connected_line_number\":\"842471089995\",\"context\":\"from-trunk\",\"date_received_at\":\"2024-01-29 16:20:32\",\"event\":\"HangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706520032.526\",\"priority\":\"1\",\"privilege\":\"call,all\",\"unique_id\":\"1706520032.527\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:37","SoftHangupRequest":"{\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"cause\":\"16\",\"channel\":\"SIP/1002-00000166\",\"channel_state\":\"7\",\"channel_state_description\":\"Busy\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"date_received_at\":\"2024-01-29 16:20:37\",\"event\":\"SoftHangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706520032.526\",\"priority\":\"11\",\"privilege\":\"call,all\",\"unique_id\":\"1706520032.526\"}","message":"SoftHangupRequest {\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"cause\":\"16\",\"channel\":\"SIP/1002-00000166\",\"channel_state\":\"7\",\"channel_state_description\":\"Busy\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"date_received_at\":\"2024-01-29 16:20:37\",\"event\":\"SoftHangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706520032.526\",\"priority\":\"11\",\"privilege\":\"call,all\",\"unique_id\":\"1706520032.526\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:38","DeviceStateChange":"{\"date_received_at\":\"2024-01-29 16:20:38\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"NOT_INUSE\"}","message":"DeviceStateChange {\"date_received_at\":\"2024-01-29 16:20:38\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"NOT_INUSE\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:38","ExtensionStatus":"{\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 16:20:38\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"0\",\"status_text\":\"Idle\"}","message":"ExtensionStatus {\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 16:20:38\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"0\",\"status_text\":\"Idle\"}"}
{"@caller":"amify_event_service.go:86","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 16:20:38","Cdr":"{\"Cnam\":\"Ext_1002\",\"Cnum\":\"1002\",\"Did\":\"\",\"Dst_cnam\":\"\",\"Outbound_cnam\":\"\",\"Outbound_cnum\":\"842471089995\",\"Peeraccount\":\"\",\"Recordingfile\":\"out-90586337315-1002-20240129-162032-1706520032.526.wav\",\"Sequence\":\"382\",\"account_code\":{\"\":\"\"},\"ama_flags\":{\"DOCUMENTATION\":\"\"},\"answer_time\":\"\",\"billable_seconds\":\"0\",\"caller_id\":\"\\\"\\\" \\u003c842471089995\\u003e\",\"channel\":\"SIP/1002-00000166\",\"date_received_at\":\"2024-01-29 16:20:38\",\"destination\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000167\",\"destination_context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"disposition\":\"NO ANSWER\",\"duration\":\"0\",\"end_time\":\"2024-01-29 16:20:32\",\"event\":\"Cdr\",\"last_application\":\"Dial\",\"last_data\":\"SIP/CMC_842471089995/0586337315,300,Tb(func-apply-sipheaders^s^1,(6))U(sub-send\",\"linked_id\":\"1706520032.526\",\"privilege\":\"cdr,all\",\"source\":\"842471089995\",\"start_time\":\"2024-01-29 16:20:32\",\"unique_id\":\"1706520032.526\",\"user_field\":\"\"}","message":"Cdr {\"Cnam\":\"Ext_1002\",\"Cnum\":\"1002\",\"Did\":\"\",\"Dst_cnam\":\"\",\"Outbound_cnam\":\"\",\"Outbound_cnum\":\"842471089995\",\"Peeraccount\":\"\",\"Recordingfile\":\"out-90586337315-1002-20240129-162032-1706520032.526.wav\",\"Sequence\":\"382\",\"account_code\":{\"\":\"\"},\"ama_flags\":{\"DOCUMENTATION\":\"\"},\"answer_time\":\"\",\"billable_seconds\":\"0\",\"caller_id\":\"\\\"\\\" \\u003c842471089995\\u003e\",\"channel\":\"SIP/1002-00000166\",\"date_received_at\":\"2024-01-29 16:20:38\",\"destination\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000167\",\"destination_context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"disposition\":\"NO ANSWER\",\"duration\":\"0\",\"end_time\":\"2024-01-29 16:20:32\",\"event\":\"Cdr\",\"last_application\":\"Dial\",\"last_data\":\"SIP/CMC_842471089995/0586337315,300,Tb(func-apply-sipheaders^s^1,(6))U(sub-send\",\"linked_id\":\"1706520032.526\",\"privilege\":\"cdr,all\",\"source\":\"842471089995\",\"start_time\":\"2024-01-29 16:20:32\",\"unique_id\":\"1706520032.526\",\"user_field\":\"\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:24","DeviceStateChange":"{\"date_received_at\":\"2024-01-29 17:49:24\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}","message":"DeviceStateChange {\"date_received_at\":\"2024-01-29 17:49:24\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:24","ExtensionStatus":"{\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 17:49:24\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}","message":"ExtensionStatus {\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 17:49:24\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:25","HangupRequest":"{\"account_code\":\"\",\"caller_id_name\":\"CID:842471089995\",\"caller_id_number\":\"90586337315\",\"cause\":\"1\",\"channel\":\"SIP/CMC_842471089995-00000195\",\"channel_state\":\"0\",\"channel_state_description\":\"Down\",\"connected_line_name\":\"\\u003cunknown\\u003e\",\"connected_line_number\":\"842471089995\",\"context\":\"from-trunk\",\"date_received_at\":\"2024-01-29 17:49:25\",\"event\":\"HangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706525364.595\",\"priority\":\"1\",\"privilege\":\"call,all\",\"unique_id\":\"1706525365.596\"}","message":"HangupRequest {\"account_code\":\"\",\"caller_id_name\":\"CID:842471089995\",\"caller_id_number\":\"90586337315\",\"cause\":\"1\",\"channel\":\"SIP/CMC_842471089995-00000195\",\"channel_state\":\"0\",\"channel_state_description\":\"Down\",\"connected_line_name\":\"\\u003cunknown\\u003e\",\"connected_line_number\":\"842471089995\",\"context\":\"from-trunk\",\"date_received_at\":\"2024-01-29 17:49:25\",\"event\":\"HangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706525364.595\",\"priority\":\"1\",\"privilege\":\"call,all\",\"unique_id\":\"1706525365.596\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:25","DialBegin":"{\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"channel\":\"SIP/1002-00000194\",\"channel_state\":\"4\",\"channel_state_description\":\"Ring\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"macro-dialout-trunk\",\"date_received_at\":\"2024-01-29 17:49:25\",\"destination_account_code\":\"\",\"destination_caller_id_name\":\"CID:842471089995\",\"destination_caller_id_number\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000195\",\"destination_channel_state\":\"0\",\"destination_channel_state_description\":\"Down\",\"destination_connected_line_name\":\"\\u003cunknown\\u003e\",\"destination_connected_line_number\":\"842471089995\",\"destination_context\":\"func-apply-sipheaders\",\"destination_exten\":\"s\",\"destination_lang\":\"en\",\"destination_linked_id\":\"1706525364.595\",\"destination_priority\":\"17\",\"destination_unique_id\":\"1706525365.596\",\"dial_string\":\"CMC_842471089995/0586337315\",\"event\":\"DialBegin\",\"exten\":\"s\",\"lang\":\"en\",\"linked_id\":\"1706525364.595\",\"priority\":\"36\",\"privilege\":\"call,all\",\"unique_id\":\"1706525364.595\"}","message":"DialBegin {\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"channel\":\"SIP/1002-00000194\",\"channel_state\":\"4\",\"channel_state_description\":\"Ring\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"macro-dialout-trunk\",\"date_received_at\":\"2024-01-29 17:49:25\",\"destination_account_code\":\"\",\"destination_caller_id_name\":\"CID:842471089995\",\"destination_caller_id_number\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000195\",\"destination_channel_state\":\"0\",\"destination_channel_state_description\":\"Down\",\"destination_connected_line_name\":\"\\u003cunknown\\u003e\",\"destination_connected_line_number\":\"842471089995\",\"destination_context\":\"func-apply-sipheaders\",\"destination_exten\":\"s\",\"destination_lang\":\"en\",\"destination_linked_id\":\"1706525364.595\",\"destination_priority\":\"17\",\"destination_unique_id\":\"1706525365.596\",\"dial_string\":\"CMC_842471089995/0586337315\",\"event\":\"DialBegin\",\"exten\":\"s\",\"lang\":\"en\",\"linked_id\":\"1706525364.595\",\"priority\":\"36\",\"privilege\":\"call,all\",\"unique_id\":\"1706525364.595\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:30","SoftHangupRequest":"{\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"cause\":\"16\",\"channel\":\"SIP/1002-00000194\",\"channel_state\":\"7\",\"channel_state_description\":\"Busy\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"date_received_at\":\"2024-01-29 17:49:30\",\"event\":\"SoftHangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706525364.595\",\"priority\":\"11\",\"privilege\":\"call,all\",\"unique_id\":\"1706525364.595\"}","message":"SoftHangupRequest {\"account_code\":\"\",\"caller_id_name\":\"\\u003cunknown\\u003e\",\"caller_id_number\":\"842471089995\",\"cause\":\"16\",\"channel\":\"SIP/1002-00000194\",\"channel_state\":\"7\",\"channel_state_description\":\"Busy\",\"connected_line_name\":\"CID:842471089995\",\"connected_line_number\":\"0586337315\",\"context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"date_received_at\":\"2024-01-29 17:49:30\",\"event\":\"SoftHangupRequest\",\"exten\":\"90586337315\",\"lang\":\"en\",\"linked_id\":\"1706525364.595\",\"priority\":\"11\",\"privilege\":\"call,all\",\"unique_id\":\"1706525364.595\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:30","ExtensionStatus":"{\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 17:49:30\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"0\",\"status_text\":\"Idle\"}","message":"ExtensionStatus {\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 17:49:30\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"0\",\"status_text\":\"Idle\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:30","DeviceStateChange":"{\"date_received_at\":\"2024-01-29 17:49:30\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"NOT_INUSE\"}","message":"DeviceStateChange {\"date_received_at\":\"2024-01-29 17:49:30\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"NOT_INUSE\"}"}
{"@caller":"amify_event_service.go:96","@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:49:30","Cdr":"{\"Cnam\":\"Ext_1002\",\"Cnum\":\"1002\",\"Did\":\"\",\"Dst_cnam\":\"\",\"Outbound_cnam\":\"\",\"Outbound_cnum\":\"842471089995\",\"Peeraccount\":\"\",\"Recordingfile\":\"out-90586337315-1002-20240129-174924-1706525364.595.wav\",\"Sequence\":\"451\",\"account_code\":{\"\":\"\"},\"ama_flags\":{\"DOCUMENTATION\":\"\"},\"answer_time\":\"\",\"billable_seconds\":\"0\",\"caller_id\":\"\\\"\\\" \\u003c842471089995\\u003e\",\"channel\":\"SIP/1002-00000194\",\"date_received_at\":\"2024-01-29 17:49:30\",\"destination\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000195\",\"destination_context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"disposition\":\"NO ANSWER\",\"duration\":\"0\",\"end_time\":\"2024-01-29 17:49:25\",\"event\":\"Cdr\",\"last_application\":\"Dial\",\"last_data\":\"SIP/CMC_842471089995/0586337315,300,Tb(func-apply-sipheaders^s^1,(6))U(sub-send\",\"linked_id\":\"1706525364.595\",\"privilege\":\"cdr,all\",\"source\":\"842471089995\",\"start_time\":\"2024-01-29 17:49:24\",\"unique_id\":\"1706525364.595\",\"user_field\":\"\"}","message":"Cdr {\"Cnam\":\"Ext_1002\",\"Cnum\":\"1002\",\"Did\":\"\",\"Dst_cnam\":\"\",\"Outbound_cnam\":\"\",\"Outbound_cnum\":\"842471089995\",\"Peeraccount\":\"\",\"Recordingfile\":\"out-90586337315-1002-20240129-174924-1706525364.595.wav\",\"Sequence\":\"451\",\"account_code\":{\"\":\"\"},\"ama_flags\":{\"DOCUMENTATION\":\"\"},\"answer_time\":\"\",\"billable_seconds\":\"0\",\"caller_id\":\"\\\"\\\" \\u003c842471089995\\u003e\",\"channel\":\"SIP/1002-00000194\",\"date_received_at\":\"2024-01-29 17:49:30\",\"destination\":\"90586337315\",\"destination_channel\":\"SIP/CMC_842471089995-00000195\",\"destination_context\":\"restrictedroute-c81e728d9d4c2f636f067f89cc14862c\",\"disposition\":\"NO ANSWER\",\"duration\":\"0\",\"end_time\":\"2024-01-29 17:49:25\",\"event\":\"Cdr\",\"last_application\":\"Dial\",\"last_data\":\"SIP/CMC_842471089995/0586337315,300,Tb(func-apply-sipheaders^s^1,(6))U(sub-send\",\"linked_id\":\"1706525364.595\",\"privilege\":\"cdr,all\",\"source\":\"842471089995\",\"start_time\":\"2024-01-29 17:49:24\",\"unique_id\":\"1706525364.595\",\"user_field\":\"\"}"}
{"@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:51:00","DeviceStateChange":"{\"date_received_at\":\"2024-01-29 17:51:00\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}","message":"DeviceStateChange {\"date_received_at\":\"2024-01-29 17:51:00\",\"device\":\"SIP/1002\",\"event\":\"DeviceStateChange\",\"privilege\":\"call,all\",\"state\":\"INUSE\"}"}
{"@level":"info","@message":"\u001b[94m\u001b[0m","@timestamp":"2024-01-29 17:51:00","ExtensionStatus":"{\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 17:51:00\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}","message":"ExtensionStatus {\"context\":\"ext-local\",\"date_received_at\":\"2024-01-29 17:51:00\",\"event\":\"ExtensionStatus\",\"exten\":\"1002\",\"hint\":\"SIP/1002\\u0026Custom:DND1002,CustomPresence:1002\",\"privilege\":\"call,all\",\"status\":\"1\",\"status_text\":\"InUse\"}"}
{"@level":"error","@message":"\u001b[91m\u001b[0m","@timestamp":"2024-01-29 17:51:00","error":"Ami has an error ocurred: Network error","message":"Amify Event Consuming"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.