[asterisk-commits] jbigelow: testsuite/asterisk/trunk r4961 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 16 16:46:21 CDT 2014


Author: jbigelow
Date: Wed Apr 16 16:46:10 2014
New Revision: 4961

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4961
Log:
Allow MWI to be enabled on PJSUA accounts.

The changes to the PJSIP python library pjsua.py that this depends on have
been committed upstream. The test that was up for review with these changes
are actually handled by another test using SIPp. Therefore these changes are
being committed for future test use and the test on the review is not.

Review: https://reviewboard.asterisk.org/r/3348/

(issue ASTERISK-23343)


Modified:
    asterisk/trunk/lib/python/asterisk/pjsua_mod.py

Modified: asterisk/trunk/lib/python/asterisk/pjsua_mod.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/pjsua_mod.py?view=diff&rev=4961&r1=4960&r2=4961
==============================================================================
--- asterisk/trunk/lib/python/asterisk/pjsua_mod.py (original)
+++ asterisk/trunk/lib/python/asterisk/pjsua_mod.py Wed Apr 16 16:46:10 2014
@@ -212,6 +212,8 @@
         password = acct_cfg.get('password', '')
 
         pj_acct_cfg = pj.AccountConfig(domain, username, password, name)
+        if acct_cfg.get('mwi-subscribe'):
+            pj_acct_cfg.mwi_enabled = 1
 
         LOGGER.info("Creating PJSUA account %s@%s" % (username, domain))
         account = PJsuaAccount(self.lib.create_account(pj_acct_cfg, False,
@@ -245,3 +247,4 @@
             callback_module = __import__(self.callback_module)
             callback_method = getattr(callback_module, self.callback_method)
             callback_method(self.test_object, self.pj_accounts)
+




More information about the asterisk-commits mailing list