[Freeswitch-users] variable not being replaced in dialplan

Juan Pablo L. jpablolorenzetti at hotmail.com
Fri Jun 22 21:13:40 MSD 2012


thank you very much, that worked too, i m learning and still a lot ahead but thanks
for your support.

----------------------------------------
> Date: Fri, 22 Jun 2012 17:54:50 +0100
> From: paul at cupis.co.uk
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] variable not being replaced in dialplan
>
> On Fri, Jun 22, 2012 at 03:57:59PM +0000, Juan Pablo L. wrote:
> > Good morning, i have the following entry in my dialplan to dialout
> > using a gateway:
> >
> > <extension name="gw_outbound_call">
> > <condition field="destination_number" expression="[\d]{7,}?$">
> > <action application="set" data="effective_caller_id_number=10000"/>
> > <action application="bridge" data="sofia/gateway/gw/$1"/>
> > </condition>
> > </extension>
> >
> > the dialplan runs well and when FS has to bridge the call it opens a channel
> > to "sofia/gateway/gw/$1", it does not replace the $1 by the actual number
> > being dialed, i have the same in other parts of the dialplan and it works
> > good, i can not find what i m doing wrong here, i would appreciate any hint
> > about this issue.
>
> You are not setting $1.
>
> <condition field="destination_number" expression="[\d]{7,}?$">
>
> should be:
>
> <condition field="destination_number" expression="([\d]{7,}?)$">
>
> take note of the parentheses () which set the $1 variable.
>
> Regards,
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> 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
 		 	   		  


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list