(Ticket #52) Added functions to retrieve media port of player and recorder in PJSUA-API

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@865 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 87481b1..22cdee6 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -2709,6 +2709,17 @@
 
 
 /**
+ * Get the media port for the player.
+ *
+ * @param id		The player ID.
+ * @param p_port	The media port associated with the player.
+ *
+ * @return		PJ_SUCCESS on success.
+ */
+PJ_DECL(pj_status_t) pjsua_player_get_port(pjsua_recorder_id id,
+					   pjmedia_port **p_port);
+
+/**
  * Set playback position.
  *
  * @param id		The file player ID.
@@ -2780,6 +2791,18 @@
 
 
 /**
+ * Get the media port for the recorder.
+ *
+ * @param id		The recorder ID.
+ * @param p_port	The media port associated with the recorder.
+ *
+ * @return		PJ_SUCCESS on success.
+ */
+PJ_DECL(pj_status_t) pjsua_recorder_get_port(pjsua_recorder_id id,
+					     pjmedia_port **p_port);
+
+
+/**
  * Destroy recorder (this will complete recording).
  *
  * @param id		The recorder ID.