Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks of type "line_base" are not expected here #1502

Open
asadsaqlain opened this issue Jan 24, 2025 · 0 comments
Open

Blocks of type "line_base" are not expected here #1502

asadsaqlain opened this issue Jan 24, 2025 · 0 comments

Comments

@asadsaqlain
Copy link

asadsaqlain commented Jan 24, 2025

We've hit into an issue where we can't update the persistent connection setting on a base setting: Below is the code with gives error "Blocks of type "line_base" are not expected here".

resource "genesyscloud_telephony_providers_edges_phonebasesettings" "WebRTC_POC" {
name = " WebRTC_POC"
description = "Phone Base Settings webRTC for POC"
phone_meta_base_id = "inin_webrtc_softphone.json"

**line_base {

station_persistent_enabled = true
station_persistent_timeout = 800

}**

properties = jsonencode({
"phone_label" = {
"value" = {
"instance" = "PureCloud WebRTC Phone"
}
}
"phone_maxLineKeys" = {
"value" = {
"instance" = 1
}
}
"phone_mwi_enabled" = {
"value" = {
"instance" = true
}
}
"phone_mwi_subscribe" = {
"value" = {
"instance" = true
}
}
"phone_standalone" = {
"value" = {
"instance" = false
}
}
"phone_stations" = {
"value" = {
"instance" = ["station 1"]
}
}
})
}

On the other hand if we try following it update the phone base setting but the gui doesn't represent the actual value. If we call get
/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId} it shows the right value. So please let us know what's going wrong with this resource.

resource "genesyscloud_telephony_providers_edges_phonebasesettings" "WebRTC_POC" {
name = "WebRTC_POC"
description = "Phone Base Settings webRTC for POC"
phone_meta_base_id = "inin_webrtc_softphone.json"

properties = jsonencode({
"phone_label" = {
"value" = {
"instance" = "PureCloud WebRTC Phone"
}
}
"phone_maxLineKeys" = {
"value" = {
"instance" = 1
}
}
"phone_mwi_enabled" = {
"value" = {
"instance" = true
}
}
"phone_mwi_subscribe" = {
"value" = {
"instance" = true
}
}
"phone_standalone" = {
"value" = {
"instance" = false
}
}
"phone_stations" = {
"value" = {
"instance" = ["station 1"]
}
},
### "station_persistent_webrtc_enabled" = {
"value" = {
"instance" = true
}
},
"station_persistent_timeout" = {
"value" = {
"instance" = 800
}

}
})
}

Edited on 27-01-2025:

after updating to version "1.57.1" following updates the timeout value in gui but station_persistent_enabled true/false is still not working.

**line_base {

station_persistent_enabled = true
station_persistent_timeout = 800

}**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant