Saturday 30 August 2014

"The User Profile Service failed the logon” error message - Windows 7



1. Go to regedit


2. In Registry Editor,find and then click the registry sub key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList


3. Locate the folder that begins with S-1-5 (SID key) followed by a long number.


4. Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.


5. If there are two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:


   a.Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.


   b. Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.



  c. Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.



6. Double-click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.


7. Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.


8. Close Registry Editor.


9. Restart the computer.


10. Log on again with your account.

/usr/bin/ld: cannot find -lmysqlclient - Compiling from source

While compiling an application from source, the following error was encountered.

/usr/bin/ld: cannot find -lc
Process exited with status 1.

The problem was that the MySQL client library files didn't have soft links created for 'libmysqlclient' to the /usr/lib directory

The default installation created 'libmysqlclient.so.16'.

So inorder for the compilation to work, a soft link for this was created using

ln -s /usr/lib/libmysqlclient.so.16 /usr/lib/libmysqlclient.so

Dialing extension on a remote Asterisk Server through IAX trunk

Open the config extensions_additional.conf

Go to the context of the concerned IVR.

add the Line

exten => _<Dial Pattern>,1,dial(iax2/<Trunk Name>/${EXTEN})

eg: exten => _5xxx,1,dial(iax2/OFFICE3/${EXTEN})
When this is done, a pattern with 5 followed by 3 digits ,ie, an extension will be forwarded to the remote asterisk server using IAX2 trunk

So that an extension of an elastix server can be dialled from a remote server.

Once the file is edited

Reload asterisk.