<br>Hello Bogdan,<br><br> Thanks for reply my email and just say i fixed the problem.It was exactly like you explain in your email so i did 2 changes in my opensips.cfg: first i preset the record route with my public ip ""record_route_preset("Public IP")" and second i put aliases= "Public IP" and then everything seems work well.<br>
<br>Best Regards and great job!!<br>Nawfel<br> <br> <br><br><div class="gmail_quote">2010/11/25 Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Nawfel,<br>
<br>
The problem is that opensips, as running on a private address, will advertise in Route hdr that private IP (that will be useless when GW tries to route the ACK).<br>
<br>
So, currently, what is the way your opensips is reachable from outside ?<br>
<br>
Best regards,<br>
Bogdan<br>
<br>
Nawfel Oujdi wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">
Hi!!<br>
<br>
I load balancing between 2 asterisk,the load_balancer it s done correctly but the calls hangs up after 10 second approximately. My setup is (just with 1 asterisk):<br>
Cisco GW ----(NAT)----> Opensips --------> Asterisk<br>
<br>
My problem is that opensips never receive the ACK from Cisco GW even if this last one sent it.<br>
<br>
CISCO logs:<br>
ACK sip:911126667@*public ip of asterisk* :5060 SIP/2.0 Route: <sip:*internal ip of opensips*;lr=on;ftag=F40B44FC-18A6;did=1cd.369d0f26><br>
I think cisco reply ACK to Asterisk through the internal ip of opensips cause opensips did not provide Cisco with his public IP (NAT).<br>
<br>
Can somebody help me with this??<br>
<br>
I heard about fix_nated_contact() but i don't know how and where in my script¿Somebody send me examples ?<br>
<br>
<br>
Thank you very much!!<br>
<br>
my opensips.cfg:<br>
route{<br>
<br>
if (!mf_process_maxfwd_header("10")) {<br>
sl_send_reply("483","looping");<br>
exit;<br>
}<br>
if ($rU==NULL) {<br>
# request with no Username in RURI<br>
sl_send_reply("484","Address Incomplete");<br>
exit;<br>
}<br>
if (!has_totag()) {<br>
# initial request<br>
record_route();<br>
} else {<br>
# sequential request -> obey Route indication<br>
loose_route();<br>
t_relay();<br>
exit;<br>
}<br>
if ( is_method("CANCEL") ) {<br>
if ( t_check_trans() )<br>
t_relay();<br>
exit;<br>
}<br>
<br>
<br>
# from now on we have only the initial requests<br>
if (!is_method("INVITE")) {<br>
send_reply("405","Method Not Allowed");<br>
exit;<br>
}<br>
<br>
# detect resources and do balancing<br>
if (method=="INVITE") {<br>
load_balance("1","calls"); }<br>
<br>
# LB function returns negative if no suitable destination (for requested resources) is found,<br>
# or if all destinations are full<br>
if ($retcode<0) {<br>
sl_send_reply("500","Service full");<br>
exit;<br>
}<br>
<br>
xlog("Selected destination is: $du\n");<br>
<br>
# send it out<br>
if (!t_relay()) {<br>
sl_reply_error();<br>
}<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
Aviso legal: Este mensaje electrónico está dirigido únicamente a la(s) dirección(es) indicadas anteriormente; el carácter confidencial, personal e intransferible del mismo está protegido legalmente. Cualquier revelación, uso o reenvío no autorizado, completo o en parte, está prohibido. Si ha recibido este mensaje por equivocación, notifíquelo inmediatamente a la persona que lo ha enviado y borre el mensaje original junto con sus ficheros anexos sin leerlo ni grabarlo, total o parcialmente.<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
15 - 19 November 2010, Edison, New Jersey, USA<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><span style="font-size: 13px; font-family: arial,sans-serif; border-collapse: collapse;">
<div>
<table style="border-width: 0px; padding: 0px;">
<tbody>
<tr>
<td style="border-width: 0px; padding: 0px 15px 0px 0px; margin: 0px; font-family: arial,sans-serif;"><img src="http://egt-lab-design.s3.amazonaws.com/FirmasMail/logotipo-100x100.png"></td>
<td style="border-width: 0px; padding: 0px; margin: 0px; vertical-align: top; font-family: arial,sans-serif;">
<div style="padding: 0px; margin-bottom: 10px;">
<div style="font-weight: bold; font-size: 15px; color: rgb(15, 120, 180); font-family: Arial;">Nawfel Oujdi</div>
<div style="font-size: 12px; color: rgb(100, 101, 103); font-family: Arial;"><b>Ingeniero VoIP</b></div>
<div style="font-size: 12px; color: rgb(100, 101, 103); font-family: Arial;"><a style="color: rgb(15, 120, 180);" href="mailto:noujdi@egtelecom.es" target="_blank">noujdi@egtelecom.es</a></div></div>
<div>
<div style="font-size: 12px; color: rgb(100, 101, 103); font-family: Arial;">EG telecom S.A | <a style="color: rgb(15, 120, 180);" href="http://www.egtelecom.es/" target="_blank">www.egtelecom.es</a></div>
<div style="font-size: 12px; color: rgb(100, 101, 103); font-family: Arial;">Oficina: <b>902 050 080</b></div>
<div style="font-size: 12px; color: rgb(100, 101, 103); font-family: Arial;">Agustín de Foxá, 25 - 9B | 28036 Madrid</div></div></td></tr></tbody></table>
<hr>
<p style="margin-top: 10px; font-size: 10px; color: rgb(163, 162, 167); font-family: Arial;">Aviso
legal: Este mensaje electrónico está dirigido únicamente a la(s)
dirección(es) indicadas anteriormente; el carácter confidencial,
personal e intransferible del mismo está protegido legalmente. Cualquier
revelación, uso o reenvío no autorizado, completo o en parte, está
prohibido. Si ha recibido este mensaje por equivocación, notifíquelo
inmediatamente a la persona que lo ha enviado y borre el mensaje
original junto con sus ficheros anexos sin leerlo ni grabarlo, total o
parcialmente.</p></div></span><br>