- Timestamp:
- Feb 17, 2007 12:12:15 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/sipstateless.c
r531 r956 45 45 static pjsip_endpoint *sip_endpt; 46 46 47 /* What response code to be sent (default is 501/Not Implemented) */ 48 static int code = PJSIP_SC_NOT_IMPLEMENTED; 49 47 50 48 51 /* Callback to handle incoming requests. */ … … 54 57 if (rdata->msg_info.msg->line.req.method.id != PJSIP_ACK_METHOD) { 55 58 pjsip_endpt_respond_stateless( sip_endpt, rdata, 56 PJSIP_SC_NOT_IMPLEMENTED, NULL,59 code, NULL, 57 60 NULL, NULL); 58 61 } … … 66 69 * 67 70 */ 68 int main( )71 int main(int argc, char *argv[]) 69 72 { 70 73 pj_caching_pool cp; … … 89 92 pj_status_t status; 90 93 94 if (argc == 2) 95 code = atoi(argv[1]); 96 91 97 /* Must init PJLIB first: */ 92 98 status = pj_init();
Note: See TracChangeset
for help on using the changeset viewer.