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(); }; }
Vos Solutions Voix-Data !
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.
hi Nicolas I have the same problem here, jimmy and Java Rockx they sent me some advice last week but I cant try yet... -----> Hi Rafael: It seems has two way to meet your requirement (1)use external script http://lists.iptel.org/pipermail/serusers/2005-February/015477.html (2)use avpops module http://www.voice-system.ro/docs/avpops/ Hope it's useful ...
Jimmy
.... This should do the trick. This code uses AVPOPS to determine if the source and destination IP addresses are the same.
avp_write("$ruri/domain", "i:33"); if (avp_check("i:33", "eq/$src_ip/i")) { # RTP proxy is not needed because caller # and caller are behind the same NAT # so set a flag or something to indicate that # mediaproxy/rtpproxy are not needed }; avp_delete("i:33");
On Mon, 21 Mar 2005 12:19:52 +0100, Nicolas Ruiz nruiz@vivaction.com wrote:
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(); }; }
Vos Solutions Voix-Data !
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.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers