×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    108

    Question Problem with Logging Service API

    Hi all,

    I am using Logging Service API to list out the missed calls.
    My application is displaying missed call lists even if i delete "missed calls" from the "Log".
    I used the following code snippet:-

    Code:
    function getMissedCalls(){
    	
        var j = 0;
        var filterMap = new Object();
        filterMap.Direction = 5;//Missed call event
      
        var criteria = new Object();
        criteria.Type = 'Log';
        criteria.Filter = filterMap;
        
        try {
            var result = serviceObjLog.IDataSource.GetList(criteria);
            
                var msg = "";
                var obj;
                var it = result.ReturnValue;
    			
    			  while ((obj = it.getNext()) != undefined) {
                   
                    msg = msg + "EventTime: " + obj['EventTime'] + "<br>";
                    
                    msg = msg + "PhoneNumber: " + obj['PhoneNumber'] + "<br>";
                    
                
              }
    	
                it.reset();
                document.getElementById('missed_calls').innerHTML = msg;
           
        } 
        catch (e) {
            showIMG(imgId, "no");
            alert("getMissedCalls: " + e);
        }
    }
    How do i get missed calls list correctly..?Any other solution.?
    pls help me,
    remesh

  2. #2
    Registered User
    Join Date
    Feb 2009
    Posts
    21

    Re: Problem with Logging Service API

    I believe you want to use the 'criteria.Filter.RecentList' filter with a value of 3 (EKLogRecentMissedCalls). See the docs.

Similar Threads

  1. I Got Problem with Service Discovery & SdpAgent
    By Mo7ammed_01 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2006-07-29, 13:33
  2. Problem in service registration?
    By Palermo4Ever in forum Bluetooth Technology
    Replies: 2
    Last Post: 2006-06-27, 14:32
  3. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  4. Service discovery inconsistency problem
    By tserivdd in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-02-09, 08:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×