[asterisk-dev] [Code Review]: Add SIP Hold tests

Matt Jordan reviewboard at asterisk.org
Tue Jan 3 12:42:10 CST 2012



> On Dec. 29, 2011, 3:38 p.m., Paul Belanger wrote:
> > /asterisk/trunk/tests/channels/SIP/sip_hold/run-test, line 51
> > <https://reviewboard.asterisk.org/r/1647/diff/1/?file=22507#file22507line51>
> >
> >     add to sip.conf?

Sure


> On Dec. 29, 2011, 3:38 p.m., Paul Belanger wrote:
> > /asterisk/trunk/tests/channels/SIP/sip_hold/run-test, lines 97-98
> > <https://reviewboard.asterisk.org/r/1647/diff/1/?file=22507#file22507line97>
> >
> >     why is this needed?

It's not - I'll remove it


> On Dec. 29, 2011, 3:38 p.m., Paul Belanger wrote:
> > /asterisk/trunk/tests/channels/SIP/sip_hold/run-test, line 102
> > <https://reviewboard.asterisk.org/r/1647/diff/1/?file=22507#file22507line102>
> >
> >     can be removed, I believe create_ami_factory() already has a debug message.  If not, we should add it

Removed


- Matt


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1647/#review5084
-----------------------------------------------------------


On Dec. 29, 2011, 10:19 a.m., Matt Jordan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1647/
> -----------------------------------------------------------
> 
> (Updated Dec. 29, 2011, 10:19 a.m.)
> 
> 
> Review request for Asterisk Developers, otherwiseguy, schmidts, and jrose.
> 
> 
> Summary
> -------
> 
> This adds a series of tests to the testsuite that cover SIP hold.  The tests use two phones (A / B), wherein Phone A calls Phone B, Phone B puts Phone A on hold, waits a period of time, removes the hold on Phone A, then sends a BYE.  The test checks that MOH is started / stopped in each scenario by subscribing to the MusicOnHold AMI event.
> 
> The SIP hold tests include Phone B sending a re-INVITE containing in the SDP either a restricted audio direction, a receiving IP address of 0.0.0.0, or a combination thereof.  The tests cover the two SIP endpoints interacting either directly or through a local RTP bridge.
> 
> Note that this test will fail in 1.8.8.0, and was used to test the regression identified in ASTERISK-19095.  The test will pass in 1.8.7.2, 1.8.8.1, and the current 1.8 branch.
> 
> 
> This addresses bug ASTERISK-19095.
>     https://issues.asterisk.org/jira/browse/ASTERISK-19095
> 
> 
> Diffs
> -----
> 
>   /asterisk/trunk/tests/channels/SIP/tests.yaml 2951 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/test-config.yaml PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/sipp/phone_B_media_restrict.xml PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/sipp/phone_B_IP_restrict.xml PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/sipp/inject_bridge.csv PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/sipp/inject_bypass.csv PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/sipp/phone_A.xml PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/sipp/phone_B_IP_media_restrict.xml PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/configs/ast1/sip.conf PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/run-test PRE-CREATION 
>   /asterisk/trunk/tests/channels/SIP/sip_hold/configs/ast1/extensions.conf PRE-CREATION 
>   /asterisk/trunk/lib/python/asterisk/sipp.py 2951 
> 
> Diff: https://reviewboard.asterisk.org/r/1647/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Matt
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120103/bb7e57ef/attachment-0001.htm>


More information about the asterisk-dev mailing list