User:Uplink

From LinuxMCE
Revision as of 00:31, 25 October 2012 by Uplink (Talk | contribs) (Created page with "==== Notes on Asterisk ==== ===== modules.conf ===== With '''autoload=yes''', modules are loaded in scandir order, which means symbols aren't always available. Asterisk will re-a...")

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Notes on Asterisk

modules.conf

With autoload=yes, modules are loaded in scandir order, which means symbols aren't always available. Asterisk will re-attempt the loading of the failed modules once, but I've encountered a case where this failed too. So I ended up with no Gosub app... because app_stack.so failed to load.

Fixed it by adding these lines to modules.conf:

preload => res_speech.so
preload => res_agi.so

res_agi.so needs a symbol from res_speech.so, that's why they're both in there.

Asterisk could really do a better job here, because the results are voodoo.

iptables

You don't need to open a gaping hole in your firewall for RTP. You can let iptables do the translation and tracking, like it's supposed to:

modprobe nf_conntrack_sip sip_direct_signalling=0 sip_direct_media=0
modprobe nf_nat_sip
SCCP

sccp-chan-b can do [nasty things] to your computer. It froze mine twice in two days once I got it working. Meanwhile, I updated it to V4.0.0 STABLE, and now the result seems to be just crashing my Asterisk. Better than a frozen machine, right? :)

autofallthrough

Dianemo's dialplans, coming from the old days, rely on autofallthrough=no.

The easiest way to set this is to create a file called /etc/asterisk/extensions.d/fallthrough.conf with the following content:

[general]
autofallthrough=no
Files to keep when blasting /etc/asterisk to get a clean new one
  • extensions.d/fallthrough.conf
  • manager.d/*.conf

Everything else can be obliterated safely :)