Example #1
0
        private SIPStack CreateStack(SIPApp app, string proxyIp = null, int proxyPort = -1)
        {
            SIPStack myStack = new SIPStack(app, "USPS");

            if (proxyIp != null)
            {
                myStack.ProxyHost = proxyIp;
                myStack.ProxyPort = (proxyPort == -1) ? 5060 : proxyPort;
            }
            return(myStack);
        }
Example #2
0
 public void Start()
 {
     _lastupdate = DateTime.Now;
     _db = new SQLiteDatabase("|DataDirectory|app_data.sqlite;Version=3;");
     TransportInfo localTransport = CreateTransport(Helpers.GetLocalIP(), 7202);
     _app = new SIPApp(localTransport);
     _app.RequestRecvEvent += AppRequestRecvEvent;
     _app.ResponseRecvEvent += AppResponseRecvEvent;
     const string scscfIP = "scscf.open-ims.test";
     const int scscfPort = 6060;
     SIPStack stack = CreateStack(_app, scscfIP, scscfPort);
     stack.Uri = new SIPURI("*****@*****.**");
     _localparty = new Address("<sip:[email protected]>");
     StartTimer();
 }
Example #3
0
        public void Start()
        {
            _lastupdate = DateTime.Now;
            _db         = new SQLiteDatabase("|DataDirectory|app_data.sqlite;Version=3;");
            TransportInfo localTransport = CreateTransport(Helpers.GetLocalIP(), 7202);

            _app = new SIPApp(localTransport);
            _app.RequestRecvEvent  += AppRequestRecvEvent;
            _app.ResponseRecvEvent += AppResponseRecvEvent;
            const string scscfIP   = "scscf.open-ims.test";
            const int    scscfPort = 6060;
            SIPStack     stack     = CreateStack(_app, scscfIP, scscfPort);

            stack.Uri   = new SIPURI("*****@*****.**");
            _localparty = new Address("<sip:[email protected]>");
            StartTimer();
        }
Example #4
0
 private SIPStack CreateStack(SIPApp app, string proxyIp = null, int proxyPort = -1)
 {
     SIPStack myStack = new SIPStack(app, "USPS");
     if (proxyIp != null)
     {
         myStack.ProxyHost = proxyIp;
         myStack.ProxyPort = (proxyPort == -1) ? 5060 : proxyPort;
     }
     return myStack;
 }