Programmatically dismiss an appeal

Hi guys,.

I am writing an application that needs to reject a call (because calling a special number is just a "notification" to do something else). I am using the callIncoming for this method and simulate the click on the meu item 'Hang up', like this:

public void callIncoming(int callId)
{
    UiApplication.getUiApplication().invokeLater(new Runnable()
    {
        public void run()
        {
            try
            {
                Menu menu = UiApplication.getUiApplication().getActiveScreen().getMenu(0);
                for (int i = 0; i <= menu.getSize() - 1; i++)
                {
                    System.out.println("menu " + i + " :" + menu.getItem(i).getOrdinal() + " - " + menu.getItem(i).toString());
                    if (menu.getItem(i).getOrdinal() == 69632)
                    {
                        menu.getItem(i).run();
                        System.out.println("blocked call");
                    }
                }
            }
            catch (Exception ex)
            {
                System.out.println(ex.getMessage());
            }
        }
    });
}

It works almost well with the Curve 8300 (except for the fact that I still need to close the dialog box 'Missed calls' that appears when I end the call). However, it does not work with the Simulator "BOLD".

Debug information shows that he finds the following menus:

menu 0: 4096 - help
menu 1:70912 - join the Conference
menu 2:71936 - Mute
menu 3:77824 - Notes
menu 4:77840 - back to the phone
menu 5:1266752 - activate speaker
6:16982272 menu - Options
Menu 7:16982273 - status
Menu 8:268501000 - Switch Application
Menu 9:268501008 - close

I tried to use the overloads of invokeLater who takes a delay and the 500 or 1000 specified as a delay, but nothing changes. Even in this case, the executable runs immediately and I get the menu items - there is nothing to 'hang up '!

Can you explain why is that and a workaround?

Thank you very much in advance for the help.

The "BOLD" doesn't have the 'End call' option in the menu.

I don't know if this is true for all versions > = 4.6.x, but this is true for "BOLD" with 4.6.x. (can someone confirm for other devices on the > = 4.6.x?)

You can not use this trick more.

It seems to be:

(a) RIM did not have this possibility to the developers (their people might have seen discussions of this forum explaining the thing) or

(b) the policy of the RIM changed for another reason.

personally, I like having this option in the menu, but it was rarely used.

Tags: BlackBerry Developers

Similar Questions

  • Programmatically dismiss blackberry.ui.toast?

    I have a launched a toast with a long delay while a background operation finishes, but I can't find a way to programmatically dismiss the toast when the other task is complete. Is it possible to use the toastId for this?

    Hello

    Short answer is no. A Toast is an alert dialog box. What you should probably use is an indicator of activity or some sort.

    Do you use a framework for your application? Chances are that an activity spinner option is available.

  • Dismiss the appeal

    Hi Apple,

    I'm from the India. After buying iPhone 5s, I saw there is no option didn't call me elimination on screen lock without notice. I get daily during the call of advertising of 15 times that I don't need to remind.

    I don't want to use my power for the elimination of the call button. If I use the power button / stop for the elimination of the call can be button / stop does not work in the future.

    I'm excited to buy the iphone and its phone, but I am very disappointed in the elimination of appeal on the lock screen.

    Please consider my problem and I hope you understand.

    Thank you

    Kamran T.

    Mob:-*.

    Email ID:-*.

    < personal information under the direction of the host >

    Aadab az!

    You can give feedback to Apple here

    http://www.Apple.com/feedback

    Also - your concerns about the power button are not supported in practice - people use the iPhone for years--most of them without problems

    The other thing you can do is the following

    When you receive a call, it's an ad - go in recent and block number - at least it won't bore you for these same companies composing the return

  • features of the different iPhone if purchased from a supplier and switched to another?

    I want to change providers and keep my current phone, but I have been informed that the phone will not work as well if I go from ATT to T-Mobile and it would be better to buy a new phone.  I bought this phone outright six months ago and don't want to have to buy to have the same functionality. It's the truth? Switching will just the SIM card, after it was unlocked, gives me the same functionality of a new phone of new carrier?

    Church of lyndafromfalls wrote:

    I want to change providers and keep my current phone, but I have been informed that the phone will not work as well if I go from ATT to T-Mobile and it would be better to buy a new phone.  `

    Who told you it is very confused or trying to sell you a phone. No, it will work fine as long as it is unlocked.

    The only situation in which you can see a difference in characteristics when switching carriers is minor differences in the functioning of Conference calls, and how some features (dismissal of appeal, ILA activation or deactivation) are engaged if you switch from a GSM (e.g. TMobile) carrier to carrier CDMA (e.g. Sprint).

  • RINGTONE DO NOT REPEAT

    Greetings.

    A while back, I had problems with my ringtones and audits, because the phone is not reading my SD card; However, after updating several weeks ago, the sounds of my SD card all appeared on my ringtone list and I was able to customize once more my sounds.

    But now I have a new problem with ringtones. The tone, I chose is a Word from the end of one minute in length. On my Droid X the phone would repeat the word to the end, until I answered or dismissed the appeal [or it went to voicemail] but the Droid 4 is only play once!

    I confirmed with the appellants that the ring continued at their end of the call and she goes to voicemail after [only] four rings.

    So, how can I keep it sounds on my end?

    And how to extend the number of rings [before transferring to the voicemail]?


  • SmartWatch 2 and Galaxy S4 - call app - need option accept call!

    Hello

    I am very happy of this new watch, but with the Galaxy S4 smartconnect App for CALL does not have the button ACCEPT CALL green... only the Red 'dismiss the appeal' and 'response with sms' preformatted...

    Is it planned by SONY for this option soon?

    is not a problem with S4...

    Is the normal option of this APP.

    If you want to 'reply' to the watch, you can find another app in the playstore.

    I see 'callhandlingpro' can do...

  • Priority to the Xperia Z3 double 5.0.2 mode

    Please, can someone explain to me how a / m mode works?

    What I need: muted except the alarm clock tone.

    How to configure the priority mode:

    -When the calls and notifications arrive - allow only interruptions of priority

    -events and reminders OFF

    -call OFF

    -OFF messages

    What I get in priority mode:

    the call rings at full breath (shouldn't she be mute?) and dismissing the appeal in priority mode (the Star turns off).

    I am confused because I tried all possible combinations, and I have not found a solution, please help.

    Of course, I do this all the time, I fall asleep and but my phone silent, alarms ring through. If this does not work with you, try to clear the cache of applications 'Audio Settings' and 'Clock', and then restart your phone. Set an alarm and go silent.

  • onCallCommandResponseReceived does not work

    I followed this example for details on ordering call: https://developer.blackberry.com/native/documentation/device_comm/phone/index.html#findcallcommandde...

    bool res = (QObject::connect(&phone,SIGNAL(callCommandResponseReceived(const bb::system::phone::CallCommandResponse &)),this,SLOT(onCallCommandResponseReceived(const bb::system::phone::CallCommandResponse&))));
        if (res)
        { qDebug() << "connected ok to  CallCommandResponse";}
        else { qDebug() << "failed to connect CallCommandResponse";}
    
    void ApplicationUI::onCallCommandResponseReceived(const bb::system::phone::CallCommandResponse& response){
    
     qDebug() << "Executing onCallCommandResponse";
    
     QString mCallCommand = response.callCommand(); qDebug() << "Response.callCommand() is" << mCallCommand;
    
     int mResponseId = response.responseId(); qDebug() << "Response.responseId() is" << mResponseId;
    
     int mCallId = response.callId(); qDebug() << "Response.callId() is" << mCallId;
    
     QString mError = response.error(); qDebug() << "Error:" << response.error();}
    

    Then I tested it by making an incoming call, then on the phone test, I dismissed the appeal but onCallCommandResponseReceived is not executed.

    My test is correct? Or something wrong in the code? What is the command "appeal"?

    Thank you very much!

    And by looking at the documentation for object phone seems pretty clear that callCommandResponseReceived() signal is emitted in the form of response for the commands you make to the object of telephone.

  • CallManager Express SIP trunk problem

    Hi all here.

    I have a problem with my SIP trunk CallManager Express (version 10.0). On my site already configured trunk SIP between CME and CUE. I have configured DN for SIP phone and SIP phones recorded on CME successfully, but... As soon as SIP phone registered on CME, DIAL-PEER for CME and CUE connection changes. Especially 'session target ipv4' automatically changes to my IP phone SIP and all calls go to my SIP phone and does not reach the auto attendant.

    How can I solve this problem?

    Hello

    Following is the error of CUCM;

    WARNING: 399 UnicompCM "cannot find a Device Manager for the request received on port 55549 leave 192.168.10.2.

    This probably means that CME use 192.168.10.2 for source packages SIP CUCM however SIP trunk in CUCM is not directed to this IP address, it is useful to point out to another IP interface of the GUY and therefore dismiss this appeal.

    Can you please check what is the IP of CMF address you configured on the SIP trunk in CUCM?

    -Vivek

  • Recommended method to configure the unit to reject calls to himself

    What is the recommended / best for the configuration of the unit to refuse or remove calls to itself?

    A situation like a TRAP to call on a phone that has the value CFA VMail.

    Thank you

    Vance

    By default, the unit will try to match the incoming calls caller ID to post numbers that you entered for each port in UTIM. Unfortunately, only the caller ID is not reliable. For example, if the unit transfers a call through a trunk or line of JUNCTION and the call is transferred to the unit, we expect to see the port of transfer as caller ID incoming. In this case, we don't want to dismiss the appeal. To handle this, the unit will only reject calls that have caller ID corresponding to a dedicated outdial port (which is a port that is not configured to answer and therefore to transfer calls). So to take full advantage of this feature, you'll want to first configure the outbound ports dedicated for Notification calls, traps and MWI. Then you'll want to make sure that these ports have post numbers entered for them the UTIM. Details of this implementation can be found in CSCdu64641.

    Of course there are always cases where the method above is insufficient. For example, if a call from notification of the unit died in a cell phone that is passed to the caller ID unit original (extension of the unit) may not appear when the transmitted call. In order to take account of cases like this, a new tone-detect basic functionality has been added to 4.0 (4). See the setting "Reject sent Notification DTMF Tone" in the Advanced Settings tool. Unfortunately, this will help with the Notification calls only. Trap the calls that you mentioned won't be affected.

    Hope this helps,

    Eric

  • Dial-Peer out of the CME, for UC540 does not

    Dear Experts,

    We have a UC560 HQ and the new branch with 2811 router. These sites linked via VPN using fortigate. The connectivity between sites is in place and we are able to ping both the sites and networks of voice successfully.

    I have configured dial-peers on both sites. The headquarters at the local branch calls succeed without problem, but when we compose branch at HQ, we get a fast busy signal. Here is the config of dial peers

    AC-

    Dial-peer voice 300 voip
    destination-model 3...
    session target ipv4:192.168.110.1
    DTMF-relay h245 alphanumeric
    No vad

    Branch-

    Dial-peer voice 800 voip
    destination-model 8...
    session target ipv4:192.168.201.2
    DTMF-relay h245 alphanumeric
    No vad

    CSIM results of branch-

    CSIM start 891
    CSIM: called number = 891, number of loops = 1 ping count = 0

    CSIM err csimDisconnected recvd DISC cid (786)
    CSIM: loop = 1, failed = 1
    CSIM: call attempt = 1, Setup failed = 1, your failed = 0

    Please please advise. Thank you.

    Hi, it's like application of fraud alleged toll-free which dismissed the appeal of the site BR.

    1076043: 11 Oct 14:36:29.759: / / 282614/B639957688BC/CCAPI/cc_api_call_setup_ind_common:
    Set up the event sent;
    Call Info (number = 308(TON = unknown, NPI = unknown, not projected = screening, presentation = authorized),
       Called number = 807 (Unknown = TON, NPI = unknown))

    1076047: 11 Oct 14:36:29.763: / / 282614/B639957688BC/CCAPI/cc_process_call_setup_ind:
    > Handed CCAPI cid 282614 tagged 300 to app "" _ManagedAppProcess_TOLLFRAUD_APP".
    1076048: 11 Oct 14:36:29.763: / / 282614/B639957688BC/CCAPI/ccCallDisconnect:
       Value = 21, Tag = 0x0, entry calls (previous disconnection Cause = 0, remove the Cause = 0)

    you need to add the address IP of GW BR (192.168.110.1) slot ' voice voip service > reliable list of IPS "as shown below.

    voip phone service
    list of approved IP addresses
    IPv4 192.168.110.1

    For you reference: https://supportforums.cisco.com/document/46566/understanding-toll-fraud-...

  • Implicit except restore point

    Hello

    Version JDEV: 12.1.3.0.0

    I'm trying to implement implicit savepoint for my stubborn workflow. Here are the steps I followed:

    (1) Taskflow transaction is set to 'Always use of existing Transaction' and datacontrol shared

    (2) provided savepoint datasource and activated nested implicit in adf-config. XML

    (3) marked the taskflow as critical

    (4) what restoring recorded point value 'true' in activity back taskflow.

    But I get the following error when the Cancel button is clicked:

    oracle.jbo.JboException: Houston-25054: could not find the snapshot of battery specified id: 262177

    The complete stack trace is attached.

    Please let me know if I'm missing something.

    Thank you!

    Thanks Billett for a helping hand, but unfortunately implicit savepoint failed and I had to settle with an explicit... That is to say create programmatically savepoint taskflow appeal and restore using the restore activity save point.

    This fence wire.

  • Triggers a "Panel Resize" event programmatically

    I have a contextual dialog GUI VI with a structure of the event.

    I'm programatically positioning of elements on the graphical interface based on the size of the window.  I do this placement within a "Panel Resize" event if the 'law' of the event was "Maximize" or "Resized."

    I want to programmatically triggers this event to run one time when the VI launch first, to make sure that all of my items are positioned correctly (in which case anything changed during development), however, the only way I found to do this is to manually resize the window.

    Of course, one possible solution is to put the code positioning in a subvi, but for various reasons, I prefer not to do that in this case, although I'll probably have to do...

    (I tried to change the size of the screen by-1 but appears not to genereate an event).

    So, is it possible to create a similar to a property "value (signposting)"Panel Resize"event?

    Thank you!

    As you can only resize and reposition objects FP using nodes of property, I don't see advantage by keeping the functionality of a Subvi. I did this during years with a generic UI which positions most oc objects compared to limits of the FP, which is defined relative to the size of the workspace on the main desktop. You even don't need to spend in the references that you can create using the chain of appeal VI or another and get an array of references to the Panel control. As long as you set the position of each control to its name, it works quite well.

    -My user interface adds a great width text box and car spaces based on a report in a 2D auto scaling multicolumn listbox colunms (add and remove lines in function number of available pixels to play with) that I never know what resolution someone will use for their monitor, all I have to do is specify a minimum size and a maximum size that I tested!

    Think about it - you will see it is logical (also you can repel the FPUpdates until all orders are respostioned where they are expected which speeds up the process).

    James

  • VCS X7.1 appeal rule strategy does not

    I recently had trouble with my appeal policy rules. I don't have 9, then I deleted all the and created the following:

    Source:. * Destination: test@%localdomains%. REJECT

    When I dial [email protected] / * / field the call goes through. If I change the State of destination to [email protected] / * / area, the appeal is dismissed as it should.

    Has something changed causing % localdomains % does not work?

    Sent by Cisco Support technique iPhone App

    I believe that variable matched model such as % localdomains % are not supported in the CPL.

    Administrator's guide-

    http://www.cisco.com/en/US/docs/telepresence/infrastructure/vcs/admin_guide/Cisco_VCS_Administrator_Guide_X7-2.pdf - says (page 368) "made VCS use of pattern matching in a number of its features, namely allow lists and refuse, presearch

    transformations and what configuration search rules and area changes. "It doesn't mention the CPL or call the policy rules at all.

  • Dismiss the iOS 10 Timer

    Does anyone know of a way to change the style of the iPad in iOS 10 timer notifications? In earlier versions, a timer at the end of the notification was similar to an alert HTML he had an OK button visible on the background. This allowed quick reference of the notification and, especially, to silence the alarm.

    In iOS 10, the notification style that I see has changed. It is now a close notification (height) with no OK button visible. I have to slide down on a gray bar very close to expand the notification and get to the OK button. Not only the Act to expand the notification process takes more time, but the fact that the gray bar seems to require a precise contact to accomplish the clamp which means a dismissal which previously took less than a second now takes five or seconds while I try frantically to extend the notification to the OK button.

    I searched through notifications, hoping I could change something of the style, but there is nothing here of clock, alarm, timer, etc. A research in "timer" parameters, "the clock", results etc. in no topics found.

    Try to swipe through the Notification to open it.

Maybe you are looking for

  • iSight works partially on macOS Sierra

    After installing Mac OS on my Mac Pro mid-2010 Sierra, my external iSight has stopped working (the microphone and video).  I have reset the controller of the system as suggested by another user to reset the controller management system (SCM) on your

  • The text box to define a start page is greyed out and I can't change the start page.

    When I go to the Options screen, the "Mozilla Firefox Start Page" text box is gray and unchanging. If I navigate to a page, and then set that as my start page, close and restart Firefox back to the Firefox/Google homepage - my homepage setting is not

  • Flatten the FXP into string

    Hi all! I have a few numbers FXP: Word: 24 bits Integers: the 7 bits Signed When I fold it flat - the chain, my resulting string has a length of 8 bytes. I was expecting 3 bytes... Could someone explain this behavior? Thanks in advance! Vincent

  • How can I combine a string array and an array of integers?

    I have an array of string data [to use as header] and an entire table of multiple column vakues; I need them together in a single file. Am not able to combine so that I could write them in a single file.

  • HP deskjet all in one error scanner f2480

    I'm on windows xp, and yesterday when I try to parse some files, I got this error (I reinstalled the printer but the error is still there when I try to scan) http://postimg.org/image/iw02sh7ur/ P.S. There is no other error when reinstalling