将elastix扩展设置为trunk

时间:2016-12-13 09:32:18

标签: asterisk sip elastix

早上好。 我已经开始在家工作了。我的办公室有一个elastix服务器,我可以从外面访问我的分机(分机:126 ...... BIG的秘密)。我家里也有一台elastix服务器,所以我不想在家里的每部手机上安装第二种配置。是否可以设置办公室pbx在我的elastix上提供我(126)作为TRUNK的扩展,所以我只需使用出站路由来访问办公室扩展,只需预先设置" 6" ..(即家用机器上的6111呼叫办公机器上的分机111)?我已正确设置出站路由(我认为)为:()+ 6 | [ZXX](NO prepend,t作为前缀,ZXX作为匹配模式),但我无法使主干工作。目前我已将其设置为:

trunk name: office-126

username=126
secret=******
type=peer
qualify=yes
insecure=invite
host={office server external ip}
fromdomain={office server external ip}
disallow=all
allow=g729
context=from-trunk
fromuser=126

User context: 126

username=126
secret=****
type=friend
nat=yes
host={office server external ip}
fromdomain={office server external ip}
context=from-internal
disallow=all
allow=g729
dtmfmode=rfc2833
insecure=invite

1 个答案:

答案 0 :(得分:-1)

当然可行。大多数提供商提供SIP扩展,而不是trunk。

您已添加注册字符串

register=>username:password@ip

有关更多信息,请参阅有关sip.conf的手册