public SIPFlow(SIPTransport sipTransport, List <ActionDiagram> actionDiagrams, List <DecisionDiagram> decisionDiagrams) : base(actionDiagrams, decisionDiagrams) { m_sipTransport = sipTransport; pythonHelper = new PythonHelper(m_pythonEngine, m_sipTransport); pythonHelper.LogEvent += new SIPFlowLogDelegate(pythonHelper_LogEvent); //m_sipTransport.SIPTransportResponseReceived += new SIPTransportResponseReceivedDelegate(pythonHelper.SIPTransportResponseReceived); //m_pythonEngine.Import("BlueFace.VoIP.Net.SIP.*"); m_pythonEngine.Execute("import clr"); //m_pythonEngine.Execute("clr.AddReference('BlueFace.VoIP.Net')"); //m_pythonEngine.Execute("from BlueFace.VoIP.Net.SIP import *"); //m_pythonEngine.Execute("clr.AddReference('siggui')"); //m_pythonEngine.Execute("from BlueFace.Net.SignallingGUI import *"); m_pythonEngine.Globals["pythonHelper"] = pythonHelper; //m_pythonEngine.Globals["sipRequest"] = sipRequest; //SIPTransaction transaction = new SIPTransaction(sipRequest); //SIPTransport.SendSIPReliable(transaction); m_sipFlowDebugStream = new MemoryStream(); m_debugStreamReader = new StreamReader(m_sipFlowDebugStream); m_pythonEngine.SetStandardOutput(m_sipFlowDebugStream); }
public SIPFlow(SIPTransport sipTransport, List<ActionDiagram> actionDiagrams, List<DecisionDiagram> decisionDiagrams) : base(actionDiagrams, decisionDiagrams) { m_sipTransport = sipTransport; pythonHelper = new PythonHelper(m_pythonEngine, m_sipTransport); pythonHelper.LogEvent += new SIPFlowLogDelegate(pythonHelper_LogEvent); //m_sipTransport.SIPTransportResponseReceived += new SIPTransportResponseReceivedDelegate(pythonHelper.SIPTransportResponseReceived); //m_pythonEngine.Import("BlueFace.VoIP.Net.SIP.*"); m_pythonEngine.Execute("import clr"); //m_pythonEngine.Execute("clr.AddReference('BlueFace.VoIP.Net')"); //m_pythonEngine.Execute("from BlueFace.VoIP.Net.SIP import *"); //m_pythonEngine.Execute("clr.AddReference('siggui')"); //m_pythonEngine.Execute("from BlueFace.Net.SignallingGUI import *"); m_pythonEngine.Globals["pythonHelper"] = pythonHelper; //m_pythonEngine.Globals["sipRequest"] = sipRequest; //SIPTransaction transaction = new SIPTransaction(sipRequest); //SIPTransport.SendSIPReliable(transaction); m_sipFlowDebugStream = new MemoryStream(); m_debugStreamReader = new StreamReader(m_sipFlowDebugStream); m_pythonEngine.SetStandardOutput(m_sipFlowDebugStream); }