Index: phapi/phapi.c
===================================================================
--- phapi/phapi.c	(revision 449)
+++ phapi/phapi.c	(revision 451)
@@ -1885,4 +1885,48 @@
 
 PHAPI_EXPORT int
+phLineSendMessage3(int vlid, const char *target, const char *uri,
+		const char *buff, const char *mime, int hcount, const struct ph_hdr_val *hdrs)
+{
+	int i,j;
+	struct vline *vl;
+	char from[512];
+	osip_message_t *msg;
+
+
+
+	if (!phIsInitialized)
+		return -PH_NOTINIT;
+
+	vl = ph_valid_vlid(vlid);
+	if (!vl) {
+		return -PH_BADVLID;
+	}
+
+	if ( !nonempty(uri)) {
+		return -PH_BADARG;
+	}
+
+	ph_build_from(from, sizeof(from), vl);
+
+	eXosip_lock();
+	i = eXosip_message_build_request(&msg, "MESSAGE", (char *)uri,
+			from, vl->proxy);
+
+
+	ph_req_set_body(msg, buff, mime);
+	osip_message_set_contact(msg, vl->contact);
+
+	for (j = 0; j < hcount; j++)
+		set_custom_header(msg, hdrs[j].hdr, hdrs[j].val);
+
+	ph_apply_customizations(msg, NULL, NULL);
+	i = eXosip_message_send_request(msg);
+
+	eXosip_unlock();
+	return i > 0 ? i : -PH_BADARG;
+}
+
+
+PHAPI_EXPORT int
 phCallSendMessage(int cid, const char *buff, const char *mime)
 {
