I have integrated sugarcrm with elastix 1.6.2. I have created a table in sugarcrm almost same as asterisk cdr table. I would like to update crm table with the call log the same time table cdr does.
By the way I am very new in asterisk. Forgive me if I am wrong. In extensions.conf file I see every calls initiates throug dialparties.agi file and then finally it calls hangup in macro-hangupcall.
In my understanding and test, I found cdr table updated after hangup finishes.I have created a agi file updatecrm.php and this file is suppose to connect crm database table after copying information from cdr table fields.
My little but very important question is where should I add the line of code and how could I write the code to call the AGI to do this job.