Changeset 4965 for pjproject


Ignore:
Timestamp:
Nov 28, 2014 10:17:55 AM (10 years ago)
Author:
nanang
Message:

Misc (re #1782): Fixed bug of missing SIP header "Supported: outbound, path" after a registration failure (thanks Mateusz Olejnik for the report).

File:
1 edited

Legend:

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

    r4957 r4965  
    364364            acc->rfc5626_regprm.slen = len; 
    365365        } 
     366 
     367        acc->rfc5626_status = OUTBOUND_WANTED; 
    366368    } 
    367369 
     
    653655    acc->contact.slen = 0; 
    654656    acc->reg_mapped_addr.slen = 0; 
     657    acc->rfc5626_status = OUTBOUND_UNKNOWN; 
    655658    pj_bzero(&acc->via_addr, sizeof(acc->via_addr)); 
    656659    acc->via_tp = NULL; 
     
    13471350            acc->contact.slen = 0; 
    13481351            acc->reg_mapped_addr.slen = 0; 
     1352            acc->rfc5626_status = OUTBOUND_UNKNOWN; 
    13491353        } 
    13501354         
     
    21642168        acc->contact.slen = 0; 
    21652169        acc->reg_mapped_addr.slen = 0; 
     2170        acc->rfc5626_status = OUTBOUND_UNKNOWN; 
    21662171         
    21672172        /* Stop keep-alive timer if any. */ 
     
    21762181        acc->contact.slen = 0; 
    21772182        acc->reg_mapped_addr.slen = 0; 
     2183        acc->rfc5626_status = OUTBOUND_UNKNOWN; 
    21782184 
    21792185        /* Stop keep-alive timer if any. */ 
     
    21912197            acc->contact.slen = 0; 
    21922198            acc->reg_mapped_addr.slen = 0; 
     2199            acc->rfc5626_status = OUTBOUND_UNKNOWN; 
    21932200 
    21942201            /* Stop keep-alive timer if any. */ 
     
    23062313        acc->contact.slen = 0; 
    23072314        acc->reg_mapped_addr.slen = 0; 
     2315        acc->rfc5626_status = OUTBOUND_UNKNOWN; 
    23082316    } 
    23092317 
     
    23552363        acc->contact.slen = 0; 
    23562364        acc->reg_mapped_addr.slen = 0; 
     2365        acc->rfc5626_status = OUTBOUND_UNKNOWN; 
     2366 
    23572367        return status; 
    23582368    } 
     
    24372447 
    24382448    /* If SIP outbound is used, add "Supported: outbound, path header" */ 
    2439     if (acc->rfc5626_status == OUTBOUND_WANTED) { 
     2449    if (acc->rfc5626_status == OUTBOUND_WANTED || 
     2450        acc->rfc5626_status == OUTBOUND_ACTIVE) 
     2451    { 
    24402452        pjsip_hdr hdr_list; 
    24412453        pjsip_supported_hdr *hsup; 
Note: See TracChangeset for help on using the changeset viewer.