Hi everyone I am trying to setup some pinned routing in freeswitch strictly through the xml dialplan, so not using any external scripts to validate pins, that being said i have written a sample dial plan below and it seems to fail, not sure why.<br>
<br>The parts that are failing are actually detecting a valid pin was placed in as well as hanging up the phone call when more than 3 attempts have been made. can anyone please help me figure out why this is not working.<br>
<br><extension name="pinned_route_test" inline="true"><br> <condition field="destination_number" expression="^5555$"><br> <action application="answer"/><br>
<action application="log" data="INFO Attempting to obtain pin"/><br> <action application="play_and_get_digits" data="4 10 3 3000 # conference\8000\conf-pin.wav silence_stream://250 inputted_validation_pin \d+"/><br>
<action application="log" data="INFO Pin Number obtained ${inputted_validation_pin}."/><br> <action application="set" data="pin_attempts=${expr(${pin_attempts}+1)}"/><br>
<action application="log" data="INFO # of pin attempts ${pin_attempts}."/><br> </condition><br> <condition field="inputted_validation_pin" expression="1234" break="on-true"><br>
<action application="log" data="INFO Pin number entered was valid"/><br> <anti-action application="log" data="INFO 1234 is not a valid match for the inputted pin ${inputted_validation_pin}."/><br>
</condition><br> <condition field="pin_attempts" expression="3"><br> <action application="playback" data="conference\8000\conf-goodbye.wav"/><br>
<action application="hangup"/><br> <anti-action application="log" data="INFO invalid pin was inputted for attemp ${pin_attempts}."/><br> <anti-action application="playback" data="conference\8000\conf-bad-pin.wav"/><br>
<anti-action application="log" data="INFO restarting extension pinned_route_test."/><br> <anti-action application="transfer" data="${destination_number} XML default"/><br>
</condition><br> </extension><br>