Ignore:
Timestamp:
Sep 22, 2006 6:42:09 PM (18 years ago)
Author:
bennylp
Message:

Handle incoming empty packets sent by some user agents (to refresh NAT)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_parser.c

    r608 r735  
    909909        } 
    910910 
     911        /* Check if we still have valid packet. 
     912         * Sometimes endpoints just send blank (CRLF) packets just to keep 
     913         * NAT bindings open. 
     914         */ 
     915        if (pj_scan_is_eof(scanner)) 
     916            return NULL; 
     917 
    911918        /* Parse request or status line */ 
    912919        if (pj_scan_stricmp_alnum( scanner, PJSIP_VERSION, 7) == 0) { 
Note: See TracChangeset for help on using the changeset viewer.