]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 31 Mar 2006 21:42:36 +0000 (21:42 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 31 Mar 2006 21:42:36 +0000 (21:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@997 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/libdingaling/src/libdingaling.c
libs/libdingaling/src/libdingaling.h

index 5148afd3a4d04ced5a7b21ec0454aeb45fed2a64..e17b9f4efe9ddc66b82f3853379511afbdea5d19 100644 (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)
index 12156a424052776fdfb1db481aceebdbf8faca32..724dbee08301cacc906c449571df450e05d0388d 100644 (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