Re: about freeradius and postgresql and gnuGK

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

 



Making RadAuth optional results in making
call authorization optional. Any endpoint not supporting
H.235 can make calls only with SqlAliasAuth authorization.
Perhaps this is not what you wanted.

----- Original Message ----- From: "Phiphat Klim Watanasard" <klim@xxxxxxxxxx>
Sent: Friday, October 15, 2004 10:51 PM



i use gnugk + freeradius + sqlbill , i thaing every thing is ok, it can control soft phone (ohphone or myphone)
BUT it cannot control cisco ATA 186 , if credit is empty it cannot disconnect it ;


this is my config of gnugk.ini
-----------------------// start //

[Gatekeeper::Main]
Fourtytwo=42
Name=eieiGK
TimeToLive=300

[RoutedMode]
GKRouted=1
H245Routed=1
;CallSignalPort=1721
CallSignalHandlerNumber=2
RemoveH245AddressOnTunneling=0
AcceptNeighborsCalls=1
AcceptUnregisteredCalls=0
SupportNATedEndpoints=1
DropCallsByReleaseComplete=1
RemoveCallOnDRQ=1
SendReleaseCompleteOnDRQ=1

[Proxy]
Enable=1
InternalNetwork=192.168.1.0/24
ProxyForNAT=1

[RoutingPolicy]
default=explicit,internal,parent,neighbor

[GkStatus::Auth]
rule=explicit | regex
regex=^(192\.168\.1\.[3-4]+)$
127.0.0.1=allow
default=forbid

[RasSrv::RRQFeatures]
OverwriteEPOnSameAddress=1
AcceptEndpointIdentifier=0

[RasSrv::ARQFeatures]
ArjReasonRouteCallToSCN=0
ArjReasonRouteCallToGatekeeper=1
;CallUnregisteredEndpoints=0

[RasSrv::PermanentEndpoints]
;192.168.1.88=111
;192.168.1.44=111
192.168.1.254=Primus;1,2,3,4,5,6,7,8,9

[Gatekeeper::Auth]
RadAuth=optional;RRQ,ARQ
SQLAliasAuth=required;RRQ
default=allow

[Gatekeeper::Acct]
RadAcct=required;start,update,stop,on,off
;SQLAcct=required;start,update,stop

[RadAuth]
Servers=192.168.1.99
SharedSecret=maibok23
AppendCiscoAttributes=1
IncludeTerminalAliases=1
IncludeEndpointIP=1

[RadAcct]
Servers=192.168.1.99
SharedSecret=maibok23
AppendCiscoAttributes=1
IncludeEndpointIP=1

[SQLAliasAuth]
Driver=PostgreSQL
Host=192.168.1.6
Database=gogoauth
Username=adminpg
Password=maibok78
Query=SELECT CASE WHEN u.framedip IS NOT NULL THEN 'allow' ELSE 'sigip:' || host(u.framedip) END FROM voipuser u JOIN voipaccount a ON u.accountid = a.id WHERE u.h323id = '%1' AND NOT u.disabled AND NOT a.disabled AND a.closed IS NULL
------------- // end //
and other config is same sqlbill i change for user /password / ip only


What wrong i do ?
                          thank you very much
---------------
Phiphat Watanasard [KLIM]



------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

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

  Powered by Linux