PJSIP: 为什么在Asterisk 16控制台中我可以拨打电话但是却被记录为不可用?

问题描述 投票:0回答:1

所以我可以拨打电话,但是在控制台中我是离线的。当我注册时,我没有在控制台收到通知,为什么?

PJSIP.conf

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[7000]
type=endpoint
context=from-internal
disallow=all
allow=g729
transport=transport-udp
auth=7000
aors=7000

[7000]
type=auth
auth_type=userpass
password=7000
username=7000

[7000]
type=aor
qualify_timeout=4.0
qualify_frequency=50
max_contacts=1

命令:pjsip 显示端点

 Endpoint:  7000                                                 Unavailable   0 of inf
     InAuth:  7000/7000
        Aor:  7000                                               1
  Transport:  transport-udp             udp      0      0  0.0.0.0:5060

Cmd: pjsip show endpoint 7000

Endpoint:  7000                                                 Unavailable   0 of inf
     InAuth:  7000/7000
        Aor:  7000                                               1
  Transport:  transport-udp             udp      0      0  0.0.0.0:5060
asterisk pjsip
1个回答
0
投票

我必须添加 allow_subscribe=yes ;)

Endpoint:  7000                                                 In use        1 of inf
     InAuth:  7000/7000
        Aor:  7000                                               1
      Contact:  7000/sip:[email protected]:62210;ob           a891149c2b Avail         1.464
  Transport:  transport-udp             udp      0      0  0.0.0.0:5060
    Channel: PJSIP/7000-00000001/Playback                        Up            00:00:03
        Exten: 999                       CLCID: "" <>

0
投票

你可以通过sip响应 "需要认证 "来进行外拨电话,然后再进行认证。

对于呼入电话需要 "注册", 当你的设备使用它的时候, asterisk会记录ipport对用于呼入电话. 如果你的设备没有公共IP(NAT),那么这对ipport可以是任何一个。

© www.soinside.com 2019 - 2024. All rights reserved.