› VitalPBX Community Support › General Discussion › Cannot delete some ring groups
- This topic has 6 replies, 2 voices, and was last updated 6 months, 3 weeks ago by
pftech-pf.
- Post
-
- May 31, 2020 at 10:37 pm
Hello there,I want to delete an old not utilized ring group, but when I go to delete it, I got this error message:
This item is being used as destination by the <b>Time Conditions</b> module
Obviously under “Time Conditions” module there is no entry! It’s empty!
How can I delete that ring group manually, maybe from command line?
Best regards,
Paolo
0
Viewing 6 replies - 1 through 6 (of 6 total)
- Replies
-
- June 1, 2020 at 12:01 am
- June 2, 2020 at 11:51 pm
I suppose you created a time condition pointing to that ring group some time ago, right? Maybe there was an issue with that specific version.You may try this:
select d.id from ombu_destinations as d left join ombu_destinations_category odc on d.category_id = odc.id where odc.module_id = (select module_id from ombu_modules where name = 'ring_group') and d.module_id = (select module_id from ombu_modules where name = 'time_conditions') and d.index = (select ring_group_id from ombu_ring_groups where extension = '100');
The script above will return you the destination IDs associated with the ring group 100, so, now that you have the ID, you only need to delete the item:
delete from ombu_destinations where id = ?
The ID will be the value or values returned by the first query.
-
This reply was modified 7 months, 4 weeks ago by
Jose Miguel Rivera.
-
This reply was modified 7 months, 4 weeks ago by
Jose Miguel Rivera.
1- June 3, 2020 at 5:19 am
- June 3, 2020 at 6:14 am
Viewing 6 replies - 1 through 6 (of 6 total)
Tagged: delete, ring group
- The topic ‘Cannot delete some ring groups’ is closed to new replies.