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()