serfreeman1337 / asterlink

Asterisk integration with Bitrix24 and SuiteCRM
MIT License
27 stars 18 forks source link

Lead is always named as "Missed Call" #3

Closed r9host closed 4 years ago

r9host commented 4 years ago

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.

serfreeman1337 commented 4 years ago

Asterlink will create LEAD if it fails to find contact or company with incoming callerid. https://github.com/serfreeman1337/asterlink/blob/b64d274900a441836b0bdb6f95bc209c988e85c8/connect/b24.go#L147 And it will update any associated LEAD with "CallerID - Missed call" title if there is no answer detected. https://github.com/serfreeman1337/asterlink/blob/b64d274900a441836b0bdb6f95bc209c988e85c8/connect/b24.go#L237

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 ```bash 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](https://user-images.githubusercontent.com/2133936/72684096-a69a9f00-3aee-11ea-994f-87bd93d2ab03.png) 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