Changeset 988


Ignore:
Timestamp:
Feb 20, 2007 6:47:12 PM (17 years ago)
Author:
bennylp
Message:

Fixed (and tested) ticket #111: Workaround for forking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip/sip_ua_layer.c

    r974 r988  
    806806             * Application can either create a dialog or ignore the response. 
    807807             */ 
    808             if (mod_ua.param.on_dlg_forked) 
     808            if (mod_ua.param.on_dlg_forked) { 
    809809                dlg = (*mod_ua.param.on_dlg_forked)(dlg_set->dlg_list.next,  
    810810                                                    rdata); 
    811             else 
    812                 dlg = NULL; 
    813  
    814             /* Ignore this response if application doesn't want to 
    815              * create a dialog. 
    816              */ 
    817             if (dlg == NULL) { 
    818                 pj_mutex_unlock(mod_ua.mutex); 
     811            } else { 
     812                dlg = dlg_set->dlg_list.next; 
    819813 
    820814                PJ_LOG(4,(THIS_FILE,  
    821                           "Unhandled forked %s from %s:%d", 
     815                          "Unhandled forked %s from %s:%d, response will be " 
     816                          "handed over to the first dialog", 
    822817                          pjsip_rx_data_get_info(rdata), 
    823818                          rdata->pkt_info.src_name, rdata->pkt_info.src_port)); 
    824  
    825                 return PJ_TRUE; 
    826819            } 
    827820 
Note: See TracChangeset for help on using the changeset viewer.