<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>FreeSWITCH decides what to execute first, the set application runs later (look a few lines later, you'll see lines beginning with EXECUTE, this is when it runs).</div><div><br></div><div>If you need to use variables you've set in the DP, you need to use the transfer application to make it go back into routing state.</div><div><br></div><div>Math</div><br><div><div>On 3-Jun-09, at 2:22 AM, Woody Dickson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br>I am getting a strange problem in my dialplan.<br><br>After doing "SET", I want to use it in the next condition field. But then the value is not being set properly. <br><br>Could someone please tell me what is wrong?<br> <br>Thanks,<br>Woody<br><br><br>Here is the dialplan:<br> <context name="conf-execution"><br>        <extension name="get-pin" continue="true" ><br>                <condition field="${destination_number}" expression="^(.*)$" break="never"><br> <br>                        <action application="set" data="conference_id=111"/><br>                        <action application="set" data="is_moderator=true"/><br>                        <action application="info"/><br> <br>                </condition><br>        </extension><br>        <extension name="conf"><br>                <condition field="${is_moderator}" expression="^true$" break="never"><br>                        <action application="conference" data="${conference_id}@default+flags{Moderator}+1234"/><br> <br>                </condition><br>                <condition field="${is_moderator}" expression="^false$" break="never"><br>                        <action application="conference" data="${conference_id}@default"/><br> <br>                </condition><br>                <condition field="${is_moderator}" expression="^$" break="always"><br>                        <action application="playback" data="/var/app/prompt/wav/bye.wav"/><br>                         <action application="hangup"/><br><br>                </condition><br>        </extension><br><br> </context><br><br><br>Here is the FS log.<br><br>Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> parsing [conf-execution->get-pin] continue=true<br> Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Regex (PASS) [get-pin] ${destination_number}(117) =~ /^(.*)$/ break=never<br>Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Action set(conference_id=111)<br> <span style="color: rgb(255, 0, 0);">Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Action set(is_moderator=true)</span><br>Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Action info()<br> Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> parsing [conf-execution->conf] continue=false<br><span style="color: rgb(255, 0, 0);">Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Regex (FAIL) [conf] ${is_moderator}() =~ /^true$/ break=never</span><br> Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Regex (FAIL) [conf] ${is_moderator}() =~ /^false$/ break=never<br>Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Regex (PASS) [conf] ${is_moderator}() =~ /^$/ break=always<br> Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Action playback(/var/app/prompt/wav/bye.wav)<br>Dialplan: sofia/internal/<a href="mailto:1001@192.168.1.101">1001@192.168.1.101</a> Action hangup() _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></body></html>