返回列表 發帖

Mikrotik RouterOS + Asterisk + ComNet Phone

之前用Draytek的router,set ComNet phone + Asterisk是没有问题,但是转用了Mikrotik后就出现问题,而且之前用port 5060,招致全世界的VoIP hackers,现在改了,hackers少了很多。因为ComNet Phone是香港唯一提供廉价的VoIP服务,而Mikrotik的Router又慢慢很多人接受,所以我把最近的经历写出来,那么可以让其他人用来set他的Asterisk Box + ComNet Phone + Mikrotik RouterOS router。

本帖最後由 角色 於 2017-12-26 13:16 編輯

Mikrotik RouterOS + Asterisk + ComNet Phone

Since the VoIP phone service provided ComNet Telecom uses Huawei Softswitch, which is not easily connected to Asterisk box.

In order to get the Asterisk box worked with ComNet phone, the source code for ComNet phone has to be recompiled.

The settings for Asterisk-GUI can be founded in Telecom-cafe.com website:

The settings of Asterisk box (Asterisk 1.8) for the ComNet Phone are:

Supposed the ComNet telephone number is 85212345678 with the password 11223344.

sip.conf

register => 85212345678:11223344@202.0.179.3/85212345678

[ComNetPhone]
type=friend
host=202.0.179.3
username = 85212345678
fromuser=85212345678
fromdomain=202.0.179.3
realm = comnet-telecom.com.hk
secret = 11223344
insecure = port,invite
dtmfmode = auto
canreinvite = no
transport=udp
nat=yes
qualify = yes
disallow = all
allow = ulaw
allow = alaw
context = from-ComNetPhone


extensions.conf

exten => _9.,1,Dial(SIP/${EXTEN:1}@ComNetPhone,,r)
exten => _9.,n,Hangup()

[from-ComNetPhone]
exten => 85212345678,1,Dial(SIP/2001)
exten => 85212345678,n,Hangup()

Remarks:

1. Do not use 5060 as your default SIP port number of the Asterisk server as there are many VoIP hackers in the world. Change any port number that you want, for instance 10003.

2. If you use ordinary router (not Mikrotik RouterOS), you may just do the port forwarding SIP port number (UDP) and RTP port number (UDP) as defined in your Asterisk server.

3. If you are using Mikrotik RouterOS, you need to add a rule to accept the packets from ComNet IP address 202.0.179.3 in the FORWARD chain of Mikrotik RouterOS firewall (ip/firewall/filter).
  1. chain=forward action=accept src-address=202.0.179.3
複製代碼

TOP

备用帖子。

TOP

返回列表