String qop_options=wah.getQopOptionsParam();
//printLog("DEBUG: qop-options: "+qop_options,LogLevel.MEDIUM);
qop=(qop_options!=null)? "auth" : null;
AuthorizationHeader ah=(new DigestAuthentication(SipMethods.REGISTER,req.getRequestLine().getAddress().toString(),wah,qop,null,username,passwd)).getAuthorizationHeader();
req.setAuthorizationHeader(ah);
TransactionClient t=new TransactionClient(sip_provider,req,this);
t.request();
}
else
{ String result=code+" "+status.getReason();
printLog("Registration failure: "+result,LogLevel.HIGH);
if (listener!=null) listener.onUaRegistrationFailure(this,target,contact,result);