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_inv.c

    r197 r201  
    5454                                   &dlg); 
    5555    if (status != PJ_SUCCESS) { 
    56         pjsua_perror("Dialog creation failed", status); 
     56        pjsua_perror(THIS_FILE, "Dialog creation failed", status); 
    5757        return status; 
    5858    } 
     
    6363                                       1, &pjsua.med_skinfo, &offer); 
    6464    if (status != PJ_SUCCESS) { 
    65         pjsua_perror("pjmedia unable to create SDP", status); 
     65        pjsua_perror(THIS_FILE, "pjmedia unable to create SDP", status); 
    6666        goto on_error; 
    6767    } 
     
    7171    status = pjsip_inv_create_uac( dlg, offer, 0, &inv); 
    7272    if (status != PJ_SUCCESS) { 
    73         pjsua_perror("Invite session creation failed", status); 
     73        pjsua_perror(THIS_FILE, "Invite session creation failed", status); 
    7474        goto on_error; 
    7575    } 
     
    100100    status = pjsip_inv_invite(inv, &tdata); 
    101101    if (status != PJ_SUCCESS) { 
    102         pjsua_perror("Unable to create initial INVITE request", status); 
     102        pjsua_perror(THIS_FILE, "Unable to create initial INVITE request",  
     103                     status); 
    103104        goto on_error; 
    104105    } 
     
    109110    status = pjsip_inv_send_msg(inv, tdata, NULL); 
    110111    if (status != PJ_SUCCESS) { 
    111         pjsua_perror("Unable to send initial INVITE request", status); 
     112        pjsua_perror(THIS_FILE, "Unable to send initial INVITE request",  
     113                     status); 
    112114        goto on_error; 
    113115    } 
     
    302304    if (status != PJ_SUCCESS) { 
    303305 
    304         pjsua_perror("SDP negotiation has failed", status); 
     306        pjsua_perror(THIS_FILE, "SDP negotiation has failed", status); 
    305307        return; 
    306308 
     
    319321    status = pjmedia_sdp_neg_get_active_local(inv->neg, &local_sdp); 
    320322    if (status != PJ_SUCCESS) { 
    321         pjsua_perror("Unable to retrieve currently active local SDP", status); 
     323        pjsua_perror(THIS_FILE,  
     324                     "Unable to retrieve currently active local SDP",  
     325                     status); 
    322326        return; 
    323327    } 
     
    326330    status = pjmedia_sdp_neg_get_active_remote(inv->neg, &remote_sdp); 
    327331    if (status != PJ_SUCCESS) { 
    328         pjsua_perror("Unable to retrieve currently active remote SDP", status); 
     332        pjsua_perror(THIS_FILE,  
     333                     "Unable to retrieve currently active remote SDP",  
     334                     status); 
    329335        return; 
    330336    } 
     
    341347                                         &inv_data->session ); 
    342348        if (status != PJ_SUCCESS) { 
    343             pjsua_perror("Unable to create media session", status); 
     349            pjsua_perror(THIS_FILE, "Unable to create media session",  
     350                         status); 
    344351            return; 
    345352        } 
Note: See TracChangeset for help on using the changeset viewer.