Changeset 1957 for pjproject/trunk/pjsip/src/test-pjsip/msg_test.c
- Timestamp:
- May 15, 2008 10:07:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/msg_test.c
r1610 r1957 801 801 static int hdr_test_via_ipv6_2(pjsip_hdr *h); 802 802 static int hdr_test_via_ipv6_3(pjsip_hdr *h); 803 static int hdr_test_retry_after1(pjsip_hdr *h); 803 804 804 805 … … 973 974 "SIP/2.0/UDP [::1];rport=5061;received=::2", 974 975 &hdr_test_via_ipv6_3 976 }, 977 978 { 979 /* Retry-After header with comment */ 980 "Retry-After", NULL, 981 "10(Already Pending Register)", 982 &hdr_test_retry_after1 975 983 } 976 984 }; … … 1523 1531 if (hdr->rport_param != 5061) 1524 1532 return -2850; 1533 1534 return 0; 1535 } 1536 1537 /* "10(Already Pending Register)" */ 1538 static int hdr_test_retry_after1(pjsip_hdr *h) 1539 { 1540 pjsip_retry_after_hdr *hdr = (pjsip_retry_after_hdr*)h; 1541 1542 if (h->type != PJSIP_H_RETRY_AFTER) 1543 return -2910; 1544 1545 if (hdr->ivalue != 10) 1546 return -2920; 1547 1548 if (pj_strcmp2(&hdr->comment, "Already Pending Register")) 1549 return -2930; 1525 1550 1526 1551 return 0;
Note: See TracChangeset
for help on using the changeset viewer.