mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
#82 remove prefix +0
This commit is contained in:
parent
89f0fc2105
commit
5583181630
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user