1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

Merge branch 'develop' of github.com:chatopera/cosin into develop

This commit is contained in:
Hai Liang Wang 2018-11-05 13:55:52 +08:00
commit af07fa0772

View File

@ -93,7 +93,7 @@ const callOut = phone =>
new Promise((resolve, reject) => {
debug('拨打电话: %s', phone);
conn.bgapi(`originate sofia/gateway/goipx/0${phone} &park`, ({ body }) => {
conn.bgapi(`originate sofia/gateway/goipx/${phone} &park`, ({ body }) => {
let match = body.match(/([a-f\d]{8}(-[a-f\d]{4}){3}-[a-f\d]{12}?)/i);
if (match) {
resolve(match[1]);