<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div id="sig22609205"><div class="signature">On Sat, Sep 19, 2015, at 04:39 PM, Agustín Bertamoni wrote:<br></div>
</div>
<blockquote type="cite"><div dir="ltr"><div><div>Hi all,<br></div>
<div>For SIP services some IGD tree values and attributes must be per CPE (like SIP.AuthUserName) and the rest of values are global. Specifically for per CPE attributes, if use presets must create a preset entry per each CPE. Isn't it?  the question is, if can use task to set specific attributes? and can create this scheduled task even before the first device hit?<br></div>
<div>BR <br></div>
</div>
</div>
</blockquote><div> </div>
<div>You should never use per CPE presets as that doesn't scale. And you can't queue individual tasks before the device is registered because the task queue is cleared whenever there's a bootstrap event (e.g. when the device contacts the ACS for the first time).<br></div>
<div> </div>
<div>The way I work around this limitation is by patching the back end to support "dynamic" values in presets. Though you may not want to go through that route because you'll have to rebase your changes whenever there's an upstream update. A more elegant solution is coming in a future release.<br></div>
<div> </div>
<div>Alternatively, you could have an external process that pushes tasks whenever a new device contacts the ACS. That can either be a cron job that queries the devices on _lastBootstrap field periodically; or you use Dan's fork in which he implemented some kind of notification mechanism (<a href="https://github.com/akcoder/genieacs/">https://github.com/akcoder/genieacs/</a>). He described how it works a while ago so you can search the mailing list if you want to use that approach: <a href="http://dir.gmane.org/gmane.network.genieacs.user">http://dir.gmane.org/gmane.network.genieacs.user</a><br></div>
<div> </div>
<div>Zaid<br></div>
</body>
</html>