Documentation
¶
Overview ¶
Package sip provides Go bindings for android.net.sip.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type AudioCall
- func (m *AudioCall) AnswerCall(arg0 int32) error
- func (m *AudioCall) AttachCall(arg0 *jni.Object, arg1 string) error
- func (m *AudioCall) Close() error
- func (m *AudioCall) ContinueCall(arg0 int32) error
- func (m *AudioCall) EndCall() error
- func (m *AudioCall) GetLocalProfile() (*jni.Object, error)
- func (m *AudioCall) GetPeerProfile() (*jni.Object, error)
- func (m *AudioCall) GetState() (int32, error)
- func (m *AudioCall) HoldCall(arg0 int32) error
- func (m *AudioCall) IsInCall() (bool, error)
- func (m *AudioCall) IsMuted() (bool, error)
- func (m *AudioCall) IsOnHold() (bool, error)
- func (m *AudioCall) MakeCall(arg0 *jni.Object, arg1 *jni.Object, arg2 int32) error
- func (m *AudioCall) SendDtmf1(arg0 int32) error
- func (m *AudioCall) SendDtmf2_1(arg0 int32, arg1 *jni.Object) error
- func (m *AudioCall) SetListener1(arg0 *jni.Object) error
- func (m *AudioCall) SetListener2_1(arg0 *jni.Object, arg1 bool) error
- func (m *AudioCall) SetSpeakerMode(arg0 bool) error
- func (m *AudioCall) StartAudio() error
- func (m *AudioCall) ToggleMute() error
- type AudioCallListener
- func (m *AudioCallListener) OnCallBusy(arg0 *jni.Object) error
- func (m *AudioCallListener) OnCallEnded(arg0 *jni.Object) error
- func (m *AudioCallListener) OnCallEstablished(arg0 *jni.Object) error
- func (m *AudioCallListener) OnCallHeld(arg0 *jni.Object) error
- func (m *AudioCallListener) OnCalling(arg0 *jni.Object) error
- func (m *AudioCallListener) OnChanged(arg0 *jni.Object) error
- func (m *AudioCallListener) OnError(arg0 *jni.Object, arg1 int32, arg2 string) error
- func (m *AudioCallListener) OnReadyToCall(arg0 *jni.Object) error
- func (m *AudioCallListener) OnRinging(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *AudioCallListener) OnRingingBack(arg0 *jni.Object) error
- type ErrorCode
- type Exception
- type Manager
- func (m *Manager) Close(arg0 string) error
- func (m *Manager) CreateSipSession(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)
- func (m *Manager) GetCallId(arg0 *jni.Object) (string, error)
- func (m *Manager) GetOfferSessionDescription(arg0 *jni.Object) (string, error)
- func (m *Manager) GetSessionFor(arg0 *jni.Object) (*jni.Object, error)
- func (m *Manager) IsApiSupported(arg0 *jni.Object) (bool, error)
- func (m *Manager) IsIncomingCallIntent(arg0 *jni.Object) (bool, error)
- func (m *Manager) IsOpened(arg0 string) (bool, error)
- func (m *Manager) IsRegistered(arg0 string) (bool, error)
- func (m *Manager) IsSipWifiOnly(arg0 *jni.Object) (bool, error)
- func (m *Manager) IsVoipSupported(arg0 *jni.Object) (bool, error)
- func (m *Manager) MakeAudioCall4(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 int32) (*jni.Object, error)
- func (m *Manager) MakeAudioCall4_1(arg0 string, arg1 string, arg2 *jni.Object, arg3 int32) (*jni.Object, error)
- func (m *Manager) NewInstance(arg0 *jni.Object) (*jni.Object, error)
- func (m *Manager) Open1(arg0 *jni.Object) error
- func (m *Manager) Open3_1(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) error
- func (m *Manager) Register(arg0 *jni.Object, arg1 int32, arg2 *jni.Object) error
- func (m *Manager) SetRegistrationListener(arg0 string, arg1 *jni.Object) error
- func (m *Manager) TakeAudioCall(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)
- func (m *Manager) Unregister(arg0 *jni.Object, arg1 *jni.Object) error
- type Profile
- func (m *Profile) DescribeContents() (int32, error)
- func (m *Profile) GetAuthUserName() (string, error)
- func (m *Profile) GetAutoRegistration() (bool, error)
- func (m *Profile) GetDisplayName() (string, error)
- func (m *Profile) GetPassword() (string, error)
- func (m *Profile) GetPort() (int32, error)
- func (m *Profile) GetProfileName() (string, error)
- func (m *Profile) GetProtocol() (string, error)
- func (m *Profile) GetProxyAddress() (string, error)
- func (m *Profile) GetSendKeepAlive() (bool, error)
- func (m *Profile) GetSipDomain() (string, error)
- func (m *Profile) GetUriString() (string, error)
- func (m *Profile) GetUserName() (string, error)
- func (m *Profile) SetCallingUid(arg0 int32) error
- func (m *Profile) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type ProfileBuilder
- func (m *ProfileBuilder) Build() (*jni.Object, error)
- func (m *ProfileBuilder) SetAuthUserName(arg0 string) (*jni.Object, error)
- func (m *ProfileBuilder) SetAutoRegistration(arg0 bool) (*jni.Object, error)
- func (m *ProfileBuilder) SetDisplayName(arg0 string) (*jni.Object, error)
- func (m *ProfileBuilder) SetOutboundProxy(arg0 string) (*jni.Object, error)
- func (m *ProfileBuilder) SetPassword(arg0 string) (*jni.Object, error)
- func (m *ProfileBuilder) SetPort(arg0 int32) (*jni.Object, error)
- func (m *ProfileBuilder) SetProfileName(arg0 string) (*jni.Object, error)
- func (m *ProfileBuilder) SetProtocol(arg0 string) (*jni.Object, error)
- func (m *ProfileBuilder) SetSendKeepAlive(arg0 bool) (*jni.Object, error)
- type RegistrationListener
- type Session
- func (m *Session) AnswerCall(arg0 string, arg1 int32) error
- func (m *Session) ChangeCall(arg0 string, arg1 int32) error
- func (m *Session) EndCall() error
- func (m *Session) GetCallId() (string, error)
- func (m *Session) GetLocalIp() (string, error)
- func (m *Session) GetLocalProfile() (*jni.Object, error)
- func (m *Session) GetPeerProfile() (*jni.Object, error)
- func (m *Session) GetState() (int32, error)
- func (m *Session) IsInCall() (bool, error)
- func (m *Session) MakeCall(arg0 *jni.Object, arg1 string, arg2 int32) error
- func (m *Session) Register(arg0 int32) error
- func (m *Session) SetListener(arg0 *jni.Object) error
- func (m *Session) Unregister() error
- type SessionListener
- func (m *SessionListener) OnCallBusy(arg0 *jni.Object) error
- func (m *SessionListener) OnCallChangeFailed(arg0 *jni.Object, arg1 int32, arg2 string) error
- func (m *SessionListener) OnCallEnded(arg0 *jni.Object) error
- func (m *SessionListener) OnCallEstablished(arg0 *jni.Object, arg1 string) error
- func (m *SessionListener) OnCalling(arg0 *jni.Object) error
- func (m *SessionListener) OnError(arg0 *jni.Object, arg1 int32, arg2 string) error
- func (m *SessionListener) OnRegistering(arg0 *jni.Object) error
- func (m *SessionListener) OnRegistrationDone(arg0 *jni.Object, arg1 int32) error
- func (m *SessionListener) OnRegistrationFailed(arg0 *jni.Object, arg1 int32, arg2 string) error
- func (m *SessionListener) OnRegistrationTimeout(arg0 *jni.Object) error
- func (m *SessionListener) OnRinging(arg0 *jni.Object, arg1 *jni.Object, arg2 string) error
- func (m *SessionListener) OnRingingBack(arg0 *jni.Object) error
- type SessionState
Constants ¶
const ( Deregistering = consts.Deregistering IncomingCall = consts.IncomingCall IncomingCallAnswering = consts.IncomingCallAnswering InCall = consts.InCall NotDefined = consts.NotDefined OutgoingCall = consts.OutgoingCall OutgoingCallCanceling = consts.OutgoingCallCanceling OutgoingCallRingBack = consts.OutgoingCallRingBack Pinging = consts.Pinging ReadyToCall = consts.ReadyToCall Registering = consts.Registering IncomingCallResultCode = consts.IncomingCallResultCode Creator = consts.Creator ClientError = consts.ClientError CrossDomainAuthentication = consts.CrossDomainAuthentication DataConnectionLost = consts.DataConnectionLost InvalidCredentials = consts.InvalidCredentials InvalidRemoteUri = consts.InvalidRemoteUri InProgress = consts.InProgress NoError = consts.NoError PeerNotReachable = consts.PeerNotReachable ServerError = consts.ServerError ServerUnreachable = consts.ServerUnreachable SocketError = consts.SocketError TimeOut = consts.TimeOut TransactionTerminted = consts.TransactionTerminted )
const ( ExtraCallId = consts.ExtraCallId ExtraOfferSd = consts.ExtraOfferSd )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AudioCall ¶
AudioCall wraps android.net.sip.SipAudioCall.
func NewAudioCall ¶
NewAudioCall creates a new android.net.sip.SipAudioCall instance.
func (*AudioCall) AnswerCall ¶
AnswerCall calls android.net.sip.SipAudioCall.answerCall.
func (*AudioCall) AttachCall ¶
AttachCall calls android.net.sip.SipAudioCall.attachCall.
func (*AudioCall) ContinueCall ¶
ContinueCall calls android.net.sip.SipAudioCall.continueCall.
func (*AudioCall) GetLocalProfile ¶
GetLocalProfile calls android.net.sip.SipAudioCall.getLocalProfile.
func (*AudioCall) GetPeerProfile ¶
GetPeerProfile calls android.net.sip.SipAudioCall.getPeerProfile.
func (*AudioCall) SendDtmf2_1 ¶
SendDtmf2_1 calls android.net.sip.SipAudioCall.sendDtmf.
func (*AudioCall) SetListener1 ¶
SetListener1 calls android.net.sip.SipAudioCall.setListener.
func (*AudioCall) SetListener2_1 ¶
SetListener2_1 calls android.net.sip.SipAudioCall.setListener.
func (*AudioCall) SetSpeakerMode ¶
SetSpeakerMode calls android.net.sip.SipAudioCall.setSpeakerMode.
func (*AudioCall) StartAudio ¶
StartAudio calls android.net.sip.SipAudioCall.startAudio.
func (*AudioCall) ToggleMute ¶
ToggleMute calls android.net.sip.SipAudioCall.toggleMute.
type AudioCallListener ¶
AudioCallListener wraps android.net.sip.SipAudioCall$Listener.
func (*AudioCallListener) OnCallBusy ¶
func (m *AudioCallListener) OnCallBusy(arg0 *jni.Object) error
OnCallBusy calls android.net.sip.SipAudioCall$Listener.onCallBusy.
func (*AudioCallListener) OnCallEnded ¶
func (m *AudioCallListener) OnCallEnded(arg0 *jni.Object) error
OnCallEnded calls android.net.sip.SipAudioCall$Listener.onCallEnded.
func (*AudioCallListener) OnCallEstablished ¶
func (m *AudioCallListener) OnCallEstablished(arg0 *jni.Object) error
OnCallEstablished calls android.net.sip.SipAudioCall$Listener.onCallEstablished.
func (*AudioCallListener) OnCallHeld ¶
func (m *AudioCallListener) OnCallHeld(arg0 *jni.Object) error
OnCallHeld calls android.net.sip.SipAudioCall$Listener.onCallHeld.
func (*AudioCallListener) OnCalling ¶
func (m *AudioCallListener) OnCalling(arg0 *jni.Object) error
OnCalling calls android.net.sip.SipAudioCall$Listener.onCalling.
func (*AudioCallListener) OnChanged ¶
func (m *AudioCallListener) OnChanged(arg0 *jni.Object) error
OnChanged calls android.net.sip.SipAudioCall$Listener.onChanged.
func (*AudioCallListener) OnReadyToCall ¶
func (m *AudioCallListener) OnReadyToCall(arg0 *jni.Object) error
OnReadyToCall calls android.net.sip.SipAudioCall$Listener.onReadyToCall.
func (*AudioCallListener) OnRinging ¶
OnRinging calls android.net.sip.SipAudioCall$Listener.onRinging.
func (*AudioCallListener) OnRingingBack ¶
func (m *AudioCallListener) OnRingingBack(arg0 *jni.Object) error
OnRingingBack calls android.net.sip.SipAudioCall$Listener.onRingingBack.
type Manager ¶
Manager wraps android.net.sip.SipManager.
func (*Manager) CreateSipSession ¶
CreateSipSession calls android.net.sip.SipManager.createSipSession.
func (*Manager) GetOfferSessionDescription ¶
GetOfferSessionDescription calls android.net.sip.SipManager.getOfferSessionDescription.
func (*Manager) GetSessionFor ¶
GetSessionFor calls android.net.sip.SipManager.getSessionFor.
func (*Manager) IsApiSupported ¶
IsApiSupported calls android.net.sip.SipManager.isApiSupported.
func (*Manager) IsIncomingCallIntent ¶
IsIncomingCallIntent calls android.net.sip.SipManager.isIncomingCallIntent.
func (*Manager) IsRegistered ¶
IsRegistered calls android.net.sip.SipManager.isRegistered.
func (*Manager) IsSipWifiOnly ¶
IsSipWifiOnly calls android.net.sip.SipManager.isSipWifiOnly.
func (*Manager) IsVoipSupported ¶
IsVoipSupported calls android.net.sip.SipManager.isVoipSupported.
func (*Manager) MakeAudioCall4 ¶
func (m *Manager) MakeAudioCall4( arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 int32, ) (*jni.Object, error)
MakeAudioCall4 calls android.net.sip.SipManager.makeAudioCall.
func (*Manager) MakeAudioCall4_1 ¶
func (m *Manager) MakeAudioCall4_1( arg0 string, arg1 string, arg2 *jni.Object, arg3 int32, ) (*jni.Object, error)
MakeAudioCall4_1 calls android.net.sip.SipManager.makeAudioCall.
func (*Manager) NewInstance ¶
NewInstance calls android.net.sip.SipManager.newInstance.
func (*Manager) SetRegistrationListener ¶
SetRegistrationListener calls android.net.sip.SipManager.setRegistrationListener.
func (*Manager) TakeAudioCall ¶
TakeAudioCall calls android.net.sip.SipManager.takeAudioCall.
type Profile ¶
Profile wraps android.net.sip.SipProfile.
func (*Profile) DescribeContents ¶
DescribeContents calls android.net.sip.SipProfile.describeContents.
func (*Profile) GetAuthUserName ¶
GetAuthUserName calls android.net.sip.SipProfile.getAuthUserName.
func (*Profile) GetAutoRegistration ¶
GetAutoRegistration calls android.net.sip.SipProfile.getAutoRegistration.
func (*Profile) GetDisplayName ¶
GetDisplayName calls android.net.sip.SipProfile.getDisplayName.
func (*Profile) GetPassword ¶
GetPassword calls android.net.sip.SipProfile.getPassword.
func (*Profile) GetProfileName ¶
GetProfileName calls android.net.sip.SipProfile.getProfileName.
func (*Profile) GetProtocol ¶
GetProtocol calls android.net.sip.SipProfile.getProtocol.
func (*Profile) GetProxyAddress ¶
GetProxyAddress calls android.net.sip.SipProfile.getProxyAddress.
func (*Profile) GetSendKeepAlive ¶
GetSendKeepAlive calls android.net.sip.SipProfile.getSendKeepAlive.
func (*Profile) GetSipDomain ¶
GetSipDomain calls android.net.sip.SipProfile.getSipDomain.
func (*Profile) GetUriString ¶
GetUriString calls android.net.sip.SipProfile.getUriString.
func (*Profile) GetUserName ¶
GetUserName calls android.net.sip.SipProfile.getUserName.
func (*Profile) SetCallingUid ¶
SetCallingUid calls android.net.sip.SipProfile.setCallingUid.
type ProfileBuilder ¶
ProfileBuilder wraps android.net.sip.SipProfile$Builder.
func (*ProfileBuilder) Build ¶
func (m *ProfileBuilder) Build() (*jni.Object, error)
Build calls android.net.sip.SipProfile$Builder.build.
func (*ProfileBuilder) SetAuthUserName ¶
func (m *ProfileBuilder) SetAuthUserName(arg0 string) (*jni.Object, error)
SetAuthUserName calls android.net.sip.SipProfile$Builder.setAuthUserName.
func (*ProfileBuilder) SetAutoRegistration ¶
func (m *ProfileBuilder) SetAutoRegistration(arg0 bool) (*jni.Object, error)
SetAutoRegistration calls android.net.sip.SipProfile$Builder.setAutoRegistration.
func (*ProfileBuilder) SetDisplayName ¶
func (m *ProfileBuilder) SetDisplayName(arg0 string) (*jni.Object, error)
SetDisplayName calls android.net.sip.SipProfile$Builder.setDisplayName.
func (*ProfileBuilder) SetOutboundProxy ¶
func (m *ProfileBuilder) SetOutboundProxy(arg0 string) (*jni.Object, error)
SetOutboundProxy calls android.net.sip.SipProfile$Builder.setOutboundProxy.
func (*ProfileBuilder) SetPassword ¶
func (m *ProfileBuilder) SetPassword(arg0 string) (*jni.Object, error)
SetPassword calls android.net.sip.SipProfile$Builder.setPassword.
func (*ProfileBuilder) SetPort ¶
func (m *ProfileBuilder) SetPort(arg0 int32) (*jni.Object, error)
SetPort calls android.net.sip.SipProfile$Builder.setPort.
func (*ProfileBuilder) SetProfileName ¶
func (m *ProfileBuilder) SetProfileName(arg0 string) (*jni.Object, error)
SetProfileName calls android.net.sip.SipProfile$Builder.setProfileName.
func (*ProfileBuilder) SetProtocol ¶
func (m *ProfileBuilder) SetProtocol(arg0 string) (*jni.Object, error)
SetProtocol calls android.net.sip.SipProfile$Builder.setProtocol.
func (*ProfileBuilder) SetSendKeepAlive ¶
func (m *ProfileBuilder) SetSendKeepAlive(arg0 bool) (*jni.Object, error)
SetSendKeepAlive calls android.net.sip.SipProfile$Builder.setSendKeepAlive.
type RegistrationListener ¶
RegistrationListener wraps android.net.sip.SipRegistrationListener.
func (*RegistrationListener) OnRegistering ¶
func (m *RegistrationListener) OnRegistering(arg0 string) error
OnRegistering calls android.net.sip.SipRegistrationListener.onRegistering.
func (*RegistrationListener) OnRegistrationDone ¶
func (m *RegistrationListener) OnRegistrationDone(arg0 string, arg1 int64) error
OnRegistrationDone calls android.net.sip.SipRegistrationListener.onRegistrationDone.
func (*RegistrationListener) OnRegistrationFailed ¶
func (m *RegistrationListener) OnRegistrationFailed( arg0 string, arg1 int32, arg2 string, ) error
OnRegistrationFailed calls android.net.sip.SipRegistrationListener.onRegistrationFailed.
type Session ¶
Session wraps android.net.sip.SipSession.
func (*Session) AnswerCall ¶
AnswerCall calls android.net.sip.SipSession.answerCall.
func (*Session) ChangeCall ¶
ChangeCall calls android.net.sip.SipSession.changeCall.
func (*Session) GetLocalIp ¶
GetLocalIp calls android.net.sip.SipSession.getLocalIp.
func (*Session) GetLocalProfile ¶
GetLocalProfile calls android.net.sip.SipSession.getLocalProfile.
func (*Session) GetPeerProfile ¶
GetPeerProfile calls android.net.sip.SipSession.getPeerProfile.
func (*Session) SetListener ¶
SetListener calls android.net.sip.SipSession.setListener.
func (*Session) Unregister ¶
Unregister calls android.net.sip.SipSession.unregister.
type SessionListener ¶
SessionListener wraps android.net.sip.SipSession$Listener.
func (*SessionListener) OnCallBusy ¶
func (m *SessionListener) OnCallBusy(arg0 *jni.Object) error
OnCallBusy calls android.net.sip.SipSession$Listener.onCallBusy.
func (*SessionListener) OnCallChangeFailed ¶
OnCallChangeFailed calls android.net.sip.SipSession$Listener.onCallChangeFailed.
func (*SessionListener) OnCallEnded ¶
func (m *SessionListener) OnCallEnded(arg0 *jni.Object) error
OnCallEnded calls android.net.sip.SipSession$Listener.onCallEnded.
func (*SessionListener) OnCallEstablished ¶
func (m *SessionListener) OnCallEstablished(arg0 *jni.Object, arg1 string) error
OnCallEstablished calls android.net.sip.SipSession$Listener.onCallEstablished.
func (*SessionListener) OnCalling ¶
func (m *SessionListener) OnCalling(arg0 *jni.Object) error
OnCalling calls android.net.sip.SipSession$Listener.onCalling.
func (*SessionListener) OnRegistering ¶
func (m *SessionListener) OnRegistering(arg0 *jni.Object) error
OnRegistering calls android.net.sip.SipSession$Listener.onRegistering.
func (*SessionListener) OnRegistrationDone ¶
func (m *SessionListener) OnRegistrationDone(arg0 *jni.Object, arg1 int32) error
OnRegistrationDone calls android.net.sip.SipSession$Listener.onRegistrationDone.
func (*SessionListener) OnRegistrationFailed ¶
OnRegistrationFailed calls android.net.sip.SipSession$Listener.onRegistrationFailed.
func (*SessionListener) OnRegistrationTimeout ¶
func (m *SessionListener) OnRegistrationTimeout(arg0 *jni.Object) error
OnRegistrationTimeout calls android.net.sip.SipSession$Listener.onRegistrationTimeout.
func (*SessionListener) OnRingingBack ¶
func (m *SessionListener) OnRingingBack(arg0 *jni.Object) error
OnRingingBack calls android.net.sip.SipSession$Listener.onRingingBack.