Changeset 969 for pjproject


Ignore:
Timestamp:
Feb 18, 2007 8:56:32 PM (18 years ago)
Author:
bennylp
Message:

Check for non-SIP URI in buddy URL

File:
1 edited

Legend:

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

    r939 r969  
    178178    } 
    179179 
     180    /* Only support SIP schemes */ 
     181    if (!PJSIP_URI_SCHEME_IS_SIP(url) && !PJSIP_URI_SCHEME_IS_SIPS(url)) 
     182        return PJSIP_EINVALIDSCHEME; 
     183 
    180184    /* Reset buddy, to make sure everything is cleared with default 
    181185     * values 
Note: See TracChangeset for help on using the changeset viewer.