Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1240 committed Jan 12, 2024
1 parent b690d3a commit 655ac85
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ BAM! SBC

### 初始代码

```python
#NOTE THIS CODE IS INCOMPLETE! It will run, but not without runtime errors.
"""
PySBC.py - Nik's Python Based Load Balancing SBC for FreeSWITCH
Expand Down Expand Up @@ -133,4 +134,3 @@ fslist = sconfig.server_list
reactor.listenUDP(5060, SipProxy(), listenip)
reactor.run()
```
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ $300 - Oyatel AS(eaf@[oyatel.no](http://oyatel.no))目前无法在通话的A
**当前行为:**

从ASTERSIK邀请到FS的INVITE:
From: "+4711111111" <sip:+4711111111@[xxx.yyyyyyy.no](http://xxx.yyyyyyy.no)\>;tag=as24269fa6
Contact: <sip:[email protected]>
Remote-Party-ID: "+4711111111" <sip:+4711111111@[xxx.yyyyyyy.no](http://xxx.yyyyyyy.no)\>;privacy=off;screen=yes
P-Asserted-Identity: <sip:+4712121212@[xyz.no](http://xyz.no)\>
From: "+4711111111" <sip:+4711111111@[xxx.yyyyyyy.no](http://xxx.yyyyyyy.no)\>;tag=as24269fa6
Contact: <sip:[email protected]>
Remote-Party-ID: "+4711111111" <sip:+4711111111@[xxx.yyyyyyy.no](http://xxx.yyyyyyy.no)\>;privacy=off;screen=yes
P-Asserted-Identity: <sip:+4712121212@[xyz.no](http://xyz.no)\>
Privacy: none


Expand Down Expand Up @@ -117,7 +117,7 @@ $200.00 - Jimmy A. ([email protected]) 一个很好的解决方法是确保Free

创建一个参数给BRIDGE应用程序,可以在X分钟后断开通话。

* $100 - 波长通信公司 - 703-459-7429 -- 联系人: Daniel Corbe &lt;[email protected]>
* $100 - 波长通信公司 - 703-459-7429 -- 联系人: Daniel Corbe <[email protected]>
* $150 额外费用(总计 $250)能够向呼叫者播放提示音(受话者不能听到),以提醒即将断开连接
* 必须在受话方断开连接,而不是呼叫方,以便继续处理 continue\_on\_fail 类型的场景
* $100 - Nikolay Kolev - me \*at\* nikolay \*dot\* com
Expand All @@ -126,31 +126,33 @@ $200.00 - Jimmy A. ([email protected]) 一个很好的解决方法是确保Free

**注意: 完成后,需要支付悬赏金**

* $200 - 波长通信公司 - 703-459-7429 -- 联系人: Daniel Corbe &lt;dcorbe@[gmail.com](http://gmail.com)\>
* $200 - 波长通信公司 - 703-459-7429 -- 联系人: Daniel Corbe <dcorbe@[gmail.com](http://gmail.com)\>
* 如果启用了无媒体模式,呼叫将进入“休眠”状态。这将阻止呼叫在外呼通话腿被正常挂断(即成功桥接)的情况下匹配多个条件块。

例如,以下呼叫计划在未启用无媒体模式时可以正常工作。而在启用无媒体模式时,第二个<condition>块将永远不会执行。

&lt;context name="default">
&lt;extension name="globals" continue="true">
&lt;condition>
&lt;action application="set" data="continue_on_fail=true"/>
&lt;/condition>
&lt;/extension>
&lt;extension name="ld_service" continue=true>
&lt;condition field="destination_number" expression="^1(.+)$">
&lt;action application="set" data="no_media=true"/>
&lt;action application="set" data="hangup_after_bridge=false"/>
&lt;action application="bridge" data="sofia/local_profile/[email protected]:5061" />
&lt;/condition>
&lt;condition field="destination_number" expression="^1(.+)$">
&lt;action application="set" data="no_media=true"/>
&lt;action application="set" data="hangup_after_bridge=true"/>
&lt;action application="bridge" data="sofia/local_profile/[email protected]:5061" />
&lt;action application="bridge" data="sofia/local_profile/[email protected]:5061" />
&lt;/condition>
&lt;/extension>
&lt;/context>
例如,以下呼叫计划在未启用无媒体模式时可以正常工作。而在启用无媒体模式时,第二个`<condition>`块将永远不会执行。

```xml
<context name="default">
<extension name="globals" continue="true">
<condition>
<action application="set" data="continue_on_fail=true"/>
</condition>
</extension>
<extension name="ld_service" continue=true>
<condition field="destination_number" expression="^1(.+)$">
<action application="set" data="no_media=true"/>
<action application="set" data="hangup_after_bridge=false"/>
<action application="bridge" data="sofia/local_profile/[email protected]:5061" />
</condition>
<condition field="destination_number" expression="^1(.+)$">
<action application="set" data="no_media=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" data="sofia/local_profile/[email protected]:5061" />
<action application="bridge" data="sofia/local_profile/[email protected]:5061" />
</condition>
</extension>
</context>
```
## SS7支持
Expand All @@ -163,7 +165,7 @@ $200.00 - Jimmy A. ([email protected]) 一个很好的解决方法是确保Free
## 将SS7整合到FreeSWITCH中 更新
* 我之前的赏金是1000.00美元,并且要求包括OpenSS7。没人理我,所以我再试一次。我把赏金提高到5000.00美元,甚至更多,并且取消了对OpenSS7的要求。如果你有兴趣并且有能力完成这个任务,请联系我,我的邮箱是\[anaji@[openskiesnet.com](http://openskiesnet.com)&lt;mailto:[email protected]>\]
* 我之前的赏金是1000.00美元,并且要求包括OpenSS7。没人理我,所以我再试一次。我把赏金提高到5000.00美元,甚至更多,并且取消了对OpenSS7的要求。如果你有兴趣并且有能力完成这个任务,请联系我,我的邮箱是\[anaji@[openskiesnet.com](http://openskiesnet.com)<mailto:[email protected]>\]。
* 另外有5000.00美元至10000.00美元的赏金来支持开发应用程序将FreeSWITCH打造成一个封装产品。
## 在Windows中支持SIGHUP - CDR/LOG旋转
Expand Down Expand Up @@ -321,8 +323,8 @@ Tony说,这是可能的,只是现在还不支持。我希望通过这个奖
当通话桥接到lcr终端时,将会忽略fail_on_single_reject。拨号计划示例:
&lt;action application="set" data="fail\_on\_single\_reject=INCOMPATIBLE\_DESTINATION"/>
&lt;action application="bridge" data="lcr/test\_profile/2411765512"/>
<action application="set" data="fail\_on\_single\_reject=INCOMPATIBLE\_DESTINATION"/>
<action application="bridge" data="lcr/test\_profile/2411765512"/>
预期行为:呼叫命中INCOMPATIBLE\_DESTINATION并立即反馈给A-leg
Expand All @@ -334,4 +336,4 @@ Tony说,这是可能的,只是现在还不支持。我希望通过这个奖
| -------- | ------ | ---- | -------- | ------------ | ---- | ---------- |
| 241 | 488_REJECTION | 0.00001 | | | ld_carriers 488_REJECTION -1 | [lcr_carrier=488_REJECTION,lcr_rate=0.00001]error/INCOMPATIBLE\_DESTINATION |
| 241 | CARRIER\_1 | 0.40240 | | | ld\_carriers CARRIER\_1 -1 | \[lcr\_carrier=CARRIER\_1,lcr\_rate=0.40240\]sofia/gateway/CARRIER\_1\_GW\_1/+2411765512 |
| --- | ---------- | ------- | | | -------------------------- | ---------------------------------------------------------------------------------------- |
| --- | ---------- | ------- | | | -------------------------- | ---------------------------------------------------------------------------------------- |
Original file line number Diff line number Diff line change
Expand Up @@ -1423,10 +1423,10 @@ a=ptime:20.

如果您只对特定配置文件进行了更改,您可以简单地执行以下操作(**警告**:将中断与此配置文件关联的所有通话):

* sofia配置文件<profilename>重新加载
* sofia配置文件`<profilename>`重新加载

### 安全功能

* [SIP TLS](../../Security/SIP-TLS_9634135.mdx#attachments) 用于安全信令。
* [SRTP](../../../Channel-Variables-Catalog/rtp_secure_media_16353121.mdx#rtp_secure_media) 用于安全媒体传输。
* 上述身份验证部分用于身份验证设置。
* 上述身份验证部分用于身份验证设置。

0 comments on commit 655ac85

Please sign in to comment.