为 asterisk 配置软件电话 - PBX
我已经尝试将我的软件电话(闪烁)配置为与星号一起使用很多天了,但没有成功。我在虚拟机上运行 asterisk 和 Linux 中的软件电话。
我的 sip.conf 文件如下所示:
[general]
context=default
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
[1000]
type=friend
context=phones
host=dynamic
username=1000
在闪烁帐户设置中,我有用户名:1000,域:localhost
这给了我错误 403 禁止。您能帮我弄清楚如何解决这个问题吗?我在与 asterisk 不同的 sip 端口上运行软件电话。
I've been trying to configure my softphone (twinkle) to work with asterisk for many days now and to no avail. I'm running both asterisk and the softphone in linux on a virtual machine.
My sip.conf file looks like this:
[general]
context=default
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
[1000]
type=friend
context=phones
host=dynamic
username=1000
In the twinkle account settings, I have username:1000, domain: localhost
This gives me the error 403 forbidden. Can you please please help me figure out how to fix this? I'm running the softphone on a different sip port from asterisk.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我的回答可能非常弱,但在有人为您提供好的建议之前,您可以先尝试一下。
首先:每当我使用 Asterisk 创建虚拟机来进行一些测试或新的 IVR 时,我总是会遇到防火墙问题。检查你的 Linux 机器上的防火墙是否打开或关闭,因为这可能是一个问题。您必须将其关闭或对其进行正确的设置。
第二:
我查看了我的 sip 配置,它们看起来和你的配置一样,但我总是指定 Secret=some_password 和 host=dynamic。如果您说软件电话位于与 asterisk 不同的 sip 端口上,您可能还想尝试为您的用户添加端口设置。但 5060 是 sip 的常规端口。有关 sip.conf 的更多信息 INFO sip.conf
另外检查您使用的 SIP 电话。一些不受欢迎的产品在设置过程中可能会出现一些问题。我建议您尝试用于 Windows 的 eyeBeam 或用于 Linux 的 Ekiga 应该可以正常工作。
My answer is probably super weak but it will something for you to try before someone will help you with a good advice.
First of all: anytime I create a VM with Asterisk to make some tests or new IVRs I always have issues with a firewall. Check if your firewall is on or off on your linux box since it can be an issue. You have to turn it off or make a proper setup for it.
Secondly:
I look at my sip configurations and they look just like yours but I always specify secret=some_password and host=dynamic. You might also want to try to add a port setting for your user if you say that softphone is on a different sip port from asterisk. but 5060 is a regular port for sip. More info on sip.conf INFO sip.conf
Also check what SIP Phone you are using. Some non-popular ones could have some issues during setting. I would advise you to try eyeBeam for Windows or Ekiga for Linux should work fine.
尝试 sip.conf:
客户端尝试:
用户名:1000
通过:1000
域: ip_of_asterisk_server
Try sip.conf:
And client try:
username: 1000
pass: 1000
domain: ip_of_asterisk_server
我以前也发生过这种事。我所做的只是更改 Twinkle 的配置以使用端口 5061。查看本教程 http://bit.ly/15eACoY
That happened to me before. All I did was change Twinkle's configuration to use port 5061. Check out this tutorial http://bit.ly/15eACoY
我同意您需要更改 Asterisk PBX 端口或 Twinkle 端口。这是因为两者都在同一端口上列出。确保您在配置中给出了秘密,并且也在 Twinkle 中放入了相同的秘密。使用 asterisk 打开 asterisk CLI,并确保注册请求到达 asterisk。
I agree that you need to change the Asterisk PBX port or Twinkle port. It is because both are listing on the same port. Make sure you are giving the secret in the configuration and also putting the same secret in Twinkle. Open the asterisk CLI using asterisk and make sure the registration request is reaching to the asterisk.