[Freeswitch-users] Static Dial plan

Andre andretodd at verizon.net
Sat Aug 30 18:00:41 MSD 2014


Thanks that worked

 

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Russell Treleaven
Sent: Friday, August 29, 2014 8:04 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Static Dial plan

 

Maybe this will do what you want.

<include>

            <extension name="20254">

                        <condition field="destination_number" expression="^(20254.+)">

                                    <action application="set" data="hangup_after_bridge=true"/>

                                    <action application="set" data="bypass_media=true"/>

                                    <action application="bridge" data="sofia/${use_profile}/$1 at xxx.xxx.xxxx <mailto:sofia/$%7buse_profile%7d/$1 at xxx.xxx.xxxx> "/>

                        </condition>

            </extension

</include>

 

On Fri, Aug 29, 2014 at 6:12 PM, Andre <andretodd at verizon.net <mailto:andretodd at verizon.net> > wrote:

Hi, I’m working on testing some things with FreeSWITCH and I’m creating a static dial string however it doesn’t seem to be working.
What is wrong with the below? I want anything with prefix 202254 to go to one IP but I need to send the prefix with it
 
<include>
  <extension name="20254">
    <condition field="destination_number" expression="^20254">
 
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="bypass_media=true"/>
<action application="bridge" data="sofia/${use_profile}/$0 at xxx.xxx.xxxx <mailto:sofia/$%7buse_profile%7d/$0 at xxx.xxx.xxxx> "/>
   
 </condition>
  </extension
</include>
 
 
This is what I see in the debug screen
 
Dialplan: sofia/internal/1000 at 192.168.1.111 <mailto:1000 at 192.168.1.111>  Regex (FAIL) [public_extensions] des
tination_number(202543015551212) =~ /^(10[01][0-9])$/ break=on-false
Dialplan: sofia/internal/1000 at 192.168.1.111 <mailto:1000 at 192.168.1.111>  parsing [public->public_did] continu
e=false
Dialplan: sofia/internal/1000 at 192.168.1.111 <mailto:1000 at 192.168.1.111>  Regex (FAIL) [public_did] destinatio
n_number(202543015551212) =~ /^(5551212)$/ break=on-false
2014-08-29 18:02:57.882447 [DEBUG] switch_core_state_machine.c:167 (sofia/intern


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org <mailto:consulting at freeswitch.org> 
http://www.freeswitchsolutions.com

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




FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org> 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140830/6c7466d2/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list