mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@997 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
87158b59ac
commit
2e02468fa3
@ -118,6 +118,7 @@ struct ldl_session {
|
|||||||
char *id;
|
char *id;
|
||||||
char *initiator;
|
char *initiator;
|
||||||
char *them;
|
char *them;
|
||||||
|
char *ip;
|
||||||
ldl_payload_t payloads[LDL_MAX_PAYLOADS];
|
ldl_payload_t payloads[LDL_MAX_PAYLOADS];
|
||||||
unsigned int payload_len;
|
unsigned int payload_len;
|
||||||
ldl_candidate_t candidates[LDL_MAX_CANDIDATES];
|
ldl_candidate_t candidates[LDL_MAX_CANDIDATES];
|
||||||
@ -801,9 +802,14 @@ char *ldl_session_get_caller(ldl_session_t *session)
|
|||||||
return session->them;
|
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)
|
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)
|
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);
|
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
|
\brief Get the ip of a session
|
||||||
\param session the session to get the ip from
|
\param session the session to get the ip from
|
||||||
|
Loading…
x
Reference in New Issue
Block a user