<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>Hi Mark et al.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Don't know where my reply went, but certainly not to the list :-)</DIV>
<DIV>So my public: default.xml&nbsp;looks like this;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;!--<BR>&nbsp;&nbsp;&nbsp; NOTICE:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; This context is usually accessed via the external sip profile sitting on port 5080.<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; It is recommended to have separate inbound and outbound contexts.&nbsp; Not only for security<BR>&nbsp;&nbsp;&nbsp; but clearing up why you would need to do such a thing.&nbsp; You don't want outside un-authenticated<BR>&nbsp;&nbsp;&nbsp; callers hitting your default context which allows dialing calls thru your providers and results <BR>&nbsp;&nbsp;&nbsp; in Toll Fraud.<BR>--&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;!-- <A href="http://wiki.freeswitch.org/wiki/Dialplan_XML">http://wiki.freeswitch.org/wiki/Dialplan_XML</A> --&gt;<BR>&lt;include&gt;<BR>&nbsp; &lt;context name="public"&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="unloop"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${unroll_loops}" expression="^true$"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_looped_call}" expression="^true$"&gt;<BR>&nbsp;&lt;action application="deflect" data="${destination_number}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;Tag anything pass thru here as an outside_call so you can make sure not<BR>&nbsp;to create any routing loops based on the conditions that it came from <BR>&nbsp;the outside of the switch.&nbsp; <BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="outside_call" continue="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition&gt;<BR>&nbsp;&lt;action application="set" data="outside_call=true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="call_debug" continue="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${call_debug}" expression="^true$" break="never"&gt;<BR>&nbsp;&lt;action application="info"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="public_extensions"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^(10[01][0-9])$"&gt;<BR>&nbsp;&lt;action application="transfer" data="$1 XML default"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;You can place files in the public directory to get included.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;X-PRE-PROCESS cmd="include" data="public/*.xml"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;If you have made it this far lets challenge the caller and if they authenticate<BR>&nbsp;lets try what they dialed in the default context. (commented out by default)<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="check_auth" continue="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_authorized}" expression="^true$" break="never"&gt;<BR>&nbsp;&lt;anti-action application="respond" data="407"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="transfer_to_default"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition&gt;<BR>&nbsp;&lt;action application="transfer" data="${destination_number} XML default"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp; &lt;/context&gt;<BR>&lt;/include&gt;<BR></DIV>
<DIV>If I don't have any phones externally to my FS, could I just empty the public's default.xml?</DIV>
<DIV>&nbsp;</DIV>
<DIV>BR</DIV>
<DIV>Fribert</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>&gt;&gt;&gt; 11-12-2009 kl. 10:44 skrev Mark Crane &lt;mctch@yahoo.com&gt; i meddelelsen &lt;117186.49301.qm@web56406.mail.re3.yahoo.com&gt;:<BR></DIV>
<TABLE style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border=0 bgColor=#f3f3f3>
<TBODY>
<TR>
<TD>
<DIV style="BORDER-LEFT: #050505 1px solid; PADDING-LEFT: 7px">
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>What do you have for the 'public' tab and is there any entries with anti-actions?<BR><BR>Mark<BR><BR>--- On <B>Thu, 12/10/09, mailinglist <I>&lt;mailinglist@fribert.dk&gt;</I></B> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: mailinglist &lt;mailinglist@fribert.dk&gt;<BR>Subject: Re: [Freeswitch-users] Svar: Re: pfSense with Freeswitch - so far so good, but no calls going through<BR>To: freeswitch-users@lists.freeswitch.org<BR>Date: Thursday, December 10, 2009, 10:27 AM<BR><BR>
<DIV id=yiv1236986043>
<DIV>Hi Mark</DIV>
<DIV>&nbsp;</DIV>
<DIV>The extensions are located under directory/default, and they look like this:</DIV>
<DIV>&lt;include&gt;<BR>&nbsp; &lt;user id="1001" mailbox="1001"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;params&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" value="1001"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-password" value="1001"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-email-all-messages" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-attach-file" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-keep-local-after-email" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-mailto" value="<A href="/mc/compose?to=kenneth@fribert.dk%22/" rel=nofollow target=_blank ymailto='mailto:kenneth@fribert.dk"/'>kenneth@fribert.dk"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/params&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;variables&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="toll_allow" value="domestic,international,local"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="accountcode" value="1001"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="user_context" value="default"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="effective_caller_id_name" value="Fribert"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="effective_caller_id_number" value="12345678"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/variables&gt;<BR>&nbsp; &lt;/user&gt;<BR>&lt;/include&gt;<BR></DIV>
<DIV>&lt;include&gt;<BR>&nbsp; &lt;user id="1002" mailbox="1002"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;params&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" value="1002"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-password" value="1002"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-email-all-messages" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-attach-file" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-keep-local-after-email" value="true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="vm-mailto" value="<A href="/mc/compose?to=lian@fribert.dk%22/" rel=nofollow target=_blank ymailto='mailto:lian@fribert.dk"/'>lian@fribert.dk"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/params&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;variables&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="toll_allow" value="domestic,international,local"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="accountcode" value="1002"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="user_context" value="default"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/variables&gt;<BR>&nbsp; &lt;/user&gt;<BR>&lt;/include&gt;<BR><BR>As I understand them, the context set there, is the right one?</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&gt;&gt;&gt; 10-12-2009 kl. 00:00 skrev Mark Crane &lt;mctch@yahoo.com&gt; i meddelelsen &lt;110796.60596.qm@web56401.mail.re3.yahoo.com&gt;:<BR></DIV>
<TABLE style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border=0 bgColor=#f3f3f3>
<TBODY>
<TR>
<TD>
<DIV style="BORDER-LEFT: rgb(5,5,5) 1px solid; PADDING-LEFT: 7px">
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>Please check both extensions and make sure that the 'User Context' is set to:<BR>default<BR><BR>The dialplan you showed has this.<BR><BR>&lt;extension name="Local_Extension"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="(^\d{5}$|^\d{4}$|^\d{3}$)"&gt;<BR><BR>Which finds the destination_number of the extension you are calling and then sends it there. But from the logs you showed earlier it did not make it this far in the dialplan. You need to find out where its getting diverted.<BR><BR>The strange thing is I can see it goes into the dialplan and starts making the comparison to the regular expressions compares two or three then moves on without a match which isn't standard behavior.<BR><BR>Some of what I read hints toward is running on the public interface (external) when calling. What do you have for the 'public' tab and is there any entries with anti-actions?<BR><BR>Mark<BR><BR>--- On <B>Wed, 12/9/09, mailinglist <I>&lt;mailinglist@fribert.dk&gt;</I></B> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: mailinglist &lt;mailinglist@fribert.dk&gt;<BR>Subject: Re: [Freeswitch-users] Svar: Re: pfSense with Freeswitch - so far so good, but no calls going through<BR>To: freeswitch-users@lists.freeswitch.org<BR>Date: Wednesday, December 9, 2009, 3:20 PM<BR><BR>
<DIV id=yiv668342609>
<DIV>WARNING LONG POST!</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>The default.xml looks like this ( I haven't changed it):</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;?xml version="1.0" encoding="utf-8"?&gt;<BR>&lt;!--<BR>&nbsp;&nbsp;&nbsp; NOTICE:<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; This context is usually accessed via authenticated callers on the sip profile on port 5060 <BR>&nbsp;&nbsp;&nbsp; or transfered callers from the public context which arrived via the sip profile on port 5080.<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Authenticated users will use the user_context variable on the user to determine what context<BR>&nbsp;&nbsp;&nbsp; they can access.&nbsp; You can also add a user in the directory with the cidr= attribute acl.conf.xml<BR>&nbsp;&nbsp;&nbsp; will build the domains acl using this value.<BR>--&gt;<BR>&lt;!-- <A href="http://wiki.freeswitch.org/wiki/Dialplan_XML" rel=nofollow target=_blank>http://wiki.freeswitch.org/wiki/Dialplan_XML</A> --&gt;<BR>&lt;include&gt;<BR>&nbsp; &lt;context name="default"&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="unloop"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${unroll_loops}" expression="^true$"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_looped_call}" expression="^true$"&gt;<BR>&nbsp;&lt;action application="deflect" data="${destination_number}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Example of doing things based on time of day. --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="tod_example" continue="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- man strftime - M-F, 9AM to 6PM --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${strftime(%w)}" expression="^([1-5])$"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${strftime(%H%M)}" expression="^((09|1[0-7])[0-5][0-9]|1800)$"&gt;<BR>&nbsp;&lt;action application="set" data="open=true"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="global-intercept"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*886$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="intercept" data="${hash(select/${domain_name}-last_dial/global)}"/&gt;<BR>&nbsp;&lt;action application="sleep" data="2000"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="group-intercept"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*8$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="intercept" data="${hash(select/${domain_name}-last_dial/${callgroup})}"/&gt;<BR>&nbsp;&lt;action application="sleep" data="2000"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="intercept-ext"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*\*(\d+)$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="intercept" data="${hash(select/${domain_name}-last_dial_ext/$1)}"/&gt;<BR>&nbsp;&lt;action application="sleep" data="2000"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="redial"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*870$"&gt;<BR>&nbsp;&lt;action application="transfer" data="${hash(select/${domain_name}-last_dial/${caller_id_number})}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="global" continue="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${network_addr}" expression="^$" break="never"&gt;<BR>&nbsp;&lt;action application="set" data="use_profile=${cond(${acl($${local_ip_v4} rfc1918)} == true ? nat : default)}"/&gt;<BR>&nbsp;&lt;anti-action application="set" data="use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${call_debug}" expression="^true$" break="never"&gt;<BR>&nbsp;&lt;action application="info"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp; This is an example of how to auto detect if telephone-event is missing and activate inband detection <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${switch_r_sdp}" expression="a=rtpmap:(\d+)\stelephone-event/8000" break="never"&gt;<BR>&nbsp;&lt;action application="set" data="rtp_payload_number=$1"/&gt;<BR>&nbsp;&lt;anti-action application="start_dtmf"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$" break="never"&gt;<BR>&nbsp;&lt;action application="set" data="sip_secure_media=true"/&gt;<BR>&nbsp;&lt;!-- Offer SRTP on outbound legs if we have it on inbound. --&gt;<BR>&nbsp;&lt;!-- &lt;action application="export" data="sip_secure_media=true"/&gt; --&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition&gt;<BR>&nbsp;&lt;action application="hash" data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/&gt;<BR>&nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/&gt;<BR>&nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial/global/${uuid}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- If sip_req_host is not a local domain then this has to be an external sip uri --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="external_sip_uri" continue="true"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="source" expression="mod_sofia"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${outside_call}" expression="^$"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${domain_exists(${sip_req_host})}" expression="true"&gt;<BR>&nbsp;&lt;anti-action application="bridge" data="sofia/${use_profile}/${sip_to_uri}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;snom button demo, call 9000 to make button 2 mapped to transfer the current call to a conference<BR>&nbsp;&nbsp;&nbsp; --&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="snom-demo-2"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9001$"&gt;<BR>&nbsp;&lt;action application="eval" data="${snom_bind_key(2 off DND ${sip_from_user} ${sip_from_host} ${sofia_profile_name} message notused)}"/&gt;<BR>&nbsp;&lt;action application="transfer" data="3000"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="snom-demo-1"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9000$"&gt;<BR>&nbsp;&lt;!--&lt;key&gt; &lt;light&gt; &lt;label&gt; &lt;user&gt; &lt;host&gt; &lt;profile&gt; &lt;action_name&gt; &lt;action&gt;--&gt;<BR>&nbsp;&lt;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)}"/&gt;<BR>&nbsp;&lt;action application="playback" data="$${hold_music}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="eavesdrop"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*88(.*)$|^\*0(.*)$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="eavesdrop" data="${hash(select/${domain_name}-spymap/$1)}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="eavesdrop"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*779$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="set" data="eavesdrop_indicate_failed=tone_stream://%(500, 0, 320)"/&gt;<BR>&nbsp;&lt;action application="set" data="eavesdrop_indicate_new=tone_stream://%(500, 0, 620)"/&gt;<BR>&nbsp;&lt;action application="set" data="eavesdrop_indicate_idle=tone_stream://%(250, 0, 920)"/&gt;<BR>&nbsp;&lt;action application="eavesdrop" data="all"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="call_return"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*69$|^869$|^lcr$"&gt;<BR>&nbsp;&lt;action application="transfer" data="${hash(select/${domain_name}-call_return/${caller_id_number})}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="del-group"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*80(\d{2})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="group" data="delete:$1@${domain_name}:${sofia_contact(<A rel=nofollow>${sip_from_user}@${domain_name})}"/</A>&gt;<BR>&nbsp;&lt;action application="gentones" data="%(1000, 0, 320)"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="add-group"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*81(\d{2})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="group" data="insert:$1@${domain_name}:${sofia_contact(<A rel=nofollow>${sip_from_user}@${domain_name})}"/</A>&gt;<BR>&nbsp;&lt;action application="gentones" data="%(1000, 0, 640)"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="call-group-simo"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*82(\d{2})$"&gt;<BR>&nbsp;&lt;action application="bridge" data="{ignore_early_media=true}${group(call:$1@${domain_name})}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="call-group-order"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*83(\d{2})$"&gt;<BR>&nbsp;&lt;action application="set" data="call_timeout=10"/&gt;<BR>&nbsp;&lt;action application="bridge" data="{ignore_early_media=true}${group(call:$1@${domain_name}:order)}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="extension-intercom"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*8(10[01][0-9])$"&gt;<BR>&nbsp;&lt;action application="set" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="export" data="sip_auto_answer=true"/&gt;<BR>&nbsp;&lt;action application="bridge" data="<A rel=nofollow>user/${dialed_extension}@${domain_name}"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;X-PRE-PROCESS cmd="include" data="default/*.xml"/&gt;<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;!-- <BR>&nbsp; dial the extension 3, 4, or 5 digit extensions for 30 seconds and go to voicemail if the <BR>&nbsp; call fails (continue_on_fail=true), otherwise hang up after a successful<BR>&nbsp; bridge (hangup_after-bridge=true) <BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="Local_Extension"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="(^\d{5}$|^\d{4}$|^\d{3}$)"&gt;<BR>&nbsp;&lt;action application="set" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="export" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;!-- bind_meta_app can have these args &lt;key&gt; [a|b|ab] [a|b|o|s] &lt;app&gt; --&gt;<BR>&nbsp;&lt;action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/&gt;<BR>&nbsp;&lt;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"/&gt;<BR>&nbsp;&lt;action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/&gt;<BR>&nbsp;&lt;action application="set" data="ringback=${us-ring}"/&gt;<BR>&nbsp;&lt;action application="set" data="transfer_ringback=$${hold_music}"/&gt;<BR>&nbsp;&lt;action application="set" data="call_timeout=30"/&gt;<BR>&nbsp;&lt;!-- &lt;action application="set" data="sip_exclude_contact=${network_addr}"/&gt; --&gt;<BR>&nbsp;&lt;action application="set" data="hangup_after_bridge=true"/&gt;<BR>&nbsp;&lt;!--&lt;action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/&gt; --&gt;<BR>&nbsp;&lt;action application="set" data="continue_on_fail=true"/&gt;<BR>&nbsp;&lt;action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/&gt;<BR>&nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/&gt;<BR>&nbsp;&lt;action application="set" data="called_party_callgroup=${user_data(<A rel=nofollow>${dialed_extension}@${domain_name</A>} var callgroup)}"/&gt;<BR>&nbsp;&lt;!--&lt;action application="export" data="nolocal:sip_secure_media=${user_data(<A rel=nofollow>${dialed_extension}@${domain_name</A>} var sip_secure_media)}"/&gt;--&gt;<BR>&nbsp;&lt;action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/&gt;<BR>&nbsp;&lt;action application="bridge" data="<A rel=nofollow>user/${dialed_extension}@${domain_name}"/</A>&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="group_dial_sales"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*2000$"&gt;<BR>&nbsp;&lt;action application="bridge" data="${group_call(<A rel=nofollow>sales@${domain_name})}"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="group_dial_support"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*2001$"&gt;<BR>&nbsp;&lt;action application="bridge" data="<A rel=nofollow>group/support@${domain_name}"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="group_dial_billing"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*2002$"&gt;<BR>&nbsp;&lt;action application="bridge" data="<A rel=nofollow>group/billing@${domain_name}"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- voicemail operator extension --&gt;<BR>&nbsp;&lt;!--<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="operator"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*operator$|^0$"&gt;<BR>&nbsp;&lt;action application="set" data="transfer_ringback=$${hold_music}"/&gt;<BR>&nbsp;&lt;action application="transfer" data="1000 XML features"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;--&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- voicemail main2 extension --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="vmain2"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^vmain2$|^\*97$|^\*4000$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="voicemail" data="check default ${domain_name}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;!-- voicemail main extension --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="vmain"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^vmain$|^\*98$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="voicemail" data="check default ${domain_name} ${sip_from_user}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="send_to_voicemail_5digits"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*99(\d{5})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="set" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="export" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="send_to_voicemail_4digits"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*99(\d{4})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="set" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="export" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="send_to_voicemail_3digits"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*99(\d{3})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="set" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="export" data="dialed_extension=$1"/&gt;<BR>&nbsp;&lt;action application="voicemail" data="default ${domain_name} ${dialed_extension}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;!-- dial via SIP uri --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="sip_uri"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^sip:(.*)$"&gt;<BR>&nbsp;&lt;action application="bridge" data="sofia/${use_profile}/$1"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;start a dynamic conference with the settings of the "default" conference profile in conference.conf.xml<BR>&nbsp;&nbsp;&nbsp; --&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="nb_conferences"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*(30\d{2})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="conference" data="<A rel=nofollow>$1-${domain_name}@default"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="wb_conferences"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*(31\d{2})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="conference" data="<A rel=nofollow>$1-${domain_name}@wideband"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="uwb_conferences"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*(32\d{2})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="conference" data="<A rel=nofollow>$1-${domain_name}@ultrawideband"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!-- MONO 48kHz conferences --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="cdquality_conferences"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*(33\d{2})$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="conference" data="<A rel=nofollow>$1-${domain_name}@cdquality"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;!-- dial the freeswitch conference via SIP--&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="freeswitch_public_conf_via_sip"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9(888|1616|3232)$"&gt;<BR>&nbsp;&lt;action application="export" data="hold_music=silence"/&gt;<BR>&nbsp;&lt;!-- <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This will take the SAS from the b-leg and send it to the display on the a-leg phone.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Known working with Polycom and Snom maybe others.<BR>&nbsp;--&gt;<BR>&nbsp;&lt;!--<BR>&nbsp;&lt;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 )}&nbsp; \${uuid_getvar(\${uuid_getvar(${uuid} signal_bond)} zrtp_sas2_string )} )}"/&gt;<BR>&nbsp;&lt;action application="export" data="nolocal:zrtp_secure_media=true"/&gt;<BR>&nbsp;--&gt;<BR>&nbsp;&lt;action application="bridge" data="<A rel=nofollow>sofia/${use_profile}/$1@conference.freeswitch.org"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;This extension will start a conference and invite a group.<BR>&nbsp;At anytime the participant can dial *2 to bridge directly to the boss. <BR>&nbsp;All other callers are then hung up on.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="mad_boss_intercom"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*0911$"&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss1"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_caller_id_number=0911"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_timeout=60"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_flags=mute"/&gt;<BR>&nbsp;&lt;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'}"/&gt;<BR>&nbsp;&lt;action application="set" data="sip_exclude_contact=${network_addr}"/&gt;<BR>&nbsp;&lt;action application="conference_set_auto_outcall" data="${group_call(sales)}"/&gt;<BR>&nbsp;&lt;action application="conference" data="<A rel=nofollow>madboss_intercom1@default+flags{endconf|deaf}"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;This extension will start a conference and invite a few of people.<BR>&nbsp;At anytime the participant can dial *2 to bridge directly to the boss. <BR>&nbsp;All other callers are then hung up on.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="mad_boss_intercom"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*0912$"&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss2"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_caller_id_number=0912"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_timeout=60"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_flags=mute"/&gt;<BR>&nbsp;&lt;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'}"/&gt;<BR>&nbsp;&lt;action application="set" data="sip_exclude_contact=${network_addr}"/&gt;<BR>&nbsp;&lt;action application="conference_set_auto_outcall" data="loopback/9999"/&gt;<BR>&nbsp;&lt;action application="conference" data="<A rel=nofollow>madboss_intercom2@default+flags{endconf|deaf}"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--This extension will start a conference and invite several people upon entering --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="mad_boss"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*0913$"&gt;<BR>&nbsp;&lt;!--These params effect the outcalls made once you join--&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_caller_id_number=0911"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_timeout=60"/&gt;<BR>&nbsp;&lt;action application="set" data="conference_auto_outcall_flags=none"/&gt;<BR>&nbsp;&lt;!--&lt;action application="set" data="conference_auto_outcall_announce=say:You have been called into an emergency conference"/&gt;--&gt;<BR>&nbsp;&lt;!--Add as many of these as you need, These are the people you are going to call--&gt;<BR>&nbsp;&lt;action application="conference_set_auto_outcall" data="loopback/9999"/&gt;<BR>&nbsp;&lt;action application="conference" data="<A rel=nofollow>madboss3@default"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- a sample IVR&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="ivr_demo"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*5000$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="answer"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="sleep" data="2000"/&gt;<BR>&nbsp;&lt;action application="ivr" data="demo_ivr"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Create a conference on the fly and pull someone in at the same time. --&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="dynamic_conference"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*5001$"&gt;<BR>&nbsp;&lt;action application="conference" data="bridge:mydynaconf:sofia/${use_profile}/1234@conference.freeswitch.org"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="rtp_multicast_page"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*pagegroup$|^\*7243"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="esf_page_group"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- <BR>&nbsp; Parking extensions... transferring calls to 5900 will park them in a queue.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="park"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*5900$"&gt;<BR>&nbsp;&lt;action application="set" data="fifo_music=$${hold_music}"/&gt;<BR>&nbsp;&lt;action application="fifo" data="<A rel=nofollow>5900@${domain_name</A>} in"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- <BR>&nbsp; Parking pickup extension.&nbsp; Calling 5901 will pickup the call.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="unpark"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*5901$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="fifo" data="<A rel=nofollow>5900@${domain_name</A>} out nowait"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;This extension is used with snom phones.&nbsp; <BR>&nbsp;<BR>&nbsp;Set a function key to park+lot (lot being a number or name.)<BR>&nbsp;Set type to Park+Orbit.&nbsp; You can then park and pickup using <BR>&nbsp;the softkey on the phone.&nbsp; Should work with other phones.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="park"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="source" expression="mod_sofia"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="park\+(\d+)"&gt;<BR>&nbsp;&lt;action application="fifo" data="<A rel=nofollow>$1@${domain_name</A>} in undef $${hold_music}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt; <BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;The extension is parking pickup with a to param of the fifo we are calling <BR>&nbsp;Some phones send things like orbit= and you can extract that info.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="unpark"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="source" expression="mod_sofia"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^parking$"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_to_params}" expression="fifo\=(\d+)"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="fifo" data="<A rel=nofollow>$1@${domain_name</A>} out nowait"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This extension is used with linksys phones.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set a Phone tab option Call Park Serv to yes. You can park and<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pickup using soft keys "park" and "unpark" found during<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; active call when moving navigation button. The other option<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is to use phone's star codes (defaults to *38 and *39).<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="park"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="source" expression="mod_sofia"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="callpark"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_refer_to}"&gt;<BR>&nbsp;&lt;expression&gt;&lt;![CDATA[&lt;sip:callpark@${domain_name};orbit=(\d+)&gt;]]&gt;&lt;/expression&gt;<BR>&nbsp;&lt;action application="fifo" data="<A rel=nofollow>$1@${domain_name</A>} in undef $${hold_music}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This extension is used with linksys phones.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The extension is parking pickup with a to param of the fifo<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; we are calling. Linksys sends orbit=&lt;parkingslotnumber&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and we extract that info.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="unpark"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="source" expression="mod_sofia"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="pickup"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_to_params}" expression="orbit\=(\d+)"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="fifo" data="<A rel=nofollow>$1@${domain_name</A>} out nowait"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;Here are some examples of how to override the ringback heard by the<BR>&nbsp;far end.&nbsp; You have two variables that you can use to override this.<BR>&nbsp;<BR>&nbsp;ringback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - used when a call isn't answered. (early media)<BR>&nbsp;transfer_ringback - used when the call is already answered. (post answer)<BR>&nbsp;&nbsp;&nbsp; --&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Demonstration of how to override the ringback in various situations --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="wait"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^wait$"&gt;<BR>&nbsp;&lt;action application="pre_answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="20000"/&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="playback" data="voicemail/vm-goodbye.wav"/&gt;<BR>&nbsp;&lt;action application="hangup"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="fax_receive"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9978$"&gt;<BR>&nbsp;&lt;action application="answer" /&gt;<BR>&nbsp;&lt;action application="playback" data="silence_stream://2000"/&gt;<BR>&nbsp;&lt;action application="rxfax" data="/tmp/rxfax.tif"/&gt;<BR>&nbsp;&lt;action application="hangup"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="fax_transmit"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9979$"&gt;<BR>&nbsp;&lt;action application="txfax" data="/tmp/txfax.tif"/&gt;<BR>&nbsp;&lt;action application="hangup"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Send a 180 and let the far end generate ringback. --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="ringback_180"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9980$"&gt;<BR>&nbsp;&lt;action application="ring_ready"/&gt;<BR>&nbsp;&lt;action application="sleep" data="20000"/&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="sleep" data="1000"/&gt;<BR>&nbsp;&lt;action application="playback" data="voicemail/vm-goodbye.wav"/&gt;<BR>&nbsp;&lt;action application="hangup"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Send a 183 and send uk-ring as the ringtone. (early media) --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="ringback_183_uk_ring"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9981$"&gt;<BR>&nbsp;&lt;action application="set" data="ringback=$${uk-ring}"/&gt;<BR>&nbsp;&lt;action application="bridge" data="loopback/wait"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Send a 183 and use music as the ringtone. (early media) --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="ringback_183_music_ring"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9982$"&gt;<BR>&nbsp;&lt;action application="set" data="ringback=$${hold_music}"/&gt;<BR>&nbsp;&lt;action application="bridge" data="loopback/wait"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Answer the call and use music as the ringtone. (post answer) --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="ringback_post_answer_uk_ring"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9983$"&gt;<BR>&nbsp;&lt;action application="set" data="transfer_ringback=$${uk-ring}"/&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="bridge" data="loopback/wait"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- Answer the call and use music as the ringtone. (post answer) --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="ringback_post_answer_music"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9984$"&gt;<BR>&nbsp;&lt;action application="set" data="transfer_ringback=$${hold_music}"/&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="bridge" data="loopback/wait"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="ClueCon"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9991$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="effective_caller_id_name=ClueCon"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="<A rel=nofollow>sofia/$${domain}/brian@bkw.org"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="show_info"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9992$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="info"/&gt;<BR>&nbsp;&lt;action application="sleep" data="250"/&gt;<BR>&nbsp;&lt;action application="hangup"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="video_record"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9993$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="record_fsv" data="/tmp/testrecord.fsv"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="video_playback"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9994$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="play_fsv" data="/tmp/testrecord.fsv"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="delay_echo"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9995$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="delay_echo" data="5000"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="echo"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9996$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="echo"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="milliwatt"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9997$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="playback" data="tone_stream://%(10000,0,1004);loops=-1"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="tone_stream"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9998$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="playback" data="tone_stream://path=${base_dir}/conf/tetris.ttml;loops=10"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;You will no longer hear the bong tone.&nbsp; The wav file is playing stating the call is secure.<BR>&nbsp;The file will not play unless you have both TLS and SRTP active.<BR>&nbsp;&nbsp;&nbsp; --&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;extension name="hold_music"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*9999$"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$"&gt;<BR>&nbsp;&lt;action application="answer"/&gt;<BR>&nbsp;&lt;action application="execute_extension" data="is_secure XML features"/&gt;<BR>&nbsp;&lt;action application="playback" data="$${hold_music}"/&gt;<BR>&nbsp;&lt;!-- This really should be an IVR for zrtp enrollment but this is just a demo--&gt;<BR>&nbsp;&lt;anti-action application="set" data="zrtp_enrollment=true"/&gt;<BR>&nbsp;&lt;anti-action application="answer"/&gt;<BR>&nbsp;&lt;anti-action application="playback" data="$${hold_music}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;You can place files in the default directory to get included.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--&lt;X-PRE-PROCESS cmd="include" data="default/*.xml"/&gt;--&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING<BR>&nbsp;<BR>&nbsp;Anything you put below this line will usually get ignored due to the file in <BR>&nbsp;default/99999_enum.xml as it will transfer the call to the enum dialplan.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING<BR>&nbsp;&nbsp;&nbsp; --&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; &lt;extension name="enum"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;condition field="${module_exists(mod_enum)}" expression="true"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^(.*)$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="transfer" data="$1 enum"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp; &lt;/extension&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="refer"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_refer_to}"&gt;<BR>&nbsp;&lt;expression&gt;&lt;![CDATA[&lt;sip:${destination_number}@${domain_name}&gt;]]&gt;&lt;/expression&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="${sip_refer_to}"&gt;<BR>&nbsp;&lt;expression&gt;&lt;![CDATA[&lt;sip:(.*)@(.*)&gt;]]&gt;&lt;/expression&gt;<BR>&nbsp;&lt;action application="set" data="refer_user=$1"/&gt;<BR>&nbsp;&lt;action application="set" data="refer_domain=$2"/&gt;<BR>&nbsp;&lt;action application="info"/&gt;<BR>&nbsp;&lt;action application="bridge" data="<A rel=nofollow>sofia/${use_profile}/${refer_user}@${refer_domain}"/</A>&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;This is an example of how to override the RURI on an outgoing invite to a registered contact.<BR>&nbsp;&nbsp;&nbsp; --&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp; &lt;extension name="ruri"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^ruri$"&gt;<BR>&nbsp;&lt;action application="bridge" data="sofia/${ruri_profile}/${ruri_user}${regex(${sofia_contact(${ruri_contact})}|^[^\@]+(.*)|%1)}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;extension name="7004"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*7004$"&gt;<BR>&nbsp;&lt;action application="set" data="ruri_profile=default"/&gt;<BR>&nbsp;&lt;action application="set" data="ruri_user=2000"/&gt;<BR>&nbsp;&lt;action application="set" data="<A rel=nofollow>ruri_contact=1001@${domain_name}"/</A>&gt;<BR>&nbsp;&lt;action application="execute_extension" data="ruri"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<BR>&nbsp;&nbsp;&nbsp; --&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &lt;!-- SEE WARNING ABOVE IF YOU ARE TRYING TO ADD EXTENSIONS HERE! --&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; &lt;/context&gt;<BR>&lt;/include&gt;<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Then I have under default dir:</DIV>
<DIV>musimidk.xml</DIV>
<DIV>&lt;extension name="musimi.dk"&gt;<BR>&nbsp;&nbsp; &lt;condition field="^0(.\d+)$" expression=""&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="sofia/gateway/musimi.dk/$1"/&gt;<BR>&nbsp;&nbsp; &lt;/condition&gt;<BR>&lt;/extension&gt;<BR></DIV>
<DIV>and </DIV>
<DIV>9000_recordings.xml</DIV>
<DIV>&lt;extension name="Recordings"&gt;<BR>&nbsp;&nbsp; &lt;condition field="destination_number" expression="^\*(732673)$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="javascript" data="recordings.js"/&gt;<BR>&nbsp;&nbsp; &lt;/condition&gt;<BR>&lt;/extension&gt;<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>FreeSWITCH-users mailing list<BR><A rel=nofollow>FreeSWITCH-users@lists.freeswitch.org</A><BR><A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel=nofollow target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel=nofollow target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A href="http://www.freeswitch.org" rel=nofollow target=_blank>http://www.freeswitch.org</A><BR></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></DIV></TD></TR></TBODY></TABLE></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>FreeSWITCH-users mailing list<BR><A href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A><BR><A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A href="http://www.freeswitch.org" target=_blank>http://www.freeswitch.org</A><BR></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></DIV></TD></TR></TBODY></TABLE></BODY></HTML>