[OGo-Users] Re: click-to-dial & Asterisk

Sebastian Reitenbach users@opengroupware.org
Fri, 07 Dec 2007 09:34:20 +0100


users@opengroupware.org wrote: 
> > let me know where you get stuck with following the instrucutions, 
> > I'll update the page, add missing pieces.
> 
>   Sorry...  have been working on other things for the last couple of days.
> 
>   Using the "Defaults write" command seems to put configuration options 
into the wrong file.
> In my case a "Defaults write NSGlobalDomain CTIDialer AsteriskDialer" 
didn't change the file
> I expected ie. /etc/opengroupware.org/ogo/Defaults/NSGlobalDomain.plist .
> 
> I looked for other "NSGlobalDomain.plist files :
> 
> find -name NSGlobalDomain.plist
> 
> ./var/lib/opengroupware.org/.libFoundation/Defaults/NSGlobalDomain.plist
I think this one is the right one on Linux.
You have to issue the Defaults commands as the user "ogo", so su - ogo
and then run these commands. /var/lib/opengroupware.org is usually the home 
directory of the ogo user, and as this is the user usually running the ogo 
instances, he has to have these Defaults.

> ./usr/share/libFoundation/Defaults/NSGlobalDomain.plist
>
./usr/lib/opengroupware.org-1.1/webui/AdminUI.lso/Resources/NSGlobalDomain.plist./usr/src/opengroupware.org/WebUI/AdminUI/Resources/NSGlobalDomain.plist

> ./root/.libFoundation/Defaults/NSGlobalDomain.plist
these are just fallback files, I think the first 

> 
>   I figured one of the other NSGlobalDomain.plist files would actually 
contain the change :
> 
> find -name NSGlobalDomain.plist | xargs grep CTIDialer
> 
> ./root/.libFoundation/Defaults/NSGlobalDomain.plist:    CTIDialer = 
AsteriskDialer;
> 
>   Perhaps it would be better if the instructions just explained how to add 
the changes manually?
> I wasn't really aware that an OGo "Defaults" command existed anyway, so 
that bit confused me.

As above, do it as user ogo. You do not really want to fiddle around with 
the plist files manually, as it is error prone. The Defaults command 
makes a syntax check for you, so that you cannot hose these files.

Note, wherever there are these bounding boxes around some words e.g. in that 
line:
Defaults write NSGlobalDomain OGoAsteriskConnectionDictionary {hostName = 
localhost; port = 5038;}

Exchange it with:

Defaults write NSGlobalDomain OGoAsteriskConnectionDictionary '{hostName = 
localhost; port = 5038;}'

I've unfortunately no idea how to get plone to show these ' correctly and 
not interpret them :(

greetings
Sebastian