port=5061 for example
secret=password
type=user
username=PSTN
Leave \
Then add a DID Route of T0298765432 (for example), which goes to your chosen Destination. (Source reference: Colin Swan)
See the alternative configuration that I am currently using for the PSTN Tab in Notes
Also see Eliminating echo problems in Appendix E.4 in Sipura SPA-3000
asterisk gui界面配置及nat 等配置注意事项
1、无法获取用户的状态或者web界面密码用户有误
请配置/etc/asterisk/manager.conf [general] enabled = yes webenabled = yes port = 5038 httptimeout = 60 bindaddr = 0.0.0.0 [sunboil] ;用户名 secret = sunboil ;密码
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan write = system,call,agent,user,config,command,reporting,originate
2、 web界面无法工作
请配置/etc/asterisk/http.conf [general] enabled = yes bindaddr = 0.0.0.0 bindport = 8088 enablestatic = yes 3、 视频、编码、nat 等问题
主要是配置/etc/asterisk/sip.conf,对它的参数进行简单说明: [general]
context=default ;这里设置sip用户的拨号路由,在extensions.conf中的[default] allowoverlap=no ;
bindaddr=0.0.0.0 ;设置为0.0.0.0表示接收所以的port的请求 videosupport=yes 视频的支持
externip=119.145.165.218 如果cs在nat里面必须设置此ip
localnet=10.168.0.0/255.255.0.0 ;这个必须设置对。根据具体测试环境进行相应配置 canreinvite=yes;此配置没有太大的影响; nat=yes;如果有nat那必须配置
? 回复