Hi, <br><br>I have a question regarding editing the default.xml file in conf/dialplan.<br>What I want to do, is set the dialplan to record calls on specific extensions, for example, 1002, but not on other extensions.<br><br>
So far, I've tried the following:<br><br><br><extension name="Local_Extension"><br> <condition field="destination_number" expression="^(1002)$"><br> <action application="set" data="RECORD_TITLE=...<br>
:<br> :<br> <action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/><br>
</condition><br> <condition field="destination_number" expression="^(10[01][0-9])$"><br> :<br> :<br> the rest of the applications that were originally in Local_Extension are here<br>
:<br> :<br> </condition><br></extension><br><br>The problem with this, is that now all other calls that do not dial 1002 give me the error message that the "destination number is not available"<br>
<br>I have also tried reversing the order:<br><br><extension name="Local_Extension"><br>
<condition field="destination_number" expression="^(10[01][0-9])$"><br>
:<br>
:<br>
the rest of the applications that were originally in Local_Extension are here<br>
:<br>
:<br>
</condition><br> <condition field="destination_number" expression="^(1002)$"><br>
<action application="set" data="RECORD_TITLE=...<br>
:<br>
:<br>
<action application="record_session"
data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/><br>
</condition><br>
</extension><br><br>However, this results in no recording being done at all.<br><br>How do I fix this such that I only record calls to extension 1002, and allow all other calls through normally?<br><br>thanks<br>-Ian<br>