[Freeswitch-dev] Recording Calls to Extensions
Ian Quek
ianquek at gmail.com
Tue Jul 28 04:44:22 PDT 2009
Hi,
I have a question regarding editing the default.xml file in conf/dialplan.
What I want to do, is set the dialplan to record calls on specific
extensions, for example, 1002, but not on other extensions.
So far, I've tried the following:
<extension name="Local_Extension">
<condition field="destination_number" expression="^(1002)$">
<action application="set" data="RECORD_TITLE=...
:
:
<action application="record_session"
data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
</condition>
<condition field="destination_number" expression="^(10[01][0-9])$">
:
:
the rest of the applications that were originally in
Local_Extension are here
:
:
</condition>
</extension>
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"
I have also tried reversing the order:
<extension name="Local_Extension">
<condition field="destination_number" expression="^(10[01][0-9])$">
:
:
the rest of the applications that were originally in
Local_Extension are here
:
:
</condition>
<condition field="destination_number" expression="^(1002)$">
<action application="set" data="RECORD_TITLE=...
:
:
<action application="record_session"
data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
</condition>
</extension>
However, this results in no recording being done at all.
How do I fix this such that I only record calls to extension 1002, and allow
all other calls through normally?
thanks
-Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20090728/f0e6edc1/attachment.html
More information about the FreeSWITCH-dev
mailing list