1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00
This commit is contained in:
mukaiu 2018-09-17 17:48:05 +08:00
parent fb3ba5328f
commit 9222674e63

View File

@ -93,7 +93,7 @@ const callOut = phone =>
new Promise((resolve, reject) => {
debug('拨打电话: %s', phone);
conn.bgapi(`originate sofia/gateway/goipx/${phone} &park`, ({ body }) => {
conn.bgapi(`originate sofia/gateway/goipx/0${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]);