<div dir="ltr">Thanks for your reply. I used mod_memcache for above purpose. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 January 2015 at 23:06, William King <span dir="ltr"><<a href="mailto:william.king@quentustech.com" target="_blank">william.king@quentustech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The current mod_redis implementation does not support arbitrary redis<br>
commands. It was build as a channel limit(with only increment and<br>
decrement functions).<br>
<br>
The functionality it appears you are trying to use would require<br>
additional feature development. For instance using the hiredis C library<br>
and supporting arbitrary redis commands.<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">(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>
<span class=""><br>
On 01/28/2015 11:53 AM, Aqs Younas wrote:<br>
> Hi, list.<br>
><br>
> I have successfully installed redis-server on my system and mod_redis on<br>
> freeswitch.<br>
> But when i try to set a value with redis in my default.xml, i see<br>
> nothing. This is my default.xml file.<br>
><br>
> <include><br>
> <context name="default"><br>
> <extension name="Testing"><br>
> <condition><br>
> <action application="sched_hangup" data="+10800<br>
> alloted_timeout"/><br>
> <action application="answer"/><br>
> <action application="set" data="max_forwards=100"/><br>
> <action application="set" data="dst=${destination_number}"/><br>
> <action application="log" data="${uuid}"/><br>
> <action application="set" data="src=${caller_id_number}"/><br>
</span>> *<action application="set" data="ignore=${redis(set<br>
<span class="">> ${uuid} ${destination_number})}"/><br>
> <action application="set" data="ignore=${redis(get<br>
> ${uuid}}"/><br>
</span>> <action application="log" data="${ignore}"/>*<br>
<span class="">> <action application="playback" data="vlc:///opt/song.mp3"/><br>
> </condition><br>
> </extension><br>
> </context><br>
> </include><br>
><br>
> And what I see in my logs is this.<br>
><br>
> 2015-01-28 22:48:19.542161 [NOTICE] mod_dptools.c:1258 Channel<br>
</span>> [sofia/internal/<a href="tel:14048002020" value="+14048002020">14048002020</a> <tel:<a href="tel:14048002020" value="+14048002020">14048002020</a>>@1003] has been answered<br>
<span class="">> 2015-01-28 22:48:19.542161 [DEBUG] switch_core_session.c:1053 Send<br>
</span>> signal sofia/internal/<a href="tel:14048002020" value="+14048002020">14048002020</a> <tel:<a href="tel:14048002020" value="+14048002020">14048002020</a>>@1003 [BREAK]<br>
<span class="">> 2015-01-28 22:48:19.542161 [DEBUG] switch_core_session.c:1053 Send<br>
</span>> signal sofia/internal/<a href="tel:14048002020" value="+14048002020">14048002020</a> <tel:<a href="tel:14048002020" value="+14048002020">14048002020</a>>@1003 [BREAK]<br>
<span class="">> 2015-01-28 22:48:19.542161 [DEBUG] switch_core_session.c:1053 Send<br>
</span>> signal sofia/internal/<a href="tel:14048002020" value="+14048002020">14048002020</a> <tel:<a href="tel:14048002020" value="+14048002020">14048002020</a>>@1003 [BREAK]<br>
<span class="">> 2015-01-28 22:48:19.562178 [DEBUG] switch_channel.c:3689<br>
</span>> (sofia/internal/<a href="tel:14048002020" value="+14048002020">14048002020</a> <tel:14048002020>@1003) Callstate Change<br>
<span class="">> EARLY -> ACTIVE<br>
> 2015-01-28 22:48:19.562178 [DEBUG] sofia.c:6614 Channel<br>
</span>> sofia/internal/14048002020 <tel:14048002020>@1003 entering state<br>
> [ready][200]<br>
> EXECUTE sofia/internal/14048002020 <tel:14048002020>@1003<br>
<span class="">> set(max_forwards=100)<br>
> 2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435<br>
</span>> sofia/internal/14048002020 <tel:14048002020>@1003 SET [max_forwards]=[100]<br>
> EXECUTE sofia/internal/14048002020 <tel:14048002020>@1003<br>
> set(dst=19292461002 <tel:19292461002>)<br>
<span class="">> 2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435<br>
</span>> sofia/internal/14048002020 <tel:14048002020>@1003 SET [dst]=[19292461002<br>
> <tel:%5B19292461002>]<br>
<span class="">> EXECUTE sofia/internal/14048002020@1003<br>
> log(c63b137d-4553-41ed-a4e8-fff431889c40)<br>
> 2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1628<br>
> c63b137d-4553-41ed-a4e8-fff431889c40<br>
> EXECUTE sofia/internal/14048002020@1003 set(src=14048002020)<br>
> 2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435<br>
> sofia/internal/14048002020@1003 SET [src]=[14048002020]<br>
</span>> *EXECUTE sofia/internal/14048002020@1003 set(ignore=)*<br>
<span class="">> 2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435<br>
> sofia/internal/14048002020@1003 SET [ignore]=[UNDEF]<br>
</span>> *EXECUTE sofia/internal/14048002020@1003 set(ignore=)*<br>
<span class="">> 2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435<br>
</span>> sofia/internal/14048002020@1003 SET [ignore]=[UNDEF]*<br>
> EXECUTE sofia/internal/14048002020@1003 log()*<br>
<span class="">> 2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1628<br>
><br>
> I see nothing. Neither a value being set or an error.<br>
><br>
> Your help would be much appreciated.<br>
> Thanks.<br>
><br>
><br>
><br>
><br>
</span>> _________________________________________________________________________<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>
><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>
</blockquote></div><br></div>