[Freeswitch-users] Dialplan help needed - inbound PBX dialing (to BUSY extension)
Adelia C.
hexade at hotmail.com
Sat Mar 1 00:23:58 MSK 2014
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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140228/6656b05c/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list