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];
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)
*/
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