package.html revision 02b1d685cc287d7c53141872b3d80be4ee5dd59e
1<HTML>
2<BODY>
3<p>Provides access to Session Initiation Protocol (SIP) functionality, such as
4making and answering VOIP calls using SIP.</p>
5
6<p>To get started, you need to get an instance of the {@link android.net.sip.SipManager} by
7calling {@link android.net.sip.SipManager#newInstance newInstance()}.</p>
8
9<p>With the {@link android.net.sip.SipManager}, you can initiate SIP audio calls with {@link
10android.net.sip.SipManager#makeAudioCall makeAudioCall()} and {@link
11android.net.sip.SipManager#takeAudioCall takeAudioCall()}. Both methods require
12a {@link android.net.sip.SipAudioCall.Listener} that receives callbacks when the state of the
13call changes, such as when the call is ringing, established, or ended.</p>
14
15<p>Both {@link android.net.sip.SipManager#makeAudioCall makeAudioCall()} also requires two
16{@link android.net.sip.SipProfile} objects, representing the local device and the peer
17device. You can create a {@link android.net.sip.SipProfile} using the {@link
18android.net.sip.SipProfile.Builder} subclass.</p>
19
20<p>Once you have a {@link android.net.sip.SipAudioCall}, you can perform SIP audio call actions with
21the instance, such as make a call, answer a call, mute a call, turn on speaker mode, send DTMF
22tones, and more.</p>
23
24<p>If you want to create generic SIP connections (such as for video calls or other), you can
25create a SIP connection from the {@link android.net.sip.SipManager}, using {@link
26android.net.sip.SipManager#open open()}. If you only want to create audio SIP calls, though, you
27should use the {@link android.net.sip.SipAudioCall} class, as described above.</p>
28
29<p class="note"><strong>Note:</strong>
30Not all Android-powered devices support VOIP functionality with SIP. Before performing any SIP
31activity, you should call {@link android.net.sip.SipManager#isVoipSupported isVoipSupported()}
32to verify that the device supports VOIP calling and {@link
33android.net.sip.SipManager#isApiSupported isApiSupported()} to verify that the device supports the
34SIP APIs.<br/><br/>
35Your application must also request the {@link android.Manifest.permission#INTERNET} and {@link
36android.Manifest.permission#USE_SIP} permissions in order to use the SIP APIs.
37</p>
38</BODY>
39</HTML>