<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 22, 2013 at 11:36 PM, Michelle Dupuis <span dir="ltr"><<a href="mailto:mdupuis@ocg.ca" target="_blank">mdupuis@ocg.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr"><font color="#000000" face="Tahoma">I need to disable/enable a peer after hours automatically, and am thinking about doing so via the AMI.</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">Is there a command to enable/disable (or perhaps delete/add) a peer via the AMI? I could create code to modify sip.conf and force a reload, but that seems like the wrong approach...</font></div>
</div><br></blockquote></div><br></div><div class="gmail_extra">Have you considered adding realtime sip peers? They can peacefully co-exist with a sip.conf file. Then just build in some logic to sip prune when you need to remove the peer...(I forget the actual command at the moment). As far as I can tell, no AMI would be needed...<br>
<br><br clear="all"><div><div dir="ltr">--<br>Thanks,<br>Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.SelbyTech.com</a><br></div></div>
<br></div></div>