Changeset 563 for pjproject/trunk/pjsip/src/test-pjsip/tsx_basic_test.c
- Timestamp:
- Jun 28, 2006 4:46:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/tsx_basic_test.c
r127 r563 24 24 #define THIS_FILE "tsx_basic_test.c" 25 25 26 static char TARGET_URI[128]; 27 static char FROM_URI[128]; 28 29 26 30 /* Test transaction layer. */ 27 31 static int tsx_layer_test(void) … … 34 38 PJ_LOG(3,(THIS_FILE, " transaction layer test")); 35 39 36 target = pj_str( "sip:alice@localhost");37 from = pj_str( "sip:bob@localhost");40 target = pj_str(TARGET_URI); 41 from = pj_str(FROM_URI); 38 42 39 43 status = pjsip_endpt_create_request(endpt, &pjsip_invite_method, &target, … … 78 82 PJ_LOG(3,(THIS_FILE, " double terminate test")); 79 83 80 target = pj_str( "sip:alice@localhost;transport=loop-dgram");81 from = pj_str( "sip:bob@localhost");84 target = pj_str(TARGET_URI); 85 from = pj_str(FROM_URI); 82 86 83 87 /* Create request. */ … … 132 136 } 133 137 134 int tsx_basic_test( void)138 int tsx_basic_test(struct tsx_test_param *param) 135 139 { 136 140 int status; 141 142 pj_ansi_sprintf(TARGET_URI, "sip:bob@127.0.0.1:%d;transport=%s", 143 param->port, param->tp_type); 144 pj_ansi_sprintf(FROM_URI, "sip:alice@127.0.0.1:%d;transport=%s", 145 param->port, param->tp_type); 137 146 138 147 status = tsx_layer_test();
Note: See TracChangeset
for help on using the changeset viewer.