Exemplo n.º 1
0
func main() {
	log.SetDefaultLogLevel(log.DEBUG)
	err := caller.Start()
	if err != nil {
		log.Warn("Failed to start caller: %v", err)
		return
	}

	// Receive an incoming call.
	caller.ServeInvite()

	<-time.After(2 * time.Second)

	// Send the BYE
	caller.Bye(callee)
}
Exemplo n.º 2
0
func TestAAAASetup(t *testing.T) {
	log.SetDefaultLogLevel(log.WARN)
	testLog.Level = log.DEBUG
}
Exemplo n.º 3
0
func TestAAAAA(t *testing.T) {
	timing.MockMode = true
	log.SetDefaultLogLevel(c_LOG_LEVEL)
}