<extension name="xxphone">
<condition field="destination_number" expression="^2920$">
<action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/>
<action application="bind_meta_app" data="2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
<action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/>
<!-- Set the sayname variable with the callers name -->
<action application="execute_extension" data="2925 XML default"/>
<!-- Next lines allow control after bridge timeout and hangup after bridge -->
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="ringback=file_string://${xxsounds}hi-long.wav!${sayname}!tone_stream://${us-ring};loops=-1"/>
<!-- ring extensions only for ## seconds -->
<action application="bridge" data="{originate_timeout=17}${group_call(home@${domain_name}+A)}"/>