Ticket #817: pjsip-2553-sip_inv-cancel_sdp_neg_on_sending_negative_reply_to_reinvite.patch
File pjsip-2553-sip_inv-cancel_sdp_neg_on_sending_negative_reply_to_reinvite.patch, 584 bytes (added by bennylp, 14 years ago) |
---|
-
pjsip/src/pjsip-ua/sip_inv.c
1709 1709 } 1710 1710 } 1711 1711 1712 /* Cancel SDP negotiation if this is a negative reply to a re-INVITE */ 1713 if (st_code >= 300 && inv->neg != NULL && 1714 inv->state == PJSIP_INV_STATE_CONFIRMED) { 1715 pjmedia_sdp_neg_state neg_state; 1716 neg_state = pjmedia_sdp_neg_get_state(inv->neg); 1717 if (neg_state == PJMEDIA_SDP_NEG_STATE_REMOTE_OFFER) { 1718 pjmedia_sdp_neg_cancel_remote_offer(inv->neg); 1719 } 1720 } 1712 1721 1713 1722 return PJ_SUCCESS; 1714 1723 }