saving data into custom cdr field – add new filed in cdr

I created custom field “rec_name” id table “cdr”, database “asteriskcdrdb”. In this field I want to store recording name. I know i should do it by adding this line in one of .conf files, but where? exten => s,1,set(CDR(rec_name)=${CALLFILENAME}) I can do it by sql statement, too, but i don’t know where is the file … Read more

Find Linux RAM Information Command and system information

Linux yum

  You need to use the free command: # free # free -m total used free shared buffers cached Mem: 7930 4103 3826 0 59 2060 -/+ buffers/cache: 1983 5946 Swap: 15487 0 15487 For system information: You need to use the dmidecode command: # dmidecode –type 17 OR # dmidecode –type memory OR # … Read more

Asterisk : Creating a Simple IVR Menu

[demo-menu] exten => s,1,Answer(500)    same => n(loop),Background(press-1&or&press-2)    same => n,WaitExten() exten => 1,1,Playback(you-entered)    same => n,SayNumber(1)    same => n,Goto(s,loop) exten => 2,1,Playback(you-entered)    same => n,SayNumber(2)    same => n,Goto(s,loop) [from-pstn] exten => 6598,1,Goto(demo-menu,s,1)

Mount.cifs cannot allocate memory mounting

Linux yum

Mounting a Windows (SMB) share on Ubuntu gives us a “cannot allocate memory” error. Executing a command like this: mount -t cifs //toad/Backup /media/backup -o user=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777 We get an error like this: mount error(12): Cannot allocate memory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Solution: First, check the permissions on your shared folder. … Read more

Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’

this error come up while running a shell script to get the parameter from php file PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/module.so’ – /usr/lib/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0  This is cause by mcrypt extension. Edit /etc/php.d/mcrypt.ini and change ; Enable … Read more

Compare Hotel Quotes & Get Suggestions, Book Hotel