* @param desc
* @return
*/
public SipcRequest createAddBuddyRequest(String uri, int promptId, int cordId, String desc, String localName)
{
SipcRequest req = this.createDefaultSipcRequest(SipcMethod.SERVICE);
String body = MessageTemplate.TMPL_ADD_BUDDY;
body = body.replace("{uri}", uri);
body = body.replace("{promptId}", Integer.toString(promptId));
body = body.replace("{cordId}", cordId==-1? "": Integer.toString(cordId));
body = body.replace("{desc}", StringHelper.qouteHtmlSpecialChars(desc));
body = body.replace("{localName}", localName!=null?"local-name=\""+localName+"\"":"");
req.addHeader(SipcHeader.EVENT,"AddBuddyV4");
req.setBody(new SipcBody(body));
return req;
}