FPaganel - 2016-01-15

Hi All,
I would like put in place a new my home telephone management system where I can receive calls by Italian PSTN, filter them and route/forward them to a Google hangout.

About the filtering I developed a web service in NodeJS in Raspberry Pi that return if the number is acceptable. The service checks the number if it is present in a white list, otherwise service checks the number ranking in Tellows.

About the routing I would like route some calls on two hangout accounts (depend on rules).

What device (telephone adapter) do I need?
How can configure RasPBX to call the webservice?
How can route the inboung call following logical rules?

Thanks in advance for your help.
FPaganel