BeanHelper.setValue(buddy, "relation", Relation.STRANGER);
context.getFetionStore().addBuddy(buddy);
//如果是飞信好友,获取陌生人的信息
if(buddy instanceof Buddy) {
SipcRequest request = this.dialog.getMessageFactory().createGetContactInfoRequest(uri);
request.setResponseHandler(new GetContactInfoResponseHandler(context, dialog, ((Buddy)buddy),null));
dialog.process(request);
}
//通知监听器
this.tryFireNotifyEvent(new BuddyApplicationEvent( buddy, desc));
logger.debug("Recived a buddy application:"+desc);