<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
Ideally you should provide a network capture (pcap) from the
OpenSIPS server, covering both incoming and outgoing traffic -
this is the only way to understand what is wrong with the call.<br>
<br>
As attachments are limited to 40K here, consider using some
pastebin or other file sharing service.<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 11/13/23 1:26 PM, Sreeram Narayanan
via Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHSZ+1jC60eFdbnRJbdH79YCr+nOA8FoxgBHdZjsvqp-ouCq5A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I am trying to use OpenSIPs with the load_balancer module
to balance inbound calls between 2 Asterisk servers. The setup
sits behind a NAT. The OpenSIPs server has a public IP and a
private IP. When an INVITE arrives, it can forward it to one
of the Asterisk servers and Asterisk responds with a 200 OK.
The problem starts when I receive the ACK (from Twilio). The
ACK starts bouncing between the public IP and Private IP of
the OpenSIPs server. It doesn't reach the Asterisk server and
eventually times out. I hope someone can help me with this.
Thanks in advance.</div>
<div><br>
</div>
<div>Here is my configuration:</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">#######
Routing Logic ########<br>
route {<br>
<br>
if (is_method("INVITE")) {<br>
rtpproxy_engage();<br>
}<br>
<br>
if ($rm=="INVITE") {<br>
<br>
lb_start_or_next(1,"pstn");<br>
}<br>
<br>
t_check_trans();<br>
record_route();<br>
<br>
t_on_failure("GW_FAILOVER");<br>
<br>
# route the request<br>
if (!t_relay()) {<br>
sl_reply_error();<br>
}<br>
<br>
exit;<br>
}<br>
<br>
route[RELAY] {<br>
if (!t_relay()) {<br>
sl_reply_error();<br>
}<br>
exit;<br>
}<br>
<br>
failure_route[GW_FAILOVER] {<br>
if (t_was_cancelled()) {<br>
exit;<br>
}<br>
# failure detection with redirect to next available trunk<br>
if (t_check_status("(408)|([56][0-9][0-9])")) {<br>
xlog("Failed trunk $rd/$du detected \n");<br>
}<br>
}<br>
</blockquote>
<div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">- Sreeram</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>