<div dir="ltr"><br><div class="gmail_extra"><div><div>Collapsing the dialplan would be simplified if you change ext 1001 to 1000.</div></div><div><span style="font-family:arial,sans-serif;font-size:13.333333015441895px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333015441895px">&lt;include&gt;</span><br style="font-family:arial,sans-serif;font-size:13.333333015441895px"><span style="font-family:arial,sans-serif;font-size:13.333333015441895px">  &lt;extension name=&quot;Dialplan&quot;&gt;</span><br style="font-family:arial,sans-serif;font-size:13.333333015441895px">
<span style="font-family:arial,sans-serif;font-size:13.333333015441895px">    &lt;condition field=&quot;destination_number&quot; expression=&quot;^1510248(100\d)$&quot;&gt;</span><br style="font-family:arial,sans-serif;font-size:13.333333015441895px">
<span style="font-family:arial,sans-serif;font-size:13.333333015441895px">    &lt;action application=&quot;transfer&quot; data=&quot;$1 XML default&quot;/&gt;</span><br style="font-family:arial,sans-serif;font-size:13.333333015441895px">
<span style="font-family:arial,sans-serif;font-size:13.333333015441895px">    &lt;/condition&gt;</span><br style="font-family:arial,sans-serif;font-size:13.333333015441895px"><span style="font-family:arial,sans-serif;font-size:13.333333015441895px">    &lt;/extension&gt;</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13.333333015441895px">&lt;/include&gt;</span></div><div><span style="font-family:arial,sans-serif;font-size:13.333333015441895px"><br></span></div><div class="gmail_quote">
On Sat, Mar 1, 2014 at 5:56 AM, Nandy Dagondon <span dir="ltr">&lt;<a href="mailto:nandy1925@gmail.com" target="_blank">nandy1925@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><div><div>Answer 1: Check your 2nd destination_number - you lacked 1 digit, I think.</div></div>
<br><br><div class="gmail_quote"><div><div class="h5">On Sat, Mar 1, 2014 at 5:23 AM, Adelia C. <span dir="ltr">&lt;<a href="mailto:hexade@hotmail.com" target="_blank">hexade@hotmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">



<div><div dir="ltr">Setting up a FreeSwitch PBX and running into some issues. Please help.<br><br>Question1of2. - Collapse dialplan with regex.<br><br>How do I collapse this simple condition using regex and params/vars?:<br>

&lt;include&gt;<br>  &lt;extension name=&quot;Dialplan1&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^15102481000$&quot;&gt;<br>    &lt;action application=&quot;transfer&quot; data=&quot;1001 XML default&quot;/&gt;<br>

    &lt;/condition&gt;<br>    &lt;/extension&gt;<br>    &lt;extension name=&quot;Dialplan2&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^1510481003$&quot;&gt;<br>    &lt;action application=&quot;transfer&quot; data=&quot;1003 XML default&quot;/&gt;<br>

    &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br>Calls are always to 510248xxxx, want to strip that and call the extension xxxx. <br><br>Question2of2.  - Transfer call to busy extension<br><br>How do I make calls from one extension (ex: 1000) back into the same extension? With my current configuration, I can&#39;t.<br>

With called party busy, music is played back to the caller (VM not configured).<br>What config chance would allow me to send a call to a busy extension?<br><br>I checked my config files for this condition and it&#39;s missing:<br>

&lt;condition field=&quot;destination_number&quot; expression=&quot;^${caller_id_number}$&quot;&gt;<br> <br>Inbound calls hit Dialplan1 and 2, configured as shown in my first question.<br>The local extension in FreeSWITCH\conf\directory\default\default.xml is as follows:<br>

<br>&lt;extension name=&quot;Local Extensions&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;dialed_ext=$1&quot;/&gt;<br>

        &lt;action application=&quot;export&quot; data=&quot;dialed_ext=$1&quot;/&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;call_timeout=20&quot;/&gt; &lt;!-- IS THIS A PROBLEM ?? --&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;  &lt;!-- IS THIS A PROBLEM ?? --&gt;<br>

        &lt;action application=&quot;answer&quot;/&gt;<br>      &lt;/condition&gt;<br><br>This is the log I see:<br>EXECUTE sofia/internal/<a href="tel:3036267667" value="+13036267667" target="_blank">3036267667</a>@<a href="http://10.20.10.69:5060" target="_blank">10.20.10.69:5060</a> bridge(loopback/app=voicemail:default 10.50.1.92 1001)<br>

don&#39;t know how to trace it back to a config file.<br><br>Where in the configs can I override this?<br><br>Thank you in advance!<span><font color="#888888"><br>A.C.<br>                                               </font></span></div></div>

<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div></div>