Ignore:
Timestamp:
Feb 10, 2006 2:04:05 PM (18 years ago)
Author:
bennylp
Message:

Added more logging, and fixed bug when ACK is responded!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c

    r169 r175  
    497497        pj_mutex_unlock(mod_ua.mutex); 
    498498 
    499         /* Respond with 481 . */ 
    500         pjsip_endpt_respond_stateless( mod_ua.endpt, rdata, 481, NULL, NULL, 
    501                                        NULL ); 
     499        if (rdata->msg_info.msg->line.req.method.id != PJSIP_ACK_METHOD) { 
     500            PJ_LOG(5,(THIS_FILE,  
     501                      "Unable to find dialogset for %s, answering with 481", 
     502                      pjsip_rx_data_get_info(rdata))); 
     503 
     504            /* Respond with 481 . */ 
     505            pjsip_endpt_respond_stateless( mod_ua.endpt, rdata, 481, NULL,  
     506                                           NULL, NULL ); 
     507        } 
    502508        return PJ_TRUE; 
    503509    } 
     
    518524    /* Dialog MUST be found! */ 
    519525    if (dlg == (pjsip_dialog*)&dlg_set->dlg_list) { 
     526 
    520527        /* Not found. Mulfunction UAC? */ 
    521528        pj_mutex_unlock(mod_ua.mutex); 
     529 
     530        PJ_LOG(5,(THIS_FILE,  
     531                  "Unable to find dialog for %s, answering with 481", 
     532                  pjsip_rx_data_get_info(rdata))); 
     533 
    522534        pjsip_endpt_respond_stateless(mod_ua.endpt, rdata, 
    523535                                      PJSIP_SC_CALL_TSX_DOES_NOT_EXIST,  
     
    662674            ((st_code/100==1 && st_code!=100) || st_code/100==2))  
    663675        { 
     676 
     677            PJ_LOG(5,(THIS_FILE,  
     678                      "Received forked %s for existing dialog %s", 
     679                      pjsip_rx_data_get_info(rdata),  
     680                      dlg_set->dlg_list.next->obj_name)); 
     681 
    664682            /* Report to application about forked condition. 
    665683             * Application can either create a dialog or ignore the response. 
Note: See TracChangeset for help on using the changeset viewer.