serfreeman1337/asterlink

Lead is always named as "Missed Call"

Closed this issue · 1 comments

Even when the call is successful and is answered by softphone, the lead is titled as "Пропущенный звонок" which means "Missed call". However, the employee in Bitrix24 is detected properly.

Asterlink will create LEAD if it fails to find contact or company with incoming callerid.

if contact, err := l.findContact(params["PHONE_NUMBER"]); err == nil {

And it will update any associated LEAD with "CallerID - Missed call" title if there is no answer detected.
if r["CALL_FAILED_CODE"] == "304" && r["CRM_ENTITY_TYPE"] == "LEAD" {

It may fail to detect operator answer because of dialplan.

If it fails to detect answer to incoming call:

Does call card has been displayed for operator in CRM ?
If yes, check asterlink logs, does "msg="Call finished"" log happens before the actual operator answer ?

I need some info about your setup:
FreePBX and Asterisk version:

fwconsole -V
asterisk -rx "core show version"

Do you have "Follow me" enabled or any 3rd party modules, which affects default freepbx dialplan ?

AMI events dump

On Linux it's can be done with

telnet 127.0.0.1 5038 | tee -i session-recording.log

then paste:

Action: Login
Username: your_ami_user
Secret: your_ami_password

you will get:
image
make a call and after you finish paste:

Action: Logoff

AMI dump can contain some private info, like CallerID and DID numbers.
You can send it to my email: serfreeman1337 (from) yandex com