Skip to content

Instantly share code, notes, and snippets.

@martinvonwittich
martinvonwittich / disable-notifications.pl
Created May 24, 2019
A simple Perl script to disable notifications for a set of Zammad users
View disable-notifications.pl
#!/usr/bin/perl -CSDAL
use warnings;
use strict;
use utf8;
use Getopt::Long;
use JSON;
use Path::Tiny;
use REST::Client;
use URI;
#use DDP;
@martinvonwittich
martinvonwittich / ami-zammad.pl
Last active Feb 5, 2019
ami-zammad.pl - listens for queue events via asterisk AMI and posts them to Zammad's generic CTI
View ami-zammad.pl
#!/usr/bin/perl -CSDAL
use warnings;
use strict;
use Asterisk::AMI;
#use DDP;
use AnyEvent::HTTP;
use WWW::Form::UrlEncoded;
sub cb_default;