[Freeswitch-users] Set problem in dialplan

Woody Dickson woodydickson at gmail.com
Tue Jun 2 23:22:11 PDT 2009


Hello,

I am getting a strange problem in my dialplan.

After doing "SET", I want to use it in the next condition field.  But then
the value is not being set properly.

Could someone please tell me what is wrong?

Thanks,
Woody


Here is the dialplan:
<context name="conf-execution">
<extension name="get-pin" continue="true" >
<condition field="${destination_number}" expression="^(.*)$" break="never">

<action application="set" data="conference_id=111"/>
<action application="set" data="is_moderator=true"/>
<action application="info"/>

</condition>
</extension>
<extension name="conf">
<condition field="${is_moderator}" expression="^true$" break="never">
<action application="conference" data="${conference_id}@default
+flags{Moderator}+1234"/>

</condition>
<condition field="${is_moderator}" expression="^false$" break="never">
<action application="conference" data="${conference_id}@default"/>

</condition>
<condition field="${is_moderator}" expression="^$" break="always">
<action application="playback" data="/var/app/prompt/wav/bye.wav"/>
<action application="hangup"/>

</condition>
</extension>

</context>


Here is the FS log.

Dialplan: sofia/internal/1001 at 192.168.1.101 parsing
[conf-execution->get-pin] continue=true
Dialplan: sofia/internal/1001 at 192.168.1.101 Regex (PASS) [get-pin]
${destination_number}(117) =~ /^(.*)$/ break=never
Dialplan: sofia/internal/1001 at 192.168.1.101 Action set(conference_id=111)
Dialplan: sofia/internal/1001 at 192.168.1.101 Action set(is_moderator=true)
Dialplan: sofia/internal/1001 at 192.168.1.101 Action info()
Dialplan: sofia/internal/1001 at 192.168.1.101 parsing [conf-execution->conf]
continue=false
Dialplan: sofia/internal/1001 at 192.168.1.101 Regex (FAIL) [conf]
${is_moderator}() =~ /^true$/ break=never
Dialplan: sofia/internal/1001 at 192.168.1.101 Regex (FAIL) [conf]
${is_moderator}() =~ /^false$/ break=never
Dialplan: sofia/internal/1001 at 192.168.1.101 Regex (PASS) [conf]
${is_moderator}() =~ /^$/ break=always
Dialplan: sofia/internal/1001 at 192.168.1.101 Action
playback(/var/app/prompt/wav/bye.wav)
Dialplan: sofia/internal/1001 at 192.168.1.101 Action hangup()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090603/f6b6ec9b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list