How can I send a call to voicemail?

Hello

I need help on how to send a call to voicemail.

I've got a list number, and when I recive the call that is in my list then this call should be sent to voicemail.

PhoneList String = {'8989898989', '7878787878', '5656565656'}

In the earpiece of the phone...

public void callIncoming (int callId)

{

get this call number

and if the number of cll incoming is phoneList then send the call to voicemail

}

Thank you

Amol

It is up to the provider to decide what happens with a rejected call

Tags: BlackBerry Developers

Similar Questions

  • How do I send a call to voicemail?

    Hi, I am a new BB developer. I have finished and understood the "Hello World" project, and I now move on to what seems to be the mandatory "Rejection of calls" program (where you can specify what calls are allowed to sound).

    I found a good tutorial on the basics of working with the calls and the phone class (net.rim.blackberry.api.phone.Phone): tutorial here

    So far, my code looks like this (Please be gentle, I'm new to Java and did not change the sample code little but more important still, I understand):

    /* * MyPhone.java */package MyPhone;
    
    import net.rim.blackberry.api.phone.*;import net.rim.device.api.system.*;import net.rim.device.api.ui.container.*;import net.rim.device.api.ui.*;import net.rim.device.api.ui.component.*;import net.rim.device.api.util.*;import java.util.*;
    
    public final class MyPhone extends AbstractPhoneListener {
    
      /* Simulate a list of numbers to send to voice mail */    public String[] badNumbers = {"+15555551212","+11234567777"};  
    
      /* My Entry Point */    static public void main(String[] args)  {    MyPhone.registerOnStartup();  }
    
      static private void registerOnStartup()  {    MyPhone phone_handler = new MyPhone();    Phone.addPhoneListener(phone_handler);  }
    
      /* Constructor */  private MyPhone(){}
    
      /* Handles Calls */  private void checkCall(String ehandler, int callid)  {    PhoneCall callInfo = Phone.getCall(callid);
    
        if ( callInfo != null ) {
    
            /* If we have an incoming call, loop         * through all bad numbers, and send         * to voice mail if we found a match.         */
    
            if(ehandler == "callIncoming"){                     for (int j = 0; j < badNumbers.length; j ++) {            System.out.println("Bad number is: " + badNumbers[j]);          }        }
    
           System.out.println("Event Handler: " + ehandler);       System.out.println("Telephone No: "  + callInfo.getDisplayPhoneNumber() );       System.out.println("Elapsed Time: "  + callInfo.getElapsedTime());       System.out.println("Call Status: "   + callInfo.getStatusString());    }  }
    
      // A call has been added to a conference call  public void callAdded(int callId)  { checkCall("callAdded", callId); }
    
      // User answered a call  public void callAnswered(int callId)  { checkCall("callAnswered", callId); }
    
      // Conference call established  public void callConferenceCallEstablished(int callId)  { checkCall("callConferenceCallEstablished", callId); }
    
      // Network indicates a connected event  public void callConnected(int callId)  { checkCall("callConnected", callId); }
    
      // Direct-connect call connected  public void callDirectConnectConnected(int callId)  { checkCall("callDirectConnectConnected", callId); }
    
      // Direct-connect call disconnected  public void callDirectConnectDisconnected(int callId)  { checkCall("callDirectConnectDisconnected", callId); }
    
      // Call disconnected  public void callDisconnected(int callId)  { checkCall("callDisconnected", callId); }
    
      // User ended call  public void callEndedByUser(int callId)  { checkCall("callEndedByUser", callId); }
    
      // Call has been placed on "hold"  public void callHeld(int callId)  { checkCall("callHeld", callId); }
    
      // New call has arrived  public void callIncoming(int callId)  { checkCall("callIncoming", callId); }
    
      // Outbound call initiated by the handheld  public void callInitiated(int callid)  { checkCall("callInitiated", callid); }
    
      // Call removed from a conference call  public void callRemoved(int callId)  { checkCall("callRemoved", callId); }
    
      // Call taken off of "hold"  public void callResumed(int callId)  { checkCall("callResumed", callId); }
    
      // Call is waiting  public void callWaiting(int callid)  { checkCall("callWaiting", callid); }
    
      // Conference call has been terminated  // (all members disconnected)  public void conferenceCallDisconnected(int callId)  { checkCall("conferenceCallDisconnected", callId); }
    
      // Call failed  public void callFailed(int callId, int reason)  {    checkCall("callFailed", callId);
    
      }}
    

    In my loop where I check to see if there is an incoming call, I'll see if it corresponds to a wrong number. If so, I don't want no phone in the same ring, just ignore and go to voicemail.

    My question is, how? I've scoured through the API and do not see anything remotely close to send a call to voicemail.

    Thank you!

    John

    the menu item went into new versions of the OS, typing only injection remains - unless there is another method that the community does not know.

  • How can I transfer a call facetime for my macbook

    If I answer an incoming call on my Macbook Pro with FaceTme iPhone I can retrieve the call on my iPhone by selecting the speaker on my phone icon.

    My question is once I have done this how can I send the call to my Macbook Pro?

    OS X El Capitan: use your Mac to make and receive phone calls

  • My iPod classic is synced to my old pc windows how can I send it to my new apple mac - all my music on iPod is uploaded to this topic via ads and bought on iTunes?

    My iPod classic is currently synced on my old windows pc - how can I send it to my new Apple Mac without losing any of my music.  All my music is downloaded from the ads?

    If you still have your old PC in working condition, with its iTunes library intact, not to use your iPod to transfer the library to your new Mac.  You transfer your data from user (not just your iTunes data) directly from the old PC to the new Mac.

    There is an automated system called Migration Wizard, if your system meets the requirements.  Be sure to have a backup of the data.

    Migration of Windows v1.0.5.7 Assistant

    Alternatively, for the part of iTunes, this paper outlines how do it manually, using an external drive.

    Manage and backup your iTunes media library - Apple Support

    To summarize, the first step is to make sure that all your iTunes data is stored in the iTunes folder ("consolidate"), which is located in your folder music user account.  The second step is to copy this folder iTunes on an external drive, to create a backup.  The third step is to restore that backup the iTunes on your new Mac folder.  Launch iTunes to use data from the old PC iTunes; It looks like iTunes running on your old PC, complete with all the songs (and other types of media) and data, such as reading lists, notes, play count, etc.

    Your iPod continues to synchronize with it, because for the iPod, it's the same iTunes library (on another computer).  If you using your iPod as a data source, you add your old data to an iTunes library on Mac.  It is NOT complete.  The iPod sees it as a different iTunes library.  iPods are not designed to be your data from iTunes backup.

    However, IF the iPod is now the only place where your songs are stored (and you have no other backup), thanks for posting back.

  • When I send a text message and mobile data are off, it is not given, but I do not see this message for a few minutes. I can then refer using "send as a text message. How can I 'send as a text message' in the first place?

    When I send a text message and mobile data are off, it is not given, but I do not see this message for a few minutes. I can then refer using "send as a text message. How can I 'send as a text message' in the first place?

    Disable the iMessage?

  • How can I send a message in my Outbox?

    How can I send a message from my Outbox? I do not see a 'send '.

    any where

    Usually, when you open the message there is a submit button. If not try to move the message to the drafts and try again, or copy and paste the content into a new message.

    TT2

  • How can I send a group of addresses of recipients to someone else?

    I regularly send messages to groups of recipients (5 to 50 in size). Someone supports a part of my work; How can I send a group of addresses without having to type all of them again?
    I tried watching a group of addresses in "address", highlighting its content and by pressing Ctrl-C; but by pressing Ctrl-V in the body of an email to him does not.

    You can export books complete addresses or mailing lists.

    If these groups are already in you mailing lists the address book opens the address book and click on the folder in the list to highlight. Then go to Tools-Export.

    Then name the file, choose where to save it and decide what file format can use the new person.

    The LDIF format is best if they are a user of Thunderbird. Separated by commas works with most, and can be opened in Excel to view or change.

    And then send the file.

    Export your address book is a good way to save problems later.

  • How can I send an e-mail to a smart phone?

    How can I send an email or a hot link for a smart phone? Of course, the smart phone has only a digital set is possible to send it to a smart phone?

    You can use a qrcode, on the computer, copy the link of the site, go to this site:

    Paste the link in the form, select static, click on generate, now save the qrcode and send by e-mail or connect the Mr. smarth phone to your pc, transfer on Mr. smarth phone qr code, then use an application to read the qrcode on Mr. smarth phone

    type the link in an email and send to yourself, then open the email in your smarth phone or send to someone

  • I have a 6 s with Verizon iPhone. Can I send/receive calls (using this service and calls on other devices functionality) on my iPhone 5s, who was with AT &amp; T service, but has no service now since I switched to Verizon?

    I have a 6 s with Verizon iPhone. Can I send/receive calls (using this service and calls on other devices functionality) on my iPhone 5s, who was with AT & T service, but has no service now since I switched to Verizon?

    Note: I'm able to get two phones to ring with an incoming call, but the 5s consist not out. Whenever I dial a number, it says call failed.

    Do not dial a number. Try to choose a contact in the contacts App and tapping on telephone button.

    That said, I don't think that outgoing calls work on continuity since another iPhone. given that the iphone is designed to make calls through its own service.

    Document to support that you just did not mention calls from a secondary iPhone at all, it points to Mac, iPad and iPod touch, which leads me to believe that it won't work.

    It runs from devices such as iPads and Macs, who have no other way to place a cell call.

  • How can I send emails with outlook express from firefox

    How can I send emails with outlook express from firefox

    See change the program used to open e-mail links for how to configure Firefox to use Outlook Express.

  • How can I send a message to a cell phone from Apple of my iPhone

    I have an iPhone 6, but have friends with a Samsung.  How can I send them a text message.

    same way you send someone else a message text... using the Messages application.

  • How can I send voice messages in Spanish

    How can I send voice messages in Spanish

    Hello

    On your Apple Watch, after tapping on answer, press firmly on the screen, and then tap on choose language to a different language for your reply (including the dictation).

    The default language for a conversation in Messages is on the same language as the active keyboard on your iPhone (in Messages) for this particular conversation. When you change the language of the keyboard for this conversation on your iPhone, it also changes on your Apple Watch.

    To change the language for a chat on your iPhone (and also on your watch):

    • Lock your iPhone (press the Sleep / Wake button briefly).
    • Open the conversation with this contact on your watch and press on answer.
    • On your iPhone, press the Sleep / Wake button briefly to display the lock screen.
    • The lower left corner of the lock screen, drag upward on the Messages icon (where transfer icons appear).
    • This will open this conversation in Messages on your iPhone.
    • Press the symbol of the globe by the SPACEBAR on the keyboard of the iPhone and choose your preferred language.
      • To add international keyboards, on your iPhone, first go to: settings > general > keyboard > keyboards > add new keyboard.
    • Start typing a response on your iPhone (one or more characters), then delete (implements the choice of language of keyboard for this conversation).
    • On your watch, in the Messages application, exit the screen to answer.
    • Start a new response when this conversation - the new language will be used for dictation and short answers in this conversation.

    More information:

    Use Dictation on your Apple Watch - Apple Support

  • How can I send the documents that I did on my apple system Windows uncoded based

    Dear Apple Forum;

    I managed to send documents by e-mail or a windows-based system, I did on my apple system, but unfortunately they show in an unreadable code style, or sometimes it says: cannot open the document, or there are no applications. to open these documents. My question is how can I send documents that I did on my apple system, e-mail or / Windows based not coded or if there is any APP or platform to do so, your help and your knowledge, research appreciate your response, thank you.

    Best regards, Omar Alhussaini.

    Alghir Omar Sabah,

    What software did you use to write documents? Pages, Word or open Office?

    mAh Salam

    Leo

  • How can I send 5 photos together

    How can I send a video file 5 + concert?

    Email usually fights with 10 MB files.  Go is a lost cause.

    DropBox and other sites of file servers are good options, but transfer 5 GB 'to' and the other part transfer 'of' is a consideration.

  • How can I send my music to icloud and free up storage on my ipad that is full

    I own an ipad and iphone 6. the ipad is about 4 years old approx. full of downloaded and transferred other CDs and my storage capacity is busiest. How can I send my music to icloud and free up storage on my ipad. My iphone has not been synchronized with ipad. Cannot update my ipad for this reason software also.

    Thank you very much

    You can send music in the cloud of a device. You can delete music, and if it's purchased iTunes music you (if it is still in the store and you have not reached the country since purchasing it) may of it redownload purchased in the iTunes Store app tab. Because you own music (for example copied from CD) you'd need have subscribed to Match iTunes on your computer and downloaded the music to her computer, to show him in the cloud.

    You have all your music in your computer's iTunes library? Update of the iOS via a computer version should also require less free space on the device (but the update via a computer requires your content in the iTunes library, the update process will take up a back, wipe the iPad and install the iOS update and restore the backup, the backup contains things such as your documents photos, contacts, settings, etc, music, apps, etc. is picked up in the iTunes library)

Maybe you are looking for

  • Boot Linux on Tecra A10 SD

    Hi, I have a fairly new Tecra A10 running Vista. I would use a SD card (SDHC, ideally) to boot Ubuntu/XUbuntu. I can do the Linux work from a USB startup key, but can't seem to work on the SD card. the methods that I used for the USB (taken from the

  • iBooks can not access my library...

    I have updated to OS X El Capitan 10.11.3 10.11.4 last weekend and now when I try to open iBooks I get this message. I clicked on 'Reset the library' and 'Try Again' but nothing happened. It does not work. I have an iMac (21.5 inch, mid-2011).

  • Vibe x 3 fast load

    How can I get the quick charger for my x 3 included because charger vibe take 02:30 hours to download. Then please suggest best quick charger for vibe x 3

  • HP Photosmart 7520 printer while a (flashing)

    I have a HP Photosmart 7520 printer all-in-one. It lights itself with flashing lights and an error to turn the printer power off and start again. I followed instruction and turn the printer off. Reverse in the printer of the room is lit, flashing wit

  • I have no sound on my laptop - it is old enough, make sure is Averatec. Using Windows XP

    I have no sound on my laptop, the brand is Averatec, he is old enough.  Us it was sound before, can not use theCD.?   Have checked everything I could think of... Pls advise, thanks