[Asterisk-code-review] Add a nominal caller initiated remote attended transfer test. (testsuite[master])

John Bigelow asteriskteam at digium.com
Tue Jun 2 12:38:36 CDT 2015


John Bigelow has uploaded a new patch set (#2).

Change subject: Add a nominal caller initiated remote attended transfer test.
......................................................................

Add a nominal caller initiated remote attended transfer test.

This uses two Asterisk instances and a PJSUA instance. The PJSUA
instance makes a call to both Asterisk instances and then performs an
attended transfer. This ensures that the caller initiated remote
attended transfer properly occurs.

The pjsua_mod.py module had to be modified to allow the creation of
PJSUA accounts that do not register. Otherwise PJSUA will only send
calls to the registrar that it is registered to even if the IP of the
dialed URI differs. Thus the test configuration option 'register' was
created to allow disabling registration for PJSUA accounts. If
registration is disabled, the callback module for user code is called
after all accounts have been created.

The phones.py module was updated to override pjsua_mod.acct_success()
that has been added. This is so the AMI PJsuaPhonesReady user event is
generated when registration is disabled and all accounts have been
created.

ASTERISK-23699 #close
Reported by: Matt Jordan

Change-Id: I5aaf2b4a72d3334e320c7056a4eed8176b71ce6e
---
M lib/python/asterisk/phones.py
M lib/python/asterisk/pjsua_mod.py
A tests/channels/pjsip/transfers/attended_transfer/nominal/caller_remote/configs/ast1/extensions.conf
A tests/channels/pjsip/transfers/attended_transfer/nominal/caller_remote/configs/ast1/pjsip.conf
A tests/channels/pjsip/transfers/attended_transfer/nominal/caller_remote/configs/ast2/extensions.conf
A tests/channels/pjsip/transfers/attended_transfer/nominal/caller_remote/configs/ast2/pjsip.conf
A tests/channels/pjsip/transfers/attended_transfer/nominal/caller_remote/test-config.yaml
M tests/channels/pjsip/transfers/attended_transfer/nominal/tests.yaml
8 files changed, 361 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/65/565/2
-- 
To view, visit https://gerrit.asterisk.org/565
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I5aaf2b4a72d3334e320c7056a4eed8176b71ce6e
Gerrit-PatchSet: 2
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: John Bigelow <jbigelow at digium.com>
Gerrit-Reviewer: John Bigelow <jbigelow at digium.com>



More information about the asterisk-code-review mailing list