带Twilio的Vicidial SIP中继 [英] Vicidial SIP Trunk with Twilio

查看:284
本文介绍了带Twilio的Vicidial SIP中继的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关在以下服务器上配置 Twilio弹性SIP中继的分步指南我的家庭服务器.我已经工作了好几天了.仍然无法打出电话.我在twilio上的帐户仍然是试用帐户.感谢大伙们. :(

I need a step by step guide on configuring Twilio Elastic SIP Trunk on my Vicidial Server. I've been working it out for days now. Still can't make an outbound call. My account on twilio is still a trial account. thank you guys. :(

推荐答案

从vicidial管理面板中,转到Admin >> Carriers 添加一个名为"myname"的新运营商 **用任何您喜欢的名称替换"myname",但在整个配置中保持一致.看到我的名字"的任何地方都用相同的值替换.

From vicidial admin panel, go to Admin >> Carriers Add a new carrier named "myname" **Replace "myname" with whatever you like but keep it consistent throughout the config. Anywhere you see "myname" replace it with the same value.

在帐户输入"部分中,使用以下模板:

In the account entry section use this template:

帐户输入:

[myname]
type=peer
secret=mypassword ;if you created a Credentials list in Twilio the password goes here
username=myuser ;the Credentials username goes here
host=mytrunkname.pstn.twilio.com ;in Twilio this is your Termination SIP URI that you created under Elastic SIP Trunk settings
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
insecure=port,invite
fromuser=+18005551234 ;the phone number associated with your trunk goes here
fromdomain=mytrunkname.pstn.twilio.com

全局字符串:DIAL9TRUNK = SIP/myname

拨号方案输入:

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Dial(${DIAL9TRUNK}/+1${EXTEN:2},,To)
exten => _91NXXNXXXXXX,n,Hangup

exten => _9NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXNXXXXXX,n,Dial(${DIAL9TRUNK}/+1${EXTEN:1},,tTo)
exten => _9NXXNXXXXXX,n,Hangup

这将激活以数字9开头的出站呼叫.意思是,先拨9,然后再按常规拨打该号码.为了安全起见,您可能希望删除设置中我的所有评论.如果您需要更多帮助,请回传当前的配置信息,我会尽快做出回应.

That should activate outbound calling prefixed with the number 9. Meaning, dial 9 and then the number you want to dial as usual. You might want to remove all of my comments in the settings just to be safe. If you need any more help post back with your current config and I'll try to respond quickly.

干杯!

这篇关于带Twilio的Vicidial SIP中继的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆