git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@997 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-03-31 21:42:36 +00:00
parent 87158b59ac
commit 2e02468fa3
2 changed files with 14 additions and 1 deletions

View File

@ -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)

View File

@ -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