[Freeswitch-users] How to force FS to execute?

Emrah lists at kavun.ch
Wed Sep 19 08:32:15 MSD 2012


Hi all,

My example below cannot work because FS does not store the value of ${pin} until the call goes into execution state. While keeping it simple, what would be your take on this? Is there a way to instruct FS to start executing at some point and discovering the dialplan along the way?

<extension name="pin test">
<condition field="destination_number" expression="^111$" break="never">
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="read" data="4 4 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav pin 10000 #,*" inline="true" />
</condition>
<condition field="${pin}" expression="^1234$">
<action application="transfer" data ="3000 XML local" />
</condition>
<condition field="${pin}" expression="^\d{4}$">
<action application="hangup" />
</condition>
</extension>

Thanks and all the best, as always.
Emrah


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list