[asterisk-dev] [Code Review] External test for verifying SIP-related CHANNEL parameters
Matthew Nicholson
mnicholson at digium.com
Wed Mar 31 08:03:51 CDT 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/589/#review1778
-----------------------------------------------------------
Ship it!
/asterisk/trunk/tests/sip_channel_params/test.lua
<https://reviewboard.asterisk.org/r/589/#comment3859>
You don't need the asynchronous response processing here. You could execute the manager by doing "local r, err = m(getvar)" and then do all of your response processing on r and skip the calls to wait_response() and process_responses(). This would make the code a little more readable.
Beyond that, it looks good.
- Matthew
On 2010-03-25 11:48:39, Mark Michelson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/589/
> -----------------------------------------------------------
>
> (Updated 2010-03-25 11:48:39)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> The summary says it nicely. In this test, a SIPp client calls Asterisk. While on the call, the lua script will connect to Asterisk via AMI and query the values of SIP-related parameters to the CHANNEL dialplan function.
>
>
> Diffs
> -----
>
> /asterisk/trunk/tests/sip_channel_params/configs/extensions.conf PRE-CREATION
> /asterisk/trunk/tests/sip_channel_params/configs/rtp.conf PRE-CREATION
> /asterisk/trunk/tests/sip_channel_params/configs/sip.conf PRE-CREATION
> /asterisk/trunk/tests/sip_channel_params/run-test PRE-CREATION
> /asterisk/trunk/tests/sip_channel_params/sipp/call.xml PRE-CREATION
> /asterisk/trunk/tests/sip_channel_params/sipp/register.xml PRE-CREATION
> /asterisk/trunk/tests/sip_channel_params/test.lua PRE-CREATION
>
> Diff: https://reviewboard.asterisk.org/r/589/diff
>
>
> Testing
> -------
>
> I have run this test many times and have ensured that the results are correct.
>
>
> Thanks,
>
> Mark
>
>
More information about the asterisk-dev
mailing list