<html><body><div style="font-family: lucida console,sans-serif; font-size: 12pt; color: #000000"><div>In that setup freeswitch boxes directly connected to opensips LAN side and opensips listen for for two interfaces internal and external. UDP and TCP.</div><div><br data-mce-bogus="1"></div><div>volga629</div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Bogdan-Andrei Iancu" <bogdan@opensips.org><br><b>To: </b>"OpenSIPS users mailling list" <users@lists.opensips.org>, "Slava Bendersky" <volga629@networklab.ca><br><b>Sent: </b>Monday, October 29, 2018 2:13:06 PM<br><b>Subject: </b>Re: [OpenSIPS-Users] SUBSCRIBE<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><tt>Hi Slava,<br>
<br>
Maybe the same destination may be reached (from the IP routing
table perspective) via multiple interfaces like via interface A
and interface B - and OS (via mhomed) selected interface A , but
OpenSIPS listen only on B.<br>
<br>
Such a setup may lead to the error you listed - OS picking up for
routing a local interface that is not used by OpenSIPS.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2018
<a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/" target="_blank">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
<div class="moz-cite-prefix">On 10/29/2018 04:10 PM, Slava Bendersky
wrote:<br>
</div>
<blockquote cite="mid:1322942341.64749.1540822238950.JavaMail.zimbra@skillsearch.ca">
<div style="font-family: lucida console,sans-serif; font-size:
12pt; color: #000000">
<div>That error message in log </div>
<div><br>
</div>
<div>
<div>Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]:
ERROR:core:get_out_socket: no socket found</div>
<div>Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]:
ERROR:tm:t_uac: no corresponding socket for af 2</div>
<div>Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]:
ERROR:pua:send_publish_int: failed to send PUBLISH</div>
<div>Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]:
ERROR:pua_dialoginfo:dialog_publish: sending publish failed
for pres_uri [<a class="moz-txt-link-freetext" href="sip:106@domain.com:5160" target="_blank">sip:106@domain.com:5160</a>] to server []</div>
<div>Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]:
ERROR:core:get_out_socket: no socket found</div>
<div>Oct 29 09:00:16 vprx00 /usr/sbin/opensips[1506]:
ERROR:tm:t_uac: no corresponding socket for af 2</div>
</div>
<div><br>
</div>
<div>LAN side is UDP and WAN side TCP. Multi home environment. </div>
<div>volga629</div>
<hr id="zwchr">
<div><b>From: </b>"Slava Bendersky"
<a class="moz-txt-link-rfc2396E" href="mailto:volga629@networklab.ca" target="_blank"><volga629@networklab.ca></a><br>
<b>To: </b>"OpenSIPS users mailling list"
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org" target="_blank"><users@lists.opensips.org></a><br>
<b>Sent: </b>Monday, October 29, 2018 11:01:42 AM<br>
<b>Subject: </b>[OpenSIPS-Users] SUBSCRIBE<br>
</div>
<div><br>
</div>
<div>
<div style="font-family: lucida console,sans-serif; font-size:
12pt; color: #000000">
<div>Hello Everyone,</div>
<div>What possible cause that opensips generate 500 error on
SUBSCRIBE </div>
<br>
<div>
<div>#### Presence</div>
<div>loadmodule "presence.so"</div>
<div>loadmodule "presence_mwi.so"</div>
<div>loadmodule "presence_xml.so"</div>
<div>loadmodule "presence_dialoginfo.so"</div>
<div>loadmodule "presence_callinfo.so"</div>
<div>loadmodule "pua.so"</div>
<div>loadmodule "pua_dialoginfo.so"</div>
<div>loadmodule "xcap.so"</div>
<div>modparam("presence|xcap|pua","db_url",")</div>
<div>#modparam("presence","server_address",<a class="moz-txt-link-rfc2396E" href="sip:proxy@" target="_blank">"sip:proxy@"</a>) <span style="color: #000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal;
orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; text-decoration-style:
initial; text-decoration-color: initial; display:
inline !important; float: none;">multi home </span></div>
<div>modparam("presence", "clean_period", 30)</div>
<div>modparam("presence", "mix_dialog_presence", 1)</div>
<div>modparam("presence_xml", "force_active", 1)</div>
<div>#modparam("pua_dialoginfo", "presence_server",
"<a class="moz-txt-link-freetext" href="sip:sbc@" target="_blank">sip:sbc@</a>) multi home</div>
</div>
<br>
<br>
<div>
<div>2018/10/29 08:50:30.061342 190.240.46.242:36868 ->
190.248.157.3:5084</div>
<div>SUBSCRIBE <a class="moz-txt-link-freetext" href="sip:101@domain.tld:5160" target="_blank">sip:101@domain.tld:5160</a> SIP/2.0</div>
<div>Via: SIP/2.0/TCP
192.168.1.65:19464;branch=z9hG4bK1855278236;rport;alias</div>
<div>From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@domain.tld:5160></a>;tag=473433483</div>
<div>To: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@domain.tld:5160></a></div>
<div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:733815006-19464-119@BJC.BGI.B.GF" target="_blank">733815006-19464-119@BJC.BGI.B.GF</a></div>
<div>CSeq: 21200 SUBSCRIBE</div>
<div>Contact:
<a class="moz-txt-link-rfc2396E" href="sip:101@192.168.1.65:19464;transport=tcp" target="_blank"><sip:101@192.168.1.65:19464;transport=tcp></a></div>
<div>X-Grandstream-PBX: true</div>
<div>Max-Forwards: 70</div>
<div>User-Agent: Grandstream GXP1760W 1.0.1.74</div>
<div>Expires: 432000</div>
<div>Supported: replaces, path, timer</div>
<div>Event: message-summary</div>
<div>Accept: application/simple-message-summary</div>
<div>Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE,
NOTIFY, INFO, REFER, UPDATE, MESSAGE</div>
<div>Content-Length: 0</div>
<br>
<br>
<br>
<div>2018/10/29 08:50:30.062338 190.248.157.3:5084 ->
190.240.46.242:36868</div>
<div>SIP/2.0 500 Server error occurred (1/SL)</div>
<div>Via: SIP/2.0/TCP
192.168.1.65:19464;received=190.240.46.242;branch=z9hG4bK1855278236;rport=36868;alias</div>
<div>From: <a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@domain.tld:5160></a>;tag=473433483</div>
<div>To:
<a class="moz-txt-link-rfc2396E" href="sip:101@domain.tld:5160" target="_blank"><sip:101@domain.tld:5160></a>;tag=a3f6a7240e26af61ce52d7ac2261cc82.ee28</div>
<div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:733815006-19464-119@BJC.BGI.B.GF" target="_blank">733815006-19464-119@BJC.BGI.B.GF</a></div>
<div>CSeq: 21200 SUBSCRIBE</div>
<div>Server: OpenSIPS (3.0.0-dev (x86_64/linux))</div>
<div>Content-Length: 0</div>
</div>
<br>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br><br></div></div></body></html>