Greg Fausak wrote:
We use enum for internal location like routing. For example, we maintain a simple tab separated file:
ENUM 4695461265 sip+E2U addaline.com ENUM 4695461266 sip+E2U addaline.com
Ok, but this is also rather static and only changes if a new number is subscribed to the system, isn't it?
What I'm looking for is a solution to maintain a very dynamic location database in enum. I've a few thousand subscribers registering from IP addresses that are assigned by DHCP, so they can and do change from one register to the next.
So I want to perform something like:
if(www_authorize("my.domain", "subscriber")) { save("location"); # just for backup exec_msg('/foo/nsupdate_wrapper register'); } else { ... }
nsupdate_wrapper calls the nsupdate-utility and dynamically updates the DNS entry.
The only problem I can see is how to remove expired entries from the enum tree.
Does that make sense?
Andy