提交 2e02468f authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@997 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 87158b59
......@@ -118,6 +118,7 @@ struct ldl_session {
char *id;
char *initiator;
char *them;
char *ip;
ldl_payload_t payloads[LDL_MAX_PAYLOADS];
unsigned int payload_len;
ldl_candidate_t candidates[LDL_MAX_CANDIDATES];
......@@ -801,9 +802,14 @@ char *ldl_session_get_caller(ldl_session_t *session)
return session->them;
}
void ldl_session_set_ip(ldl_session_t *session, char *ip)
{
session->ip = apr_pstrdup(session->pool, ip);
}
char *ldl_session_get_ip(ldl_session_t *session)
{
return NULL;
return session->ip;
}
void ldl_session_set_private(ldl_session_t *session, void *private_data)
......
......@@ -203,6 +203,13 @@ char *ldl_session_get_id(ldl_session_t *session);
*/
char *ldl_session_get_caller(ldl_session_t *session);
/*!
\brief Set the ip of a session
\param session the session to set the ip on
\param ip the ip
*/
void ldl_session_set_ip(ldl_session_t *session, char *ip);
/*!
\brief Get the ip of a session
\param session the session to get the ip from
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论