コード例 #1
0
// Restart FS so we make sure reconnects are working
func TestTutKamCallsRestartKamailio(t *testing.T) {
	if !*testCalls {
		return
	}
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "kamevapi", "kamailio", "etc", "init.d", "kamailio"), "restart", 3000); err != nil {
		t.Fatal(err)
	}
}
コード例 #2
0
// Restart FS so we make sure reconnects are working
func TestTutOsipsCallsRestartOsips(t *testing.T) {
	if !*testCalls {
		return
	}
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "osips_async", "opensips", "etc", "init.d", "opensips"), "restart", 3000); err != nil {
		t.Fatal(err)
	}
}
コード例 #3
0
// Restart FS so we make sure reconnects are working
func TestTutAstCallsRestartAsterisk(t *testing.T) {
	if !*testCalls {
		return
	}
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "asterisk_events", "asterisk", "etc", "init.d", "asterisk"), "restart", 2000); err != nil {
		t.Fatal(err)
	}
}
コード例 #4
0
// Restart FS so we make sure reconnects are working
func TestTutFsCallsRestartFS(t *testing.T) {
	if !*testCalls {
		return
	}
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "fs_evsock", "freeswitch", "etc", "init.d", "freeswitch"), "restart", 5000); err != nil {
		t.Fatal(err)
	}
}
コード例 #5
0
// Start CGR Engine
func TestTutKamCallsStartEngine(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("cgr-engine", *waitRater)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "kamevapi", "cgrates", "etc", "init.d", "cgrates"), "start", 100); err != nil {
		t.Fatal(err)
	}
}
コード例 #6
0
// start Asterisk server
func TestTutAstCallsStartOsips(t *testing.T) {
	if !*testCalls {
		return
	}
	engine.KillProcName("asterisk", 1000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "asterisk_events", "asterisk", "etc", "init.d", "asterisk"), "start", 2000); err != nil {
		t.Fatal(err)
	}
}
コード例 #7
0
// Start CGR Engine
func TestTutOsipsCallsStartEngine(t *testing.T) {
	engine.KillProcName("cgr-engine", *waitRater)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "osips_async", "cgrates", "etc", "init.d", "cgrates"), "start", 100); err != nil {
		t.Fatal(err)
	}
}
コード例 #8
0
// start FS server
func TestTutOsipsCallsStartOsips(t *testing.T) {
	engine.KillProcName("opensips", 3000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "osips_async", "opensips", "etc", "init.d", "opensips"), "start", 3000); err != nil {
		t.Fatal(err)
	}
}
コード例 #9
0
// start FS server
func TestTutFsCallsStartFS(t *testing.T) {
	engine.KillProcName("freeswitch", 5000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "fs_evsock", "freeswitch", "etc", "init.d", "freeswitch"), "start", 3000); err != nil {
		t.Fatal(err)
	}
}
コード例 #10
0
// start FS server
func TestTutKamCallsStartKamailio(t *testing.T) {
	engine.KillProcName("kamailio", 3000)
	if err := engine.CallScript(path.Join(*dataDir, "tutorials", "kamevapi", "kamailio", "etc", "init.d", "kamailio"), "start", 2000); err != nil {
		t.Fatal(err)
	}
}