<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'>In reply to :<br><pre>Answer 1: Check your 2nd destination_number - you lacked 1 digit, I think.
On Sat, Mar 1, 2014 at 5:23 AM, Adelia C. <<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">hexade at hotmail.com</a>> wrote:
><i> Setting up a FreeSwitch PBX and running into some issues. Please help.
</i>><i>
</i>><i> Question1of2. - Collapse dialplan with regex.
</i>><i>
</i>><i> How do I collapse this simple condition using regex and params/vars?:
</i>><i> <include>
</i>><i> <extension name="Dialplan1">
</i>><i> <condition field="destination_number" expression="^15102481000$">
</i>><i> <action application="transfer" data="1001 XML default"/>
</i>><i> </condition>
</i>><i> </extension>
</i>><i> <extension name="Dialplan2">
</i>><i> <condition field="destination_number" expression="^1510481003$">
</i>><i> <action application="transfer" data="1003 XML default"/>
</i>><i> </condition>
</i>><i> </extension>"<br><br><br></i>Tried to be smart and replace the real number, but - in doing so - I mistyped it.<br>The number in Dialplan2 is 15102481003 and that one works.<br><br>I am calling from 1000 to 1003 and that works fine.<br>When I call from 1000 to 1000 - I am calling over an external Sip Trunk, the call fails when I am calling 1000 inbound (knowing that the extension is busy on the outbound leg).<br><br>I found the config that controls playing music to the caller (remember, no VM set up) and I commeted it out:<br><br>in FreeSWITCH\conf\dialplan\default.xml, in LocalExtension, I commented out this:<br><action application="bridge" data="user/${dialed_extension}@${domain_name}"/><br><action application="answer"/><br><!--action application="sleep" data="1000"/><br><action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/--><br><br>Music is gone, call is not connected but it's a silent failure. Still not sure how to force calls to busy extensions.<br>Maybe 'transfer' to extension will not do in this case ... <br>Hope someone will chime in.<br><br>Thank you.<br><br>PS: Thanks for the regex.<br><br></pre>                                            </div></body>
</html>