Skip to content

Commit

Permalink
fix docs bug (#10)
Browse files Browse the repository at this point in the history
* fix bug

* fix bug

* fix doc bug

* fix bug
  • Loading branch information
FroeverTCong authored Jan 12, 2024
1 parent 2c83c00 commit 8c449ab
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

点击这里展开目录

```xml
<!-- Simple regex examples for FS Conf Call -->
<include>

Expand Down Expand Up @@ -104,6 +105,7 @@
</extension>
</include>
```
(简介)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ while (<FILE>) {
{
$rate = $freelocations{$country};
}
}

```perl
@matchcountries = grep(/$country/,@broadvoice);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

FS具有公共IP &lt;----- 互联网 -----> NAT &lt;----- Audiocodes -----> PSTN

Audiocodes是连接PSTN的网关,但它位于NAT后面,并且NAT设备的公共IP地址是动态的,这意味着ISP随时可以更改。根据我所知,我无法在<gateway>部分注册Audiocodes,因为我甚至没有它的IP地址(动态DNS对我不可行)。解决方案是将Audiocodes注册为一个用户。在这种情况下,Audiocodes的用户名将是"audiocodesgw",因此您需要在directory/default/audiocodesgw.xml中创建一个用户部分,并设置密码为"secret"。
Audiocodes是连接PSTN的网关,但它位于NAT后面,并且NAT设备的公共IP地址是动态的,这意味着ISP随时可以更改。根据我所知,我无法在`<gateway>`部分注册Audiocodes,因为我甚至没有它的IP地址(动态DNS对我不可行)。解决方案是将Audiocodes注册为一个用户。在这种情况下,Audiocodes的用户名将是"audiocodesgw",因此您需要在directory/default/audiocodesgw.xml中创建一个用户部分,并设置密码为"secret"。

```
<include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
<SIP_Remote-Party-ID_2_ group="Ext_2/SIP_Settings">是</SIP_Remote-Party-ID_2_>
<User_ID_2_ group="Ext_2/Subscriber_Information">2000</User_ID_2_>
<Password_2_ group="Ext_2/Subscriber_Information">1234</Password_2_>
```

<Extension_3_ group="Phone/Line_Key_3">已禁用</Extension_3_>
<Short_Name_3_ group="Phone/Line_Key_3">E1000</Short_Name_3_>
<Share_Call_Appearance_3_ group="Phone/Line_Key_3">私密</Share_Call_Appearance_3_>
<Extended_Function_3_ group="Phone/Line_Key_3">fnc=sd+blf;[email protected]</Extended_Function_3_>
</flat-profile>
</flat-profile>
```
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
<stopMediaPort>32766</stopMediaPort>
```

```xml
<sipLines>
<line button="1">
<featureID>9</featureID>
Expand Down Expand Up @@ -233,6 +234,8 @@
</commonProfile>

<loadInformation>SIP45.8-5-2S</loadInformation>
```


```xml
<vendorConfig>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

附:特别感谢MikeJ和bkw在修复我写的AEL拨号计划时的耐心与包容。

```xml
<!-- 这个分页区域可以通过412或23412访问,您可以根据需要进行更改,但请确保在下面的catch-all中也进行更改 -->
    <extension name="KTE绿地分页组">
      <condition field="destination_number" expression="^(412 | 23412)$" break="never">
Expand All @@ -62,6 +63,8 @@

        <!-- 将通话时间控制在几秒钟内。如果呼叫不支持自动应答的电话,您可能希望将此值增加到比5秒更持久的时间。 -->
        <action application="set" data="conference_auto_outcall_timeout=5"/>
```


```xml
<!-- 如果您不需要听到与会者的声音,例如在页面而不是多方对讲中-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Brastel是日本和巴西的VoIP供应商。
<param name="accept­-blind­-auth" value="true"/> 
```

4º) 要重定向呼叫,需要在 /usr/local/freeswitch/conf/dialplan/public.xml 的 <extension name="public\_extensions"> 标签中添加以下行:
4º) 要重定向呼叫,需要在 /usr/local/freeswitch/conf/dialplan/public.xml 的 `<extension name="public_extensions">` 标签中添加以下行:

```xml
<condition field="destination_number" expression="^([USERNAME])$">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ Channel-Call-State: HELD

### 1.19 `CHANNEL_UNHOLD`事件

在uuid_hold off <uuid> 或收到带有a=sendrecv的INVITE SDP之后触发。
`uuid_hold off <uuid>` 或收到带有a=sendrecv的INVITE SDP之后触发。

**CHANNEL_UNHOLD示例**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Default.xml非常详细地进行了注释,但是它在这里再次使用了“do

这就是目录中ID和分机之间的差异所在。1003是一个用户。1003也可以是该用户的分机,但不一定如此。这取决于你。你可以这样做,如果有人拨打数字3,它会转到用户1003。你可以让1003和3都转到用户1003。你也可以不设置,这样就没有人可以呼叫用户1003。然后1003只能拨打电话,这里没有限制。

分机在<extension>标签中获取组,并在内部设置一组<condition>标签。条件标签包含<action>标签。你可以自由组织这些标签,但请记住,这是最灵活的设置方式。当有一个呼叫进来时,它会查看每个分机。在分机中,它按顺序查看条件标签。如果第一个条件不成立,它就会离开该分机,并停止检查之后的条件。
分机在`<extension>`标签中获取组,并在内部设置一组`<condition>`标签。条件标签包含`<action>`标签。你可以自由组织这些标签,但请记住,这是最灵活的设置方式。当有一个呼叫进来时,它会查看每个分机。在分机中,它按顺序查看条件标签。如果第一个条件不成立,它就会离开该分机,并停止检查之后的条件。

##### 带有注释的拨号计划分机示例:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<param name="cdr-log-dir" value="auto"/>
```

'auto' 表示 $PREFIX/logs/conference\_cdr/\<confernece\_uuid>.cdr.xml,非绝对路径表示 $PREFIX/logs/\<value>/\<conference\_uuid>.cdr.xml,绝对路径表示 \<value>/\<conference\_uuid>.cdr.xml。
'auto' 表示 `$PREFIX/logs/conference_cdr/<confernece_uuid>.cdr.xml`,非绝对路径表示 `$PREFIX/logs/<value>/<conference_uuid>.cdr.xml`,绝对路径表示 `<value>/<conference_uuid>.cdr.xml`

设置参数后,需要运行 reloadxml 命令:

Expand Down

0 comments on commit 8c449ab

Please sign in to comment.