TNG Calls not pulling through last update 13 of January

we have TNG implemented on Asterisk free PBX locally on server, the calls not pulling into tng, is there a way i can check what is the cause of this,
i have kill the tng connection, and started daemon with ./tng -D

on the logs files i get the follwoing.

[root@cal-mun-pbx logs]# tail -f 20230206/tng.log
2023-02-06 14:10:38:375 [] - SynchronizeData: 990000 records scanned
2023-02-06 14:10:38:377 [] - SynchronizeData: 1000000 records scanned
2023-02-06 14:10:38:379 [] - SynchronizeData: Entering date range now.
2023-02-06 14:10:38:564 [] - 565 Data records synchronized
2023-02-06 14:11:31:971 [] - [AMI LOG] - Waiting on Dial Plan and Peer List
2023-02-06 14:48:16:432 [] - [AMI LOG] - Waiting on Dial Plan and Peer List [Repeated 36 times]
2023-02-06 14:48:16:432 [] - admin disconnected after timeout
2023-02-06 14:48:16:432 [] - gail disconnected after timeout
2023-02-06 14:48:24:316 [] - User gail connected from
2023-02-06 14:48:37:013 [] - [AMI LOG] - Waiting on Dial Plan and Peer List

Good day,

TNG needs to download the dial plan from the Asterisk first to be able to detect the call direction of the calls.
It looks like it is attempting to download the dialplan and not receiving the full dialplan.

Is the TNG user and password for the AMI still correct and working?

HI Leon van Heerden,

Yes, all still same, where is the tng user located? does it need to be on Asterisk “free pbx” as user?

Use CDR File=1
CDR File Location=/var/log/asterisk/cdr-custom/.cs
Strip Breakout Digit=0


  1. Is this the correct file that the records are located in?
    Usually the file would be Master.csv

  2. For the AMI config, if it was working before, what may have changed around the 13th of January?

  3. I have brought our old Asterisk document from our old forums over to allow old config to be checked:
    Only do Check Step 2 and Step 6. If you are using the CSV file you must not use the AMI CDR facility.
    How to setup TNG for Asterisk using the AMI

HI, i can see the user logged in.

  1. Yes file exist
  2. last message says ami user disconnects
  3. done,

asterisk -rx “show manager connected”
Username IP Address

2023-01-13 04:59:02:018 [] - AMI Disconnected:0 -
2023-01-13 04:59:02:044 [] - AMI Exception:Connection Closed Gracefully.
2023-01-13 04:59:02:169 [] - AMI Exception:ConnectToAsterisk: Socket Error # 111[13][10]Connection refused.
2023-01-13 04:59:06:545 [] - AMI connected to port 5038 on

is there a way to see the process status on the calls being pulled in to TNG.
it looks like the TNG user are busy.

when preforming top
25342 root 25 0 933m 723m 2432 R 110.5 18.3 219:21.03 tng