Server Setup Information
- Version of Rocket.Chat Server: Rocket.Chat 4.5.4
- Operating System: Oracle Linux 8.5
- Deployment Method: Self Hosted from tar (cdn-download.rocket.chat/build/rocket.chat-4.5.4.tgz)
- Number of Running Instances: 1
- DB Replicaset Oplog: rs01
- NodeJS Version: 14.18.3
- MongoDB Version: 4.4.13
- Proxy: Apache httpd 2.4.46
- Firewalls involved: NA
- Asterisk: Asterisk 18.10.1
Description
I am trying to setup Rocket.Chat Call Center by enabling the VoIP option and connects to Asterisk.
However, Rocket.Chat keeps giving me Cannot read property 'map' of undefined
.
I not sure the problem actually at Rocket.Chat side or Asterisk.
From Asterisk log, it seems all good.
Asterisk manager.conf:
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[rocketchat]
secret=Admin123
permit=0.0.0.0/0.0.0.0
read=all
write=all
Asterisk log:
localhost*CLI> manager set debug on
== Manager 'rocketchat' logged on from 192.168.1.11
<--- Examining AMI action: -->
Action: pjsipshowendpoints
ActionID: 1649298791234
<--- Examining AMI action: -->
Action: queuesummary
ActionID: 1649298791239
Rocket.Chat log:
Apr 07 10:37:02 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:02.394Z","pid":293669,"hostname":"localhost","name":"CommandHandler","msg":"executeCommand() executing extension_list"}
Apr 07 10:37:02 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:02.394Z","pid":293669,"hostname":"localhost","name":"CommandFactory","msg":"Creating command object for extension_list"}
Apr 07 10:37:02 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:02.396Z","pid":293669,"hostname":"localhost","name":"PJSIPEndpoint","msg":"executeCommand() executing AMI command {\"action\":\"pjsipshowendpoints\"}"}
Apr 07 10:37:02 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:02.402Z","pid":293669,"hostname":"localhost","name":"CommandHandler","msg":"executeCommand() executing queue_summary"}
Apr 07 10:37:02 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:02.403Z","pid":293669,"hostname":"localhost","name":"CommandFactory","msg":"Creating command object for queue_summary"}
Apr 07 10:37:02 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:02.403Z","pid":293669,"hostname":"localhost","name":"ACDQueue","msg":"Executing AMI command {\"action\":\"queuesummary\"}"}
Apr 07 10:37:02 localhost rocketchat[293669]: {"level":35,"time":"2022-04-07T02:37:02.430Z","pid":293669,"hostname":"localhost","name":"API","method":"GET","url":"/api/v1/omnichannel/extensions?count=25","userId":"5ctGaaQaDCS55JFBr","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0","length":"0","host":"192.168.1.11:443","referer":"https://192.168.1.11:443/rocketchat/admin/Call_Center","remoteIP":"192.168.1.101","err":{"type":"TypeError","message":"Cannot read property 'map' of undefined","stack":"TypeError: Cannot read property 'map' of undefined\n at server/services/voip/service.ts:97:65\n at /opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n at Function.Promise.await (/opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n at server/services/omnichannel-voip/service.ts:359:16\n at /opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n at Function.Promise.await (/opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n at server/sdk/lib/LocalBroker.ts:15:15\n at /opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n at Function.Promise.await (/opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n at app/api/server/v1/voip/omnichannel.ts:207:20\n at /opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40\n => awaited here:\n at Function.Promise.await (/opt/rocket.chat-4.5.4/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)\n at app/api/server/api.js:425:75\n at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)\n at Object._internalRouteActionHandler [as action] (app/api/server/api.js:425:39)\n at Route._callEndpoint (packages/rocketchat_restivus/lib/route.coffee:150:32)\n at packages/rocketchat_restivus/lib/route.coffee:59:33\n at packages/simple_json-routes.js:100:9"},"status":400,"responseTime":46,"msg":"Cannot read property 'map' of undefined"}
Apr 07 10:37:04 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:04.495Z","pid":293669,"hostname":"localhost","name":"LivechatEnterprise","section":"Queue","msg":"Processing items for queue Public"}
Apr 07 10:37:04 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:04.500Z","pid":293669,"hostname":"localhost","name":"LivechatEnterprise","section":"Helper","msg":"Processing items on queue Public"}
Apr 07 10:37:04 localhost rocketchat[293669]: {"level":20,"time":"2022-04-07T02:37:04.503Z","pid":293669,"hostname":"localhost","name":"LivechatEnterprise","section":"Helper","msg":"No items to process on queue Public"}