我是Asterisk的新手。并尝试设置基本的PBX,与2个zoiper软电话。
这是我的pjsip配置:
[transport-udp]
type=transport
protocol=udp
bind=192.168.100.12
local_net=192.168.100.0/24
;Templates for the necessary config sections
[endpoint_internal](!)
type=endpoint
context=from-internal
disallow=all
allow=ulaw
[auth_userpass](!)
type=auth
auth_type=userpass
[aor_dynamic](!)
type=aor
max_contacts=1
remove_existing=yes
;Definitions for our phones, using the templates above
[demo-alice](endpoint_internal)
auth=demo-alice
aors=demo-alice
[demo-alice](auth_userpass)
password=pass123
username=demo-alice
[demo-alice](aor_dynamic)
[demo-bob](endpoint_internal)
auth=demo-bob
aors=demo-bob
rtp_symmetric=no
force_rport=no
rewrite_contact=no
[demo-bob](auth_userpass)
password=pass123
username=demo-bob
[demo-bob](aor_dynamic)
[demo-deepak](endpoint_internal)
auth=demo-deepak
aors=demo-deepak
rtp_symmetric=no
force_rport=no
rewrite_contact=no
[demo-deepak](auth_userpass)
password=pass123
username=demo-deepak
[demo-deepak](aor_dynamic)
我有Zoiper软电话安装在IP:192.168.100.16。在注册时,它注册到Ip 43.224.158.252
如果星号cli消息
-- Added contact 'sip:demo-deepak@43.224.158.252:55640;transport=UDP;rinstance=46b5f1e7b0cf811a' to AOR 'demo-deepak' with expiration of 60 seconds
== Endpoint demo-deepak is now Reachable
PS:-整个设置都是用WiFi路由器完成的,没有互联网连接。
提前谢谢。
Zoiper知道星号的IAX2协议,使用它。
另一个选项是在zoiper上使用内部星号的ip,并禁用STUN/TURN支持
http://prntscr.com/r6af7c