lonli078 / go-yate

Golang modules comunicate with YATE core via external protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-yate

Golang modules comunicate with YATE core via external protocol

example:

import (
	"./go-yate"
)

func authHandler(msg *goyate.Message) {
    //TODO something
	msg.Ret(true, "")
}

func main() {
    yate := goyate.Start("localhost", 5039)
	yate.Install("user.auth", authHandler)
	goyate.Run()
}

About

Golang modules comunicate with YATE core via external protocol


Languages

Language:Go 100.0%