* You are viewing Posts Tagged ‘dev’

Compiling asterisk with mysql support

I have a working asterisk test box that I’m rebuilding with mysql support
so that I can test cdr stats (http://www.cdr-stats.org/).

When I run ‘make memuselect’, I select res_config_mysql, app_mysql,
cdr_mysql, and app_saycountpl components. The build/install process goes
fine i.e. no errors. However, I’m getting a seg fault error when starting
asterisk.

# /usr/sbin/safe_asterisk: line 145: 27014 Segmentation fault (core
dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS}
> /dev/${TTY} 2>&1 < /dev/${TTY}

CentOS release 5.7
asterisk-1.8.9.2
dahdi-linux-complete-2.6.0
libpri-1.4.12

What am I missing?

Should you “ever” use nat=no?

I’ve been lurking on the dev discussion on creating nat=auto. It all
leads me to think there’s no reason to use nat=no.

We have about 60 internal sip extensions connected to an multihomed
asterisk box where the external ip is not nat’ed. Each of the internal
sip contexts has nat=no. On startup I get a slew of warnings about
intruders being able to distinguish real extensions. But that isn’t
right, is it? Or if it is, wouldn’t the intruder have to be on the
“inside” 10.0.0.0 net?

But so what? Does nat=no buy you anything? faster? slicker? richer?

sean

AstLinux

AstLinux is a custom Linux distribution centered around Asterisk, the Open Source PBX. Although Asterisk remains the core focus, other VoIP applications such as FreeSWITCH are also available. AstLinux has many unique features that make it ideal for embedded and commercial Asterisk based solutions.

AstLinux contains powerful networking features including:

Supported platforms include:

The following telephony hardware cards are supported:

The AstLinux Team recently announced the release of the 1.0.1 version. This version is available with either Asterisk 1.4.43 or Asterisk 1.8.8.3. A full changelog and upgrade (or new install) instructions are available on their website. Please follow the upgrade instructions carefully when upgrading from a release prior to 1.0.

http://www.astlinux.org

As always, please report any issues (and comments) to the AstLinux mailing list on Sourceforge. (link available at the above website).

write system command output into a variable

Hey Guys,

i would like to write the output from my bash script into a Variable, that is readable by Asterisk

Using this:
Set(var1=${FILE(/dev/shm/tempfile.txt,0,6)})

is not very helpful because this command reading fixed character length. If i read 6 characters and in the file only 3 i get “123 “
Can anyone help me ?

Thanx a lot for help

Daniel

Failed To Open /dev/dahdi/transcode

This error is usually present when you try load “codec_dahdi.so” in your modules.conf file while not having a hardware transcoder. The solution for this error is simple, you can either ignore that error message or add “noload => codec_dahdi.so” to your modules.conf if you do not have a hardware transcoder installed in your system.

You might face this error if, for example have Asterisk 1.8.2.3 + A102D Sangoma card 2 port T1.

Asterisk fail over. From IP rewrite issues

Hey guys,

I hope somebody has some experience with the following because i’m stuck
;-).
I’m creating a fail over situation for Asterisk and this works great. The
only issue i have so fair os the from ip.

I used the IP fix routing here ->
http://www.voip-info.org/wiki/view/Asterisk+High+Availability+Solutions and
that works, in it’s own subnet.
But when the Asterisk box is in 10.100.2.x and my phones are in 10.100.3.x i
have no audio. (All the other stuff seems to work fine.. i can auto
provision, make the call (the phone will ring). When i check the SIP
debugging i see a correct from IP.

I think that the issue is with this line:

ip route change 10.10.10.0/24 src 10.10.10.110 dev eth0

And it sould be:
ip route change 10.10.0.0/16 src 10.10.10.110 dev eth0

But when i try to enable that line i get a error saying that the thing i’m
trying to change is not there.

Anybody got any input on this issue? Would be great!

Thanks,
Peter