Review Board 1.7.16


Testsuite: Simulate phones and control from YAML.

Review Request #4413 - Created Feb. 11, 2015 and submitted

jbigelow
trunk
ASTERISK-24578
4416
Reviewers
asterisk-dev
mmichelson
testsuite
Pluggable modules to place, receive, and transfer (blind/attended) calls to simulate phones using PJSUA and YAML configuration. Calls are placed and/or transferred using the new pluggable action module. This should allow many currrent and future tests to easily send/receive calls to/from Asterisk along with transferring calls within YAML configuration.

The pluggable test module (phones.PjsuaPhoneController) initializes the PJSUA accounts and once all have registered, the account callbacks are setup and are ready to receive calls. The pluggable action module (pluggable_modules.PjsuaPhoneActionModule) provides the ability to place calls and transfer calls using the accounts from YAML and the action is referenced with 'pjsua_phone'. The only time a call is hung up by this is when a transfer is performed and a 200 OK sipfrag NOTIFY is received. None of the modules set a pass/fail result and are only for driving and manipulating calls.

See attached file for YAML demo.
* Tested placing calls, receiving calls, transfering via blind & attended.
* Pylint score of 9.40/10 for phones.py
* See attached test-config.yaml for a demonstration.
Total:
12
Open:
0
Resolved:
11
Dropped:
1
Status:
From:
Description From Last Updated Status
Review request changed
Updated (Feb. 13, 2015, 1:23 p.m.)
  • changed from pending to submitted
Committed in revision 6414

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.