[asterisk-users] Disable peer from AMI
Warren Selby
wcselby at selbytech.com
Wed Oct 23 00:12:50 CDT 2013
On Tue, Oct 22, 2013 at 11:36 PM, Michelle Dupuis <mdupuis at ocg.ca> wrote:
> I need to disable/enable a peer after hours automatically, and am
> thinking about doing so via the AMI.
>
> 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...
>
>
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...
--
Thanks,
Warren Selby, dCAP
http://www.SelbyTech.com <http://www.selbytech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131023/67340f27/attachment.html>
More information about the asterisk-users
mailing list