sippy / rtpproxy

The RTPproxy is a high-performance software proxy for RTP streams that can work together with Sippy B2BUA, Kamailio, OpenSIPS and SER.
http://rtpproxy.org
BSD 2-Clause "Simplified" License
408 stars 114 forks source link

wrong interface after early announcement #72

Open MarcoHierl opened 6 years ago

MarcoHierl commented 6 years ago

Dear all, I receive a call from an external IP on my external interface. I make rtpproxy_offer (frocei) to get an early announcement from an announcement server with an internal IP (10.*.*.*). Afterwards I make a 2nd rtpproxy_offer (frocee) for the INVITE to the callee with an external IP. But the SDP in the 2nd INVITE points out my internal IP. thanks and best regards Marco

rtpproxy.log: https://pastebin.com/q5fEXKWH

SIP client          | rtpproxy            | rtpproxy              | SIP client
offer               |                     |                       |              
87.136.67.7:1242  ->| offer               |                       |              
                    |                     |  10.249.152.6:20306 ->| internal announcement server           
                    |                     |                       |              
                    |                     |            answer     |<-  10.249.152.21:16744             
                    |<- 62.155.10.4:29218 |                       |              
                    |                     |                       |              
                    |                     |                       |              

     <============================= announcement =============================>

                    |                     |                       |              
                    |                     |                       |              
                    |                     |                       |              
87.136.67.7:1242  ->|  offer              |                       |    
                    |                     |  10.249.152.6:20306 ->| external callee  
MarcoHierl commented 6 years ago

Hi again, maybe I need to mention that the external IP of my machine is 62.155.10.4. This one I expect to get from rtp proxy after the 2nd "offer". But I get the internal 10.249.152.6: Dec 20 13:13:37 rtp-dtag-hh rtpproxy[20298]: DBUG:GLOBAL:rtpc_doreply: sending reply "20306 10.249.152.6\n" I tried to use flags "a", "s" and "w", but it did't work out. Any help is very appreciated. Thanks and best regards Marco