|
From: | Aymeric Moizard |
Subject: | Re: [osip-dev] Contact header not allowed in BYE and CANCEL |
Date: | Tue, 6 Jan 2015 15:52:51 +0100 |
hi,and one more improvement.since the BYE and CANCEL requests must not have a Contact header, according to RFC 3261Header field where proxy ACK BYE CAN INV OPT REG___________________________________________________________Contact R o - - m o oeXosip should NOT add a Contact header to these requests.my suggestion is (jrequest.c, ~ line 984):instead ofi = _eXosip_request_add_via (excontext, request, transport, locip);if (i != 0) {osip_message_free (request);return i;}/* add specific headers for each kind of request... */_eXosip_dialog_add_contact (excontext, request, NULL);I would write:i = _eXosip_request_add_via (excontext, request, transport, locip);if (i != 0) {osip_message_free (request);return i;}/* add specific headers for each kind of request... */if ((0 != strcmp ("BYE", method)) &&(0 != strcmp ("CANCEL", method))){// BYE and CANCEL must not have a Contact-header_eXosip_dialog_add_contact (excontext, request, NULL);}br,christoph
_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev
[Prev in Thread] | Current Thread | [Next in Thread] |