If not expired and everything seems to be ok but still not logging calls we can check for the following entries in the logs:
Typically after a startup you should have the following line:
- Code: Select all
[AMI LOG] - Requesting Dialplan...
And then if you NEVER get
- Code: Select all
[AMI LOG] - Dialplan Processed
But instead something like "Waiting on Dial plan and peerlist"
- Code: Select all
"Waiting on Dial plan and peerlist"
We have found that the AMI timeout settings on Asterisk has to be increased.
By default it is set to 100ms, but we had instances where it needs to be increased to 1000ms or 10 000ms (with Asterisk 1.4.24).
Navigate /etc/asterisk/manager.conf to increase the writetimeout for the [tng] user beyond the 1000 millisecond figure to successfully have TNG start and load dialplan.
See example below:
- Code: Select all
[tng]
secret=xxxxxx
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user
writetimeout=10000