|
@@ -3,23 +3,23 @@
|
|
|
*
|
|
|
* Copyright (C) 2012 Smile Communications, [email protected]
|
|
|
* Copyright (C) 2012 Smile Communications, [email protected]
|
|
|
- *
|
|
|
+ *
|
|
|
* The initial version of this code was written by Dragos Vingarzan
|
|
|
* (dragos(dot)vingarzan(at)fokus(dot)fraunhofer(dot)de and the
|
|
|
* Fruanhofer Institute. It was and still is maintained in a separate
|
|
|
* branch of the original SER. We are therefore migrating it to
|
|
|
* Kamailio/SR and look forward to maintaining it from here on out.
|
|
|
* 2011/2012 Smile Communications, Pty. Ltd.
|
|
|
- * ported/maintained/improved by
|
|
|
+ * ported/maintained/improved by
|
|
|
* Jason Penton (jason(dot)penton(at)smilecoms.com and
|
|
|
- * Richard Good (richard(dot)good(at)smilecoms.com) as part of an
|
|
|
+ * Richard Good (richard(dot)good(at)smilecoms.com) as part of an
|
|
|
* effort to add full IMS support to Kamailio/SR using a new and
|
|
|
* improved architecture
|
|
|
- *
|
|
|
+ *
|
|
|
* NB: Alot of this code was originally part of OpenIMSCore,
|
|
|
- * FhG Fokus.
|
|
|
+ * FhG Fokus.
|
|
|
* Copyright (C) 2004-2006 FhG Fokus
|
|
|
- * Thanks for great work! This is an effort to
|
|
|
+ * Thanks for great work! This is an effort to
|
|
|
* break apart the various CSCF functions into logically separate
|
|
|
* components. We hope this will drive wider use. We also feel
|
|
|
* that in this way the architecture is more complete and thereby easier
|
|
@@ -37,10 +37,10 @@
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
* GNU General Public License for more details.
|
|
|
*
|
|
|
- * You should have received a copy of the GNU General Public License
|
|
|
- * along with this program; if not, write to the Free Software
|
|
|
+ * You should have received a copy of the GNU General Public License
|
|
|
+ * along with this program; if not, write to the Free Software
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
- *
|
|
|
+ *
|
|
|
*/
|
|
|
|
|
|
#ifndef __PEER_H
|
|
@@ -100,7 +100,8 @@ typedef struct _peer_t{
|
|
|
str fqdn; /**< FQDN of the peer */
|
|
|
str realm; /**< Realm of the peer */
|
|
|
int port; /**< TCP Port of the peer */
|
|
|
-
|
|
|
+ str src_addr; /**< IP Address used to connect to the peer */
|
|
|
+
|
|
|
app_config *applications;/**< list of supported applications */
|
|
|
int applications_cnt; /**< size of list of supporter applications*/
|
|
|
|
|
@@ -127,7 +128,7 @@ typedef struct _peer_t{
|
|
|
struct _peer_t *prev; /**< previous peer in the peer list */
|
|
|
} peer;
|
|
|
|
|
|
-peer* new_peer(str fqdn,str realm,int port);
|
|
|
+peer* new_peer(str fqdn,str realm,int port,str src_addr);
|
|
|
void free_peer(peer *x,int locked);
|
|
|
|
|
|
inline void touch_peer(peer *p);
|