[asterisk-dev] [Code Review] 3151: res_pjsip: PJSUA pluggable module and subscription tests
Mark Michelson
reviewboard at asterisk.org
Wed Jan 29 14:31:49 CST 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3151/
-----------------------------------------------------------
(Updated Jan. 29, 2014, 8:31 p.m.)
Review request for Asterisk Developers.
Changes
-------
Take care of Matt and Kevin's comments.
Repository: testsuite
Description
-------
When creating the changes on https://reviewboard.asterisk.org/r/3150/, I realized that there were no subscription tests in the testsuite for res_pjsip yet.
In order to properly test subscriptions, I could not use SIPp, since removing the subscription requires the ability to handle two active transactions, and SIPp chokes when that happens. Since PJSUA is smarter and has python bindings, I decided to use that instead for the tests. In oder to do things the right way(tm), I decided to create a pluggable module for the testsuite that allows for PJSUA transports, accounts, and buddies to be created using yaml. Once all PJSUA accounts are registered, then a specified callback can be called to continue the test.
As far as actual tests are concerned, I've added three tests that use the new PJSUA plugin. There are two presence tests that test PIDF and XPIDF, and there is an MWI test. I was forced to use unsolicited MWI for the MWI test since the PJSUA python bindings do not have the ability to convey that an account should subscribe for MWI.
Diffs (updated)
-----
/asterisk/trunk/tests/channels/pjsip/tests.yaml 4618
/asterisk/trunk/tests/channels/pjsip/presence_xpidf/test-config.yaml PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_xpidf/state_check.py PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_xpidf/configs/ast1/pjsip.conf PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_xpidf/configs/ast1/modules.conf PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_xpidf/configs/ast1/extensions.conf PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_pidf/test-config.yaml PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_pidf/state_check.py PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_pidf/configs/ast1/pjsip.conf PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_pidf/configs/ast1/modules.conf PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/presence_pidf/configs/ast1/extensions.conf PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/mwi/test-config.yaml PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/mwi/mwi_check.py PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/mwi/configs/ast1/pjsip.conf PRE-CREATION
/asterisk/trunk/tests/channels/pjsip/mwi/configs/ast1/modules.conf PRE-CREATION
/asterisk/trunk/lib/python/asterisk/pluggable_modules.py 4618
Diff: https://reviewboard.asterisk.org/r/3151/diff/
Testing
-------
The tests pass.
Thanks,
Mark Michelson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140129/5cae5abf/attachment.html>
More information about the asterisk-dev
mailing list