Changeset 4976


Ignore:
Timestamp:
Jan 22, 2015 8:48:32 AM (9 years ago)
Author:
ming
Message:

Re #1797: Fixes assert if 422 response is received (thanks to Brian Walker for the report)

If 422 is received, INVITE will be automatically retried, but the
provisional media has been cleaned up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r4963 r4976  
    47324732               tsx->state >= PJSIP_TSX_STATE_COMPLETED && 
    47334733               e->body.tsx_state.prev_state < PJSIP_TSX_STATE_COMPLETED && 
    4734                (tsx->status_code!=401 && tsx->status_code!=407)) 
     4734               (tsx->status_code!=401 && tsx->status_code!=407 && 
     4735                tsx->status_code!=422)) 
    47354736    { 
    47364737        if (tsx->status_code/100 != 2) { 
     
    47664767               tsx->state >= PJSIP_TSX_STATE_COMPLETED && 
    47674768               e->body.tsx_state.prev_state < PJSIP_TSX_STATE_COMPLETED && 
    4768                (tsx->status_code!=401 && tsx->status_code!=407)) 
     4769               (tsx->status_code!=401 && tsx->status_code!=407 && 
     4770                tsx->status_code!=422)) 
    47694771    { 
    47704772        if (tsx->status_code/100 != 2 || 
Note: See TracChangeset for help on using the changeset viewer.