<div dir="ltr"><div dir="ltr">Dear Chester,</div><div dir="ltr"><br></div><div dir="ltr">Try to move cluster_check_addr() and also copy lookup() too and put them higher in the script for example</div><div>before ---> if ( !(is_method("REGISTER") ) ) {...</div><div dir="ltr"><br></div><div>Vasilios</div><div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="padding-top:5px">
</div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 11, 2022 at 2:30 PM Chester Lee <<a href="mailto:chester@zigbang.com">chester@zigbang.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Vasilios Tzanoudakis and users, <div>Thank you for your answer.</div><div>I tried to add cluster_check_addr() in my script but I see the same symptom as before.</div><div>---------------------------------------</div><div>route {</div><div>....</div><div><br></div><div> # do lookup with method filtering<br> $var(lookup_flags) = "m";<br><br> if (cluster_check_addr(1, "$si")) {<br> xlog("L_NOTICE", "$rm from cluster, doing local lookup only. retcode=$retcode\n");<br> } else {<br> xlog("L_NOTICE", "$rm from outside, doing global lookup. retcode=$retcode\n");<br> $var(lookup_flags) = $var(lookup_flags) + "g";<br> }<br> if (!lookup("location","$var(lookup_flags)")) {<br> if (!db_does_uri_exist("$ru","subscriber")) {<br> send_reply(420,"Bad Extension");<br> exit;<br> }<br><br> t_reply(404, "Not Found");<br> exit;<br> }<br><br> if (isbflagset("NAT")) setflag("NAT");<br><br> # when routing via usrloc, log the missed calls also<br> do_accounting("db","missed");<br><br> route(relay);<br>}<br><br><br>route[relay] {<br> # for INVITEs enable some additional helper routes<br> if (is_method("INVITE")) {<br> t_on_branch("per_branch_ops");<br> t_on_reply("handle_nat");<br> t_on_failure("missed_call");<br> }<br><br> if (isflagset("NAT")) {<br> add_rr_param(";nat=yes");<br> }<br><br> if (!t_relay()) {<br> send_reply(500,"Internal Error");<br> }<br> exit;<br>}<br></div><div><br></div><div><br></div><div>Or could you check mine attached here?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2022년 5월 11일 (수) 오전 3:28, Vasilios Tzanoudakis <<a href="mailto:vasilios.tzanoudakis@voiceland.gr" target="_blank">vasilios.tzanoudakis@voiceland.gr</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">Dear Chester,</div><div dir="auto"><br></div><div>You should configure your cluster nodes to accept invites from other cluster nodes without doing www or proxy auth.</div><div dir="auto"><br></div><div dir="auto">Use cluster_check_addr() </div><div dir="auto"> <a href="https://opensips.org/html/docs/modules/3.2.x/clusterer.html" target="_blank">https://opensips.org/html/docs/modules/3.2.x/clusterer.html</a> </div><div dir="auto"><br></div><div dir="auto">on top of your script </div><div dir="auto">to check that the call is from cluster and then do the lookup there to route the</div><div dir="auto">call immediately to the user registered;-)</div><div dir="auto"><br></div><div dir="auto">Good luck </div><div dir="auto"><br></div><div dir="auto">Vasilios Tzanoudakis </div><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Στις Τρί, 10 Μαΐ 2022, 18:32 ο χρήστης Chester Lee <<a href="mailto:chester@zigbang.com" target="_blank">chester@zigbang.com</a>> έγραψε:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello everyone, I'd like to ask about my troubles.</div><div><br></div><div>I set up a federate cluster with mongodb with opensips 3.2.5.</div><div><br></div><div>It has 2 nodes - node 1 and node 3.</div><div>1. One UAC which is registered on node 1 makes a call to one UAC which is registered on node 3.</div><div>2. node 1 lookup cachedb and get to know that callee is on node 3.</div><div>3. node 1 sends INVITE to node 3.</div><div>4. node 3 responses 407 with different nonce value.</div><div>5. node 1 just transfer 407 to tje caller with new nonce value from node 3.</div><div>6. The caller sends INVITE with authenticate with nonce value from node 3. But node 1 denies with 407 because the authenticate is not for node 1.</div><div><br></div><div>How can I make a call between different nodes?</div><div><br></div><div>Thank you </div><div>Chester</div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div></div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">
<div style="width:350px;height:140px;padding:17px 50px 20px 1px;background-color:rgb(255,255,255)">
<div>
<span>______</span>
</div>
<br>
<br>
<div style="font-weight:bold;font-family:"Spoqa Han Sans",sans-serif;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:rgb(0,0,0)">
<span style="width:58px;height:27px;font-size:18px">이 기 원</span>
<span style="width:85px;height:19px;margin:0px 9px 7px;font-size:13px">CTO실 / 매니저</span>
</div>
<div style="margin:4px 0px 2px"></div>
<div>
<span style="width:283px;height:19px;font-size:13px;font-weight:normal;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:rgb(19,75,170)">
<span style="font-family:"Spoqa Han Sans",sans-serif;font-weight:bold;color:rgb(0,0,0)">(주)직방 |</span>
<span style="font-size:14px;color:rgb(0,0,0)">010.6479.1321</span>
<span style="color:rgb(0,0,0)">|</span>
<a href="mailto:chester@zigbang.com" style="color:rgb(19,75,170);text-decoration:none" target="_blank">chester@zigbang.com</a>
</span>
</div>
<div>
<a href="http://company.zigbang.com" target="_blank"><img src="https://zeju1gzdfb.execute-api.ap-northeast-2.amazonaws.com/prod/gmail/zigbanglogo/signature" width="258" height="29" style="margin: 23px 24px 0px 1px; width: 258px; height: 29px;"></a>
</div>
</div>
</div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>