[Freeswitch-users] condition

Andrew aademattia at comcast.net
Tue Jul 1 02:34:18 MSD 2014


OK I am getting close to getting UUID_transfer to work.
I found my issue are comma.  I looked all over how to work around this.
If I remove all comma it works but I need to pass a lot of info.


bridge:{bypass_media=true,ignore_early_media=true}[leg_timeout=6]sofia/inter
nal/15555555 at 00.00.00:5060|sofia/internal/15555555 at 000.000.000:5060
inline");

Andrew

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Andrew
Sent: Sunday, June 29, 2014 6:03 PM
To: 'FreeSWITCH Users Help'
Subject: Re: [Freeswitch-users] condition


I did try but it does not seem to work.  What am I doing wrong?
Made up the number and IP for the email.
api.ExecuteString("uuid_transfer " + UUID_LegA + "
sofia/internal/15555555 at 192.168.1.100:5060 ");


Andrew

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Ken Rice
Sent: Sunday, June 29, 2014 5:12 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] condition

once you have the value for the variable just uuid trans for the call to the
correct destination

Ken
Sent from my iPad

> On Jun 29, 2014, at 15:41, "Andrew" <aademattia at comcast.net> wrote:
> 
> I am using mod_managed.
> Before I had park then I set the variable but I could not find out how 
> to unpark.
> 
> If I could find a way to unpark that would work as well.
> 
> Andrew
> 
> 
> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of 
> covici at ccs.covici.com
> Sent: Sunday, June 29, 2014 4:30 PM
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] condition
> 
> You need to use code rather than the XML dialplan.  Either Lua, 
> mod_managed or some other language would work fine.
> 
> Andrew <aademattia at comcast.net> wrote:
> 
>> 
>> 
>> What I am trying to do is wait for the variable to be set.
>> 
>> But it seems that the variable is never set in this code.
>> 
>> Anyone have an idea on how to wait for a variable to be set?
>> 
>> 
>> 
>> <extension name="public_extensions">
>> 
>> <condition field="destination_number" expression="^.*$">
>> 
>> <action application="set" data="hangup_after_bridge=true"/>
>> 
>> <condition field="${my_dialstring}" expression="^$">
>> 
>> <action application="sleep" data="20"/>
>> 
>> </condition>
>> 
>> <condition field="${my_dialstring}" expression="^$">
>> 
>> <action application="sleep" data="500"/>
>> 
>> </condition>
>> 
>> <action application="bridge" data="${my_dialstring}"/>
>> 
>> </condition>
>> 
>> </extension>
>> 
>> 
>> 
>> 
>> 
>> From: freeswitch-users-bounces at lists.freeswitch.org
>> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of 
>> aademattia at comcast.net
>> Sent: Saturday, June 28, 2014 2:09 PM
>> To: FreeSWITCH Users Help
>> Subject: Re: [Freeswitch-users] condition
>> 
>> 
>> 
>> I am trying to find out if the variable is not set. The problem is 
>> this
> condition fires if the variable is set or not set. If the variable is 
> not set, I want it to sleep.
>> 
>> 
>> 
>> 
>> 
>> Sent from my HTC
>> 
>> 
>> 
>> ----- Reply message -----
>> From: "Ken Rice" <krice at freeswitch.org <mailto:krice at freeswitch.org>
>> >
>> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org
>> <mailto:freeswitch-users at lists.freeswitch.org> >
>> Subject: [Freeswitch-users] condition
>> Date: Sat, Jun 28, 2014 1:24 PM
>> 
>> 
>> 
>> thats tesing for an empty string... test to see if what you expect to 
>> be there and if not use anti-action to sleep
>> 
>> Ken
>> 
>> Sent from my iPad
>> 
>> 
>>> On Jun 28, 2014, at 11:15, "Andrew" <aademattia at comcast.net
>> <mailto:aademattia at comcast.net> > wrote:
>> 
>> Hi,
>> 
>> I want to see if the variable is set.  If its not I want to sleep for
>> 500
> mill sec.
>> 
>> This does not seem to work. 
>> 
>> <condition field="${my_dialstring}" expression="^$">
>> 
>> <action application="sleep" data="500"/>
>> 
>> </condition>
>> 
>> _____________________________________________________________________
>> _ ___ 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://wiki.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-us
>> e rs <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> http://www.freeswitch.org
>> 
>> 
>> ----------------------------------------------------
>> Alternatives:
>> 
>> ----------------------------------------------------
>> _____________________________________________________________________
>> _ ___ 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
>> 
>> 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-us
>> e
>> rs
>> http://www.freeswitch.org
> 
> --
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
> 
>         John Covici
>         covici at ccs.covici.com
> 
> ______________________________________________________________________
> ___ 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
> 
> 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-use
> rs
> http://www.freeswitch.org
> 
> 
> ______________________________________________________________________
> ___ 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
> 
> 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-use
> rs
> http://www.freeswitch.org

_________________________________________________________________________
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

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


_________________________________________________________________________
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

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 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list