<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><include><br> <extension name="Dialplan1"><br> <condition field="destination_number" expression="^15102481000$"><br> <action application="transfer" data="1001 XML default"/><br> </condition><br> </extension><br> <extension name="Dialplan2"><br> <condition field="destination_number" expression="^1510481003$"><br> <action application="transfer" data="1003 XML default"/><br> </condition><br> </extension><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'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><condition field="destination_number" expression="^${caller_id_number}$"><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><extension name="Local Extensions"><br> <condition field="destination_number" expression="^(10[01][0-9])$"><br> <action application="set" data="dialed_ext=$1"/><br> <action application="export" data="dialed_ext=$1"/><br> <action application="set" data="call_timeout=20"/> <!-- IS THIS A PROBLEM ?? --><br> <action application="set" data="continue_on_fail=false"/> <!-- IS THIS A PROBLEM ?? --><br> <action application="answer"/><br> </condition><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>