Menu

OGo CTI configuration

Sebastian Reitenbach

OGo CTI configuration

The OGo web interface provides the ability for click to dial with Asterisk PBX. When configured, then a small telephone icon will show up next to each telephone number. When the user clicks on it, then OGo will trigger the initiation of a call via asterisk.

defaults write NSGlobalDomain CTIDialer AsteriskDialer
defaults write NSGlobalDomain CTIPreferTelephoneField YES
defaults write NSGlobalDomain CTIPersonTelephoneFieldSuffix ''
defaults write NSGlobalDomain AsteriskInternalContext internal
defaults write NSGlobalDomain AsteriskOutgoingContext default
defaults write NSGlobalDomain AsteriskDialOutPrefix ''
defaults write NSGlobalDomain AsteriskInternalExtensionLength 3
defaults write NSGlobalDomain OGoAsteriskConnectionDictionary '{ \
    hostName = "127.0.0.1"; \
    port = 5038; \
}'
defaults write NSGlobalDomain AsteriskCommands '{ \
    Login = { \
        Action = login; \
        ExpectedResult = Success; \
        Parameters = { \
            Events = off; \
            Secret = your password goes here; \
            Username = manager; \
        }; \
    }; \
    Originate = { \
        Action = originate; \
        ExpectedResult = Success; \
        Parameters = { \
            Channel = ""; \
            Context = default; \
            Exten = ""; \
            Priority = 1; \
            Timeout = 30000; \
        }; \
    }; \
    Ping = { \
        Action = ping; \
        ExpectedResult = Pong; \
    }; \
}'
defaults write NSGlobalDomain LSTeleType '{ \
    Enterprise = ( \
        "01_tel", \
        "02_tel", \
        "10_fax", \
        "80_tel_parts", \
        "81_fax_parts" \
    ); \
    Person = ( \
        "01_tel", \
        "02_tel", \
        "03_tel_funk", \
        "04_tel_ext", \
        "05_tel_private", \
        "10_fax", \
        "15_fax_private" \
    ); \
}'