Handle Hello in calls
This commit is contained in:
parent
989b429b50
commit
fdabdba892
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,9 @@ func main() {
|
||||||
play.Play(v.Call.Audio, v.Call.AudioType)
|
play.Play(v.Call.Audio, v.Call.AudioType)
|
||||||
case *pb.Message_Notification:
|
case *pb.Message_Notification:
|
||||||
log.Println(v.Notification.Msg)
|
log.Println(v.Notification.Msg)
|
||||||
|
case *pb.Message_Hello:
|
||||||
|
ver := v.Hello.Version
|
||||||
|
log.Printf("server says: welcome to %s %s built %s for %s", ver.ServerName, ver.Version, ver.Built, ver.Platform)
|
||||||
default:
|
default:
|
||||||
log.Printf("received other message not known")
|
log.Printf("received other message not known")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue