[Freeswitch-users] read conference PIN from a file or db

deniro ayhkor at gmail.com
Mon Jan 17 08:45:07 MSK 2011


Thanks Steve
I looked at these links

more specifically what I look for is with the dialplan+javascript;
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?

I am able to read the pin number and assign it to $pin.
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.
 So, how can I set this logic in dialplan with javascript?
any working example?

thanks



On Sun, Jan 16, 2011 at 5:58 PM, Steven Ayre <steveayre at gmail.com> wrote:

> Sure you can - mod_spidermonkey gives you javascript, if you configure
> spidermonkey.conf.xml to load mod_spidermonkey_odbc you'll get odbc access
> so you can access a mysql database.
>
> http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc
> http://wiki.freeswitch.org/wiki/Session_setVariable
>
> -Steve
>
>
>
>
> On 16 January 2011 22:45, deniro <ayhkor at gmail.com> wrote:
>
>> how about writing a javascript and reading from mysql database
>> when a match is hit return a value and  load it into $pin
>> how can I do this type of javascripting?
>> thx
>>
>>
>>
>> On Sun, Jan 16, 2011 at 3:49 PM, Steven Ayre <steveayre at gmail.com> wrote:
>>
>>> There's several ways, you can write your own module, a script, use xml
>>> curl etc.
>>>
>>> The simplest option is probably to use lua - you can access odbc if you
>>> install luasql. I'm sure file access is possible too.
>>>
>>> -Steve
>>>
>>>
>>>   On 16 January 2011 19:46, deniro <ayhkor at gmail.com> wrote:
>>>
>>>>   Hi
>>>> Regarding providing PIN numbers to a conference
>>>> how can I read PINs from a file or database and allow them to go to a
>>>> meeting
>>>> thx
>>>> deniro--
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110117/fca9b022/attachment.html 


More information about the FreeSWITCH-users mailing list