SIP.conf – General option in SIP.conf

sip configuration asterisk

SIP.conf – General option in SIP.conf SIP Configuration – general The [general] section of sip.conf includes the following variables: allowsubscribe = yes|no : Allow or Ignore Subscribe requests allow = <codec> : Allow codecs in order of preference (Use DISALLOW=ALL first, before allowing other codecs) disallow = all : Disallow all codecs (global configuration) allowexternaldomains = yes|no : Enable/Disable … Read more

download asterisk 13 dahdi and libpri

install asterisk 13

download asterisk 13 dahdi and libpri Asterisk is an open source framework for building communications applications. Asterisk turns an ordinary computer into a communications server. Asterisk powers IP PBX systems, VoIP gateways, conference servers and other custom solutions. It is used by small businesses, large businesses, call centers, carriers and government agencies, worldwide. Asterisk is … Read more

Setup SFTP Server on linux

Linux yum

Setup SFTP Server on linux CentOS 7 or any Linux server distribution is a very powerful server that performs above and beyond what your business might need. Whatever task you throw at the server, it will be ready. And, if it isn’t ready out of the box, you can make it so. A complete and simple … Read more

dahdi You do not appear to have the sources for the kernel installed

asterisk

dahdi You do not appear to have the sources for the kernel installed It is important that the kernel version being used match exactly that of the kernel source being installed. You can use uname -a to verify the currently running kernel version: CentOS: sudo yum install kernel-devel-uname -r Ubuntu: sudo apt-get install linux-headers-`uname -r … Read more

asterisk task processors : high queue size warning

asterisk

asterisk task processors : high queue size warning You may have seen the “task processor queue reached 500 scheduled tasks” in asterisk. Let’s understand what is the meaning of this warning and what this cause. Task processors have been in Asterisk for a long time. Since Asterisk v12, they have become more important because the … Read more

Saving a curl response into a php variable

php-mysql

Saving a curl response into a php variable Here is example to save a curl resonse into a variable in php <?php //URL of targeted site $url = “http://www.putyourapihere.com/”; $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // grab URL and pass it to … Read more

get the last 7 characters of a PHP string

php-mysql

get the last 7 characters of a PHP string Use substr() with a negative number for the 2nd argument. $newstring = substr($dynamicstring, -7); string substr ( string $string , int $start [, int $length ] ) If start is negative, the returned string will start at the start’th character from the end of string Example: <?php echo … Read more

mysql length function : calculate length of a column

mysql 5.7

mysql length function : calculate length of a column Function length() Return the length of the string Usages SELECT CustomerName, LENGTH(CustomerName) AS LengthOfName FROM Customers; Tablenames Records Customers 91 Categories 8 Employees 9 OrderDetails 2155 Orders 830 Products 77 Shippers 3 Suppliers 29    

Uninstall the old dahdi drivers asterisk

asterisk

Uninstall the old dahdi drivers asterisk ssh the server via putty First check the dahdi modules installed by running below command lsmod | grep dahdi   Now uninstall all the modules which shown from above command like this. modprobe -r wctc4xxp wctdm24xxp wcte12xp xpp dahdi_transcode wcb4xxp modprobe -r wctdm wcfxo wctdm24xxp wcte11xp wct1xxp wcte12xp modprobe … Read more