mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
#82 fix Cannot read property 'match' of undefined
This commit is contained in:
parent
dc58806c63
commit
fb3ba5328f
@ -12,8 +12,8 @@ const MINIO_END_POINT = 'localhost';
|
|||||||
const MINIO_ACCESS_KEY = 'key';
|
const MINIO_ACCESS_KEY = 'key';
|
||||||
const MINIO_SECRET_KEY = 'secret';
|
const MINIO_SECRET_KEY = 'secret';
|
||||||
|
|
||||||
const REDIS_HOST = '192.168.2.217';
|
const REDIS_HOST = 'localhost';
|
||||||
const REDIS_PORT = 9763;
|
const REDIS_PORT = 6379;
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
PBX_CHANNEL_ID,
|
PBX_CHANNEL_ID,
|
||||||
|
@ -255,7 +255,9 @@ class FreeSwitch extends EventEmitter {
|
|||||||
variable_sip_to_user: sip_to_user,
|
variable_sip_to_user: sip_to_user,
|
||||||
variable_call_uuid,
|
variable_call_uuid,
|
||||||
} = event;
|
} = event;
|
||||||
let match = variable_bridge_channel.match(/sofia\/internal\/(\d+)@/);
|
let match =
|
||||||
|
variable_bridge_channel &&
|
||||||
|
variable_bridge_channel.match(/sofia\/internal\/(\d+)@/);
|
||||||
if (match) {
|
if (match) {
|
||||||
let sip_from_user = match[1];
|
let sip_from_user = match[1];
|
||||||
let call = new CallOut(
|
let call = new CallOut(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user