Two ways...<br><br>1. You can then access that variable from JS to get the pin using getVariable.<br><br>2. &lt;action application=&quot;javascript&quot; data=&quot;/path/to/some/script.js $pin&quot;/&gt; and read it from the argv[] array<br>
<br>-Steve<br><br><br><br><div class="gmail_quote">On 17 January 2011 05:45, deniro <span dir="ltr">&lt;<a href="mailto:ayhkor@gmail.com">ayhkor@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Thanks Steve</div>
<div>I looked at these links</div>
<div> </div>
<div>more specifically what I look for is with the dialplan+javascript;</div>
<div>How can I set the logic in a dialplan in such a way that I enter the conference PIN, and pass it as a parameter to javascript and compare with the values(set of pin numbers) in database and when there is a match, will let you go to conference?</div>


<div> </div>
<div>I am able to read the pin number and assign it to $pin.</div>
<div>In a dialplan, I wanna set a condition or something, call javascript, pass $pin as parameter to javascript, compare it with the values in db if there is a match, allow you to go to conference.</div>
<div>
<div>So, how can I set this logic in dialplan with javascript?</div></div>
<div>any working example?</div>
<div> </div>
<div>thanks</div><div><div></div><div class="h5">
<div><br><br> </div>
<div class="gmail_quote">On Sun, Jan 16, 2011 at 5:58 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">Sure you can - mod_spidermonkey gives you javascript, if you configure spidermonkey.conf.xml to load mod_spidermonkey_odbc you&#39;ll get odbc access so you can access a mysql database.<br>

<br><a href="http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc" target="_blank">http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc</a><br><a href="http://wiki.freeswitch.org/wiki/Session_setVariable" target="_blank">http://wiki.freeswitch.org/wiki/Session_setVariable</a><br>

<br>-Steve 
<div>
<div></div>
<div><br><br><br><br>
<div class="gmail_quote">On 16 January 2011 22:45, deniro <span dir="ltr">&lt;<a href="mailto:ayhkor@gmail.com" target="_blank">ayhkor@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>how about writing a javascript and reading from mysql database</div>
<div>when a match is hit return a value and  load it into $pin</div>
<div>how can I do this type of javascripting?</div>
<div>thx</div>
<div>
<div></div>
<div>
<div><br><br> </div>
<div class="gmail_quote">On Sun, Jan 16, 2011 at 3:49 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">There&#39;s several ways, you can write your own module, a script, use xml curl etc.<br><br>
The simplest option is probably to use lua - you can access odbc if you install luasql. I&#39;m sure file access is possible too.<br>
<br>-Steve<br><br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On 16 January 2011 19:46, deniro <span dir="ltr">&lt;<a href="mailto:ayhkor@gmail.com" target="_blank">ayhkor@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>
<div></div>
<div>
<div>Hi</div>
<div>Regarding providing PIN numbers to a conference</div>
<div>how can I read PINs from a file or database and allow them to go to a meeting</div>
<div>thx </div>
<div>deniro--</div><br></div></div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br></div></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br></div></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>