//t.listen();
if (msg.isRefer())
{ //Message resp=MessageFactory.createResponse(msg,202,"Accepted",null,null);
//respond(resp);
NameAddress refer_to=msg.getReferToHeader().getNameAddress();
NameAddress referred_by=null;
if (msg.hasReferredByHeader()) referred_by=msg.getReferredByHeader().getNameAddress();
dialog_listener.onDlgRefer(this,refer_to,referred_by,msg);
}
else
if (msg.isNotify())