<div dir="ltr">I think nginx web server is well designed daemon for thousand of clients.<br>As example <a href="https://www.scalescale.com/tips/nginx/nginx-benchmarking-using-siedge/#">https://www.scalescale.com/tips/nginx/nginx-benchmarking-using-siedge/#</a><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">ср, 4 янв. 2017 г. в 0:51, Sergey Safarov &lt;<a href="mailto:s.safarov@gmail.com">s.safarov@gmail.com</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">ср, 4 янв. 2017 г. в 0:03, Alexandru Covalschi &lt;<a href="mailto:568691@gmail.com" class="gmail_msg" target="_blank">568691@gmail.com</a>&gt;:<br class="gmail_msg"></div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div dir="auto" style="word-wrap:break-word" class="gmail_msg">&gt;But FreeSwitch wants SIP headers &quot;X-AUTH-IP&quot; and &quot;X-AUTH-PORT&quot; in every SIP message not only connection establishing<br class="gmail_msg"></div></div></blockquote></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div dir="auto" style="word-wrap:break-word" class="gmail_msg">First of all Freeswitch doesn&#39;t require those headers.</div></div></blockquote></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div class="gmail_msg">This header required to auth particular SIP/WebRTC clients by IP addresses via proxy daemons.<br class="gmail_msg"><br class="gmail_msg"></div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div dir="auto" style="word-wrap:break-word" class="gmail_msg">Well for that you should use STUN and set that in your clients application. Another way is to use Kamailio, yes, it can add those on the fly, but again - you must put it instead of the proxy server (which you <br class="gmail_msg"><div class="gmail_msg">
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg">may actually want to do as it is a SIP proxy by-desing and it works with websockets pretty fine).</div></div></div></div></blockquote></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg"> If i place Kamailio instead of http proxy server, then i must have two entry points:</div><div class="gmail_msg">1) for http trafic - http server;</div><div class="gmail_msg">2) web-socket trafic - Kamailio.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">But i wants avoid configuration with more than one entry point.</div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Sergey</div></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div dir="auto" style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg">________________________________</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg">Alexandru Covalschi</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg">VoIP Engineer and System Administrator<br class="gmail_msg">tel: <a href="tel:+373%20673%2098%20493" value="+37367398493" class="gmail_msg" target="_blank">+373 673 98 493</a></div>
</div>
<br class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">3 янв. 2017 г., в 22:47, Sergey Safarov &lt;<a href="mailto:s.safarov@gmail.com" class="gmail_msg" target="_blank">s.safarov@gmail.com</a>&gt; написал(а):</div></blockquote></div></div></div><div style="word-wrap:break-word" class="gmail_msg"><div dir="auto" style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><br class="m_-787107351492546270m_-161698961021680959Apple-interchange-newline gmail_msg"><div class="gmail_msg"><div class="gmail_msg" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Then you will try cofigure Kamailio between  NGINX and FreeSwitch. In this case Kamailio can parce http headers and add requred SIP header.</div><div class="gmail_msg" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Are you can suggest other way to publish FreeSwitch socket on same port with http server?</div><br class="m_-787107351492546270m_-161698961021680959Apple-interchange-newline gmail_msg"></div></blockquote></div></div></div>_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div></div></blockquote></div>