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");