BS2VoipConfigExt config = { 0, }; config.enabled = true; config.useOutboundProxy = false; config.registrationDuration = 300; string ipAddr = "192.168.0.9"; memcpy(config.address, ipAddr.c_str(), ipAddr.size()); config.port = 5060; config.volume.speaker = 50; config.volume.mic = 50; string sipID = "myAccount"; memcpy(config.id, sipID.c_str(), sipID.size()); string sipPW = "myPassword"; memcpy(config.password, sipPW.c_str(), sipPW.size()); string authCode = "1234"; memcpy(config.authorizationCode, authCode.c_str(), authCode.size()); config.exitButton = '0'; // keypad 0 config.showExtensionNumber = true; config.numPhoneBook = 2; string phoneNum = "600"; memcpy(config.phonebook[0].phoneNumber, phoneNum.c_str(), phoneNum.size()); string phoneDesc = "LB James"; memcpy(config.phonebook[0].description, phoneDesc.c_str(), phoneDesc.size()); phoneNum = "601"; memcpy(config.phonebook[1].phoneNumber, phoneNum.c_str(), phoneNum.size()); phoneDesc = "C Kershaw"; memcpy(config.phonebook[1].description, phoneDesc.c_str(), phoneDesc.size()); int sdkResult = BS2_SetVoipConfigExt(context, id, &config); if (BS_SDK_SUCCESS != sdkResult) printf("BS2_SetVoipConfigExt call failed: %d", sdkResult);