<div dir="ltr">maybe use as a central storage for http sessions and ws sessions. or even SSO if run FreeSWITCH as a cluster if we extend the http support in FreeSWITCH.<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 2:15 AM, William King <span dir="ltr">&lt;<a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Peter,<br>
<br>
The pubsub actions should be available now with the raw app, though this<br>
would work in a blocking manner. You do raise a good use case for<br>
asynchronous commands, specifically for fire and forget cases like pubsub.<br>
<br>
For the prefix routing, currently the array return type isn&#39;t supported,<br>
but if redis returns a single result that should be able to work and be<br>
tested right now. Can you provide a few sample redis commands and<br>
responses for how you&#39;d setup this scenario?<br>
<span class="im HOEnZb"><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">(877) 211-9337</a><br>
Office: <a href="tel:%28206%29%20388-4772" value="+12063884772">(206) 388-4772</a><br>
Cell:   <a href="tel:%28253%29%20686-5518" value="+12536865518">(253) 686-5518</a><br>
<a href="mailto:william.king@quentustech.com">william.king@quentustech.com</a><br>
<br>
</span><div class="HOEnZb"><div class="h5">On 05/12/2015 04:34 AM, Peter Steinbach wrote:<br>
&gt; Hello William,<br>
&gt;<br>
&gt; this is great, the idea of integrating Redis. We currently use Memcache<br>
&gt; in raw mode as a method of externally controlling dialplans and failover<br>
&gt; scenarios.<br>
&gt; Redis, of course, brings much more features here.<br>
&gt;<br>
&gt;&gt;Currently the two main use cases are:<br>
&gt;&gt;1. Call per second limits<br>
&gt;&gt;2. Concurrent call limits<br>
&gt;&gt;<br>
&gt;&gt;Possible additional functionality:<br>
&gt;&gt;1. Support for fail-over connections<br>
&gt;&gt;2. Asynchronous commands(is there a use case for this?)<br>
&gt;<br>
&gt; Another idea for your list would be to route calls according to<br>
&gt; prefixes. You may lookup Redis with a part of the phone number and it<br>
&gt; returns the gateway for this part of the number (redis DB is then<br>
&gt; preloaded from another application).<br>
&gt; And - as Redis has a publish/subscribe method - you will be able to<br>
&gt; publish call informations from the dialplan to multiple external<br>
&gt; subscribers (e.g. announce an incoming call to a CRM) without the use of<br>
&gt; ESL. Is there a chance to run the redis dialplan app in a non blocking<br>
&gt; manner for this scenario, in order to speed up the dialplan?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Best regards<br>
&gt; Peter<br>
&gt;<br>
&gt; On 05/10/15 03:40, William King wrote:<br>
&gt;&gt; I&#39;m working on an update Redis integration module that will use the C<br>
&gt;&gt; library hiredis:<br>
&gt;&gt; <a href="http://redis.io/clients#c" target="_blank">http://redis.io/clients#c</a><br>
&gt;&gt; <a href="https://github.com/redis/hiredis" target="_blank">https://github.com/redis/hiredis</a><br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve pushed an alpha version of the module to a branch here:<br>
&gt;&gt; <a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits?until=" target="_blank">https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits?until=</a><br>
&gt;&gt; refs%2Fheads%2Fmod_hiredis<br>
&gt;&gt;<br>
&gt;&gt; The current module has a dialplan app and an api for &#39;hiredis_raw&#39;<br>
&gt;&gt; which allows any single line Redis command, and executes it in a<br>
&gt;&gt; blocking manner, then supports returning string and integer responses.<br>
&gt;&gt;<br>
&gt;&gt; If anyone on this list has any use cases for FreeSWITCH+Redis, please<br>
&gt;&gt; reply to this thread. Currently the two main use cases are:<br>
&gt;&gt; 1. Call per second limits<br>
&gt;&gt; 2. Concurrent call limits<br>
&gt;&gt;<br>
&gt;&gt; Possible additional functionality:<br>
&gt;&gt; 1. Support for fail-over connections<br>
&gt;&gt; 2. Asynchronous commands(is there a use case for this?)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; --<br>
&gt; With kind regards<br>
&gt; Peter Steinbach<br>
&gt;<br>
&gt; Telefaks Services GmbH<br>
&gt; mailto:<a href="mailto:lists">lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a><br>
&gt; Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">About: <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>Proj:  <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a></div>
</div>