From c98fa12a3eb6132861284eca29703d0390851307 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 14 May 2013 21:34:14 +0200 Subject: [PATCH] implement sal_op_get_remote_contact() --- coreapi/bellesip_sal/sal_op_impl.c | 6 ++++++ coreapi/sal.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/coreapi/bellesip_sal/sal_op_impl.c b/coreapi/bellesip_sal/sal_op_impl.c index 0aa6ce1b1..a18037ba8 100644 --- a/coreapi/bellesip_sal/sal_op_impl.c +++ b/coreapi/bellesip_sal/sal_op_impl.c @@ -407,3 +407,9 @@ void sal_op_assign_recv_headers(SalOp *op, belle_sip_message_t *incoming){ op->base.recv_custom_headers=(SalCustomHeader*)incoming; } } + +const char *sal_op_get_remote_contact(const SalOp *op){ + return sal_custom_header_find(op->base.recv_custom_headers,"Contact"); +} + + diff --git a/coreapi/sal.c b/coreapi/sal.c index e8619b319..d47c5d2fa 100644 --- a/coreapi/sal.c +++ b/coreapi/sal.c @@ -345,11 +345,6 @@ const SalAddress *sal_op_get_to_address(const SalOp *op){ return ((SalOpBase*)op)->to_address; } - -const char *sal_op_get_remote_contact(const SalOp *op){ - return ((SalOpBase*)op)->remote_contact; -} - const char *sal_op_get_route(const SalOp *op){ #ifdef BELLE_SIP ms_fatal("sal_op_get_route not supported, use sal_op_get_route_addresses instead");