<div dir="ltr">To All, who read this.<div><br></div><div style>Flavio was right about similar IP, I found that .231 IP, that I used for test as separate IP was in the &quot;domain&quot; table and opensips recognized it as local and made loop.</div>
<div style><br></div><div style>So for all - if you are doing schema where opensips and asterisk are on the same host - use different IP addresses for each service, for example use &quot;listen=udp:<a href="http://192.168.1.1:5060">192.168.1.1:5060</a>&quot; and &quot;bindaddr=<a href="http://192.168.1.2:5060">192.168.1.2:5060</a>&quot; for asterisk even if they are on the same host, and make sure you don&#39;t have asterisk&#39;s IP address in aliases or domains in opensips...</div>
<div style><br></div><div style><br></div><div style>Thank you</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/7 Roman Davydov <span dir="ltr">&lt;<a href="mailto:openvoip.co@gmail.com" target="_blank">openvoip.co@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I checked this on different IP addresses and there is a problem:<div><br></div><div>when I use record_route and and loos_route, subsequent ACKs and BYEs are being looped. </div>
<div>But when I do this:</div>
<div><div>    if ($DLG_status!=NULL) {</div><div>        if (!validate_dialog()) {</div><div>            fix_route_dialog();</div><div>        }</div><div>    } </div><div><br></div><div><br></div><div>after loos_route - it goes well with message: </div>

<div><div>ERROR:dialog:dlg_validate_dialog: failed to validate remote contact: dlg=[sip:5555@204.x.x.231:5061] , req=[sip:204.x.x.230;lr;ftag=9c4e2b4d;did=fe9.2a125793]</div><div><br></div><div>But I see that dialogs are being stale and dialog state is always is equal to 3.</div>

<div><br></div><div>Dialog is being released well when I don&#39;t apply fix_route_dialog() and loops happen.</div><div><br></div><div><br></div><div><br></div><div>Then main question is how to get it work well together ???</div>

<div><br></div><div>Thanks in advance</div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/7 Roman Davydov <span dir="ltr">&lt;<a href="mailto:openvoip.co@gmail.com" target="_blank">openvoip.co@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Flavio, thanks for the reply!<div><br></div><div>I accidentally disabled email delivery, just noticed your response</div>

<div><br></div><div><br></div><div>Well, it is bad. </div><div>
<br></div><div><br></div><div>Bogdan, probably you know a good solution to avoid this problem?? I found lots of similar problems in google, but all of them are unresolved how they suppose to be.</div><div>
<br></div><div>I see one solution here: Avoid of using load_balancer and dialog caching, and use stateless &quot;dispatcher&quot; module for this...</div><div><br></div><div><br></div><div>Thank you!</div>
<div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/2 Roman Davydov <span dir="ltr">&lt;<a href="mailto:openvoip.co@gmail.com" target="_blank">openvoip.co@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello!<div><br></div><div>I am having problems with relaying messages. And I guess it is related  to the ports in From/To headers.</div>


<div><br></div><div>My schema is :</div><div><br></div><div>UAC &lt;-&gt;  ( OpenSips:5060 &lt;-&gt; Asterisk:5061 ) </div>
<div><br></div><div>Opensips and asterisk are on the same host (it is a schema requirement - I have another similar mirror). Asterisk works as B2B (canreinvite=no, etc). Let me know please, is it possible to use them so with load_balancer module and correctly process dialogs ?</div>



<div><br></div><div><br></div><div>thanks</div><span><font color="#888888"><div><br></div><div>-- <br><div><br></div><div>Best Regards,</div><div>Roman Davydov,</div><div>site: <a href="http://www.openvoip.co" target="_blank">www.openvoip.co</a></div>



<div>email: <a href="mailto:openvoip.co@gmail.com" target="_blank">openvoip.co@gmail.com</a></div><div>cell: <a href="tel:%2B1%20%28347%29%20637-8703" value="+13476378703" target="_blank">+1 (347) 637-8703</a></div><div>


skype: <a href="http://openvoip.co" target="_blank">openvoip.co</a></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div>Best Regards,</div><div>Roman Davydov,</div><div>site: <a href="http://www.openvoip.co" target="_blank">www.openvoip.co</a></div><div>email: <a href="mailto:openvoip.co@gmail.com" target="_blank">openvoip.co@gmail.com</a></div>


<div>cell: <a href="tel:%2B1%20%28347%29%20637-8703" value="+13476378703" target="_blank">+1 (347) 637-8703</a></div><div>skype: <a href="http://openvoip.co" target="_blank">openvoip.co</a></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div>Best Regards,</div><div>Roman Davydov,</div><div>site: <a href="http://www.openvoip.co" target="_blank">www.openvoip.co</a></div>

<div>email: <a href="mailto:openvoip.co@gmail.com" target="_blank">openvoip.co@gmail.com</a></div><div>cell: <a href="tel:%2B1%20%28347%29%20637-8703" value="+13476378703" target="_blank">+1 (347) 637-8703</a></div><div>
skype: <a href="http://openvoip.co" target="_blank">openvoip.co</a></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div>Best Regards,</div><div>Roman Davydov,</div><div>site: <a href="http://www.openvoip.co" target="_blank">www.openvoip.co</a></div>
<div>email: <a href="mailto:openvoip.co@gmail.com" target="_blank">openvoip.co@gmail.com</a></div><div>cell: +1 (347) 637-8703</div><div>skype: <a href="http://openvoip.co" target="_blank">openvoip.co</a></div>
</div>