sábado, junho 14, 2014

Settings on a Linksys ATA for faxing.

Settings on a Linksys ATA for faxing.





When having difficulty faxing over VoIP make these adjustments in your Linksys ATA.


There are some configuration settings which can be made inside the Cisco/Linksys ATA which will help faxing.  The first step in configuring these settings would be to access the Linksys PAP2t or other Linksys ATA device itself and have access to the Advanced Settings.  Some VoIP providers may "lock" the device, in which case you may not have the ability to make these advanced fax adjustments.
Typically, faxing can be disrupted or act negatively to silence suppression and  to echo cancelling techniques, so these variables would want to be disabled in many cases, as well to packet loss, which can quickly cause a fax to fail. 
Access your ATA device and click Switch to  Advanced View.
The Linksys PAP2T has an Advanced View which is where many settings can be made.

Next choose the Line that is being used for faxing. 
Network Jitter is network induced delays of varying amounts for received packets (RTP). The Linksys ATA is capable of keeping a reserve of RTP samples which is known as the Jitter Buffer. The larger the buffer the more jitter the ATA can absorb, but it also will increase delay. A larger Jitter Buffer setting on the line that is used as a fax line will help absorb larger amounts of jitter and help keep the fax from failing.
Look for Network Settings and Set Network Jitter Level to Very High.
Set the Network Jitter Buffer to Very High on your Linksys ATA for VoIP faxing.
Note: You may find a extremely high setting.  This setting could also be considered.

Next Go to the Audio Configuration section.
Use the ATA configuration settings for better VoIP faxing.
Make the following Configuration Settings in the Audio Configuration section in your Cisco/Linksys ATA device.  These settings will help resolve issues with difficulty when trying to fax over your VoIP connection.  (See the note below with regard to FAX Disable ECAN.)
  • Preferred Codec to G711a
  • Set Silence Supp to No (default setting).
  • Set Echo Supp Enable to No.*
  • Set Echo Canceller to No.*
  • Set FAX Passthru Method to NSE.
  • Set FAX Passthru Codec to G711u.
  • Set Use Pref Codec Only to Yes.
  • FAX Disable ECAN to Yes.*
Fax Disable ECAN is a configuration in some Linksys ATAs.*Note: The Fax Pass-through Mode is triggered by NSE events, which we suggest that you choose as the setting of choice.  If available in your configuration settings, the setting "FAX Disable ECAN" can be set to Yes, which will trigger the echo canceller to be automatically disabled and both call waiting and silence suppression to be automatically disabled for the fax pass-through.  Additionally, out-of-band DTMF Tx is also disabled.

Setting the RTP Packet Size.

You may find that the setting for the RTP Packet Size is 0.03 (which is default setting), in which case a lowering of this setting would be more advantageous for faxing.  Real-Time Protocol (RTP) Packet Size choices are typically 10 or 20 or 30 ms with a typical setting of being 20 ms or 0.020.
RTP Packet Size in seconds provides lower latency, but is less efficient, in that more bandwidth will be used for the connection. In general smaller packet sizes would use more bandwidth, however this would be good for faxing since latency is decreased.
First Go to the SIP tab
Then look for the RTP Packet Size Setting.
On most Cisco/Linksys VoIP ATAs ypu mau need to set the RTP packet size for better faxing.
Make this setting to the standard setting of 0.20 which will help improve faxing success.

Asterisk codecs G.729 G.723.1

Asterisk codecs G.729 G.723.1


Installing the Free G729 Codec for Asterisk

This tutorial will let you install the G729 Codec on an Asterisk installation in under 5 minutes.

Navigate to the codecs directory:

cd /usr/lib/asterisk/modules

Download the codec

Notice that we are in the modules directory

Rename the codec file

mv codec_g729-ast14-gcc4-glibc-pentium4.so codec_g729.so

Restart Asterisk

/etc/init.d/asterisk restart

Check your work

Connect to Asterisk
asterisk -r
Then show all of the codec translations available using the command below, and check g729 at the left, you should see that it can be translated to many other codecs on the top of the table
Machine*CLI> show translations

         Translation times between formats (in milliseconds) for one second of data

          Source Format (Rows) Destination Format (Columns)

          g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722

     g723    -   -    -    -        -     -    -     -    -     -    -    -    -

      gsm    -   -    2    2        2     2    1     2    3     -    -    2    -

     ulaw    -   3    -    1        2     2    1     2    3     -    -    2    -

     alaw    -   3    1    -        2     2    1     2    3     -    -    2    -

 g726aal2    -   3    2    2        -     2    1     2    3     -    -    2    -

    adpcm    -   3    2    2        2     -    1     2    3     -    -    2    -

     slin    -   2    1    1        1     1    -     1    2     -    -    1    -

    lpc10    -   3    2    2        2     2    1     -    3     -    -    2    -

     g729    -   3    2    2        2     2    1     2    -     -    -    2    -

    speex    -   -    -    -        -     -    -     -    -     -    -    -    -

     ilbc    -   -    -    -        -     -    -     -    -     -    -    -    -

     g726    -   3    2    2        2     2    1     2    3     -    -    -    -

     g722    -   -    -    -        -     -    -     -    -     -    -    -    -

Machine*CLI> quit

Troubleshooting

If you didn’t see the codec translation as mentioned above then probably you downloaded the wrong codec, please check again the points mentioned during downloading the codec, you can use the following commands to help you:
asterisk -V

uname -a

G.729 and G.723.1 codecs for Asterisk open source PBX

DISCLAIMER: You might have to pay royalty fees to the G.729/723.1 patent holders for using their algorithm.



Sources

To compile the codecs it is recommended to install Intel IPP libraries for better performance. Asterisk 1.4 to 12 are supported.

Binaries

  1. choose codec binary appropriate for your Asterisk version and CPU type, use x86_64 for 64-bit mode
  2. delete old codec_g72[39]*.so files (if any) from /usr/lib/asterisk/modules directory
  3. copy new codec_g72[39]*.so files into /usr/lib/asterisk/modules directory
  4. restart Asterisk
  5. check the codec is loaded with 'core show translation recalc 10' on Asterisk console
  6. G.723.1 send rate is configured in Asterisk codecs.conf file:
    [g723]
    ; 6.3Kbps stream, default
    sendrate=63
    ; 5.3Kbps
    ;sendrate=53
    This option is for outgoing voice stream only. It does not affect incoming stream that should be decoded automatically whatever the bitrate is.
  7. in sip.conf or/and iax.conf configure the codec(s) either globally or under respective peer, for example:
    disallow=all
    allow=g729
  8. use "g723 debug" and "g729 debug" commands to print statistics about received frame sizes, can aid in debugging audio problems; you need to bump Asterisk verbosity level to 3 (-vvv) to see the numbers
  9. for detailed information about Asterisk configuration visit voip-info.org
  10. for information about astconv utility read the README
  11. in case of problems read Notes and Troubleshooting
Linux binaries
Asterisk 1.8
Asterisk 11
Asterisk 12 

Notes

  • After download check MD5SUM.
  • Use x86_64 build if running 64-bit mode. Binary without x86_64 in its name is 32-bit. Use pentium4/core2/opteron binaries even your processor is 64-bit capable but you are running 32-bit.
  • Use Pentium 4 build for Pentium D. Use Pentium 3 for VIA C3 and Pentium 4 for VIA C7.
  • XEON is a server brand CPU of Pentium3/Pentium4/Core families. Celeron is Pentium3/Pentium4/Core with smaller cache. Basically, there are 5 software cores: MMX, SSE, SSE2, SSE3, SSE4. Pick closest match from Intel CPU line and try it.
  • GCC4, ICC - all binaries are compatible with Asterisk built by any other compiler, use what is faster or better for you.
  • sse3 builds are for Prescott iteration of Pentium 4 chips with SSE3 support, check for PNI flag in /proc/cpuinfo.
  • ICC cores are not always the fastest, check with '(core) show translation recalc 10' on Asterisk console, ensure the box is idle or else timings will be inaccurate.

Troubleshooting

  • Noise or metalic sound with codec_g723
    Configure /etc/asterisk/codecs.conf [g723] sendrate=63 or 53 as described at the top of this page.
  • Distorted sound
    Disable VAD and CNG in phone and/or your VOIP provider.
  • show translation - codec is not loaded
    Bump asterisk verbosity level with -vv and watch for messages right after 'loading module codec_g729...'
  • loader.c... /usr/lib/asterisk/modules/codec_g72...: cannot restore segment prot after reloc: Permission denied
    Execute:
    $ chcon -t textrel_shlib_t /usr/lib/asterisk/modules/codec_g72[39]*.so
    This happens when SELinux is enabled and Asterisk process cannot load the codec because of ELF TEXTREL in shared library. This is how IPP works and that is fine.
  • loader.c... /usr/lib/asterisk/modules/codec_g72...: cannot enable executable stack as shared object requires: Permission denied
    Execute:
    $ execstack -c /usr/lib/asterisk/modules/codec_g72[39]*.so
  • Error loading module codec_g72...: cannot open shared object file: No such file or directory
    Check
    $ ldd codec_g729.so
    $ strace -o trace.log -efile -f asterisk
    send ldd output and trace.log file to Asterisk G.729 Google group.
  • Error loading module codec_g72...: wrong ELF class: ELFCLASS32
    Use x86_64 binaries because you're running 64-bit OS.
  • $ ldd codec_g729.so: not a dynamic executable
    You are running 32-bit, see Notes - note #2
  • Asterisk crashing at startup
    If Pentium4 codec is not working, try -no-sse builds, try Pentium3. Try ICC builds. Doesn't work - try Pentium and Debug builds.
  • Asterisk still crashing at startup
    Compile asterisk with CFLAGS=-g
    Run asterisk in gdb (with original and -debug version of the codec):
    $ gdb /usr/sbin/asterisk
    (gdb) r -cvvv
    when it crashes do:
    (gdb) set disassembly-flavor intel
    (32-bit gdb 6.x) disassemble $eip $eip+20
    (32-bit gdb 7.x) disassemble $eip, $eip+20
    (64-bit gdb 6.x) disassemble $rip $rip+20
    (64-bit gdb 7.x) disassemble $rip, $rip+20
    (gdb) info registers
    (gdb) info threads
    (gdb) bt
    (gdb) l
    (gdb) q
    Send an output to Asterisk G.729 Google group together with the result of 'cat /proc/cpuinfo'.
  • Why these Illegal instruction errors?
    For in-depth technical information read http://gcc.gnu.org/PR32893 and http://bugs.gentoo.org/show_bug.cgi?id=151394.

Asterisk G.729
Visit this group

Getting help

The primary source of help is Asterisk G.729 Google group. Post your questions there, but first read Notes and Troubleshooting sections above. When reporting a problem it is up to you to provide as much usefull information as possible. "Doesn't work" - is not a good description.

sexta-feira, junho 13, 2014

DD-WRT: How to allow port forwarding to apply to requests originating from inside the LAN? - Super User

router - DD-WRT: How to allow port forwarding to apply to requests originating from inside the LAN? - Super User



Try disabling "Filter WAN NAT redirection" in the Security->Firewall tab. From the help description:
Filter WAN NAT Redirection Prevents hosts on LAN from using WAN address of router to contact servers on the LAN (which have been configured using port redirection).

quinta-feira, junho 12, 2014

Emails from hosted domains not routing to 3rd party servers plesk for godaddy vds

Emails from hosted domains not routing to 3rd party servers [Archive] - Parallels Forums



"enable mail management functions in panel" is the wrong setting.

Domains -> <DOMAIN> -> Mail -> Change Settings -> "Activate mail service on domain" is what you search...





The solution might be simpler than what has been suggested here. To send mail generated from abc.com (that is running on your Plesk server) to the mail server (abc.com) that is running on a different mail server, the easiest approach is to keep the "enable mail management functions in panel" checked (somewhat counterintuitive) but then you need to take the extra step of accessing the domain panel as danliker suggested (Domains -> <DOMAIN> -> Mail -> Change Settings ->) but UNCHECK "Activate mail service on domain"

This effectively enables PostFix to rout mail that is destined to "jane@abc.com" correctly to your external mail server.

Please post your results if this works (or doesn't)!

How To Increase SSH Connection timeout | Linux Blog

How To Increase SSH Connection timeout | Linux Blog



How To Increase SSH Connection timeout

Do you get annoyed when you have a SSH session open, visit your browser for a while, and then return only to find you were disconnected? So, to avoid this ...
Open /etc/ssh/ssh_config on your (client) computer. Add the following line:
ServerAliveInterval 180
Just remember this -- if you leave SSH open accidentally, anyone else can get on it. Remember to close your session when finished.


Read more: http://linuxpoison.blogspot.com.br/2008/05/how-to-increase-ssh-connection-timeout.html?showComment=1340719911743#ixzz34SkgqN5H

How To Test Internet Speed Via Command Line ~ Web Upd8: Ubuntu / Linux blog

How To Test Internet Speed Via Command Line ~ Web Upd8: Ubuntu / Linux blog

alternative to speettest is https://www.nperf.com

If you want to test the Internet speed on a server or you simply want to avoid the speedtest.net Flash interface, you can use speedtest-cli, a command line tool for testing Internet bandwidth.

speedtest-cli tests your Internet speed using the popular speedtest.net website and it supports listing servers sorted by distancetesting against a specific server, you can use it with a Speedtest Mini server and it can even generate and provide a URL to the speedtest.net share results image.


speedtest-cli ubuntu


Install speedtest-cli


speedtest-cli can be installed using Python Pip. To install Pip in Ubuntu, use the following command:
sudo apt-get install python-pip

Then, install speedtest-cli:
sudo pip install speedtest-cli

Later on, when you want to upgrade speedtest-cli, use the following command:
sudo pip install speedtest-cli --upgrade

For other ways of installing speedtest-cli, see its GitHub page.


How to use speedtest-cli


To test your Internet connection speed from the command line using the best server based on ping, all you have to do is run the following command:
speedtest-cli

"speedtest" also works for the command instead of "speedtest-cli" (if you've installed the tool using Python Pip). So below I'll use the shorter command, "speedtest".

To test the Internet speed and get a share results image URL (here's an example), use:
speedtest --share

For advanced usage, like displaying the speedtest.net servers, test against a given server and so on, run:
speedtest -h

Here are all the available arguments:
usage: speedtest [-h] [--share] [--simple] [--list]
                     [--server SERVER] [--mini MINI] [--source SOURCE]
                     [--version]
Command line interface for testing internet bandwidth using
speedtest.net.
-----------------------------------------------------------------------
https://github.com/sivel/speedtest-cli

optional arguments:
  -h, --help       show this help message and exit
  --share          Generate and provide a URL to the speedtest.net
                   share results image
  --simple         Suppress verbose output, only show basic
                   information
  --list           Display a list of speedtest.net servers sorted by
                   distance
  --server SERVER  Specify a server ID to test against
  --mini MINI      URL of the Speedtest Mini server
  --source SOURCE  Source IP address to bind to
  --version        Show the version number and exit

[SOLVED] Alternative to http://automation.whatismyip.com/n09230945.asp for Infopanel screenlet

[SOLVED] Alternative to http://automation.whatismyip.com/n09230945.asp for Infopanel screenlet



get ip address automation script

what is my ip address


whatismyip.com
http://whatismyipaddress.com/


If you can make your "info panel" (whatever that is) application parse any other URI try grabbing the IP address from other sites like http://icanhazip.com/ or http://ifconfig.me/ip or http://myip.dnsomatic.com/ ?

terça-feira, junho 03, 2014

Mudando o tipo de rede do Windows 8

Mudando o tipo de rede do Windows 8



alterar tipo de rede no windows 8
- Vá para o Start e digite: gpedit.msc
- Computer Conf...->Windows Sett...->Security Sett...->Network List Manager
- Clique duas vezes no Network
- Vá para a aba Network Location
- Na parte que diz Location type coloque Private e de OK





Pronto, agora já deve estar como private. Até mais galera.

domingo, junho 01, 2014

DD-WRT Forum :: View topic - Asus RT-N16 Slow Wireless Speeds

DD-WRT Forum :: View topic - Asus RT-N16 Slow Wireless Speeds

Asus RT-N16 tweeks



-Channel width to 40MHz 
-Frame burst to enable 
-Preamble to short 
-Shortslot override to short 
-WMM to enable 
-No acknowledgement to disable 
-CTS protection to auto 
-Left/right antenna to auto 
-Network mode to NG-Mixed 
-ACK timing to 0 or 300 
-Make sure security stays at WPA2-AES 
-Select wireless channel manually picking the least used one