下午尝试了下对freeswitch的话务落地,在网友的帮助下终于对接成功,期间遇到不少问题,注意是端口不一致的问题。
一般sip trunk服务提供商会提供有需要密码和不需要密码两种,对方都会询问你的ip和端口来进行绑定,并提供一个ip给你。
下面是不需要密码的配置方法。
1.添加sip 代理网关,注意是external下面:
/usr/local/freeswitch/conf/sip_profiles/external/gw1.xml
2.添加一个dialplan:
/usr/local/freeswitch/conf/dialplan/default/call_out.xml
INVITE sip:0151????????@sip.dyna.cn SIP/2.0
<03/22/09 09:17:44.251077>(b6946bb0)CSA 94 send SIP message(de2b57b2:18094)
SIP/2.0 100 Trying
<03/22/09 09:17:44.284272>(b6946bb0)CSA 94 send SIP message(d205af32:5060)
INVITE sip:0086151????????@210.5.175.50:5060 SIP/2.0
<03/22/09 09:17:44.351038>(b6946bb0)CSA 94 Rcv Message(De:0):(d205af32:5060):
SIP/2.0 100 Trying
<03/22/09 09:17:51.231097>(b6946bb0)CSA 94 Rcv Message(De:0):(d205af32:5060):
SIP/2.0 183 Session Progress
<03/22/09 09:17:51.231178>(b6946bb0)CSA 94 send SIP message(de2b57b2:18094)
SIP/2.0 183 Session Progress
<03/22/09 09:17:55.137242>(b6946bb0)CSA 94 Rcv Message(De:0):(d205af32:5060):
SIP/2.0 200 OK
<03/22/09 09:17:55.137305>(b6946bb0)CSA 94 send SIP message(d205af32:5060)
ACK sip:310049@210.5.175.50:5060 SIP/2.0
<03/22/09 09:17:55.137373>(b6946bb0)CSA 94 send SIP message(de2b57b2:18094)
SIP/2.0 200 OK
<03/22/09 09:17:55.167625>(b6946bb0)CSA 94 Rcv Message(De:0):(de2b57b2:18094):
ACK sip:0151????????@58.30.224.49:5060 SIP/2.0
其中,CSA 94是软交换,de2b57b2:18094是客户端,d205af32:506是落地
最新评论