Hello,
I recently buy the CRM module.
I want it to work with the REST API
https://wiki.freepbx.org/display/FPG/Sangoma+CRM+REST+API
As i see with thoses links down below, i have to modify dialplan to send a curl post / get.
We’ve begun working with some external customers (and a considerable number of internal ones) on the project and one of the first requests that came up was regarding the use of cURL. cURL, as many of you already know, is a pretty cool command...
I also have a WebServer with a php code, that can retrieve curl info like that
“https://example1.com/example2/code.php?test=1&crm=imalive ”
return => [08/08/2019 14:22:12] : Array ( [test] => 1 [crm] => imalive )
How can i modify the dialplan to do a curl get/post at the end of a call ?
lgaetz
(Lorne Gaetz)
August 8, 2019, 12:50pm
2
You don’t touch the dialplan. As a licensed user of CRM, you create a webhook using the methods shown on the page you linked. Once you create the webhook, that URL will be called automatically on all inbound and/or outbound calls. You must then configure the host defined by the webhook to receive and parse the POST data.
Have you seen this post: CRM Webhooks not being called
Thank you for your fast reply.
I don’t get the method well.
Can you tell me what should i do with the CRM module to do a simple CURL post for each calls?
system
(system)
Closed
September 8, 2019, 12:53pm
4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.