Ah, makes sense. I'm still new to the whole API thing, just basing my knowledge on what I have used so far which has been fairly limited. My most extensive API usage isn't even directly with the API, it's through Amazon's AWS SDK. I think I have a working version of the app I'm trying to create that will Push all Destinations from fusionpbx into dsiprouter via the API, and to get the status of a domain I just get the entire inboundmapping from dsiprouter and handle it in PHP code checking it against each domain's DIDs to see if they are mapped yet.
Do you think I will run into any limits as we get more and more DIDs into this setup, such as performance issues in dsiprouter or with the API? I could probably pretty quickly convert to making a separate API call for each DID on each domain as I am refreshing the sync status if you think there are going to be any limitations.
I'll probably have my code up to publishing an initial version on github tomorrow, right now there are too many constants in the code, gotta get all the variables/default settings going. It's a fairly narrow focus, because it relies upon a user of it to both be using Route53 DNS and dsiprouter as their SBC and just has a single button to update dns and update dsiprouter inboundmappings on a per-domain basis.