[asterisk-dev] [Code Review] 4470: Testsuite: Generate UserEvent upon PJsua phones being ready.

Matt Jordan reviewboard at asterisk.org
Tue Mar 10 22:19:13 CDT 2015


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



/asterisk/trunk/lib/python/asterisk/phones.py
<https://reviewboard.asterisk.org/r/4470/#comment25191>

    I would document somewhere (in a sample YAML file perhaps?) that the phones raise this event when registered and ready.


- Matt Jordan


On March 10, 2015, 11:39 a.m., jbigelow wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4470/
> -----------------------------------------------------------
> 
> (Updated March 10, 2015, 11:39 a.m.)
> 
> 
> Review request for Asterisk Developers and Mark Michelson.
> 
> 
> Repository: testsuite
> 
> 
> Description
> -------
> 
> The test that has been modified on this review would sometimes fail due to the PJsua phone not being ready to receive calls even though it had registered to Asterisk. The changes here resolve the issue by generating a UserEvent on all AMI connections when all PJsua phones are ready. Originating calls to the PJsua phones is now triggered by the 'PJsuaPhonesReady' UserEvent instead of the registration event.
> 
> 
> Diffs
> -----
> 
>   /asterisk/trunk/tests/rest_api/applications/channel-subscriptions/originate_to_dialplan/non_local_channels/test-config.yaml 6506 
>   /asterisk/trunk/lib/python/asterisk/phones.py 6506 
> 
> Diff: https://reviewboard.asterisk.org/r/4470/diff/
> 
> 
> Testing
> -------
> 
> * Executed each test successfully 50+ times on local system and build agent where the test would sometimes fail.
> 
> 
> Thanks,
> 
> jbigelow
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150311/e886432f/attachment-0001.html>


More information about the asterisk-dev mailing list