Device Testing / Integration Asterisk Configuration

Of course, unit testing and integration is usually done as part of the development process. I am looking for ways to use this methodology in the configuration of an existing system, in this case Asterisk soft PBX .

In the case of Asterisk, the configuration file is the same programming language as everything else, complete with loops, jumps, conditional expressions, etc., and can become quite complex. Changes in configuration often suffer from the same problems as changes in a complex software product - it can be difficult to anticipate all the effects without tests. This has deteriorated due to the fact that the nature of the system is to interact with external objects, that is, to make phone calls.

I have some ideas about testing the system using call files (to create specific calls between extensions) when viewing the manager interface for the generated events. Then the test could follow the expected result, i.e. By dialing * 99 #, the called Voicemail application should turn out.

The errors are obvious - it does not check the actual result, but the result, which, according to the system, is the result, probably requires some modification of the tested system. It is also very difficult to write these tests reliably enough to run only the expected output, especially if the system is in use (i.e. other calls are being made).

I want a testing system for Asterisk not be possible? If not, do you have any ideas on how to do this in a reasonable way? I’m ready to contribute a sufficient amount of development time at this time and publish the result under a friendly license, but I’m not sure how best to approach it.

+5
source share
4 answers

This is obviously an old question, so there is a good chance that when the original answers were posted here, that Asterisk did not support unit / integration testing to the extent that this happens today (although the Unit Test Framework API is included 12/22 / 09 to at least exist).

( ) Asterisk. / CLI. Asterisk, . Asterisk --enable-dev-mode menuselect ( , app_voicemail, , ).

- () Unit Test, .

, , Asterisk , Asterisk . , , , , Asterisk Test Suite. , Test Suite python script, - lua, python .. python lua, Asterisk. , SIPp Asterisk (AMI, AGI), Asterisk.

200 , . , , , Asterisk - , .

, - Leif .

+2

, , . . Asterisk Call Files -. EG: , - , , dialplan ( , ..).

Asterisk, . /: http://pycall.org/. .

!

+3

Asterisk MixMonitor . , , (, - comparing-sound-files-if-not-completely-identical?) . .

0

, , . , " - , ", - , , , . .

script linphonec grep , , . .

0

All Articles