While I’m not entirely new to this, I’m looking to explore the functionalities of the Asterisk Interface Test Application (app_test.so). Could you please direct me to any documentation or provide some guidance on how to effectively test the TestClient and TestServer components?
I would greatly appreciate any suggestions or information you can provide regarding this matter.
The Test application sends (Client) and receives (Server) DTMF and other noise, logging the results. You can test either calls between different Asterisk systems or loopback calls on the same system.
For example, a loopback test of your SIP trunk provider might include something like the following in your dialplan extensions.conf file, assuming all your incoming calls from your SIP trunk provider land in your from-pstn dialplan context:
The above matches on a specific caller ID (3035550000) so you can graft it on to your existing DID(s). It also shows a Test ID of 777 but you could change that to ${EPOCH} which would let you make one test per second and store in a new file each time (see further below).
After reloading that bit of dialplan, you can generate a sample.call file that you copy into the /var/spool/asterisk/outgoing/ directory, including the following into this file:
The call should start, You won’t see much on the Asterisk CLI. But you can view test results in /var/log/asterisk/testresults/ directory, as two separate files: