<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have the following in my dialplan.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <context name="1000"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <extension name="start"><o:p></o:p></p><p class=MsoNormal> <condition field="destination_number" expression="^(.*)$" require-nested="false" break="never"><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <!--Answer the channel--><o:p></o:p></p><p class=MsoNormal> <action application="answer"/><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <action application="play_and_get_digits" data="1 1 2 5000 # ${prompts_directory}/reprompt.wav ${prompts_directory}/invalid.wav dtmfInput \d+ 2500"/><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <condition field="${dtmfInput}" expression="1" break="never"><o:p></o:p></p><p class=MsoNormal> <!--Playback Security Code--><o:p></o:p></p><p class=MsoNormal> <action application="javascript" data="$${scripts_directory}/say_characters.js ${security_code} ${characters_directory} 500"/><o:p></o:p></p><p class=MsoNormal> </condition><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <!--Hangup the channel--><o:p></o:p></p><p class=MsoNormal> <action application="hangup"/><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> </condition><o:p></o:p></p><p class=MsoNormal> </extension><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> </context><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>As soon as I enter 1, the condition block isn’t executed and the channel is hungup immediately.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>|--- Dialplan: Processing recursive conditions level:1 [start_recur_1] require-nested=FALSE<o:p></o:p></p><p class=MsoNormal>|--- Dialplan: sofia/inbound/1002@192.168.1.1 Regex (FAIL) [start_recur_1] ${dtmfInput}() =~ /1/ break=never<o:p></o:p></p><p class=MsoNormal>Dialplan: sofia/inbound/1002@192.168.1.1 Regex (PASS) [start] destination_number(start) =~ /^(.*)$/ break=never<o:p></o:p></p><p class=MsoNormal>……………..<o:p></o:p></p><p class=MsoNormal>EXECUTE sofia/inbound/1002@192.168.1.1 play_and_get_digits(1 1 2 5000 # /usr/src/freeswitch/sounds//1/prompts//reprompt.wav /usr/src/freeswitch/sounds//1/prompts//invalid.wav dtmfInput \d+ 2500)<o:p></o:p></p><p class=MsoNormal>2014-02-12 13:25:53.440479 [DEBUG] switch_ivr_play_say.c:1315 Codec Activated L16@8000hz 1 channels 20ms<o:p></o:p></p><p class=MsoNormal>2014-02-12 13:25:59.720479 [DEBUG] switch_rtp.c:3901 RTP RECV DTMF 1:1280<o:p></o:p></p><p class=MsoNormal>2014-02-12 13:25:59.720479 [DEBUG] switch_channel.c:471 RECV DTMF 1:1280<o:p></o:p></p><p class=MsoNormal>2014-02-12 13:25:59.720479 [DEBUG] switch_ivr_play_say.c:1703 done playing file /usr/src/freeswitch/sounds//1/prompts//reprompt.wav<o:p></o:p></p><p class=MsoNormal>EXECUTE sofia/inbound/1002@192.168.1.1 hangup()<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Could anyone tell me what I’m doing wrong? Don’t mind the variables, I removed some pieces of the dialplan.<o:p></o:p></p></div></body></html>