[asterisk-dev] [Code Review] External tests for func_srv and explicit SIP outgoing destination

Mark Michelson mmichelson at digium.com
Tue Apr 6 18:07:54 CDT 2010


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


tests/sip_outbound_address/sipp/uac.xml may be ignored. It is not used in this test and is a template I used for writing the six UACs used in this test. It may be possible to use just a single UAC for this test by using variable manipulation in SIPp, but I found it simple to just copy the template and search and replace the proper parameters.

- Mark


On 2010-04-06 18:05:23, Mark Michelson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/609/
> -----------------------------------------------------------
> 
> (Updated 2010-04-06 18:05:23)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Two new external tests for Asterisk, meant to exercise the new code added in review 608.
> 
> The first has a simple dialplan that queries for known SRV records and then compares what is returned to what we expect to have been returned. This simultaneously exercises the ordering of SRV records by ast_srv_lookup while also testing the validity of the data retrieved by SRVQUERY and SRVRESULT.
> 
> The second runs several test calls through a dialplan that formats some SIP dialstrings quite differently. For each iteration of the test, we run two SIPp UAS scenarios. One is the UAS that is reached if using the parameters from sip.conf, and the other is the one that is reached if we override the destination in the dialstring. Each UAS will answer the call and send a specific DTMF digit. We read this digit and based on which digit we receive, we can determine if the proper UAS answered.
> 
> 
> Diffs
> -----
> 
>   /asterisk/trunk/tests/func_srv/configs/extensions.conf PRE-CREATION 
>   /asterisk/trunk/tests/func_srv/run-test PRE-CREATION 
>   /asterisk/trunk/tests/func_srv/test-config.yaml PRE-CREATION 
>   /asterisk/trunk/tests/func_srv/test.lua PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/configs/extensions.conf PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/configs/sip.conf PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/run-test PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/dtmf_2833_1.pcap UNKNOWN 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/dtmf_2833_2.pcap UNKNOWN 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/dtmf_2833_pound.pcap UNKNOWN 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uac.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uac1.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uac2.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uac3.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uac4.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uac5.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uac6.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uas1.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/sipp/uas2.xml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/test-config.yaml PRE-CREATION 
>   /asterisk/trunk/tests/sip_outbound_address/test.lua PRE-CREATION 
> 
> Diff: https://reviewboard.asterisk.org/r/609/diff
> 
> 
> Testing
> -------
> 
> The tests both pass.
> 
> 
> Thanks,
> 
> Mark
> 
>




More information about the asterisk-dev mailing list