Changeset 2186


Ignore:
Timestamp:
Jul 31, 2008 8:32:46 AM (11 years ago)
Author:
bennylp
Message:

Fixed ticket #582: Extended presence status is not sent in initial NOTIFY request (thanks Joseph Maiquez for the report)

Location:
pjproject/trunk/pjsip/src/pjsua-lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r2159 r2186  
    10711071        pjsua_call_hangup_all(); 
    10721072 
     1073        /* Set all accounts to offline */ 
     1074        for (i=0; i<(int)PJ_ARRAY_SIZE(pjsua_var.acc); ++i) { 
     1075            if (!pjsua_var.acc[i].valid) 
     1076                continue; 
     1077            pjsua_var.acc[i].online_status = PJ_FALSE; 
     1078            pj_bzero(&pjsua_var.acc[i].rpid, sizeof(pjrpid_element)); 
     1079        } 
     1080 
    10731081        /* Terminate all presence subscriptions. */ 
    10741082        pjsua_pres_shutdown(); 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r2162 r2186  
    879879    //causing XML parsing to fail. 
    880880    //pres_status.info[0].contact = pjsua_var.local_uri; 
     881    /* add RPID information */ 
     882    pj_memcpy(&pres_status.info[0].rpid, &acc->rpid,  
     883              sizeof(pjrpid_element)); 
    881884 
    882885    pjsip_pres_set_status(srv_pres->sub, &pres_status); 
Note: See TracChangeset for help on using the changeset viewer.