VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ahmedmunir007 at gmail... Guest
|
Posted: Wed Aug 26, 2009 11:06 pm Post subject: [Freeswitch-users] Define Condition in FreeSwitch |
|
|
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
|
Posted: Thu Aug 27, 2009 2:06 am Post subject: [Freeswitch-users] Define Condition in FreeSwitch |
|
|
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." 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.
Thanks!
-Michael Collins |
|
Back to top |
|
|
|
|
|
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
|