简体   繁体   English

Twilio 仅向“免费”SIP 端点发送信号

[英]Twilio only signal "free" SIP endpoints

I implemented twilio direct SIP calling with a SIP-Domain for in- and outbound with multiple SIP Clients using twilio functions without any additional PBX.我使用 twilio 功能实现了带有 SIP 域的 twilio 直接 SIP 呼叫,用于多个 SIP 客户端的入站和出站,无需任何额外的 PBX。 Currently SIP inbound is configured in parallel, so all registered and online SIP endpoint ring.目前 SIP 入站是并行配置的,所以所有注册和在线的 SIP 端点都会响铃。 This is achieved with the following code fragment:这是通过以下代码片段实现的:

const dialer = twiml.dial({
            ringTone: "de",
            action: "https://...",
            timeout: 25,
            answerOnBridge: true,
            callerId: event.From
        })
        
dialer.sip('sip:accounta@demo1.sip.twilio.com');
dialer.sip('sip:accounta@demo2.sip.twilio.com');
dialer.sip('sip:accounta@demo3.sip.twilio.com');

Which is called on "Incoming Call" of the SIP-Domain.在 SIP 域的“传入呼叫”上调用。 This works fine.这很好用。

Currently all SIP phones ring when a new call comes in. Even the once which already are in an active call.目前所有的 SIP 电话都会在有新电话打进来时响铃。即使是已经在通话中的电话也是如此。 Is there a way to only "ring" the SIP Endpoints currently not in a call, without running a full PBX?有没有办法只“响铃”当前不在通话中的 SIP 端点,而无需运行完整的 PBX? Maybe something like this?也许是这样的?

  • Use Twilio Sync to "collect" the data, of all changing call status.使用 Twilio Sync 来“收集”所有变化的呼叫状态的数据。 Then use this data to only add the "free" sip endpoints in the code fragment above然后使用此数据仅在上面的代码片段中添加“免费”sip 端点

  • Find a SIP softphone software, which "logs out" of SIP during a call.找到一个 SIP 软电话软件,它会在通话期间“注销”SIP。 Doing this manually with MicroSIP client currently already works, but the agents need to manually login/logout on each call.使用 MicroSIP 客户端手动执行此操作目前已经可行,但代理需要在每次呼叫时手动登录/注销。

Any better solutions to this?对此有更好的解决方案吗?

Find a SIP softphone software, which "logs out" of SIP during a call.找到一个 SIP 软电话软件,它会在通话期间“注销”SIP。

Softphone.Pro can "log out" while on call or ACW. Softphone.Pro 可以在通话或 ACW 时“注销”。 It sends the SIP REGISTER Expires:0 message to your SIP server which means "unregister me immediately".它将 SIP REGISTER Expires:0 消息发送到您的 SIP 服务器,这意味着“立即注销我”。

"UnregAccsForNA=1" configuration file parameter is what you need. “UnregAccsForNA=1”配置文件参数是你所需要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM