May
22
2014
0

Asterisk 1.8 T1 w/ PRI + analog fax

It’s been a while since I posted, so I want to come out swinging.  I recently put together a phone system for a medium office.  They have a standard T1 and a 4 port FXS Digium card.  The analog card is for a PA system and two fax machines.  This post is a quick tutorial with examples for installation.

Goals of this post:

  • Configure Digium T1 w/ PRI
  • Configure Analog card channels
  • Asterisk Dahdi setup

This tutorial assumes you have a somewhat recent working build of libpri, dahdi, and Asterisk.

(more…)

Mar
03
2009
0

Mediatrix SIP/PRI Gateway Syslog Server Setup

Recently I was requested to set up syslog service between a Mediatrix PRI to SIP gateway.  The Mediatrix web GUI allows you to send logs to a syslog server; in this case an Asterisk PBX.  Asterisk logs just fine to local facility0 by the way.

I enabled the service and set syslog to accept remote connections.  Yet, I got nothing.  I called a support rep for a vendor that sells these things and he told me that by default Mediatrix logs to local facility7.  So I edited the syslog.conf with the IP Address of the Mediatrix and it worked!  syslog and rsyslog config files should work the same.  I hope this helps.

/etc/rsyslog.conf

# Log cron stuff
cron.*                                                  /var/log/cron
# Everybody gets emergency messages
*.emerg                                                 *
# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler
# Save boot messages also to boot.log
#local7.*                                                /var/log/boot.log
#mediatrix IP ADDRESS
local7.*                                            /var/log/mediatrix.log
#
#
#
#
local0.*                        /var/log/asterisk.log

Remember a couple things – rsyslog is a newer version of syslog.  So you might have a ‘rsyslog.conf’ or a ‘syslog.conf’.  Another thing often overlooked is enabling TCP/UDP port 514 and their respective modules.  By default remote logging is disabled in Fedora Distros, and likely others for good reason.

/etc/rsyslog.conf

#### MODULES ####



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



# Provides UDP syslog reception
$ModLoad imudp.so
$UDPServerRun 514



# Provides TCP syslog reception
$ModLoad imtcp.so
InputTCPServerRun 514

In conclusion…  Syslog servers are absolutely nesasarry to get Mediatrix SIP/PRI gateways operational with the carrier.  They are a solid appliance, but difficult to configure because of all the options.  Good luck.