Monthly Archives: November 2014

DIGIT MANIPULATION WELLGATE FXS


digit_manipulation_wellgate01 digit_manipulation_wellgate02

Advertisements

RSYSLOG WELLGATE CDR


#$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
#$ModLoad imklog # provides kernel logging support (previously done by rklogd)
#$ModLoad immark # provides –MARK– message capability

# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
#### GLOBAL DIRECTIVES ####

# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

EXAMPLE CDR

Nov 13 11:38:44 2014-11-13 12: 39:13 CDR OUT Src :8023 Dst :922222081287264002 CallID 80be4168-cd0010ac-17bc-45026-7f-29658e35-7f START:2014/11/13 12:38:50 ANSWER:2014/11/13 12:39:03 END:2014/11/13 12:39:13 DURATION:023 BillSec:010 DISPOSITION:FINISHED

cdr_wellgate

:fromhost-ip,startswith,”172.16.0.205″ /var/log/remote.log

EVENT ASTERISK MANAGER


npm install asterisk-manager

/home/node_modules/asterisk-manager/lib/test.js

test.js

var ami = new require(‘asterisk-manager’)(‘5038′,’192.168.0.105′,’username’,’password’, true);

// Listen for any/all AMI events.
ami.on(‘managerevent’, function(evt) {
console.log(‘EVENT ::’, evt);

});

// Listen for specific AMI events. A list of event names can be found at
// https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+AMI+Events
ami.on(‘hangup’, function(evt) {
console.log(‘HANGUP ::’, evt);
});
ami.on(‘confbridgejoin’, function(evt) {
console.log(‘CONFBRIDGEJOIN ::’, evt);
});

ami.on(‘close’, function(e) {
console.log(‘CLOSE ::’, e);
});
ami.on(‘disconnect’, function(e) {
console.log(‘DISCONNECT ::’, e);
});
ami.on(‘connect’, function(e) {
console.log(‘CONNECT ::’, e);
});

ami.action({
‘action’:’originate’,
‘channel’:’SIP/4001′,
‘context’:’default’,
‘exten’:1234,
‘priority’:1,
‘variables’:{
‘name1′:’value1’,
‘name2′:’value2’
}
}, function(err, res) {});

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: