Skip to main content

I am looking to automate my marketing and make Sharpspring as a center of it. I want to create lead in Sharpspring as soon as we got a call at RingCentral, I simply add that caller into Sharpspring as a lead, but with VoiceMail Preview Text.


Issue is, I aint able to connect to the App in sandbox I created. I am getting this error Exception: Undefined index: YW-bXESmQIOxjtO00v4RRA #0 /var/www/api/demo/callRecording.php(21): {closure}(8, 'Undefined index...', '/var/www/api/de...', 21, Array) #1 {main} . Please help.


Thanks in advance


Hi Tarek,

I guess that you are using the RingCentral PHP SDK to access the platform. You also use the callRecording demo app to access the call log.

Since the error log you posted above does not reveal much of what was wrong, and the line (21) is an empty in the demo code.

Can you post some more error log or mode code if you have modified the demo code.

You also wrote ".. I simply add that caller into Sharpspring as a lead, but with VoiceMail Preview Text...".

Let assume that the caller has left a voicemail message, you can access the voicemail by first checking the call log item type to see if it is a voicemail $callLogRecord->recording->type == "VoiceMail", then you can get the voicemail binary file and the voicemail transcript if your account plan has voicemail transcript enabled. You can access the voicemail attachment from the $callLogRecord->recording->record.message->uri link.


+ Phong


Reply