Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Define Condition in FreeSwitch


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
ahmedmunir007 at gmail...
Guest





PostPosted: Wed Aug 26, 2009 11:06 pm    Post subject: [Freeswitch-users] Define Condition in FreeSwitch Reply with quote

Hi,

   I'm newbie. How can we translate the asterisk's condition in freeswitch as listed below;

   1. NoOp ("Remote Conference Call")
   2. GotoIf ($[${LEN(${DIALSTR})}=0]?3:4)
   3. Hangup()
   4. NoOp(Finish if-CONFERENCE-430)

   Kindly reply soon.
--
Regards,

Ahmed Munir
Back to top
msc at freeswitch.org
Guest





PostPosted: Thu Aug 27, 2009 2:06 am    Post subject: [Freeswitch-users] Define Condition in FreeSwitch Reply with quote

On Wed, Aug 26, 2009 at 8:57 PM, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
Quote:
Hi,

   I'm newbie. How can we translate the asterisk's condition in freeswitch as listed below;

   1. NoOp ("Remote Conference Call")
   2. GotoIf ($[${LEN(${DIALSTR})}=0]?3:4)
   3. Hangup()
   4. NoOp(Finish if-CONFERENCE-430)

   Kindly reply soon.

Before I answer this question I just want you to know that there's probably a more elegant way of doing whatever it is you're trying to do. This dialplan snippet is pretty short. My first question would be: how does a call get to this point? Also, what is the big picture, that is, what's the application you're creating? Remember the golden rule: Anything that you do in Asterisk is easier to do in FreeSWITCH, but you need to learn the ropes a bit.

The answer to your question is, of course, "It depends." Razz Give us the background on what you're doing so that we can give you an educated answer. You could use the <condition> tags with actions and anti-actions. You could also call a Lua/JavaScript/Perl/Python/etc. script to handle the logic but that's probably overkill.

Tell us more and we'll tell you more. Wink

Thanks!
-Michael Collins
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services