Ignore:
Timestamp:
Oct 21, 2009 3:03:06 AM (10 years ago)
Author:
bennylp
Message:

More #937 (presence):

  • added protection to not resubscribe immediately if initial SUBSCRIBE is responded with 481 for some reason
File:
1 edited

Legend:

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

    r2959 r2960  
    14681468                         * immediately. 
    14691469                         */ 
    1470                         resub_delay = 500; 
     1470                        /* But this must only happen when the 481 is received 
     1471                         * on subscription refresh request. We MUST NOT try to 
     1472                         * resubscribe automatically if the 481 is received 
     1473                         * on the initial SUBSCRIBE (if server returns this 
     1474                         * response for some reason). 
     1475                         */ 
     1476                        if (buddy->dlg->remote.contact) 
     1477                            resub_delay = 500; 
    14711478                        break; 
    14721479                    } 
     
    15311538 
    15321539            buddy_resubscribe(buddy, PJ_TRUE, resub_delay); 
    1533                                    
     1540 
    15341541        } else { 
     1542            /* This will clear the last termination code/reason */ 
    15351543            buddy->term_code = 0; 
    15361544            buddy->term_reason.slen = 0; 
Note: See TracChangeset for help on using the changeset viewer.