Re: LDAP to query Active Directory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 14, 2015 at 5:02 AM, Jan Willamowius <jan@xxxxxxxxxxxxxx> wrote:
> Robert Kulagowski wrote:
>> On Fri, Oct 2, 2015 at 11:36 AM, Robert Kulagowski <rkulagow@xxxxxxxxx> wrote:
>> > Has anyone configured GnuGK to query LDAP to confirm the existence of a record?
>> >
>> > We have GnuGK and Vidyo (using the Vidyo gateway product). Currently,
>> > all users have a Vidyo account, and in Vidyo their "telephone number"
>> > is the same as the "ipPhoneNumber" entry in AD.
>> ...
>> > If I can use LDAP to check for the existence of a dialed number then
>> > it may be more dynamic.
>>
>> I've been reading more about LDAP; I'm not sure that it's going to do
>> what I want.
>>
>> Ideally, something like this will happen.
>>
>> Call comes from Polycom to GnuGK with a dialed-destination of
>> "12125551212". The explicit rule checks to see if it's registered.
>> If not, then:
>> Make a LDAP query for the dialed number, searching the user's
>> telephoneNumber field. If LDAP comes back with anything other than a
>> "couldn't find", then prepend a "#1" to the dialed number, which will
>> then match the gateway prefix and send it to Vidyo.
>>
>> Will that be something that can be accomplished entirely internally,
>> or do I need a LUA script or something else?
>
>
> LDAP can do _lookup_ in the directory and replace the call destination
> with the result of the lookup.
>
> If you want to rewrite the result of the lookup, you need to use
> another mechanism after that (either another routing policy or
> an outgoing rewrite). Remember: Routing policies are chained!
>
> Most rewrites inside GnuGk are rule based: "replace all X with Y".
> If you want to express your rewriting in the procedural "IF x THEN y"
> style, you have LUA, SQL stored procedures and external scripts as
> options.

Rather than LDAP, I'm thinking of taking advantage of the fact that we
have an internal 6-digit dial-plan.

So, if the dialed digits is _exactly_ 6 characters, prepend a #1,
which will then match the RasSrv::PermanentEndpoints

The documentation doesn't state if there's any sort of RegExp for RewriteE164?
I'm about to try this:

; Vidyo
......=#1......

But is that going to do what I want? I only want GnuGK to perform the
re-write if it's exactly 6 digits, and not if it's just part of a
longer dial-string.

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/



[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux