Ignore:
Timestamp:
Feb 19, 2006 3:37:19 PM (18 years ago)
Author:
bennylp
Message:

SIMPLE test with FWD, and added more info in UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua/pjsua_pres.c

    r197 r201  
    9999                                   &pjsua.contact_uri, &dlg); 
    100100    if (status != PJ_SUCCESS) { 
    101         pjsua_perror("Unable to create UAS dialog for subscription", status); 
     101        pjsua_perror(THIS_FILE,  
     102                     "Unable to create UAS dialog for subscription",  
     103                     status); 
    102104        return PJ_FALSE; 
    103105    } 
     
    111113    if (status != PJ_SUCCESS) { 
    112114        PJ_TODO(DESTROY_DIALOG); 
    113         pjsua_perror("Unable to create server subscription", status); 
     115        pjsua_perror(THIS_FILE, "Unable to create server subscription",  
     116                     status); 
    114117        return PJ_FALSE; 
    115118    } 
     
    135138    status = pjsip_pres_accept(sub, rdata, 200, NULL); 
    136139    if (status != PJ_SUCCESS) { 
    137         pjsua_perror("Unable to accept presence subscription", status); 
     140        pjsua_perror(THIS_FILE, "Unable to accept presence subscription",  
     141                     status); 
    138142        pj_list_erase(uapres); 
    139143        return PJ_FALSE; 
     
    158162 
    159163    if (status != PJ_SUCCESS) { 
    160         pjsua_perror("Unable to create/send NOTIFY", status); 
     164        pjsua_perror(THIS_FILE, "Unable to create/send NOTIFY",  
     165                     status); 
    161166        pj_list_erase(uapres); 
    162167        return PJ_FALSE; 
     
    305310                                   NULL, &dlg); 
    306311    if (status != PJ_SUCCESS) { 
    307         pjsua_perror("Unable to create dialog", status); 
     312        pjsua_perror(THIS_FILE, "Unable to create dialog",  
     313                     status); 
    308314        return; 
    309315    } 
     
    313319    if (status != PJ_SUCCESS) { 
    314320        pjsua.buddies[index].sub = NULL; 
    315         pjsua_perror("Unable to create presence client", status); 
     321        pjsua_perror(THIS_FILE, "Unable to create presence client",  
     322                     status); 
    316323        return; 
    317324    } 
     
    323330    if (status != PJ_SUCCESS) { 
    324331        pjsua.buddies[index].sub = NULL; 
    325         pjsua_perror("Unable to create initial SUBSCRIBE", status); 
     332        pjsua_perror(THIS_FILE, "Unable to create initial SUBSCRIBE",  
     333                     status); 
    326334        return; 
    327335    } 
     
    330338    if (status != PJ_SUCCESS) { 
    331339        pjsua.buddies[index].sub = NULL; 
    332         pjsua_perror("Unable to send initial SUBSCRIBE", status); 
     340        pjsua_perror(THIS_FILE, "Unable to send initial SUBSCRIBE",  
     341                     status); 
    333342        return; 
    334343    } 
     
    365374 
    366375    } else { 
    367         pjsua_perror("Unable to unsubscribe presence", status); 
     376        pjsua_perror(THIS_FILE, "Unable to unsubscribe presence",  
     377                     status); 
    368378    } 
    369379} 
     
    397407    status = pjsip_endpt_register_module( pjsua.endpt, &mod_pjsua_pres); 
    398408    if (status != PJ_SUCCESS) { 
    399         pjsua_perror("Unable to register pjsua presence module", status); 
     409        pjsua_perror(THIS_FILE, "Unable to register pjsua presence module",  
     410                     status); 
    400411    } 
    401412 
Note: See TracChangeset for help on using the changeset viewer.