Hi Michael,
System Manager APIs can't be used find the next free extension/agent IDs.
You could always use the “add agent next” command. But then it uses the next lowest number free in what is defined as “extn” in dial-plan. So if you need to maintain specific ranges for VDN/Agent/Station/Announcements etc. this will probably not work.
There is no SAT command that can be used to find the next free extension in the range. List in combination with count is the only efficient way to do it.
You said, you would like to find something similar to the "Find Un-used extension" tool in ASA.
The ASA tool also runs the list command only. You have to provide Starting extension in ASA tool as well. If that starting extension is far away from the available free extension, ASA tool will also take longer time to return the result. You probably feel that you get the result quicker with ASA, but it is doing the same thing as your SMS application does.
Your colleague Rajesh Ramachandra from Blackboard posted a Support ticket for same question and I have responded to it.
Regards,
Mak
|