[Openh323gk-users] [V2.2] Why is Routing::Policy::OnRequest private?

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

 



In the example below, I want to subclass from the existing AliasesPolicy
class and override just one OnRequest() [not all of them] to do some work
before it calls the parent class' method:


class MyPolicy : public AliasesPolicy
{
 virtual bool OnRequest(AdmissionRequest &request)
 {
   PTRACE(1, "Bill Joe extra $$ for logging in");
   return AliasesPolicy::OnRequest(request);
 }
};


Unfortunately, because Policy::OnRequest(...) are private, it doesn't
compile.

Couldn't they be protected instead?

Per



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
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