Changeset 1954 for pjproject/trunk/pjsip/src/pjsip/sip_parser.c
- Timestamp:
- May 13, 2008 9:38:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r1610 r1954 1826 1826 { 1827 1827 pjsip_retry_after_hdr *hdr; 1828 pj_scanner *scanner = ctx->scanner; 1829 pj_str_t tmp; 1830 1828 1831 hdr = pjsip_retry_after_hdr_create(ctx->pool, 0); 1829 parse_generic_int_hdr(hdr, ctx->scanner); 1832 1833 pj_scan_get(scanner, &pconst.pjsip_DIGIT_SPEC, &tmp); 1834 hdr->ivalue = pj_strtoul(&tmp); 1835 1836 while (!pj_scan_is_eof(scanner) && *scanner->curptr!='\r' && 1837 *scanner->curptr=='\n') 1838 { 1839 if (*scanner->curptr=='(') { 1840 pj_scan_get_quote(scanner, '(', ')', &hdr->comment); 1841 } else if (*scanner->curptr==';') { 1842 pjsip_param *prm = PJ_POOL_ALLOC_T(ctx->pool, pjsip_param); 1843 int_parse_param(scanner, ctx->pool, &prm->name, &prm->value, 0); 1844 pj_list_push_back(&hdr->param, prm); 1845 } 1846 } 1847 1848 parse_hdr_end(scanner); 1830 1849 return (pjsip_hdr*)hdr; 1831 1850 }
Note: See TracChangeset
for help on using the changeset viewer.