When wazo is receiving a call, I would like to replace the PAI by a name from my client database. I wonder when I should make this request. Is it better to create a plugin in wazo-dird to connect my database to wazo? Should I use the websocket to detect a new call, make my request and inject the PAI? The old way is to make the query in a dialplan, but I guess that wazo provide more elegant solutions.
Thanks in advance for you advises,