Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhailimei1234 committed Jan 11, 2024
1 parent b0dc4fc commit cd0d6f1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
## 1\. lcr.sh 是每天由 cron 调用的动作脚本,它将所有 Perl 脚本组合在一起

* cron entry

```xml
45 01 * * * freeswitch ( cd /opt/freeswitch/scripts/lcr && ./lcr.sh )
50 01 * * * freeswitch (cat /tmp/data.sql | /usr/bin/sqlite3 /opt/freeswitch/conf/databases/fslcr.db)
```

* lcr.sh

```xml
#!/bin/bash
pushd /opt/freeswitch/scripts/lcr
Expand Down Expand Up @@ -105,6 +108,8 @@ close FILE;
```

# pennytel 按澳元计价,所以需要转换成美元

```xml
$usdrate=0;
$audrate=0;
open (FILE, "rates.txt");
Expand Down Expand Up @@ -230,7 +235,6 @@ close FILE;

$tousd = $eurrate / $usdrate;
#print "EUR -> USD $tousd\n";
```

打开 (FILE, $ARGV[0]);
my @values;
Expand Down Expand Up @@ -280,6 +284,7 @@ while (<FILE>) {
# 英国 - 移动,44,7#,0.27
# 英国 - 其他,44,8# 9#,0.32
# 英国 - 个人,44,70#,0.50
```

```xml
#!/usr/bin/perl
Expand Down Expand Up @@ -312,6 +317,8 @@ close (FILE);
```

# 使用货币报告的最后一个值

```xml
foreach $num (0 .. $#header)
{
$rate = "$header[$num] $values[$num]\n";
Expand All @@ -321,8 +328,6 @@ foreach $num (0 .. $#header)
}
}
exit;


```

## 6. 将csv文件转换为可导入数据库的SQL格式([turncsvintosql.pl](http://turncsvintosql.pl))
Expand Down
38 changes: 27 additions & 11 deletions docs/FreeSWITCH-Explained/Modules/mod_rtmp_5046427.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,52 @@ freeswitch> rtmp status

查看配置文件的状态:

freeswitch> rtmp status profile &lt;profile>
```xml
freeswitch> rtmp status profile <profile>
```

查看配置文件上的会话:

freeswitch> rtmp status profile &lt;profile> sessions
```xml
freeswitch> rtmp status profile <profile> sessions
```

查看配置文件上的注册信息:

freeswitch> rtmp status profile &lt;profile> reg
```
freeswitch> rtmp status profile <profile> reg
```

### 配置文件

启动、停止或重新启动配置文件:

freeswitch> rtmp profile &lt;profile> start
freeswitch> rtmp profile &lt;profile> stop
freeswitch> rtmp profile &lt;profile> restart
```xml
freeswitch> rtmp profile <profile> start
freeswitch> rtmp profile <profile> stop
freeswitch> rtmp profile <profile> restart
```

重新扫描配置文件:

freeswitch> rtmp profile &lt;profile> rescan
```xml
freeswitch> rtmp profile <profile> rescan
```

### 会话

关闭会话:

freeswitch&gt; rtmp session &lt;session&gt; kill
```xml
freeswitch> rtmp session <session> kill
```

登录或注销会话:

freeswitch&gt; rtmp session &lt;session&gt; login
freeswitch&gt; rtmp session &lt;session&gt; logout
```xml
freeswitch> rtmp session <session> login
freeswitch> rtmp session <session> logout
```

### 联系人

Expand All @@ -78,7 +92,9 @@ rtmp_contact profile/user@domain[/[!]nickname]

可以使用此来桥接呼叫至用户:

&lt;action application="bridge" data="${rtmp_contact($${rtmp_profile}/${dialed_ext}@$${domain})}"/>
```xml
<action application="bridge" data="${rtmp_contact($${rtmp_profile}/${dialed_ext}@$${domain})}"/>
```

## 延迟

Expand Down

0 comments on commit cd0d6f1

Please sign in to comment.