Chinaunix

标题: 有人对Asterisk SIP NAT做研究吗 [打印本页]

作者: hoowa    时间: 2006-12-15 09:26
标题: 有人对Asterisk SIP NAT做研究吗
从chan_sip.c看到对于NAT模式的设置有这么几种。但是没有详细的分析情况。不知道谁对这个比较了解。


        switch(nat) {
        case SIP_NAT_NEVER:
                return "No";
        case SIP_NAT_ROUTE:
                return "Route";
        case SIP_NAT_ALWAYS:
                return "Always";
        case SIP_NAT_RFC3581:
                return "RFC3581";
        default:
                return "Unknown";
        }
作者: hoowa    时间: 2006-12-15 09:54
NEVER        nat=never                不使用rport模式
ROUTE        nat=route                Route模式
ALWAYS        nat=yes(any)        使用rport+route模式
RFC3581        nat=-1                        通过rport指定内部机器的port
作者: zhulizhong    时间: 2006-12-17 00:31
标题: You have to check the Network enviroment!
Hello, friend:
as i know, you have to check the NAT problem based on your needs.
some good router can resolve the NAT probme. you also can check the RanchNetwork Box. it supports the NAT solution.
Regards!
zhulizhong
作者: hoowa    时间: 2006-12-18 11:33
thank you




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2