Go to the directory which contains a large number of files. For example, files name are like sip_20201002145227__410060544193744.log .
find . -name "sip_2020*" -delete
Enjoy ;)
find . -name "sip_2020*" -delete
tcpdump -i any -s 0 -w amr-wb.pcap
$ python amr.py -w -v amr-wb.raw
AMR-WB, bandwidth efficient, 1 channel(s)
Files: amr-wb.raw -> amr-wb.amr
Done, 1607 samples converted
$ ffmpeg -i amr-wb.amr amr-wb.mp3
[amr @ 0x7fde98812800] Estimating duration from bitrate, this may be inaccurate
Input #0, amr, from 'amr-wb.amr':
Duration: 00:00:32.14, bitrate: 23 kb/s
Stream #0:0: Audio: amr_wb (sawb / 0x62776173), 16000 Hz, mono, flt
Stream mapping:
Stream #0:0 -> #0:0 (amr_wb (amrwb) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to 'amr-wb.mp3':
Metadata:
TSSE : Lavf58.45.100
Stream #0:0: Audio: mp3 (libmp3lame), 16000 Hz, mono, fltp
Metadata:
encoder : Lavc58.91.100 libmp3lame
size= 95kB time=00:00:32.15 bitrate= 24.1kbits/s speed= 207x
video:0kB audio:94kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.232775%
$ cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=9d956232-4e00-4976-a6c6-207a757342bf / ext4 errors=remount-ro 0 1
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/MasterDebain-root/ / ext4 errors=remount-ro 0 1
fdisk
a command to resize a machine.Command (m for help): n
Command action
e extended
p primary (1 primary, 1 extended, 2 free)
Select (default p): p
Partition Number (3-4, default 3): {enter}
First Sector (XXXXXX -XXXXXX, default XXXXX): {Enter}
Last Sector (XXXXXX -XXXXXX, default XXXXX): {Enter}
Created a new partition 3 of type 'Linux' and of and size of 72 GiB
Command (m for help): w
The partition table has been altered.
Syncing Disks.
$
$ pvcreate /dev/vd4
Physical volume "/dev/vda4" successfully created
$ vgextend MasterDebain-vg /dev/vda4
Volume group "MasterDebain-vg" successfully extended
$ lvdisplay | grep Path
LV Path /dev/MasterDebain-vg/root
LV Path /dev/MasterDebain-vg/swap_1
LV Path /dev/MasterDebain-vg/home
$ lvextend -l +100%FREE /dev/MasterDebain-vg/root
Extending logical volume MasterDebain-vg/root changed to 74.53 GiB
Logical volume MasterDebain-vg/root successfully resized
$ resize2fs /dev/MasterDebain-vg/root
$ wget https://github.com/kamailio/kamailio/archive/5.3.1.tar.gz
$
git clone --depth 1 --no-single-branch --branch 5.3 https://github.com/kamailio/kamailio kamailio
Extract source$ cd /usr/local/src/
$ tar -zxvf 5.3.1.tar.gz
$ cd kamailio-5.3.1/
$ apt install flex bison gcc g++ libssl-dev libcurl4 libxml2 libpcre3 libxml2-dev libmnl-dev librabbitmq-dev libmediastreamer-dev libortp-dev libsctp-dev make libsystemd-dev libpcre3-dev libcurl3-gnutls-dev uuid-dev libsnmp-dev
/opt/kamailio
$ make PREFIX="/opt/kamailio" include_modules="cdp cdp_avp db_mysql ims_auth ims_charging ims_dialog ims_diameter_server ims_icscf ims_ipsec_pcscf ims_isc ims_ocs ims_qos ims_registrar_pcscf ims_registrar_scscf ims_usrloc_pcscf ims_usrloc_scscf log_systemd rabbitmq regex rls sctp snmpstats utils uuid xmlrpc pua ims_ipsec_pcscf" cfg
$ make Q=0 all
$ make install
if in case you need to re-compile a module use the following commands
$ make modules modules=modules/ims_qos
$ make install-modules modules=modules/ims_qos
For normal Kamailio installation, you can follow this link.
Install nodejs Use this link for further reading curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash nvm inst...