Best way to implement integration for start and end of call
Posted: Tue Oct 14, 2014 9:35 pm
Hello everyone, I'm a long term Asterisk user, first time Vicidial user.
For a brief run down, we develop a product called Agyle Time, it is a WFM application, for some of the features we require call data from the PBX.
I've developed most of the application in PHP for the integration (very similar to our Asterisk implementation) and all we need at this point is to run `php async.php 12313123.12312` (shell command) (unique id as first param). This will query vicidial_log for the correct information and use our API.
What I'm unsure on is the best place to put the code to execute the shell command. On our Asterisk implementation I added it to extensions.conf on the starting points of calls and h exten on calls. (Note: Inbound and Outbound) But obviously vicidial generates it's own extensions.conf so that is not the best file to use.
Obviously I want this implementation to change has little as possible on Vicidial so if the client upgrades Vicidial it will be novel to setup the integration once more.
Any help or guidance on the matter would be greatly appreciated!
Also a side question due to my inexperience with Vicidial, does vicidial_log have pending calls (calls that have started but not ended)?
For a brief run down, we develop a product called Agyle Time, it is a WFM application, for some of the features we require call data from the PBX.
I've developed most of the application in PHP for the integration (very similar to our Asterisk implementation) and all we need at this point is to run `php async.php 12313123.12312` (shell command) (unique id as first param). This will query vicidial_log for the correct information and use our API.
What I'm unsure on is the best place to put the code to execute the shell command. On our Asterisk implementation I added it to extensions.conf on the starting points of calls and h exten on calls. (Note: Inbound and Outbound) But obviously vicidial generates it's own extensions.conf so that is not the best file to use.
Obviously I want this implementation to change has little as possible on Vicidial so if the client upgrades Vicidial it will be novel to setup the integration once more.
Any help or guidance on the matter would be greatly appreciated!
Also a side question due to my inexperience with Vicidial, does vicidial_log have pending calls (calls that have started but not ended)?