[asterisk-users] Disable peer from AMI

Tiago Geada tiago.geada at gmail.com
Wed Oct 23 09:32:39 CDT 2013


I'm just stating what is already explained above. You could either have
dialplan with iftime() or use realtime peers, and have something
enable/disable them from sql backend


On 23 October 2013 11:38, Darryl Moore <darryl at moores.ca> wrote:

> put it in a different context in your dial plan and use a gotoif statement
> to control the times it is allowed to dial out. you can also redirect it to
> a prerecorded message whenever someone tries to use it during the 'off'
> time. no need for anything as brutal as disabling it in sip.conf.
> On 2013-10-23 12:37 AM, "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...
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>                http://www.asterisk.org/hello
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131023/3136fd50/attachment.html>


More information about the asterisk-users mailing list