Skip to content

Instantly share code, notes, and snippets.

@martinvonwittich
martinvonwittich / ami-zammad.pl
Last active February 5, 2019 21:37
ami-zammad.pl - listens for queue events via asterisk AMI and posts them to Zammad's generic CTI
#!/usr/bin/perl -CSDAL
use warnings;
use strict;
use Asterisk::AMI;
#use DDP;
use AnyEvent::HTTP;
use WWW::Form::UrlEncoded;
sub cb_default;
@martinvonwittich
martinvonwittich / disable-notifications.pl
Created May 24, 2019 11:22
A simple Perl script to disable notifications for a set of Zammad users
#!/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;