summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/test-pjsua/inc_sip.py
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/test-pjsua/inc_sip.py')
-rw-r--r--pjsip-apps/src/test-pjsua/inc_sip.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pjsip-apps/src/test-pjsua/inc_sip.py b/pjsip-apps/src/test-pjsua/inc_sip.py
index a4eb15ad..122eeae0 100644
--- a/pjsip-apps/src/test-pjsua/inc_sip.py
+++ b/pjsip-apps/src/test-pjsua/inc_sip.py
@@ -205,6 +205,10 @@ class SendtoCfg:
name = ""
# pjsua InstanceParam
inst_param = None
+ # Complete INVITE message. If this is not empty, then this
+ # message will be sent instead and the "sdp" and "extra_headers"
+ # settings will be ignored.
+ complete_msg = ""
# Initial SDP
sdp = ""
# Extra headers to add to request
@@ -220,7 +224,8 @@ class SendtoCfg:
# Constructor
def __init__(self, name, pjsua_args, sdp, resp_code,
resp_inc=[], resp_exc=[], use_tcp=False,
- extra_headers=""):
+ extra_headers="", complete_msg=""):
+ self.complete_msg = complete_msg
self.sdp = sdp
self.resp_code = resp_code
self.resp_include = resp_inc