Env: OS winxp sp2,vs.net 2003,MySQL5.0 server
I had compiled gnugk2.2.3, the compiling is ok.
and I have add libmySQL.lib to my linker input property;
and I have copy the "libmySQL.dll" file to where my gnugk.exe was created
But when run the gnugk, I have some problems:
If my ini file have any mysql contents(ex.[Gatekeeper::Acct]
SQLAcct=required ),the gnugk will throw a unhandled exception and be dead;
if my ini file have no any mysql contents,the gnugk will be normal.
Please give me some suggestion!
thanks!
My GateKeeper.ini as following:
;Gatekeeper.ini
;Configure file for gnugk
;
[Gatekeeper::Main]
Fourtytwo=42
Name=ygc_GNUGK_Sample
TimeToLive=300
EndpointIDSuffix=_YGC
[RoutedMode]
GKRouted=1
H245Routed=0
CallSignalPort=1721
AcceptUnregisteredCalls=1
RemoveCallOnDRQ=0
SendReleaseCompleteOnDRQ=0
[Gatekeeper::Acct]
SQLAcct=required
;[Gatekeeper::Auth]
;SQLPasswordAuth=optional;RRQ
;default=allow
[SQLPasswordAuth]
Driver=MySQL
Host=localhost
Database=ccdb
Username=call
Password=calling
CacheTimeout=300
Query=SELECT h235password FROM agent WHERE alias = '%1'
MinPoolSize=5
[SQLAcct]
Driver=MySQL
Host=localhost
Database=ccdb
Username=call
Password=calling
MinPoolSize=5
StartQuery=INSERT INTO call_log (gkname, sessid,
calling,caller,called,agent,callid,setuptime,t) VALUES ('%g',
'%s','%{Calling-Station-Id}','%u','%{Dialed-Number}','%{Called-Station-Id}','%{CallId}','%{setup-time}','')
StartQueryAlt=UPDATE call SET calling = '%{Calling-Station-Id}' WHERE
sessid = '%s'
UpdateQuery=UPDATE call_log SET duration = %d WHERE sessid = '%s'
StopQuery=UPDATE call_log SET ringtime=%{ring-time},duration = %d,cause =
%c,clearpart=%r,pdd=%p,cleartime='%{disconnect-time}' WHERE sessid = '%s'
TimestampFormat=MySQL
[CallTable]
GenerateNBCDR=TRUE
GenerateUCCDR=TRUE
DefaultCallTimeout=7200
[GkStatus::Auth]
;rule=explicit
;127.0.0.1=allow
;192.168.1.11=allow
;192.168.1.13=allow
;192.168.1.12=allow
172.16.139.28=allow
172.16.139.243=allow
;default=forbid
;[RoutingPolicy::OnARQ]
;default=vqueue,explicit,internal,neighbor
;[CTI::Agents]
;VirtualQueuePrefixes=91,90,10
;RequestTimeout=120
;[RasSrv::GWPrefixes]
;AS5350=0
;[RasSrv::GWRewriteE164]
;AS5350=in=58511401=900001;in=58511402=900002;in=58511403=900003;in=58511404=900004;in=58511405=900005;in=58511406=900006;in=58511407=900007;in=58858718=900008;in=58858711=58511111
;[RewriteCLI]
;out:any=cli:900001=58511401
;out:any=cli:900002=58511402
;out:any=cli:900003=58511403
;out:any=cli:900004=58511404
;out:any=cli:900005=58511405
;out:any=cli:900006=58511406
;out:any=cli:900007=58511407
;out:any=cli:900008=58858718
; EOF
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________________
Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/