diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2008-06-27 21:12:12 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2008-06-27 21:12:12 +0000 |
commit | b46af4dec3ca4ea01151fd8544cbd151190c4f92 (patch) | |
tree | 158dfd4bd46586bb93e301a00a2d723f9c1398a6 /pjsip-apps/src/test-pjsua/mod_pres.py | |
parent | a94cff1ec62c041a2e72dc3e73fd9970eb794ef6 (diff) |
Ticket #543:
- added options to run.py
- passing options in runall.py to run.py
- removing userdata in module callback functions
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2078 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/mod_pres.py')
-rw-r--r-- | pjsip-apps/src/test-pjsua/mod_pres.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjsip-apps/src/test-pjsua/mod_pres.py b/pjsip-apps/src/test-pjsua/mod_pres.py index 7b00d8e4..7dafd52f 100644 --- a/pjsip-apps/src/test-pjsua/mod_pres.py +++ b/pjsip-apps/src/test-pjsua/mod_pres.py @@ -3,13 +3,14 @@ import time import imp import sys import inc_const as const +from inc_cfg import * # Load configuration -cfg_file = imp.load_source("cfg_file", sys.argv[2]) +cfg_file = imp.load_source("cfg_file", ARGS[1]) # Test body function -def test_func(t, user_data): +def test_func(t): u1 = t.process[0] uri1 = cfg_file.test_param.inst_params[0].uri acc1 = "-1" |