Changeset 110 for pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
- Timestamp:
- Jan 7, 2006 11:01:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r109 r110 893 893 void *event_src ) 894 894 { 895 pjsip_tsx_state_e prev_state = tsx->state; 896 895 897 PJ_LOG(5, (tsx->obj_name, "State changed from %s to %s, event=%s", 896 898 state_str[tsx->state], state_str[state], … … 910 912 if (tsx->tsx_user && tsx->tsx_user->on_tsx_state) { 911 913 pjsip_event e; 912 PJSIP_EVENT_INIT_TSX_STATE(e, tsx, event_src_type, event_src); 914 PJSIP_EVENT_INIT_TSX_STATE(e, tsx, event_src_type, event_src, 915 prev_state); 913 916 (*tsx->tsx_user->on_tsx_state)(tsx, &e); 914 917 } … … 2107 2110 pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer, &timeout); 2108 2111 2109 /* Inform TU. */ 2112 /* Inform TU. 2113 * blp: You might be tempted to move this notification before 2114 * sending ACK, but I think you shouldn't. Better set-up 2115 * everything before calling tsx_user's callback to avoid 2116 * mess up. 2117 */ 2110 2118 tsx_set_state( tsx, PJSIP_TSX_STATE_COMPLETED, 2111 2119 PJSIP_EVENT_RX_MSG, event->body.rx_msg.rdata );
Note: See TracChangeset
for help on using the changeset viewer.