On Tuesday 29 December 2009 01:55:27 juergen(a)glowka.de wrote:
Hello,
I'm new here. So I say "hello" to everybody.
Maybe, somebody can help me or push me in the right direction.
If there are Caller and Callee behind the same NAT, so it should
be better, they connect directly (e.g. 192.168.x.1 <-->192.168.x.2),
instead of using the rtp-proxy (this causes a jitter noise) .
I'm using Kamailio 1.5.3 with RTPPROXY 1.2.1.
Has anybody a code snip or a sample kamailio.cfg for me?
I would be thankful for it.
Better than giving you the solution, try to guest it ...
Think a little ... what have in common a REQUEST from UAC A to UAC B if they
are behing THE SAME NAT ROUTER ?
--
Raúl Alexis Betancor Santana
Dimensión Virtual
____________________________________________
Dear Mr. Santana
Thanks for trying to help.
oh, I guess, they've got the same IP-Address ;-)
I found this code-snip in :
dokuwiki/doku.php/examples:caller-callee-behind-same-nat
______________________________________
else if ( isflagset(2) and isflagset(3) )
{
log(1, "Both Clients are behind NAT");
# Store the destination domain into an AVP
avp_printf("$avp(i:450)", "$dd");
if ( avp_check("i:450", "eq/$src_ip/g") )
{
xlog("L_INFO", "2 Clients Behind the Same NAT - Disabling
Mediaproxy");
# Do not use mediaproxy as the clients seem to be behind the same NAT
resetflag(2);
resetflag(3);
}
}
_______________________________________
But this Code-snip contains many mistakes
so I changed it to :
_______________________________________
if ( isflagset(5) and isbflagset(6) )
{
lookup("location");
log(1, "Both Clients are behind NAT");
# Store the destination domain into an AVP
avp_printf("$avp(i:450)", "$dd");
if ( avp_check("$avp(i:450)", "eq/$src_ip/g") )
{
xlog("L_INFO", "2 Behind the Same NAT - Disabling Mediaproxy");
# Do not use mediaproxy as the clients seem to be behind the same NAT
resetflag(5);
resetbflag(6);
}
}
_______________________________________
This seems to work, but I still have got this looping, jittering feeping
noise witch is getting louder and louder ...
Two or three words I can talk, then it sounds, as if a group of Navajo-Indians
gone attack me .... :-)
Could it be the client? I use 2 PDAs, Windows Mobile, Portsip Ver. 2.6
Best Wishes, also for me
Juergen Glowka