asking for psjua2 support - onNatDetectionComplete

MT
Martin Taschen
Thu, Oct 6, 2016 3:12 PM

To whom it may concern.

I ask for help calling onNatDetectionComplete.
natDetectType () seems to work according to my logfile but I dont know how
to run onNatDetectionComplete ().

try {
test.natUpdateStunServers (stunserverlist,0);
}
catch(Error& err) {
std::cout << "natUpdateStunServers: " << err.info() << std::endl;
}

  try {
        test.natDetectType ();
        }
   catch(Error& err) {
  std::cout << "natdetectType: " << err.info() << std::endl;
   }

In the docs: "Callback when the Endpoint has finished performing NAT type
detection that is initiated with natDetectType().
@param prm      Callback parameters containing the detection
result.

virtual void onNatDetectionComplete(
const OnNatDetectionCompleteParam &prm)
{ PJ_UNUSED_ARG(prm); }"

But where is prm?
Could anybody help with the correct syntax?

Sincerely Martin Taschen

To whom it may concern. I ask for help calling onNatDetectionComplete. natDetectType () seems to work according to my logfile but I dont know how to run onNatDetectionComplete (). try { test.natUpdateStunServers (stunserverlist,0); } catch(Error& err) { std::cout << "natUpdateStunServers: " << err.info() << std::endl; } try { test.natDetectType (); } catch(Error& err) { std::cout << "natdetectType: " << err.info() << std::endl; } In the docs: "Callback when the Endpoint has finished performing NAT type detection that is initiated with natDetectType(). @param prm Callback parameters containing the detection result. virtual void onNatDetectionComplete( const OnNatDetectionCompleteParam &prm) { PJ_UNUSED_ARG(prm); }" But where is prm? Could anybody help with the correct syntax? Sincerely Martin Taschen