<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><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>&nbsp; &lt;extension name="Dialplan1"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^15102481000$"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;action application="transfer" data="1001 XML default"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>&nbsp;&nbsp;&nbsp; &lt;extension name="Dialplan2"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^1510481003$"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;action application="transfer" data="1003 XML default"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp; &lt;/extension&gt;<br><br>Calls are always to 510248xxxx, want to strip that and call the extension xxxx. <br><br>Question2of2.&nbsp; - 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'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's missing:<br>&lt;condition field="destination_number" expression="^${caller_id_number}$"&gt;<br>&nbsp;<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="Local Extensions"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^(10[01][0-9])$"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="dialed_ext=$1"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="export" data="dialed_ext=$1"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="set" data="call_timeout=20"/&gt; &lt;!-- IS THIS A PROBLEM ?? --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="continue_on_fail=false"/&gt;  &lt;!-- IS THIS A PROBLEM ?? --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="answer"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br><br>This is the log I see:<br>EXECUTE sofia/internal/3036267667@10.20.10.69:5060 bridge(loopback/app=voicemail:default 10.50.1.92 1001)<br>don'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!<br>A.C.<br>                                               </div></body>
</html>