*</pre>
*/
public void addBuddy(String account, String localName, Cord cord, String desc, int promptId, ActionEventListener listener)
{
this.ensureOnline();
AccountValidator validator = new AccountValidator(account);
if(validator.isValidMobile()){
this.dialogFactory.getServerDialog().addBuddy("tel:"+account, localName, cord, desc, promptId, listener);
}else if(validator.getFetionId()>0){
this.dialogFactory.getServerDialog().addBuddy("sip:"+account, localName, cord, desc, promptId, listener);
}else{
if(listener!=null){
listener.fireEevent(new FailureEvent(FailureType.INVALID_ACCOUNT));
}