implement custom headers sending in 200Ok

This commit is contained in:
Simon Morlat 2014-01-22 18:03:23 +01:00
parent 87d4f5f895
commit b5a6d4a2c6
5 changed files with 7 additions and 2 deletions

View file

@ -159,4 +159,6 @@ SalReason sal_reason_to_sip_code(SalReason r);
belle_sip_header_t * sal_make_supported_header(Sal *sal);
void _sal_op_add_custom_headers(SalOp *op, belle_sip_message_t *msg);
#endif /* SAL_IMPL_H_ */

View file

@ -709,6 +709,8 @@ int sal_call_accept(SalOp*h){
if ((contact_header=sal_op_create_contact(h))) {
belle_sip_message_add_header(BELLE_SIP_MESSAGE(response),BELLE_SIP_HEADER(contact_header));
}
_sal_op_add_custom_headers(h, BELLE_SIP_MESSAGE(response));
handle_offer_answer_response(h,response);

View file

@ -210,7 +210,7 @@ static void add_headers(belle_sip_header_t *h, belle_sip_message_t *msg){
belle_sip_message_add_header(msg,h);
}
static void _sal_op_add_custom_headers(SalOp *op, belle_sip_message_t *msg){
void _sal_op_add_custom_headers(SalOp *op, belle_sip_message_t *msg){
if (op->base.sent_custom_headers){
belle_sip_message_t *ch=(belle_sip_message_t*)op->base.sent_custom_headers;
belle_sip_list_t *l=belle_sip_message_get_all_headers(ch);

View file

@ -3303,6 +3303,7 @@ int linphone_core_accept_call_with_params(LinphoneCore *lc, LinphoneCall *call,
if (md) call->params.has_video &= linphone_core_media_description_contains_video_stream(md);
linphone_call_make_local_media_description(lc,call);
sal_call_set_local_media_description(call->op,call->localdesc);
sal_op_set_sent_custom_header(call->op,params->custom_headers);
}
if (call->audiostream==NULL)

2
oRTP

@ -1 +1 @@
Subproject commit b04994f1d4f00d802fef64a665f0b77db4d98dee
Subproject commit d7b4d285d8174566c16c600a9e61abed04cb8789