Skip to content

Commit

Permalink
Fix moudles2 (#13)
Browse files Browse the repository at this point in the history
* fix mouudles2

* update
  • Loading branch information
dangkun3321 authored Jan 12, 2024
1 parent 8c449ab commit 0ec63c5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ result = dbh.query("
如果结果的`num_rows`不等于0
对于每一行的数据进行遍历
```
```ruby
did = row[0]
dst = row[1].sub(/NUMBER/, did)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ echo $xmlw -> outputMemory();
header('Content-Type: text/xml');
```

```xml
$response = <<< XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ mod_abstraction使用正则表达式解析器将一个新的API函数链接到

以下是两个示例:

```
tts_path(<text>)可以重写为python(tts2wav <text>)
user_password(<id>)可以重写为user_data(<id> param password)
user_password(<id>)`可以重写为user_data(<id> param password)
```

### Comments:

Expand Down
2 changes: 1 addition & 1 deletion docs/FreeSWITCH-Explained/Modules/mod_avmd_1049372.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ require ESL;
use POSIX;
use Time::HiRes;
# <destination number : test result expectation> 的哈希表
# `<destination number : test result expectation>` 的哈希表
my %numbers = (
503 => "未检测到", # 双频(类似于变化幅度的单频),模式 [0] AVMD_DETECT_AMP
504 => "未检测到",
Expand Down
22 changes: 11 additions & 11 deletions docs/FreeSWITCH-Explained/Modules/mod_commands_1966741.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1691,27 +1691,27 @@ freeswitch@sidious> uuid_display f4053af7-a3b9-4c78-93e1-74e529658573 Fred Jones

停止忽略早期媒体的处理,即当 ignore_early_media=true 时,停止忽略来自 Leg B 的早期媒体,并正常响应。

用法:uuid_early_ok <uuid>
用法:`uuid_early_ok <uuid>`

### uuid_exists

检查给定的 UUID 是否存在。

用法:uuid_exists <uuid>
用法:`uuid_exists <uuid>`

返回 true 或 false。

### uuid_flush_dtmf

清除队列中的 DTMF 数字。

用法:uuid_flush_dtmf <uuid>
用法:`uuid_flush_dtmf <uuid>`

### uuid_fileman

管理从音频文件播放到通道的音频。

用法:uuid_fileman <uuid> <cmd:val>
用法:`uuid_fileman <uuid> <cmd:val>`

命令包括:

Expand All @@ -1735,31 +1735,31 @@ uuid_fileman 0171ded1-2c31-445a-bb19-c74c659b7d08 seek:+3000

从通道获取变量。

用法:uuid_getvar <uuid> <varname>
用法:`uuid_getvar <uuid> <varname>`

### uuid_hold

将通道放置在保持状态。

用法:

uuid_hold <uuid> 将呼叫保持
uuid_hold off <uuid> 关闭呼叫保持
uuid_hold toggle <uuid> 根据当前呼叫状态切换呼叫状态
`uuid_hold <uuid> ` 将呼叫保持
`uuid_hold off <uuid> ` 关闭呼叫保持
`uuid_hold toggle <uuid> ` 根据当前呼叫状态切换呼叫状态

### uuid_kill

重置指定的 <uuid> 通道。
重置指定的` <uuid>` 通道。

用法:uuid_kill <uuid> [cause]
用法:`uuid_kill <uuid> [cause]`

如果未指定 cause code,则使用 NORMAL_CLEARING。

### uuid_limit

应用或更改指定 uuid 的限制。

用法:uuid_limit <uuid> <backend> <realm> <resource> [<max>/[interval]] [number [dialplan [context]]]
用法:`uuid_limit <uuid> <backend> <realm> <resource> [<max>/[interval]] [number [dialplan [context]]]`

请参见[mod\_dptools: limit](./mod-dptools/3375201.mdx#db)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ run()->
-export([start/0,run/0,launch/1]).
```

```erl
start()->
%% 启动我们的处理器进程,并
Pid = spawn(?MODULE, run, []),
Expand Down Expand Up @@ -853,6 +854,7 @@ start()->
  register(?MODULE,Pid).
```

```erl
run()->
%% 等待FreeSWITCH发送的消息。
receive
Expand Down

0 comments on commit 0ec63c5

Please sign in to comment.