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, "") }
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))) }
func (conf Conference) RegisterNumber(phone string) { fmt.Println("\tRegister number:", phone) common.NewIncomingPhoneNumber("", cfg.Callback.Conference).CreateOrUpdate(restcommApi, "") }
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) }