Asterisk 常见问题
Asterisk是否支持SIP的PRACK?IMS 等线路需要SIP INVITE 中支持Supported: 100rel"或"Require: 100rel", chan_sip目前不支持,官方有补丁,但是不一定完全可以使用。必须使用Asterisk-13 以上的版本使用pjsip协议栈支持。如果使用chan_SIP,在chan_sip.conf 配置文件中配置prack=yes, 在pjsip.conf 中设置100rel=yes。
Asterisk-13对接VOS:
1)pjsip.conf 配置文件:
[6001]
type=endpoint
context=from-test
disallow=all
allow=ulaw
transport=simpletrans
auth=auth6001
aors=6001
[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0
[auth6001]
type=auth
auth_type=userpass
password=6001
username=6001
[6001]
type=aor
max_contacts=1
contact=sip:6001@192.168.1.102:5060
[mytrunk]
type=registration
transport=simpletrans
outbound_auth=mytrunk
server_uri=sip:60102@VOS IP地址
client_uri=sip:60102@VOS IP 地址
retry_interval=60
support_path=true
contact_user=mytrunk
forbidden_retry_interval=10