<HTML><HEAD>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16466"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>WARNING LONG POST!</DIV>
<DIV> </DIV>
<DIV>It must be something I've done wrong with the dialplan setup but I can't find any of the statements in the default, that should grab the call?</DIV>
<DIV> </DIV>
<DIV>In conf/dialplan I have</DIV>
<DIV>default (dir)</DIV>
<DIV>default.xml</DIV>
<DIV>features.xml</DIV>
<DIV>public (dir)</DIV>
<DIV>public.xml</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>The default.xml looks like this ( I haven't changed it):</DIV>
<DIV> </DIV>
<DIV><?xml version="1.0" encoding="utf-8"?><BR><!--<BR> NOTICE:<BR> <BR> This context is usually accessed via authenticated callers on the sip profile on port 5060 <BR> or transfered callers from the public context which arrived via the sip profile on port 5080.<BR> <BR> Authenticated users will use the user_context variable on the user to determine what context<BR> they can access. You can also add a user in the directory with the cidr= attribute acl.conf.xml<BR> will build the domains acl using this value.<BR>--><BR><!-- <A href="http://wiki.freeswitch.org/wiki/Dialplan_XML">http://wiki.freeswitch.org/wiki/Dialplan_XML</A> --><BR><include><BR> <context name="default"></DIV>
<DIV> </DIV>
<DIV> <extension name="unloop"><BR> <condition field="${unroll_loops}" expression="^true$"/><BR> <condition field="${sip_looped_call}" expression="^true$"><BR> <action application="deflect" data="${destination_number}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- Example of doing things based on time of day. --><BR> <extension name="tod_example" continue="true"><BR> <!-- man strftime - M-F, 9AM to 6PM --><BR> <condition field="${strftime(%w)}" expression="^([1-5])$"/><BR> <condition field="${strftime(%H%M)}" expression="^((09|1[0-7])[0-5][0-9]|1800)$"><BR> <action application="set" data="open=true"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="global-intercept"><BR> <condition field="destination_number" expression="^\*886$"><BR> <action application="answer"/><BR> <action application="intercept" data="${hash(select/${domain_name}-last_dial/global)}"/><BR> <action application="sleep" data="2000"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="group-intercept"><BR> <condition field="destination_number" expression="^\*8$"><BR> <action application="answer"/><BR> <action application="intercept" data="${hash(select/${domain_name}-last_dial/${callgroup})}"/><BR> <action application="sleep" data="2000"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="intercept-ext"><BR> <condition field="destination_number" expression="^\*\*(\d+)$"><BR> <action application="answer"/><BR> <action application="intercept" data="${hash(select/${domain_name}-last_dial_ext/$1)}"/><BR> <action application="sleep" data="2000"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="redial"><BR> <condition field="destination_number" expression="^\*870$"><BR> <action application="transfer" data="${hash(select/${domain_name}-last_dial/${caller_id_number})}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="global" continue="true"><BR> <condition field="${network_addr}" expression="^$" break="never"><BR> <action application="set" data="use_profile=${cond(${acl($${local_ip_v4} rfc1918)} == true ? nat : default)}"/><BR> <anti-action application="set" data="use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}"/><BR> </condition><BR> <condition field="${call_debug}" expression="^true$" break="never"><BR> <action application="info"/><BR> </condition><BR> <!--<BR> This is an example of how to auto detect if telephone-event is missing and activate inband detection <BR> --><BR> <!--<BR> <condition field="${switch_r_sdp}" expression="a=rtpmap:(\d+)\stelephone-event/8000" break="never"><BR> <action application="set" data="rtp_payload_number=$1"/><BR> <anti-action application="start_dtmf"/><BR> </condition><BR> --><BR> <condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$" break="never"><BR> <action application="set" data="sip_secure_media=true"/><BR> <!-- Offer SRTP on outbound legs if we have it on inbound. --><BR> <!-- <action application="export" data="sip_secure_media=true"/> --><BR> </condition></DIV>
<DIV> </DIV>
<DIV> <condition><BR> <action application="hash" data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/><BR> <action application="hash" data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/><BR> <action application="hash" data="insert/${domain_name}-last_dial/global/${uuid}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- If sip_req_host is not a local domain then this has to be an external sip uri --><BR> <!--<BR> <extension name="external_sip_uri" continue="true"><BR> <condition field="source" expression="mod_sofia"/><BR> <condition field="${outside_call}" expression="^$"/><BR> <condition field="${domain_exists(${sip_req_host})}" expression="true"><BR> <anti-action application="bridge" data="sofia/${use_profile}/${sip_to_uri}"/><BR> </condition><BR> </extension><BR> --><BR> <!--<BR> snom button demo, call 9000 to make button 2 mapped to transfer the current call to a conference<BR> --></DIV>
<DIV> </DIV>
<DIV> <extension name="snom-demo-2"><BR> <condition field="destination_number" expression="^\*9001$"><BR> <action application="eval" data="${snom_bind_key(2 off DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message notused)}"/><BR> <action application="transfer" data="3000"/><BR> </condition><BR> </extension><BR> <BR> <extension name="snom-demo-1"><BR> <condition field="destination_number" expression="^\*9000$"><BR> <!--<key> <light> <label> <user> <host> <profile> <action_name> <action>--><BR> <action application="eval" data="${snom_bind_key(2 on DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message api+uuid_transfer ${uuid} 9001)}"/><BR> <action application="playback" data="$${hold_music}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="eavesdrop"><BR> <condition field="destination_number" expression="^\*88(.*)$|^\*0(.*)$"><BR> <action application="answer"/><BR> <action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1)}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="eavesdrop"><BR> <condition field="destination_number" expression="^\*779$"><BR> <action application="answer"/><BR> <action application="set" data="eavesdrop_indicate_failed=tone_stream://%(500, 0, 320)"/><BR> <action application="set" data="eavesdrop_indicate_new=tone_stream://%(500, 0, 620)"/><BR> <action application="set" data="eavesdrop_indicate_idle=tone_stream://%(250, 0, 920)"/><BR> <action application="eavesdrop" data="all"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="call_return"><BR> <condition field="destination_number" expression="^\*69$|^869$|^lcr$"><BR> <action application="transfer" data="${hash(select/${domain_name}-call_return/${caller_id_number})}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="del-group"><BR> <condition field="destination_number" expression="^\*80(\d{2})$"><BR> <action application="answer"/><BR> <action application="group" data="delete:$1@${domain_name}:${sofia_contact(<A href='mailto:${sip_from_user}@${domain_name})}"/'>${sip_from_user}@${domain_name})}"/</A>><BR> <action application="gentones" data="%(1000, 0, 320)"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="add-group"><BR> <condition field="destination_number" expression="^\*81(\d{2})$"><BR> <action application="answer"/><BR> <action application="group" data="insert:$1@${domain_name}:${sofia_contact(<A href='mailto:${sip_from_user}@${domain_name})}"/'>${sip_from_user}@${domain_name})}"/</A>><BR> <action application="gentones" data="%(1000, 0, 640)"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="call-group-simo"><BR> <condition field="destination_number" expression="^\*82(\d{2})$"><BR> <action application="bridge" data="{ignore_early_media=true}${group(call:$1@${domain_name})}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="call-group-order"><BR> <condition field="destination_number" expression="^\*83(\d{2})$"><BR> <action application="set" data="call_timeout=10"/><BR> <action application="bridge" data="{ignore_early_media=true}${group(call:$1@${domain_name}:order)}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="extension-intercom"><BR> <condition field="destination_number" expression="^\*8(10[01][0-9])$"><BR> <action application="set" data="dialed_extension=$1"/><BR> <action application="export" data="sip_auto_answer=true"/><BR> <action application="bridge" data="<A href='mailto:user/${dialed_extension}@${domain_name}"/'>user/${dialed_extension}@${domain_name}"/</A>><BR> </condition><BR> </extension><BR> <BR> <X-PRE-PROCESS cmd="include" data="default/*.xml"/><BR> <BR> <!-- <BR> dial the extension 3, 4, or 5 digit extensions for 30 seconds and go to voicemail if the <BR> call fails (continue_on_fail=true), otherwise hang up after a successful<BR> bridge (hangup_after-bridge=true) <BR> --><BR> <extension name="Local_Extension"><BR> <condition field="destination_number" expression="(^\d{5}$|^\d{4}$|^\d{3}$)"><BR> <action application="set" data="dialed_extension=$1"/><BR> <action application="export" data="dialed_extension=$1"/><BR> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --><BR> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/><BR> <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"/><BR> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/><BR> <action application="set" data="ringback=${us-ring}"/><BR> <action application="set" data="transfer_ringback=$${hold_music}"/><BR> <action application="set" data="call_timeout=30"/><BR> <!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --><BR> <action application="set" data="hangup_after_bridge=true"/><BR> <!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --><BR> <action application="set" data="continue_on_fail=true"/><BR> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/><BR> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/><BR> <action application="set" data="called_party_callgroup=${user_data(<A href="mailto:${dialed_extension}@${domain_name">${dialed_extension}@${domain_name</A>} var callgroup)}"/><BR> <!--<action application="export" data="nolocal:sip_secure_media=${user_data(<A href="mailto:${dialed_extension}@${domain_name">${dialed_extension}@${domain_name</A>} var sip_secure_media)}"/>--><BR> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/><BR> <action application="bridge" data="<A href='mailto:user/${dialed_extension}@${domain_name}"/'>user/${dialed_extension}@${domain_name}"/</A>><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="group_dial_sales"><BR> <condition field="destination_number" expression="^\*2000$"><BR> <action application="bridge" data="${group_call(<A href='mailto:sales@${domain_name})}"/'>sales@${domain_name})}"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="group_dial_support"><BR> <condition field="destination_number" expression="^\*2001$"><BR> <action application="bridge" data="<A href='mailto:group/support@${domain_name}"/'>group/support@${domain_name}"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="group_dial_billing"><BR> <condition field="destination_number" expression="^\*2002$"><BR> <action application="bridge" data="<A href='mailto:group/billing@${domain_name}"/'>group/billing@${domain_name}"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- voicemail operator extension --><BR> <!--<BR> <extension name="operator"><BR> <condition field="destination_number" expression="^\*operator$|^0$"><BR> <action application="set" data="transfer_ringback=$${hold_music}"/><BR> <action application="transfer" data="1000 XML features"/><BR> </condition><BR> </extension><BR> --></DIV>
<DIV> </DIV>
<DIV> <!-- voicemail main2 extension --><BR> <extension name="vmain2"><BR> <condition field="destination_number" expression="^vmain2$|^\*97$|^\*4000$"><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="voicemail" data="check default ${domain_name}"/><BR> </condition><BR> </extension><BR> <BR> <!-- voicemail main extension --><BR> <extension name="vmain"><BR> <condition field="destination_number" expression="^vmain$|^\*98$"><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="voicemail" data="check default ${domain_name} ${sip_from_user}"/><BR> </condition><BR> </extension><BR> <BR> <extension name="send_to_voicemail_5digits"><BR> <condition field="destination_number" expression="^\*99(\d{5})$"><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="set" data="dialed_extension=$1"/><BR> <action application="export" data="dialed_extension=$1"/><BR> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/><BR> </condition><BR> </extension><BR> <BR> <extension name="send_to_voicemail_4digits"><BR> <condition field="destination_number" expression="^\*99(\d{4})$"><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="set" data="dialed_extension=$1"/><BR> <action application="export" data="dialed_extension=$1"/><BR> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/><BR> </condition><BR> </extension><BR> <BR> <extension name="send_to_voicemail_3digits"><BR> <condition field="destination_number" expression="^\*99(\d{3})$"><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="set" data="dialed_extension=$1"/><BR> <action application="export" data="dialed_extension=$1"/><BR> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/><BR> </condition><BR> </extension><BR> <BR> <!-- dial via SIP uri --><BR> <extension name="sip_uri"><BR> <condition field="destination_number" expression="^sip:(.*)$"><BR> <action application="bridge" data="sofia/${use_profile}/$1"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> start a dynamic conference with the settings of the "default" conference profile in conference.conf.xml<BR> --> <BR> <extension name="nb_conferences"><BR> <condition field="destination_number" expression="^\*(30\d{2})$"><BR> <action application="answer"/><BR> <action application="conference" data="<A href='mailto:$1-${domain_name}@default"/'>$1-${domain_name}@default"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="wb_conferences"><BR> <condition field="destination_number" expression="^\*(31\d{2})$"><BR> <action application="answer"/><BR> <action application="conference" data="<A href='mailto:$1-${domain_name}@wideband"/'>$1-${domain_name}@wideband"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="uwb_conferences"><BR> <condition field="destination_number" expression="^\*(32\d{2})$"><BR> <action application="answer"/><BR> <action application="conference" data="<A href='mailto:$1-${domain_name}@ultrawideband"/'>$1-${domain_name}@ultrawideband"/</A>><BR> </condition><BR> </extension><BR> <!-- MONO 48kHz conferences --><BR> <extension name="cdquality_conferences"><BR> <condition field="destination_number" expression="^\*(33\d{2})$"><BR> <action application="answer"/><BR> <action application="conference" data="<A href='mailto:$1-${domain_name}@cdquality"/'>$1-${domain_name}@cdquality"/</A>><BR> </condition><BR> </extension><BR> <BR> <!-- dial the freeswitch conference via SIP--><BR> <extension name="freeswitch_public_conf_via_sip"><BR> <condition field="destination_number" expression="^\*9(888|1616|3232)$"><BR> <action application="export" data="hold_music=silence"/><BR> <!-- <BR> This will take the SAS from the b-leg and send it to the display on the a-leg phone.<BR> Known working with Polycom and Snom maybe others.<BR> --><BR> <!--<BR> <action application="set" data="exec_after_bridge_app=${sched_api(+4 zrtp expand uuid_display ${uuid} \${uuid_getvar(\${uuid_getvar(${uuid} signal_bond)} zrtp_sas1_string )} \${uuid_getvar(\${uuid_getvar(${uuid} signal_bond)} zrtp_sas2_string )} )}"/><BR> <action application="export" data="nolocal:zrtp_secure_media=true"/><BR> --><BR> <action application="bridge" data="<A href='mailto:sofia/${use_profile}/$1@conference.freeswitch.org"/'>sofia/${use_profile}/$1@conference.freeswitch.org"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> This extension will start a conference and invite a group.<BR> At anytime the participant can dial *2 to bridge directly to the boss. <BR> All other callers are then hung up on.<BR> --><BR> <extension name="mad_boss_intercom"><BR> <condition field="destination_number" expression="^\*0911$"><BR> <action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss1"/><BR> <action application="set" data="conference_auto_outcall_caller_id_number=0911"/><BR> <action application="set" data="conference_auto_outcall_timeout=60"/><BR> <action application="set" data="conference_auto_outcall_flags=mute"/><BR> <action application="set" data="conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer='bind_meta_app 2 a s1 transfer::intercept:${uuid} inline'}"/><BR> <action application="set" data="sip_exclude_contact=${network_addr}"/><BR> <action application="conference_set_auto_outcall" data="${group_call(sales)}"/><BR> <action application="conference" data="<A href='mailto:madboss_intercom1@default+flags{endconf|deaf}"/'>madboss_intercom1@default+flags{endconf|deaf}"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> This extension will start a conference and invite a few of people.<BR> At anytime the participant can dial *2 to bridge directly to the boss. <BR> All other callers are then hung up on.<BR> --><BR> <extension name="mad_boss_intercom"><BR> <condition field="destination_number" expression="^\*0912$"><BR> <action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss2"/><BR> <action application="set" data="conference_auto_outcall_caller_id_number=0912"/><BR> <action application="set" data="conference_auto_outcall_timeout=60"/><BR> <action application="set" data="conference_auto_outcall_flags=mute"/><BR> <action application="set" data="conference_auto_outcall_prefix={sip_auto_answer=true,execute_on_answer='bind_meta_app 2 a s1 transfer::intercept:${uuid} inline'}"/><BR> <action application="set" data="sip_exclude_contact=${network_addr}"/><BR> <action application="conference_set_auto_outcall" data="loopback/9999"/><BR> <action application="conference" data="<A href='mailto:madboss_intercom2@default+flags{endconf|deaf}"/'>madboss_intercom2@default+flags{endconf|deaf}"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--This extension will start a conference and invite several people upon entering --><BR> <extension name="mad_boss"><BR> <condition field="destination_number" expression="^\*0913$"><BR> <!--These params effect the outcalls made once you join--><BR> <action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss"/><BR> <action application="set" data="conference_auto_outcall_caller_id_number=0911"/><BR> <action application="set" data="conference_auto_outcall_timeout=60"/><BR> <action application="set" data="conference_auto_outcall_flags=none"/><BR> <!--<action application="set" data="conference_auto_outcall_announce=say:You have been called into an emergency conference"/>--><BR> <!--Add as many of these as you need, These are the people you are going to call--><BR> <action application="conference_set_auto_outcall" data="loopback/9999"/><BR> <action application="conference" data="<A href='mailto:madboss3@default"/'>madboss3@default"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- a sample IVR --><BR> <extension name="ivr_demo"><BR> <condition field="destination_number" expression="^\*5000$"><BR> <action application="answer"/><BR> <action application="sleep" data="2000"/><BR> <action application="ivr" data="demo_ivr"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- Create a conference on the fly and pull someone in at the same time. --> <BR> <extension name="dynamic_conference"><BR> <condition field="destination_number" expression="^\*5001$"><BR> <action application="conference" data="bridge:mydynaconf:sofia/${use_profile}/1234@conference.freeswitch.org"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="rtp_multicast_page"><BR> <condition field="destination_number" expression="^\*pagegroup$|^\*7243"><BR> <action application="answer"/><BR> <action application="esf_page_group"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- <BR> Parking extensions... transferring calls to 5900 will park them in a queue.<BR> --><BR> <extension name="park"><BR> <condition field="destination_number" expression="^\*5900$"><BR> <action application="set" data="fifo_music=$${hold_music}"/><BR> <action application="fifo" data="<A href="mailto:5900@${domain_name">5900@${domain_name</A>} in"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- <BR> Parking pickup extension. Calling 5901 will pickup the call.<BR> --><BR> <extension name="unpark"><BR> <condition field="destination_number" expression="^\*5901$"><BR> <action application="answer"/><BR> <action application="fifo" data="<A href="mailto:5900@${domain_name">5900@${domain_name</A>} out nowait"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> This extension is used with snom phones. <BR> <BR> Set a function key to park+lot (lot being a number or name.)<BR> Set type to Park+Orbit. You can then park and pickup using <BR> the softkey on the phone. Should work with other phones.<BR> --><BR> <extension name="park"><BR> <condition field="source" expression="mod_sofia"/><BR> <condition field="destination_number" expression="park\+(\d+)"><BR> <action application="fifo" data="<A href="mailto:$1@${domain_name">$1@${domain_name</A>} in undef $${hold_music}"/><BR> </condition><BR> </extension> <BR> <!--<BR> The extension is parking pickup with a to param of the fifo we are calling <BR> Some phones send things like orbit= and you can extract that info.<BR> --><BR> <extension name="unpark"><BR> <condition field="source" expression="mod_sofia"/><BR> <condition field="destination_number" expression="^parking$"/><BR> <condition field="${sip_to_params}" expression="fifo\=(\d+)"><BR> <action application="answer"/><BR> <action application="fifo" data="<A href="mailto:$1@${domain_name">$1@${domain_name</A>} out nowait"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> This extension is used with linksys phones.</DIV>
<DIV> </DIV>
<DIV> Set a Phone tab option Call Park Serv to yes. You can park and<BR> pickup using soft keys "park" and "unpark" found during<BR> active call when moving navigation button. The other option<BR> is to use phone's star codes (defaults to *38 and *39).<BR> --><BR> <extension name="park"><BR> <condition field="source" expression="mod_sofia"/><BR> <condition field="destination_number" expression="callpark"/><BR> <condition field="${sip_refer_to}"><BR> <expression><![CDATA[<sip:callpark@${domain_name};orbit=(\d+)>]]></expression><BR> <action application="fifo" data="<A href="mailto:$1@${domain_name">$1@${domain_name</A>} in undef $${hold_music}"/><BR> </condition><BR> </extension><BR> <BR> <!--<BR> This extension is used with linksys phones.</DIV>
<DIV> </DIV>
<DIV> The extension is parking pickup with a to param of the fifo<BR> we are calling. Linksys sends orbit=<parkingslotnumber><BR> and we extract that info.<BR> --><BR> <extension name="unpark"><BR> <condition field="source" expression="mod_sofia"/><BR> <condition field="destination_number" expression="pickup"/><BR> <condition field="${sip_to_params}" expression="orbit\=(\d+)"><BR> <action application="answer"/><BR> <action application="fifo" data="<A href="mailto:$1@${domain_name">$1@${domain_name</A>} out nowait"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> Here are some examples of how to override the ringback heard by the<BR> far end. You have two variables that you can use to override this.<BR> <BR> ringback - used when a call isn't answered. (early media)<BR> transfer_ringback - used when the call is already answered. (post answer)<BR> --></DIV>
<DIV> </DIV>
<DIV> <!-- Demonstration of how to override the ringback in various situations --><BR> <extension name="wait"><BR> <condition field="destination_number" expression="^wait$"><BR> <action application="pre_answer"/><BR> <action application="sleep" data="20000"/><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="playback" data="voicemail/vm-goodbye.wav"/><BR> <action application="hangup"/><BR> </condition><BR> </extension><BR> <BR> <extension name="fax_receive"><BR> <condition field="destination_number" expression="^\*9978$"><BR> <action application="answer" /><BR> <action application="playback" data="silence_stream://2000"/><BR> <action application="rxfax" data="/tmp/rxfax.tif"/><BR> <action application="hangup"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="fax_transmit"><BR> <condition field="destination_number" expression="^\*9979$"><BR> <action application="txfax" data="/tmp/txfax.tif"/><BR> <action application="hangup"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- Send a 180 and let the far end generate ringback. --><BR> <extension name="ringback_180"><BR> <condition field="destination_number" expression="^\*9980$"><BR> <action application="ring_ready"/><BR> <action application="sleep" data="20000"/><BR> <action application="answer"/><BR> <action application="sleep" data="1000"/><BR> <action application="playback" data="voicemail/vm-goodbye.wav"/><BR> <action application="hangup"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- Send a 183 and send uk-ring as the ringtone. (early media) --><BR> <extension name="ringback_183_uk_ring"><BR> <condition field="destination_number" expression="^\*9981$"><BR> <action application="set" data="ringback=$${uk-ring}"/><BR> <action application="bridge" data="loopback/wait"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- Send a 183 and use music as the ringtone. (early media) --><BR> <extension name="ringback_183_music_ring"><BR> <condition field="destination_number" expression="^\*9982$"><BR> <action application="set" data="ringback=$${hold_music}"/><BR> <action application="bridge" data="loopback/wait"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- Answer the call and use music as the ringtone. (post answer) --><BR> <extension name="ringback_post_answer_uk_ring"><BR> <condition field="destination_number" expression="^\*9983$"><BR> <action application="set" data="transfer_ringback=$${uk-ring}"/><BR> <action application="answer"/><BR> <action application="bridge" data="loopback/wait"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!-- Answer the call and use music as the ringtone. (post answer) --><BR> <extension name="ringback_post_answer_music"><BR> <condition field="destination_number" expression="^\*9984$"><BR> <action application="set" data="transfer_ringback=$${hold_music}"/><BR> <action application="answer"/><BR> <action application="bridge" data="loopback/wait"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="ClueCon"><BR> <condition field="destination_number" expression="^\*9991$"><BR> <action application="set" data="effective_caller_id_name=ClueCon"/><BR> <action application="bridge" data="<A href='mailto:sofia/$${domain}/brian@bkw.org"/'>sofia/$${domain}/brian@bkw.org"/</A>><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="show_info"><BR> <condition field="destination_number" expression="^\*9992$"><BR> <action application="answer"/><BR> <action application="info"/><BR> <action application="sleep" data="250"/><BR> <action application="hangup"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="video_record"><BR> <condition field="destination_number" expression="^\*9993$"><BR> <action application="answer"/><BR> <action application="record_fsv" data="/tmp/testrecord.fsv"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="video_playback"><BR> <condition field="destination_number" expression="^\*9994$"><BR> <action application="answer"/><BR> <action application="play_fsv" data="/tmp/testrecord.fsv"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="delay_echo"><BR> <condition field="destination_number" expression="^\*9995$"><BR> <action application="answer"/><BR> <action application="delay_echo" data="5000"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="echo"><BR> <condition field="destination_number" expression="^\*9996$"><BR> <action application="answer"/><BR> <action application="echo"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="milliwatt"><BR> <condition field="destination_number" expression="^\*9997$"><BR> <action application="answer"/><BR> <action application="playback" data="tone_stream://%(10000,0,1004);loops=-1"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <extension name="tone_stream"><BR> <condition field="destination_number" expression="^\*9998$"><BR> <action application="answer"/><BR> <action application="playback" data="tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> You will no longer hear the bong tone. The wav file is playing stating the call is secure.<BR> The file will not play unless you have both TLS and SRTP active.<BR> --></DIV>
<DIV> </DIV>
<DIV> <extension name="hold_music"><BR> <condition field="destination_number" expression="^\*9999$"/><BR> <condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$"><BR> <action application="answer"/><BR> <action application="execute_extension" data="is_secure XML features"/><BR> <action application="playback" data="$${hold_music}"/><BR> <!-- This really should be an IVR for zrtp enrollment but this is just a demo--><BR> <anti-action application="set" data="zrtp_enrollment=true"/><BR> <anti-action application="answer"/><BR> <anti-action application="playback" data="$${hold_music}"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> You can place files in the default directory to get included.<BR> --><BR> <!--<X-PRE-PROCESS cmd="include" data="default/*.xml"/>--><BR> <BR> <!--<BR> WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING<BR> <BR> Anything you put below this line will usually get ignored due to the file in <BR> default/99999_enum.xml as it will transfer the call to the enum dialplan.</DIV>
<DIV> </DIV>
<DIV> WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING<BR> --></DIV>
<DIV> </DIV>
<DIV> <extension name="enum"><BR> <condition field="${module_exists(mod_enum)}" expression="true"/><BR> <condition field="destination_number" expression="^(.*)$"><BR> <action application="transfer" data="$1 enum"/><BR> </condition><BR> </extension></DIV>
<DIV> </DIV>
<DIV> <!--<BR> <extension name="refer"><BR> <condition field="${sip_refer_to}"><BR> <expression><![CDATA[<sip:${destination_number}@${domain_name}>]]></expression><BR> </condition><BR> <condition field="${sip_refer_to}"><BR> <expression><![CDATA[<sip:(.*)@(.*)>]]></expression><BR> <action application="set" data="refer_user=$1"/><BR> <action application="set" data="refer_domain=$2"/><BR> <action application="info"/><BR> <action application="bridge" data="<A href='mailto:sofia/${use_profile}/${refer_user}@${refer_domain}"/'>sofia/${use_profile}/${refer_user}@${refer_domain}"/</A>><BR> </condition><BR> </extension><BR> --><BR> <!--<BR> This is an example of how to override the RURI on an outgoing invite to a registered contact.<BR> --><BR> <!--<BR> <extension name="ruri"><BR> <condition field="destination_number" expression="^ruri$"><BR> <action application="bridge" data="sofia/${ruri_profile}/${ruri_user}${regex(${sofia_contact(${ruri_contact})}|^[^\@]+(.*)|%1)}"/><BR> </condition><BR> </extension><BR> <BR> <extension name="7004"><BR> <condition field="destination_number" expression="^\*7004$"><BR> <action application="set" data="ruri_profile=default"/><BR> <action application="set" data="ruri_user=2000"/><BR> <action application="set" data="<A href='mailto:ruri_contact=1001@${domain_name}"/'>ruri_contact=1001@${domain_name}"/</A>><BR> <action application="execute_extension" data="ruri"/><BR> </condition><BR> </extension><BR> --></DIV>
<DIV> </DIV>
<DIV> <!-- SEE WARNING ABOVE IF YOU ARE TRYING TO ADD EXTENSIONS HERE! --></DIV>
<DIV> </DIV>
<DIV> </context><BR></include><BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Then I have under default dir:</DIV>
<DIV>musimidk.xml</DIV>
<DIV><extension name="musimi.dk"><BR> <condition field="^0(.\d+)$" expression=""><BR> <action application="bridge" data="sofia/gateway/musimi.dk/$1"/><BR> </condition><BR></extension><BR></DIV>
<DIV>and </DIV>
<DIV>9000_recordings.xml</DIV>
<DIV><extension name="Recordings"><BR> <condition field="destination_number" expression="^\*(732673)$"><BR> <action application="javascript" data="recordings.js"/><BR> </condition><BR></extension><BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Somewhere in that very long default dialplan the call must be directed out. As I can understand the default.xml it includes every file that matches *.xml under the dialplan directory, so it should pick it up???</DIV>
<DIV> </DIV></BODY></HTML>