FreeSWITCH sip profile使能PFLAG_AUTO_NAT

sip profile的ext-sip-ip配置成`autonat:$S{ext_sip_ip}`

这样就可以使能PFLAG_AUTO_NAT

sofia status profile sip1(配置为$S{ext_sip_ip})和sofia status profile sip2(autonat:$S{ext_sip_ip}),比较下区别:

Name             	sip1
Domain Name      	N/A
Auto-NAT         	false
.
.
.
Name             	sip2
Domain Name      	N/A
Auto-NAT         	true
.
.
.

源码可以参考这三个函数:

  • config_sofia_profile_urls
  • sofia_glue_get_profile_url
  • sofia_glue_check_nat

你可能感兴趣的:(FreeSWITCH,PFLAG_AUTO_NAT)