<br><br><div class="gmail_quote">On Wed, Aug 26, 2009 at 8:57 PM, Ahmed Munir <span dir="ltr"><<a href="mailto:ahmedmunir007@gmail.com">ahmedmunir007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br> I'm newbie. How can we translate the asterisk's condition in freeswitch as listed below;<br><br> 1. NoOp ("Remote Conference Call")<br> 2. GotoIf ($[${LEN(${DIALSTR})}=0]?3:4)<br>
3. Hangup()<br> 4. NoOp(Finish if-CONFERENCE-430)<br><br> Kindly reply soon.</blockquote><div><br>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. <br>
<br>The answer to your question is, of course, "It depends." :P 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.<br>
<br>Tell us more and we'll tell you more. ;)<br><br>Thanks!<br>-Michael Collins<br clear="all"></div></div><br>