<context name="{v_context}">
	<extension name="user_record" number="" continue="true" app_uuid="43539dd3-d555-4498-835a-3245a0b184ca" enabled="true">
		<condition field="" expression="">
			<action application="set" data="user_record=${user_data ${destination_number}@${domain_name} var user_record}" inline="true"/>
			<action application="set" data="from_user_exists=${user_exists id ${sip_from_user} ${sip_from_host}}" inline="true"/>
		</condition>
		<condition field="${user_exists}" expression="^true$" break="never"/>
		<condition field="${user_record}" expression="^all$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${user_exists}" expression="^true$" break="never"/>
		<condition field="${call_direction}" expression="^inbound$" break="never"/>
		<condition field="${user_record}" expression="^inbound$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${user_exists}" expression="^true$" break="never"/>
		<condition field="${call_direction}" expression="^outbound$" break="never"/>
		<condition field="${user_record}" expression="^outbound$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${user_exists}" expression="^true$" break="never"/>
		<condition field="${call_direction}" expression="^local$" break="never"/>
		<condition field="${user_record}" expression="^local$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${from_user_exists}" expression="^true$" break="never">
			<action application="set" data="from_user_record=${user_data ${sip_from_user}@${sip_from_host} var user_record}" inline="true"/>
		</condition>
		<condition field="${from_user_exists}" expression="^true$" break="never"/>
		<condition field="${from_user_record}" expression="^all$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${from_user_exists}" expression="^true$" break="never"/>
		<condition field="${call_direction}" expression="^inbound$" break="never"/>
		<condition field="${from_user_record}" expression="^inbound$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${from_user_exists}" expression="^true$" break="never"/>
		<condition field="${call_direction}" expression="^outbound$" break="never"/>
		<condition field="${from_user_record}" expression="^outbound$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${from_user_exists}" expression="^true$" break="never"/>
		<condition field="${call_direction}" expression="^local$" break="never"/>
		<condition field="${from_user_record}" expression="^local$" break="never">
			<action application="set" data="record_session=true" inline="true"/>
		</condition>
		<condition field="${record_session}" expression="^true$">
			<action application="export" data="nolocal:api_on_answer=uuid_record ${uuid} start ${recordings_dir}/${domain_name}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.${record_ext}"/>
		</condition>
	</extension>
</context>
