示例#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)
}
示例#2
0
func TestAAAASetup(t *testing.T) {
	log.SetDefaultLogLevel(log.WARN)
	testLog.Level = log.DEBUG
}
示例#3
0
func TestAAAAA(t *testing.T) {
	timing.MockMode = true
	log.SetDefaultLogLevel(c_LOG_LEVEL)
}