Mikhail Lischuk
2013-Feb-15 10:26 UTC
[asterisk-users] Split SIP and RTP to different IP addr
Greetings! I have an Asterisk 1.4 box and due to hardware limitations I cannot upgrade atm. So, as long as I understood from different posts, SIP-TLS is not available for 1.4 Then I set up VPN and route all inter-Asterisk traffic into VPN. But for some reason, with all the RTP inside the VPN I start getting packet losses up to 30%. Maybe CPU is too weak, that is yet to be discovered. What I want to ask is - how can I split SIP and RTP traffic? Say, SIP goes via VPN, but after the call is initiated, servers reinvite each other with real IPs. Is that possible at all? Searching on Internet didn't give me a clue. -- With Best Regards Mikhail Lischuk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130215/aee9ec22/attachment.htm>
Johan Wilfer
2013-Feb-15 11:04 UTC
[asterisk-users] Split SIP and RTP to different IP addr
2013-02-15 11:26, Mikhail Lischuk skrev:> Greetings! > > I have an Asterisk 1.4 box and due to hardware limitations I cannot > upgrade atm. > > So, as long as I understood from different posts, SIP-TLS is not > available for 1.4 > > Then I set up VPN and route all inter-Asterisk traffic into VPN. But for > some reason, with all the RTP inside the VPN I start getting packet > losses up to 30%. Maybe CPU is too weak, that is yet to be discovered. > > What I want to ask is - how can I split SIP and RTP traffic? Say, SIP > goes via VPN, but after the call is initiated, servers reinvite each > other with real IPs. Is that possible at all? Searching on Internet > didn't give me a clue. >You probably wants a SIP Proxy (like Kamailio). This way you can have SIP signalling over VPN or use TLS, and kamailio can talk with asterisk over udp. RTP always flows directly between asterisk and your provider, and sip will use the proxy: SIP: Provider <- (vpn/tls) -> Kamailio <- (udp) -> Asterisk RTP: Provider <- ------------------------------ -> Asterisk Good luck! -- Johan Wilfer
Seemingly Similar Threads
- a2billing
- Interesting attack tonight & fail2ban them
- Asterisk behind NAT and Kamailio --> Internal IP in SDP and not "externip"
- Webrtc and adventures with Asterisk 11
- How to configure asterisk to only accept SIP from kamailio@localhost but exchange RTP on all interfaces?