[Freeswitch-users] Dialplan help needed - inbound PBX dialing (to BUSY extension)
Adelia C.
hexade at hotmail.com
Sat Mar 1 03:29:11 MSK 2014
In reply to :
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 at 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>"
Tried to be smart and replace the real number, but - in doing so - I mistyped it.
The number in Dialplan2 is 15102481003 and that one works.
I am calling from 1000 to 1003 and that works fine.
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).
I found the config that controls playing music to the caller (remember, no VM set up) and I commeted it out:
in FreeSWITCH\conf\dialplan\default.xml, in LocalExtension, I commented out this:
<action application="bridge" data="user/${dialed_extension}@${domain_name}"/>
<action application="answer"/>
<!--action application="sleep" data="1000"/>
<action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/-->
Music is gone, call is not connected but it's a silent failure. Still not sure how to force calls to busy extensions.
Maybe 'transfer' to extension will not do in this case ...
Hope someone will chime in.
Thank you.
PS: Thanks for the regex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140228/c773c992/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list