Request URL at the end of the call

Status
Not open for further replies.

ledilson

New Member
Jun 5, 2018
3
1
3
39
I'm trying hard to get FusionPBX to call a URL by passing some data at the end of the call, just like mod_xml_cdr does
The FusionPBX CDR suits me very well.
The need comes from sending data to the CRM for a client's API.
I need to pass data such as, type (incoming / outgoing), origin, destination and duration of the call.
I tried to use api_hangup_hook, but I was not successful, since part of the variables I need only exist at the end of the bridge

I appreciate if someone can point some direction.

Regards,
Edilson
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
If I had to do this I would modify the php that handles the writing of the CDR. Once the CDR is written, you can use that freshly written CDR to get all the info you need.

I'd be looking at:
Code:
/var/www/fusionpbx/app/xml_cdr/v_xml_cdr_import.php
 
  • Like
Reactions: ledilson
Status
Not open for further replies.