Collapsing the dialplan would be simplified if you change ext 1001 to 1000.

<include>
  <extension name="Dialplan">
    <condition field="destination_number" expression="^1510248(100\d)$">
    <action application="transfer" data="$1 XML default"/>
    </condition>
    </extension>
</include>

On Sat, Mar 1, 2014 at 5:56 AM, Nandy Dagondon <nandy1925@gmail.com> wrote:

Answer 1: Check your 2nd destination_number - you lacked 1 digit, I think.


On Sat, Mar 1, 2014 at 5:23 AM, Adelia C. <hexade@hotmail.com> wrote:
Setting up a FreeSwitch PBX and running into some issues. Please help.

Question1of2. - Collapse dialplan with regex.

How do I collapse this simple condition using regex and params/vars?:
<include>
  <extension name="Dialplan1">
    <condition field="destination_number" expression="^15102481000$">
    <action application="transfer" data="1001 XML default"/>
    </condition>
    </extension>
    <extension name="Dialplan2">
    <condition field="destination_number" expression="^1510481003$">
    <action application="transfer" data="1003 XML default"/>
    </condition>
  </extension>

Calls are always to 510248xxxx, want to strip that and call the extension xxxx.

Question2of2.  - Transfer call to busy extension

How do I make calls from one extension (ex: 1000) back into the same extension? With my current configuration, I can't.
With called party busy, music is played back to the caller (VM not configured).
What config chance would allow me to send a call to a busy extension?

I checked my config files for this condition and it's missing:
<condition field="destination_number" expression="^${caller_id_number}$">
 
Inbound calls hit Dialplan1 and 2, configured as shown in my first question.
The local extension in FreeSWITCH\conf\directory\default\default.xml is as follows:

<extension name="Local Extensions">
      <condition field="destination_number" expression="^(10[01][0-9])$">
        <action application="set" data="dialed_ext=$1"/>
        <action application="export" data="dialed_ext=$1"/>
        <action application="set" data="call_timeout=20"/> <!-- IS THIS A PROBLEM ?? -->
        <action application="set" data="continue_on_fail=false"/> <!-- IS THIS A PROBLEM ?? -->
        <action application="answer"/>
      </condition>

This is the log I see:
EXECUTE sofia/internal/3036267667@10.20.10.69:5060 bridge(loopback/app=voicemail:default 10.50.1.92 1001)
don't know how to trace it back to a config file.

Where in the configs can I override this?

Thank you in advance!
A.C.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org