Changeset 6068 for pjproject


Ignore:
Timestamp:
Sep 11, 2019 1:03:47 AM (5 years ago)
Author:
ming
Message:

Re #2209: Add checking if expiration is specified for determining if there's an active registration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/account.cpp

    r6026 r6068  
    930930    regIsConfigured     = pai.has_registration != 0; 
    931931    regIsActive         = pai.has_registration && pai.expires > 0 && 
    932                             (pai.status / 100 == 2); 
     932                          pai.expires != PJSIP_EXPIRES_NOT_SPECIFIED && 
     933                          (pai.status / 100 == 2); 
    933934    regExpiresSec       = pai.expires; 
    934935    regStatus           = pai.status; 
Note: See TracChangeset for help on using the changeset viewer.