Hello.
I’m using the Zoho CRM Integration with Vital 4.
I’m able to authorize the API Calls and SYNC the Contacts. But when i make a outbound call from my vital i’m not getting any record on the Zoho side.
Looks that vital is trying to run a “system” call with the CALL details… something like this:
Executing [log-call@crm-integration:10] System("PJSIP/1002-00000012", "/usr/share/vitalpbx/scripts/crm "logCall" "892d396700379457" "8689840000XXXXXXXX" "9X84282XXX" "1002" "9X84282XXX" "3" "ANSWERED" "10" "" &") in new stack
Nothing happens in the Zoho side…
but if i try to run the same system call in the console i get an error :
/usr/share/vitalpbx/scripts/crm "logCall" "892d396700379457" "8689840000XXXXXXXX" "9X84282XXX" "1002" "9X84282XXX" "3" "ANSWERED" "10" ""
PHP Warning: Undefined property: stdClass::$First_Name in /usr/share/vitalpbx/www/includes/components/CRM/Providers/ZohoCRM.php on line 0
PHP Fatal error: Uncaught TypeError: CRM\Helpers\CRMContact::setFirstName(): Argument #1 ($first_name) must be of type string, null given, called in /usr/share/vitalpbx/www/includes/components/CRM/Providers/ZohoCRM.php on line 0 and defined in /usr/share/vitalpbx/www/includes/components/CRM/Helpers/CRMContact.php:0
Stack trace:
#0 /usr/share/vitalpbx/www/includes/components/CRM/Providers/ZohoCRM.php(0): CRM\Helpers\CRMContact->setFirstName()
#1 /usr/share/vitalpbx/www/includes/components/CRM/Providers/CRMProvider.php(0): CRM\Providers\ZohoCRM->lookUpNumberInContacts()
#2 /usr/share/vitalpbx/scripts/crm(0): CRM\Providers\CRMProvider->lookUpNumber()
#3 /usr/share/vitalpbx/scripts/crm(0): crm_dialplan->logCall()
#4 {main}
thrown in /usr/share/vitalpbx/www/includes/components/CRM/Helpers/CRMContact.php on line 0
What could be happening?
Thanks!
Ricardo