使用 SIP 中继的初始单向音频

使用 SIP 中继的初始单向音频

我的网络上有一个 Asterisk 服务器,位于 pfSense 防火墙后面,它有两个中继,一个由我的 ISP 使用 PJSIP 提供用于我的家庭,另一个由第三方使用纯 SIP 提供用于我的企业。

拨号没有问题,但是在家庭中继线(PJSIP)上接听电话时,呼叫者无法听到我的声音,除非他们说话或发出一些声音。

这是我的 PJSIP 配置:

[transport-udp]
type=transport
allow_reload=yes
protocol=udp
bind=0.0.0.0:5060
local_net=192.168.2.0/24
external_media_address=REDACTED
external_signaling_address=REDACTED

[net]
type=registration
transport=transport-udp
outbound_auth=net
server_uri=sip:REDACTED
client_uri=sip:REDACTED@REDACTED
retry_interval=30
forbidden_retry_interval=30
fatal_retry_interval=30
auth_rejection_permanent=no
max_retries=10000
expiration=30
line=yes
endpoint=net
contact_user=REDACTED

[net]
type=auth
auth_type=userpass
username=REDACTED
password=REDACTED

[net]
type=aor
contact=sip:REDACTED:5060
maximum_expiration=30

[net]
type=endpoint
language=au
transport=transport-udp
context=from-net
disallow=all
allow=g722
allow=ulaw
allow=alaw
allow=g729
outbound_auth=net
aors=net
moh_suggest=music
trust_id_inbound=yes
from_user=REDACTED
from_domain=REDACTED
direct_media=no
rewrite_contact=yes

[net]
type=identify
endpoint=net
match=REDACTED

由于有两个 SIP 提供商,因此呼叫是根据我的 ISP 提供的其 SIP 服务器的 IP 地址进行匹配的。

我该如何解决?

相关内容