Hello!
On Sat, Oct 11, 2014 at 7:27 AM, Abdul Hakeem wrote:
> I hope you don't mind me asking these questions:
>
> 1. Since OpenResty uses NGINX core, would there be any problems installing any
> other NGX modules ?
Almost all of the 3rd-party modules that are not maintained by
OpenResty and are designed for the official nginx distribution should
work out of the box.
> 2. How does one install or add the MySQL SOcketHandler client to OpenResty ?
You should use (or write) a Lua driver based on ngx_lua's cosocket API
[1]. A quick Google search finds the following 3rd-party library named
lua-resty-handlersocket:
https://github.com/zhhchen/lua-resty-handlersocket#readme
I'm not sure about its status and quality though :)
> 3. How does one add a Pub/Sub interface to OpenResty ?
>
You can similarly use cosockets for it.
For example, the (official) lua-resty-redis library exposes the Redis
pub/sub API:
https://github.com/openresty/lua-resty-redis#readme
> Basically, I want to set up SIP Registrar server, when SIP clients register the
> locations of the clients should be streamed to Freeswith or any other Proxies or
> location based servers subscribed to the events.
>
I'm not familiar with the protocols in the VOIP world. But my hunch is
that it should be possible to implement atop the cosocket API of the
ngx_lua module.
I'm cc'ing the openresty-en mailing list. You're also recommended to
post such questions there. See http://openresty.org/#Community
Regards,
-agentzh
[1] See https://github.com/openresty/lua-nginx-module#ngxsockettcp and
also https://github.com/openresty/lua-nginx-module#ngxreqsocket