Added the ability to send a complete/arbitrary SIP INVITE message in mod_sendto.py Python test script

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2080 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip-apps/src/test-pjsua/mod_sendto.py b/pjsip-apps/src/test-pjsua/mod_sendto.py
index 826c509..4cc12a4 100644
--- a/pjsip-apps/src/test-pjsua/mod_sendto.py
+++ b/pjsip-apps/src/test-pjsua/mod_sendto.py
@@ -18,7 +18,10 @@
 	#dlg = sip.Dialog("127.0.0.1", 5060, tcp=cfg_file.sendto_cfg.use_tcp)
 	cfg = cfg_file.sendto_cfg
 	
-	req = dlg.create_invite(cfg.sdp, cfg.extra_headers)
+	if len(cfg.complete_msg) != 0:
+		req = cfg.complete_msg
+	else:
+		req = dlg.create_invite(cfg.sdp, cfg.extra_headers)
 	resp = dlg.send_request_wait(req, 10)
 	if resp=="":
 		raise TestError("Timed-out waiting for response")