Removed multiple Via headers checking in transport, as
proxies will receive multiple Via headers. Thanks Aldo <acampi at deis.unibo.it>. git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@792 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
33cb24a868
commit
eba441ad84
|
@ -1141,6 +1141,10 @@ PJ_DEF(pj_ssize_t) pjsip_tpmgr_receive_packet( pjsip_tpmgr *mgr,
|
||||||
|
|
||||||
/* Drop response message if it has more than one Via.
|
/* Drop response message if it has more than one Via.
|
||||||
*/
|
*/
|
||||||
|
/* This is wrong. Proxy DOES receive responses with multiple
|
||||||
|
* Via headers! Thanks Aldo <acampi at deis.unibo.it> for pointing
|
||||||
|
* this out.
|
||||||
|
|
||||||
if (msg->type == PJSIP_RESPONSE_MSG) {
|
if (msg->type == PJSIP_RESPONSE_MSG) {
|
||||||
pjsip_hdr *hdr;
|
pjsip_hdr *hdr;
|
||||||
hdr = (pjsip_hdr*)rdata->msg_info.via->next;
|
hdr = (pjsip_hdr*)rdata->msg_info.via->next;
|
||||||
|
@ -1152,6 +1156,7 @@ PJ_DEF(pj_ssize_t) pjsip_tpmgr_receive_packet( pjsip_tpmgr *mgr,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/* Call the transport manager's upstream message callback.
|
/* Call the transport manager's upstream message callback.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue