This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if((@include '/etc/freepbx.conf') === false){ | |
echo "Failed to include configuration\r\n"; | |
return; | |
} | |
$ariuser = \FreePBX::Config()->get('FPBX_ARI_USER'); | |
$aripass = \FreePBX::Config()->get('FPBX_ARI_PASSWORD'); | |
$ari = new Pest('http://localhost:8088/ari'); | |
$ari->setupAuth($ariuser,$aripass); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# asterisk.py | |
# | |
# Copyright 2012 James Finstrom<jfinstrom at gmail> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |