Changeset 216 for pjproject


Ignore:
Timestamp:
Feb 22, 2006 3:42:31 PM (19 years ago)
Author:
bennylp
Message:

Added incoming call notification

File:
1 edited

Legend:

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

    r215 r216  
    284284    if (status != PJ_SUCCESS) { 
    285285         
     286        pjsua_perror(THIS_FILE, "Unable to create 100 response", status); 
     287 
    286288        pjsip_dlg_respond(dlg, rdata, 500, NULL); 
    287289 
     
    294296        status = pjsip_dlg_send_response(dlg, pjsip_rdata_get_tsx(rdata),  
    295297                                         response); 
    296     } 
    297  
     298        if (status != PJ_SUCCESS) 
     299            pjsua_perror(THIS_FILE, "Unable to send 100 response", status); 
     300    } 
     301 
     302    PJ_LOG(3,(THIS_FILE, 
     303              "\nIncoming call!!\n" 
     304              "From: %.*s\n" 
     305              "To:   %.*s\n" 
     306              "(press 'a' to answer, 'h' to decline)", 
     307              (int)dlg->remote.info_str.slen, 
     308              dlg->remote.info_str.ptr, 
     309              (int)dlg->local.info_str.slen, 
     310              dlg->local.info_str.ptr)); 
    298311    /* This INVITE request has been handled. */ 
    299312    return PJ_TRUE; 
Note: See TracChangeset for help on using the changeset viewer.