<div dir="ltr">Hello Everyone,<div><br></div><div>Let's list all possible use cases that various deployments are seeking and I believe that would lead to a good design.</div><div><br></div><div>Please describe the use cases you think would be useful in your environments and I will put them all on a wiki page that can lead to a good solution.</div>
<div><br></div><div><br></div><div>Summary:</div><div>The Goal is for OpenSIPS to be able to retrieve some information from each FreesSWITCH server in the network to provide the most efficient distribution of calls using the load balancer and/or dispatcher modules. Since the traffic information of all the freeswitch servers are collected by one (redundant) opensips server, system wide reporting can also be provided on the opensips servers using tools such as OpenSIPS-CP or other web based type interfaces.</div>
<div><br></div><div>Data useful to be retrieved from freeswitch servers are:</div><div>- Number of Inbound Trunk Active calls</div><div>- Number of Outbound Trunk Active calls</div><div>- Number of Internal only calls such extension to extension intercom calls</div>
<div>- (Maybe) Type of Calls such as fax, voicemail, etc.</div><div>- CPU usage</div><div>- Memory Usage</div><div>- Call duration</div><div>- Critical Errors such as DB or NAS not reachable</div><div>- Offline status to be able to put a freeswitch server to drain mode</div>
<div><br><div class="gmail_extra"><br></div><div class="gmail_extra">Usecases:</div><div class="gmail_extra">- Efficient Load balancing and/or distribution</div><div class="gmail_extra">- System wide reporting</div><div class="gmail_extra">
- Error detection and re-routing</div><div class="gmail_extra">- Generating Alarms due to certain thresh holds</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Possible solutions:</div>
<div class="gmail_extra">- API interface: This would not be dependent on calls to retrieve info. Even if there is no active call, opensips still knows how freeswitch is doing</div><div class="gmail_extra">- Additional SIP headers in 180 Ringing or 200 OK. </div>
<div class="gmail_extra">- Options message</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Please provide your comments to these lists and I will collect them on a wiki page to be used for a possible implementation.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Ali Pey</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 12:07 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Options response is easy enough to do on our side, also, maybe in 18x responses as we already have done acl checks on the invites anyways, its a good place to respond and useful.<div>
<div class="h5"><div><br><div><div>On Feb 25, 2014, at 2:22 AM, William King <<a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a>> wrote:</div><br><blockquote type="cite"><div style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>I'm not sure about the opensips side, but implementing this with<br>custom notify events would be very easy to do in FS. On receipt of a<br>custom notify that has a matching content-type, check the source ip<br>
against an ACL. If it matches, then respond with a notify packet with<br>basically the body filled with the output of the status api command.<br><br>Sure it can probably be optimized from there, but this technique could<br>
be written and working in under an hour.<br><br>Example status api command output:<br><br>UP 0 years, 10 days, 13 hours, 39 minutes, 8 seconds, 359<br>milliseconds, 62 microseconds<br>FreeSWITCH (Version 1.5.8b git fe2a4d6 2014-02-14 00:03:11Z 64bit) is<br>
ready<br>1964 session(s) since startup<br>0 session(s) - peak 32, last 5min 1<br>0 session(s) per Sec out of max 30, peak 5, last 5min 1<br>1000 session(s) max<br>min idle cpu 0.00/96.00<br>Current Stack Size/Max 240K/8192K<br>
<br><br>William King<br>Senior Engineer<br>Quentus Technologies, INC<br>1037 NE 65th St Suite 273<br>Seattle, WA 98115<br>Main: <a href="tel:%28877%29%20211-9337" value="+18772119337" target="_blank">(877) 211-9337</a><br>
Office: <a href="tel:%28206%29%20388-4772" value="+12063884772" target="_blank">(206) 388-4772</a><br>Cell: <a href="tel:%28253%29%20686-5518" value="+12536865518" target="_blank">(253) 686-5518</a><br><a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a><br>
<br>On 02/24/2014 07:15 PM, Alexander Mustafin wrote:<br><blockquote type="cite">I think, that OPTIONS is a good idea, also http-requests can make<br>the same, but imho OPTIONS are easy in use and more clarity.<br><br>Best regards, Alexander Mustafin<span> </span><a href="mailto:mustafin.aleksandr@gmail.com" target="_blank">mustafin.aleksandr@gmail.com</a><br>
<<a href="mailto:mustafin.aleksandr@gmail.com" target="_blank">mailto:mustafin.aleksandr@gmail.com</a>><br><br><br><br><br>23 ????. 2014 ?., ? 15:16, jay binks <<a href="mailto:jaybinks@gmail.com" target="_blank">jaybinks@gmail.com</a><span> </span><br>
<<a href="mailto:jaybinks@gmail.com" target="_blank">mailto:jaybinks@gmail.com</a>>> ???????(?):<br><br><blockquote type="cite">Sure it dosnt have to be SIP at all... and we could use multicast<br>or any other API.. but the point is I use SIP Options anyways to<br>
check the gateway is there, so it may as well have some load<br>related info in the response...<br><br><br><br><br>On 23 February 2014 09:00, Brian West <<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><span> </span><br>
<<a href="mailto:brian@freeswitch.org" target="_blank">mailto:brian@freeswitch.org</a>>> wrote:<br><br>Could you share this in your cluster via multicast and just<br>write down the reports that come in periodically? Could even do<span> </span><br>
unicast. Not sure why it has to be sip at all. -- Brian West<span> </span><br><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><span> </span><<a href="mailto:brian@freeswitch.org" target="_blank">mailto:brian@freeswitch.org</a>> FreeSWITCH<br>
Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter:<br>@FreeSWITCH , @briankwest<span> </span><a href="http://www.freeswitchbook.com/" target="_blank">http://www.freeswitchbook.com</a><br><<a href="http://www.freeswitchbook.com/" target="_blank">http://www.freeswitchbook.com/</a>><span> </span><br>
<a href="http://www.freeswitchcookbook.com/" target="_blank">http://www.freeswitchcookbook.com</a><br><<a href="http://www.freeswitchcookbook.com/" target="_blank">http://www.freeswitchcookbook.com/</a>><br><br>T: <a href="tel:%2B1.918.420.9001" value="+19184209001" target="_blank">+1.918.420.9001</a> <tel:%2B1.918.420.9001> | F:<br>
<a href="tel:%2B1.918.420.9002" value="+19184209002" target="_blank">+1.918.420.9002</a> <tel:%2B1.918.420.9002> | M: +1.918.424.WEST<span> </span><br>iNUM: <a href="tel:%2B883%205100%201420%209001" value="+883510014209001" target="_blank">+883 5100 1420 9001</a> <tel:%2B883%205100%201420%209001> ISN:<br>
410*543<span> </span><a>Skype:briankwest</a><span> </span>PGP Key:<span> </span><a href="http://www.bkw.org/key.txt" target="_blank">http://www.bkw.org/key.txt</a><br>(AB93356707C76CED)<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br>On Feb 22, 2014, at 7:36 AM, Bogdan-Andrei Iancu<span> </span><br><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a><span> </span><<a href="mailto:bogdan@opensips.org" target="_blank">mailto:bogdan@opensips.org</a>>> wrote:<br>
<br><blockquote type="cite">Hey Norman,<br><br>That is possible but not sufficient as: - any party in the call<br>may hangup the call, so BYE may come<br></blockquote>to FS (versus being generated by FS) - but I guess you can add<br>
the header to the 200 OK BYE too<br><blockquote type="cite">- relying on the BYEs (calls) OpenSIPS will not be able to<br></blockquote>get a continuous information on the load - if there are no<br>calls, no new updates on the load are received by OS - this may<br>
be a major problem if one FS instance is used by multiple OS<br>balancers (or handles call from any other parties).<br><blockquote type="cite"><br>Currently we are looking into fetching the load information<br></blockquote>
directly via FS APIs.<br><blockquote type="cite"><br>Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer<br><br><a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com</a><br>
</blockquote><<a href="http://www.opensips-solutions.com/" target="_blank">http://www.opensips-solutions.com/</a>><br><br><br>_________________________________________________________________________<br><br><br></blockquote>
</blockquote>Professional FreeSWITCH Consulting Services:<br><blockquote type="cite"><blockquote type="cite"><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><span> </span><<a href="mailto:consulting@freeswitch.org" target="_blank">mailto:consulting@freeswitch.org</a>><span> </span><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><span> </span><br><<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com/</a>><br>
<br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<span> </span><br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><span> </span><<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com/</a>><br>
<br>Official FreeSWITCH Sites<span> </span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>><span> </span><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
<<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org/</a>><span> </span><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a>><br>
<br>FreeSWITCH-users mailing list<span> </span><br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><span> </span><br><<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">mailto:FreeSWITCH-users@lists.freeswitch.org</a>><span> </span><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><span> </span><br>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<br><br></blockquote></blockquote><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><span> </span><<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a>><br>
<blockquote type="cite"><blockquote type="cite"><br><br><br><br>-- Sincerely<br><br>Jay<span> </span><br>_________________________________________________________________________<br><br><br></blockquote></blockquote>Professional FreeSWITCH Consulting Services:<br>
<blockquote type="cite"><blockquote type="cite"><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><span> </span><<a href="mailto:consulting@freeswitch.org" target="_blank">mailto:consulting@freeswitch.org</a>><span> </span><br>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<span> </span><br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<span> </span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><span> </span><br><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><span> </span><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<br>FreeSWITCH-users mailing list<span> </span><br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><span> </span><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><span> </span><br>
UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a><br><br><br></blockquote></blockquote><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
<blockquote type="cite"><br><br><br>_________________________________________________________________________<br><br><br></blockquote>Professional FreeSWITCH Consulting Services:<br><blockquote type="cite"><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<span> </span><br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><span> </span><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<span> </span><br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><span> </span><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><span> </span><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<br><br></blockquote><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><blockquote type="cite"><br></blockquote>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.12 (GNU/Linux)<br>Comment: Using GnuPG with Icedove -<span> </span><a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>iQIcBAEBAgAGBQJTDETCAAoJEE0JJh4d0MMFJlsP/i0vV1fIsXQ84QDPLVh3JAwW<br>bzdyPWCW9xw+4Z6CI6tj10m5f3o0vriJtOyys+kykXpNJ9tBINP65v6J9PXrQROM<br>C/NFtlN8c9DREE1LmlsVv4JsOCNdrmqczaPi3n3tsfoeavl58s0Cxpuj3fA0SgrA<br>WnpenSOAjhKfgXFMZRPpDPjM8wM85zVtvCn75gB7uP0eh/2qXh5wVt5OivxwR5iq<br>
0TZ8ldlGHVlWBzeE/K3Fj3dzWOSFQJXIomrApcCVVvSTEM9dsrzsDKWADc+H2U/F<br>faSwgWOjj//YbDt1y1YghknvLdK9i8Q4rvFH5WLc1UyoA5WuZKCzR8RhJPf4CKCb<br>6myfTt89D48NbVHK932aZD8LtfqeplbKNoqHhtVdZPtMa81ZIgHluhyzEaw5YhzH<br>INRX5tctXHFyaGat7EgN10GHgFlNNtf1Ljm51mPQj5jP8Ukp9e1tBZp8MzQAG6JG<br>
NIpUD+P7KxRFnYDeKrJDDvyrQBdzvS0LQsMGoqsrt19botddhhJXKZFRTNBkwDi/<br>+pMvFgLBKZrD14ufv3cT9C8Q0ylE596xHnBv6xpKZQXhN6k8StJwpm1ozMaaOifG<br>jZF5GMw/X6vQSEofhqSlvVoT1uJII6B/c1zGYV/eCfsdtgeaHyfumIgQfKEj+wQa<br>jhVefTn44xb/OMULY4FK<br>
=66PQ<br>-----END PGP SIGNATURE-----<br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div>
</blockquote></div><br></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>