10-03-2024 12:19 AM
Hi.
I'm looking for a CLI command that I could use to list all DNs with a specific call forward.
I have one but it doesn't work for me:
run sql select d.name as device, n.dnorpattern, cfd.cfadestination from device as d inner join devicenumplanmap as dmap on dmap.fkdevice = d.pkid inner join numplan as n on n.pkid=dmap.fknumplan inner join callforwarddynamic as cfd on cfd.fknumplan=n.pkid where (cfd.cfadestination = d.pkid inner join numplan as n on n.pkid=dmap.fknumplan inner join callforwarddynamic as cfd on cfd.fknumplan=n.pkid where (cfd.cfadestination = '917035551212')
10-03-2024 02:27 AM
run sql select cfddyn.cfadestination, n.dnorpattern, pt.name from callforwarddynamic as cfddyn join numplan as n on cfddyn.fknumplan=n.pkid join routepartition as pt on n.fkroutepartition=pt.pkid where cfddyn.cfadestination='099028165'
The above SQL command will list all the extensions who has Call Forward All set to 099028165.
Or do you have any specific conditions like busy, no answer, etc.?
10-09-2024 05:14 AM
It could be great t o check also other redirections like busy or no answer
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide