[Freeswitch-users] Can't set/get values using mod_redis

Aqs Younas aqsyounas at gmail.com
Wed Jan 28 20:53:28 MSK 2015


Hi, list.

I have successfully installed redis-server on my system and mod_redis on
freeswitch.
But when i try to set a value with redis in my default.xml, i see nothing.
This is my default.xml file.

<include>
<context name="default">
 <extension name="Testing">
        <condition>
                <action application="sched_hangup" data="+10800
alloted_timeout"/>
                <action application="answer"/>
                <action application="set" data="max_forwards=100"/>
                <action application="set" data="dst=${destination_number}"/>
                <action application="log" data="${uuid}"/>
                <action application="set" data="src=${caller_id_number}"/>


*<action application="set" data="ignore=${redis(set ${uuid}
${destination_number})}"/>                <action application="set"
data="ignore=${redis(get ${uuid}}"/>                <action
application="log" data="${ignore}"/>*
               <action application="playback" data="vlc:///opt/song.mp3"/>
        </condition>
   </extension>
</context>
</include>

And what I see in my logs is this.

2015-01-28 22:48:19.542161 [NOTICE] mod_dptools.c:1258 Channel
[sofia/internal/14048002020 at 1003] has been answered
2015-01-28 22:48:19.542161 [DEBUG] switch_core_session.c:1053 Send signal
sofia/internal/14048002020 at 1003 [BREAK]
2015-01-28 22:48:19.542161 [DEBUG] switch_core_session.c:1053 Send signal
sofia/internal/14048002020 at 1003 [BREAK]
2015-01-28 22:48:19.542161 [DEBUG] switch_core_session.c:1053 Send signal
sofia/internal/14048002020 at 1003 [BREAK]
2015-01-28 22:48:19.562178 [DEBUG] switch_channel.c:3689 (sofia/internal/
14048002020 at 1003) Callstate Change EARLY -> ACTIVE
2015-01-28 22:48:19.562178 [DEBUG] sofia.c:6614 Channel sofia/internal/
14048002020 at 1003 entering state [ready][200]
EXECUTE sofia/internal/14048002020 at 1003 set(max_forwards=100)
2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435 sofia/internal/
14048002020 at 1003 SET [max_forwards]=[100]
EXECUTE sofia/internal/14048002020 at 1003 set(dst=19292461002)
2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435 sofia/internal/
14048002020 at 1003 SET [dst]=[19292461002]
EXECUTE sofia/internal/14048002020 at 1003
log(c63b137d-4553-41ed-a4e8-fff431889c40)
2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1628
c63b137d-4553-41ed-a4e8-fff431889c40
EXECUTE sofia/internal/14048002020 at 1003 set(src=14048002020)
2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435
sofia/internal/14048002020 at 1003 SET [src]=[14048002020]
*EXECUTE sofia/internal/14048002020 at 1003 set(ignore=)*
2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435
sofia/internal/14048002020 at 1003 SET [ignore]=[UNDEF]
*EXECUTE sofia/internal/14048002020 at 1003 set(ignore=)*
2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1435
sofia/internal/14048002020 at 1003 SET [ignore]=[UNDEF]
*EXECUTE sofia/internal/14048002020 at 1003 log()*
2015-01-28 22:48:19.562178 [DEBUG] mod_dptools.c:1628

I see nothing. Neither a value being set or an error.

Your help would be much appreciated.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150128/bb274324/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list