diff --git a/coreapi/bellesip_sal/sal_op_call.c b/coreapi/bellesip_sal/sal_op_call.c index f68784277..7f360710f 100644 --- a/coreapi/bellesip_sal/sal_op_call.c +++ b/coreapi/bellesip_sal/sal_op_call.c @@ -581,7 +581,7 @@ int sal_call_notify_ringing(SalOp *op, bool_t early_media){ if (belle_sip_message_get_header((belle_sip_message_t*)req,"Require") || belle_sip_message_get_header((belle_sip_message_t*)req,"Supported")) { belle_sip_header_address_t* contact= (belle_sip_header_address_t*)sal_op_get_contact_address(op); belle_sip_header_contact_t* contact_header; - belle_sip_message_add_header((belle_sip_message_t*)ringing_response,belle_sip_message_get_header((belle_sip_message_t*)req,"Require")); + belle_sip_message_add_header((belle_sip_message_t*)ringing_response,BELLE_SIP_HEADER(belle_sip_header_extension_create("Require","100Rel"))); belle_sip_message_add_header((belle_sip_message_t*)ringing_response,BELLE_SIP_HEADER(belle_sip_header_extension_create("RSeq","1"))); if (contact && (contact_header=belle_sip_header_contact_create(contact))) { belle_sip_message_add_header(BELLE_SIP_MESSAGE(ringing_response),BELLE_SIP_HEADER(contact_header)); diff --git a/coreapi/lpconfig.h b/coreapi/lpconfig.h index 6079a80ee..8b7bbb825 100644 --- a/coreapi/lpconfig.h +++ b/coreapi/lpconfig.h @@ -24,7 +24,7 @@ #ifndef LPCONFIG_H #define LPCONFIG_H - +#include "linphonecore.h" /*to get LINPHONE_PUBLIC, maybe we can include less stuff*/ #include /**