summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/test-pjsua/inc_sip.py
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-06-26 19:51:01 +0000
committerBenny Prijono <bennylp@teluu.com>2008-06-26 19:51:01 +0000
commit21192d78dc4ffd64243826b72000817cdbb80aed (patch)
treed7230bf805f142efbd95550e5d7b7583db736fe0 /pjsip-apps/src/test-pjsua/inc_sip.py
parent1cbe183e8d7c355373c17e4e9ce3b0955e76bc38 (diff)
Added various tests with invalid SDP and other SIP parameters
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2066 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/inc_sip.py')
-rw-r--r--pjsip-apps/src/test-pjsua/inc_sip.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pjsip-apps/src/test-pjsua/inc_sip.py b/pjsip-apps/src/test-pjsua/inc_sip.py
index 04b5a96e..a4eb15ad 100644
--- a/pjsip-apps/src/test-pjsua/inc_sip.py
+++ b/pjsip-apps/src/test-pjsua/inc_sip.py
@@ -1,4 +1,4 @@
-# $Id:$
+# $Id$
#
from socket import *
import re
@@ -207,6 +207,8 @@ class SendtoCfg:
inst_param = None
# Initial SDP
sdp = ""
+ # Extra headers to add to request
+ extra_headers = ""
# Expected code
resp_code = 0
# Use TCP?
@@ -216,11 +218,14 @@ class SendtoCfg:
# List of RE patterns that must NOT exist in response
resp_exclude = []
# Constructor
- def __init__(self, name, pjsua_args, sdp, resp_code, resp_inc=[], resp_exc=[], use_tcp=False):
+ def __init__(self, name, pjsua_args, sdp, resp_code,
+ resp_inc=[], resp_exc=[], use_tcp=False,
+ extra_headers=""):
self.sdp = sdp
self.resp_code = resp_code
self.resp_include = resp_inc
self.resp_exclude = resp_exc
self.use_tcp = use_tcp
+ self.extra_headers = extra_headers
self.inst_param = cfg.InstanceParam("pjsua", pjsua_args)