Imsdroid of SIP (2)

Source: Internet
Author: User

The previous article briefly analyzes the imsdroid project. This article continues the previous article. Continue to analyze the IMS Private Identity (IMPI) Identity authentication user id for example: banketreeIMS Public Identity (IMPU) Public authentication such as: sip: 33446677887@doubango.org service settings: [java] // Sets IP address final String proxyHost = "192.168.0.1"; mConfigurationService (ConfigurationEntry. NETWORK_PCSCF_HOST, proxyHost); // Sets port final int proxyPort = 5060; mConfigurationService. putInt (ConfigurationEntry. NETWORK_PCSCF_PORT, proxyPort); Save changes mCon FigurationService. commit (); Class interface org. doubango. ngn. sip. ngnAVSession [java] boolean makeCall (String remoteUri) boolean makeVideoSharingCall (String remoteUri) Context getContext () void setContext (Context context) final View destroy () final View startVideoProducerPreview () boolean isSendingVideo () void toggleCamera () void setRotation (int rot) void setSpeakerphoneOn (boolean sp Eakeon) void toggleSpeakerphone () void setState (InviteState state) boolean acceptCall () boolean hangUpCall () boolean holdCall () boolean resumeCall () boolean isLocalHeld () boolean isRemoteHeld () boolean sendDTMF (int digit) Static Public Member Functions static NgnAVSession createOutgoingSession (NgnSipStack sipStack, NgnMediaType mediaType) static NgnAVSession getSession (long id) static Int getSize () static boolean hasSession (long id) static boolean hasActiveSession () static NgnAVSession terminate (long id) static boolean makeAudioCall (String remoteUri, NgnSipStack sipStack) static boolean makeAudioVideoCall (String remoteUri, ngnSipStack sipStack) [java] boolean org. doubango. ngn. sip. ngnAVSession. acceptCall () // receives an incoming audio/video call Returns: true is succeed and false Otherwise See also: hangUpCall () static NgnAVSession org. doubango. ngn. sip. ngnAVSession. createOutgoingSession (NgnSipStack sipStack, NgnMediaType mediaType) [static] creates an audio/video session Parameters: sipStack the IMS/SIP stack to use to make the call mediaType the media type. returns: A deelectrified audio/video session Context org. doubango. ngn. sip. ngnAVSession. getContext () // obtain the context Returns related to this session: context static NgnAVSession org. douban Go. ngn. sip. ngnAVSession. getFirstActiveCallAndNot (long id) [static] get different Parameters: Session ID Returns: static NgnAVSession org. doubango. ngn. sip. ngnAVSession. getSession (long id) [static] retrieves the audio/video session ID Parameters: Meeting id Returns: A Meeting static int org. doubango. ngn. sip. ngnAVSession. getSize () [static] Get paused audio/video conferencing Returns: conferencing boolean org. doubango. ngn. sip. ngnAVSession. hangUpCall () End call Re Turns: static boolean org. doubango. ngn. sip. ngnAVSession. hasActiveSession () [static] an active Audio/Video Conference Returns: static boolean org. doubango. ngn. sip. ngnAVSession. hasSession (long id) [static] whether meeting Parameters: Meeting id Returns: boolean org. doubango. ngn. sip. ngnAVSession. holdCall () Check for Returns: boolean org. doubango. ngn. sip. ngnAVSession. whether isLocalHeld () is an internal phone number Returns: boolean org. doubango. ngn. sip. ngnAVSe Ssion. whether isRemoteHeld () is a remote call Returns: boolean org. doubango. ngn. sip. ngnAVSession. whether isSendingVideo () sends the video static boolean org. doubango. ngn. sip. ngnAVSession. makeAudioCall (String remoteUri, NgnSipStack sipStack) [static] audio call Parameters: remoteUri the remote party uri. cocould be a SIP/TEL uri, nomadic number, MSISDN number ,... example: sip: test@doubango.org, tel: + 33600000000,788 88667 ,... sipStack The SIP/IMS stack to use static boolean org. doubango. ngn. sip. ngnAVSession. makeAudioVideoCall (String remoteUri, NgnSipStack sipStack) [static] Same as boolean org. doubango. ngn. sip. ngnAVSession. makeCall (String remoteUri) creates a session Parameters: remoteUri the remote party uri. cocould be a SIP/TEL uri, nomadic number, MSISDN number ,... example: sip: test@doubango.org, tel: + 33600000000,788 88667 ,... boolean or G. doubango. ngn. sip. ngnAVSession. makeVideoSharingCall (String remoteUri) starts video sharing Parameters: remoteUri the remote party uri. cocould be a SIP/TEL uri, nomadic number, MSISDN number ,... example: sip: test@doubango.org, tel: + 33600000000,788 88667 ,... boolean org. doubango. ngn. sip. ngnAVSession. resumeCall () Resume meeting boolean org. doubango. ngn. sip. ngnAVSession. sendDTMF (int digit) sends dtmf digital information Parameters: digital void Org. doubango. ngn. sip. ngnAVSession. setContext (Context context) sets the handle void org. doubango. ngn. sip. ngnAVSession. setRotation (int rot) sets the Rotation Angle of the local video void org. doubango. ngn. sip. ngnAVSession. setSpeakerphoneOn (boolean speakon) sets whether to enable the speaker void org. doubango. ngn. sip. ngnAVSession. setState (InviteState state) sets the final View org. doubango. ngn. sip. ngnAVSession. startVideoConsumerPreview () starts the final View org video. dou Bango. ngn. sip. ngnAVSession. startVideoProducerPreview () Same as void org. doubango. ngn. sip. ngnAVSession. toggleCamera () switch the camera void org. doubango. ngn. sip. ngnAVSession. toggleSpeakerphone () switch the speaker org. doubango. ngn. ngnEngine [java] synchronized boolean start () synchronized boolean stop () synchronized boolean isStarted () void setMainActivity (Activity mainActivity) Activity getMainActivity () ingn1_ati OnService getConfigurationService () extends response () INgnNetworkService getNetworkService () extends response () INgnContactService getContactService () extends getHistoryService () INgnSipService getSipService () INgnSoundService getSoundService () Class <? Extends NgnNativeService> getNativeServiceClass () Static Public Member Functions static NgnEngine getInstance () Protected Member Functions NgnEngine () [java] org. doubango. ngn. ngnEngine. ngnEngine () [protected] constructs INgnConfigurationService org by default. doubango. ngn. ngnEngine. getConfigurationService () obtains the Configuration Service INgnContactService org. doubango. ngn. ngnEngine. getContactService () obtains the contact service INgnHistoryService or G. doubango. ngn. ngnEngine. getHistoryService () obtains the record service INgnHttpClientService org. doubango. ngn. ngnEngine. getHttpClientService () gets the http interaction service static NgnEngine org. doubango. ngn. ngnEngine. getInstance () [static] Get the ngn engine instance Activity org. doubango. ngn. ngnEngine. getMainActivity () obtains the main activity Class <? Extends NgnNativeService> org. doubango. ngn. ngnEngine. getNativeServiceClass () gets the local service INgnNetworkService org. doubango. ngn. ngnEngine. getNetworkService () gets the network service INgnSipService org. doubango. ngn. ngnEngine. getSipService () gets the sip service INgnSoundService org. doubango. ngn. ngnEngine. getSoundService () obtains the sound service INgnStorageService org. doubango. ngn. ngnEngine. getStorageService () obtains the storage service synchronized boolean org. doubango. ngn. ngnEngine. whether isStarted () starts void org. doubango. ngn. ngnEngine. setMainActivity (Activity mainActivity) synchronized boolean org. doubango. ngn. ngnEngine. start () enables the engine synchronized boolean org. doubango. ngn. ngnEngine. stop () stop the engine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.