HI,
I have installed SER
0.8.14 + MEDIAPROXY : when I make a call with 2 UA on different NAT, it's
good.
But, when the UAs
are behind the same NAT, there are no sound. The RTP packets go to the
MEDIAPROXY but NO SOUND.
Does someone know
how to solve this problem???
Best
Regards
NICOLAS
RUIZ
Thats my conf
:
if (method=="REGISTER")
{
# Mark
as NAT'ed
if (client_nat_test("3"))
{
setflag(2);
force_rport();
fix_contact();
};
if (!www_authorize("sip.vivaction.net", "subscriber"))
{
www_challenge("sip.vivaction.net",
"0");
break;
}
else if (!check_to())
{
sl_send_reply("403", "Username!=To not
allowed");
break;
};
if (!save("location"))
{
sl_reply_error();
};
break;
};
if (method == "BYE" || method == "CANCEL")
{
end_media_session();
};
if (loose_route()) {
if
(method=="INVITE" || method=="ACK")
{
use_media_proxy();
};
# end media session for BYE and
CANCEL is done above
# before
entering the loose route. no need to call it
here
t_relay();
break;
};
#
Force subsequent messages to pass trough this proxy
if
(method == "INVITE") {
record_route();
};
if (client_nat_test("3") && !search("^Record-Route:"))
{
# Mark as
NAT'ed
force_rport();
fix_contact();
};
if (method=="INVITE") {
t_on_reply("1");
};
if (is_uri_host_local()) {
if
(!lookup("location"))
{
sl_send_reply("404", "User not
found");
break;
};
};
if (method=="INVITE" || method=="ACK")
{
use_media_proxy();
};
if (!t_relay()) {
if
(method=="INVITE" || method=="ACK")
{
end_media_session();
};
sl_reply_error();
};
}
failure_route[1]
{
end_media_session();
}
onreply_route[1]
{
if (status=~"(183)|(2[0-9][0-9])")
{
if (client_nat_test("1"))
{
fix_contact();
};
use_media_proxy();
};
}
Nicolas Ruiz
Service Technique Ligne
directe : + 33 (0)
1 56 38 39 71 Fax :+ 33 (0) 1 47 24 74 77 nruiz@vivaction.com |
Immeuble Plein Ouest 177 av. Georges Clemenceau 92024 Nanterre -
France Tel : 0 811 02 6000 www.vivaction.com |
________________________________________________________________________________________________________________________
This e-mail and the information it contains are
confidential and legally protected by law. Only access by the intended recipient
is authorized. Review, distribution,reproduction, publication or other use of
this e-mail is prohibited.
Cet e-mail et les informations qu'il contient
sont confidentiels et protégés par la loi. L'accès à ce message n'est autorisé
qu'au destinataire de celui-ci. Toute modification,distribution, reproduction,
publication, ou autre utilisation de cet e-mail est formellement
interdite.