asterisk - 通过中继拨出(呼出路由配置)

前情提要:
假定本机IP为:192.168.2.133
注册中继的IP为:192.168.2.113
注册账号:1999
注册密码:Aa111111

pjsip.conf

[trunk-registered](!)
type=registration
retry_interval=60

[trunk-auth](!)
type=auth
auth_type=userpass

[trunk-aor](!)
type=aor

[trunk-endpoint](!)
type=endpoint
context=from-internal
disallow=all
allow=ulaw
allow=alaw
allow=g729

[trunk-identify](!)
type=identify

[1001](endpoint_internal)
auth=1001
aors=1001
outbound_auth=1001
[1001](auth_userpass)
password=1001 ; put a strong, unique password here instead
username=1001
[1001](aor_dynamic)

[1002](endpoint_internal)
auth=1002
aors=1002
[1002](auth_userpass)
password=1002 ; put a strong, unique password here instead
username=1002
[1002](aor_dynamic)

[mytrunk](trunk-endpoint)
outbound_auth=mytrunk
server_uri=sip:1999@192.168.2.113:5060
client_uri=sip:1999@192.168.2.133:5060
contanct_user=1999
[mytrunk](trunk-auth)
password=Aa111111
username=1999
[mytrunk](trunk-aor)
contact=sip:192.168.2.113:5060
[mytrunk](trunk-endpoint)
outbound_auth=mytrunk
aors=mytrunk
from_user=1999
[mytrunk](trunk-identify)
endpoint=mytrunk
match=192.168.2.113


extensions.conf

exten => _9X.,1,Dial(PJSIP/${EXTEN:1}@mytrunk,20)
        same => n,Hangup

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值