Skip to content

Commit

Permalink
Update inband-dtmf.mdx (#24)
Browse files Browse the repository at this point in the history
* Update inband-dtmf.mdx

inband DTMF 2

* Update inband-dtmf.mdx

Third
  • Loading branch information
kongjian188 authored Jan 26, 2024
1 parent 223032f commit 1e86206
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion docs/rts/howto/inband-dtmf.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,34 @@ A leg 呼入 RTS,在 RTS 中 bridge B leg,希望向 B leg 发送 inband DTMF

## 实现方法

todo.
### 双呼方式从客户端发起 DTMF

#### FS API 串:

`originate {execute_on_answer=start_dtmf_generate}sofia/gateway/gwxxx/1001 &bridge(sofia/gateway/gwxxx/13818881888)`

#### 添加在应答时启用 dtmf 转换:

`execute_on_answer=start_dtmf_generate`
如上 API 串,当1001分机应答后,分机终端按键发送 dtmf(RFC2833),B leg 收到 inband DTMF

### 双呼方式从FS发起 DTMF

#### 按照杜老师所说,FS API 串:

`originate sofia/gateway/gwxxx/1001 &bridge({execute_on_answer=start_dtmf_generate}sofia/gateway/gwxxx/13818881888)`
在 bleg 应答后,执行 `uuid_send_dtmf <uuid> dtmf`,实测 不管发送 `aleg_uuid bleg_uuid`, 中继测收到的还是 RFC2833 DTMF

#### 中间加一道 FS 方式:

`originate sofia/gateway/gwxxx/1001 &bridge(sofia/internal/13818881888@fs2:port)`

##### 在fs2上使用拨号计划:

```
app start_dtmf_generate
bridge sofia/gateway/gwxxx/13818881888
```
`uuid_send_dtmf <uuid> dtmf` 实测有效

以上仅供参考。

0 comments on commit 1e86206

Please sign in to comment.