示例#1
0
func (conf *Conference) RegisterNumber() {
	fmt.Println("\tRegister number:", cfg.Callback.Phone, cfg.Callback.Conference)

	callBack := fmt.Sprintf("http://%s/register", cfg.GetExternalAddress(cfg.ServerPort.Conference))
	common.NewIncomingPhoneNumber("", cfg.Callback.Phone).CreateOrUpdate(restcommApi, callBack)

	common.NewIncomingPhoneNumber("", cfg.Callback.Conference).CreateOrUpdate(restcommApi, "")
}
示例#2
0
func (t *PerfTest) RegisterNumber() {
	common.Info.Println("\tRegister number:", "6666", "7777")

	common.NewIncomingPhoneNumber("", "6666").CreateOrUpdate(restcommApi, fmt.Sprintf("http://%s/start", cfg.GetExternalAddress(30666)))
	common.NewIncomingPhoneNumber("", "7777").CreateOrUpdate(restcommApi, fmt.Sprintf("http://%s/stop", cfg.GetExternalAddress(30666)))
}
示例#3
0
func (conf Conference) RegisterNumber(phone string) {
	fmt.Println("\tRegister number:", phone)

	common.NewIncomingPhoneNumber("", cfg.Callback.Conference).CreateOrUpdate(restcommApi, "")
}
示例#4
0
func (sms Sms) RegisterNumber(number string) {
	common.Info.Println("\tRegister number:", number)

	callBack := fmt.Sprintf("http://%s/register", cfg.GetExternalAddress(cfg.ServerPort.Main))
	common.NewIncomingPhoneNumber("", cfg.Callback.Phone).CreateOrUpdate(restcommApi, callBack)
}