[OpenSIPS-Users] Opensips and RTP-proxy

Andrew Pogrebennyk andrew.pogrebennyk at portaone.com
Tue Oct 14 10:54:57 CEST 2008


Vandeweyer, Eric wrote:
>  
> 
> Pls find below the routing part of the opensips config

Eric,
I think that you need to add onreply_route and call force_rtp_proxy()
from there as well. In that case add t_on_reply() after your call to
force_rtp_proxy():

	if (isflagset(6) || isflagset(7))
	{
                 force_rtp_proxy();
		t_on_reply("1");
	};

And add the following reply route:

########################################################################
# Reply route 'base-nat-reply'
########################################################################
onreply_route[1]
{
         if((isflagset(6) || isflagset(7)) &&
status=~"(180)|(183)|2[0-9][0-9]")
         {
                 if (has_body()) {
                         force_rtp_proxy();
                 }
         }
	exit;
}

Or it may be that in your case nat_uac_test ("19") returns the negative
result. It can happen if Contact and Via contain the public IP and the
source port is equal to the port in Via. In any case it's useful if you
post the SIP message and rtpproxy's output: the OpenSIPS<>rtpproxy
protocol is pretty simple to understand.

-- 
Sincerely,
Andrew Pogrebennyk




More information about the Users mailing list