Changeset 573 for pjproject/trunk
- Timestamp:
- Jul 2, 2006 2:18:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r568 r573 567 567 static void process_incoming_call(pjsip_rx_data *rdata) 568 568 { 569 unsigned i ;569 unsigned i, options; 570 570 struct call *call; 571 571 pjsip_dialog *dlg; … … 587 587 return; 588 588 } 589 590 /* Verify that we can handle the request. */ 591 options = 0; 592 status = pjsip_inv_verify_request(rdata, &options, NULL, NULL, 593 app.sip_endpt, &tdata); 594 if (status != PJ_SUCCESS) { 595 596 /* 597 * No we can't handle the incoming INVITE request. 598 */ 599 600 if (tdata) { 601 pjsip_response_addr res_addr; 602 603 pjsip_get_response_addr(tdata->pool, rdata, &res_addr); 604 pjsip_endpt_send_response(app.sip_endpt, &res_addr, tdata, 605 NULL, NULL); 606 607 } else { 608 609 /* Respond with 500 (Internal Server Error) */ 610 pjsip_endpt_respond_stateless(app.sip_endpt, rdata, 500, NULL, 611 NULL, NULL); 612 } 613 614 return; 615 } 589 616 590 617 call = &app.call[i];
Note: See TracChangeset
for help on using the changeset viewer.