How post call to hubspot or other CRM on call hangup

Status
Not open for further replies.

girish123

New Member
Apr 20, 2021
1
0
1
24
How post call to hubspot or other CRM on call hangup

I know how to post on hubspot
but not able to find how trigger my script?

i am doing my script in php
 

ad5ou

Active Member
Jun 12, 2018
891
204
43
You can change the api_hangup_hook definition in "local_extension" dial plan to use your custom script but you would probably need to call the existing script if you want normal CDR logs etc.

or you can edit the existing hangup hook lua script but isn't advisable due to possible conflicts when upgrading.

or you can set hangup_after_bridge to false in the necessary dial plans then set your script as an action below the bridge statement. This could require a few tweaks to your scripts to handle ending the call properly.

I'm no expert with the above scenarios but should point you in the right direction
 
Status
Not open for further replies.