I need a webhook to fire when a inbound call is answered by an extension. The webhook should contain caller ID and extension number either as parameter or as body payload.
I started a trial for the CRM module and created a webhook for inbound calls. My problem with this solution is that the webhook only is fired two times:
First before the call is answered (and then it does ofcource not know whitch extension that is going to answer
Second when the call is ended. And that is too late.
Is it possible to configure CRM-link to fire the webhook when the call is answered instead of when it is ended?
Another solution would be to use Superfecta. But Superfecta does not contain data about the extension that answers… So thats a non-working solution.
If there is no possible solution for this via CRM LINK. How can I make a webhook for this in another way? Is is possible to hook in to the dial plan and make a cURL when the incomming call is answered?
Thank you so much! This worked very well for me. Very valuable!
I added this line to the extensions_custom.conf stub and it made exactly what I was asking for.
I have spent my day configuring my CRM to handle this webhook smooth. And guess what happens now when I make a call to my PBX to test before deployment?
Suddenly the variable ${CALLERID(num)} does no longer give me the number that is calling. It gives me the number that is beeing called
I cannot recall changing any settings at all in freepbx since I tried the webhook two days ago and it worked fine. What can be the problem? How can I fix it?
Thanks. This is the log from one incomming call. You can see the response from my curl request on line 409 (i just return it from my server for debugging).
Im starting to belive that it never worked 2 days ago either. I even tried to set up a new install of freePBX and it is still the same problem
@sholinaty would you mind elaborating your suggestion. I have never worked with either node.js or the AMI-stream before. If Im going this way, can you please point me in the direction where to start?
My last option if I cant solve this myself is to hire someone to do it. I just want to get it done now. Anyone knows if a Sangoma 2hrs support ticket for 390 USD would solve this? Anywere else to buy pro support from?