LinuxSDK  V1.4.0.5
Data Structures | Macros | Enumerations | Functions
SwiApiGsmVoice.h File Reference

This file contains definitions, enumerations, structures and forward declarations for SwiApiGsmVoice.c file. More...

#include "SwiDataTypes.h"
#include "SwiRcodes.h"
#include "SwiApiGsmSs.h"

Go to the source code of this file.

Data Structures

struct  SWI_STRUCT_MicMute
 
struct  SWI_STRUCT_GSM_SpeakerVolume
 
struct  SWI_STRUCT_GSM_SpeakerMute
 
struct  SWI_STRUCT_NVToneStore
 
struct  SWI_STRUCT_AudioProfile
 
struct  SWI_STRUCT_CLIR_Setting
 
struct  SWI_STRUCT_VoiceMessage
 
struct  SWI_STRUCT_MissedCall
 
struct  SWI_STRUCT_CALL_Create
 
struct  SWI_STRUCT_CALL_EXP_Progress
 
struct  SWI_STRUCT_CallForwarded
 
struct  SWI_STRUCT_CALL_State
 
struct  SWI_STRUCT_CALL_Status
 
struct  SWI_STRUCT_DTMFSend
 
struct  SWI_STRUCT_CALL_UMTS_Control
 
struct  SWI_STRUCT_ContDtmf
 
struct  SWI_STRUCT_CFIcon
 
struct  SWI_STRUCT_SS_Request
 
struct  SWI_STRUCT_SS_Abort
 
struct  SWI_STRUCT_SS_PasswordReg
 
struct  SWI_STRUCT_SS_PasswordStatus
 
struct  SWI_STRUCT_SS_RespOK
 
struct  STRUCT_SS_FwdInfo
 
struct  SWI_STRUCT_SS_RespFwdInfo
 
struct  STRUCT_SS_CALL_BAR
 
struct  SWI_STRUCT_SS_RespCallBar
 
struct  STRUCT_SS_BasicServiceGroup
 
struct  SWI_STRUCT_SS_RespInfoData
 
struct  SWI_STRUCT_SS_RespStatus
 
struct  SWI_STRUCT_SS_RespFwdNum
 
struct  SWI_STRUCT_SS_RespBSList
 
struct  SWI_STRUCT_SS_RespListFwdInfo
 
struct  SWI_STRUCT_SS_RespRaw
 
struct  SWI_STRUCT_SS_RespPassword
 
struct  SWI_STRUCT_SS_RespClir
 
struct  SubscriptionViolation
 
struct  IncompatibilityReason
 
union  ErrorCause
 
struct  SWI_STRUCT_SS_RespError
 
struct  SWI_STRUCT_SS_RespReject
 
struct  SWI_STRUCT_SS_RespCancel
 
struct  SWI_STRUCT_SS_RespRelease
 
struct  SWI_STRUCT_SSNotify
 

Macros

#define LENGTH_MaxPhone   20
 
#define LENGTH_CallerNameVoice   (80 * UTF8_MAX_CHAR_SIZE) + 1
 
#define MAX_CALLS   7
 
#define LENGTH_ForwardNumber   38
 
#define LENGTH_SSString   40
 
#define LENGTH_SSPassword   4
 
#define LENGTH_ForwardInfo   18
 
#define MAX_FWD_INFO_ENTRIES   8
 
#define MAX_INFO_DATA   70
 
#define MAX_BS_LIST   70
 
#define LENGTH_RawData   229
 

Enumerations

enum  SWI_TYPE_SS_ServiceStatus { SWI_STATUS_ServActiveMask = 0x01, SWI_STATUS_ServRegisteredMask = 0x02, SWI_STATUS_ServProvMask = 0x04, SWI_STATUS_ServQuiescentMask = 0x08 }
 
enum  SWI_TYPE_SS_SubsOptionType { SWI_SUBSOPTIONTYPE_Override = 0x01, SWI_SUBSOPTIONTYPE_CLIR }
 
enum  SWI_TYPE_SS_SubsOptionCode {
  SWI_SUBSOPTIONCODE_OverrideEnabled = 0x00, SWI_SUBSOPTIONCODE_OverrideDisabled = 0x01, SWI_SUBSOPTIONCODE_ClirPermanent = 0x00, SWI_SUBSOPTIONCODE_TempCallIdRestrict = 0x01,
  SWI_SUBSOPTIONCODE_TempCallIdAllow = 0x02
}
 
enum  SWI_TYPE_SS_ForwardOption {
  SWI_FORWARDOPTION_NotifyFwdParyMask = 0x80, SWI_FORWARDOPTION_NotifyCalledPartyMask = 0x20, SWI_FORWARDOPTION_MobileNotReachMask = 0x00, SWI_FORWARDOPTION_FwdBusyMask = 0x04,
  SWI_FORWARDOPTION_FwdNotReach = 0x08, SWI_FORWARDOPTION_FwdAllCalls = 0x0C
}
 
enum  SWI_TYPE_SS_CLIRSetting { SWI_CLIRSETTING_Permanent, SWI_CLIRSETTING_TempCallIdRestrict, SWI_CLIRSETTING_TempCallIdAllow }
 
enum  SWI_TYPE_SS_ErrorCode {
  SWI_ERRORCODE_UnknownSubs = 0x01, SWI_ERRORCODE_IllegalSubs = 0x09, SWI_ERRORCODE_BearServNotProv, SWI_ERRORCODE_TellServNotProv,
  SWI_ERRORCODE_IllegalEquip, SWI_ERRORCODE_CallBarred, SWI_ERRORCODE_IllegalOper = 0x10, SWI_ERRORCODE_ErrorStatus,
  SWI_ERRORCODE_NotAvail, SWI_ERRORCODE_SubsViolate, SWI_ERRORCODE_Incompatible, SWI_ERRORCODE_FacilityNotSup,
  SWI_ERRORCODE_AbsentSubs = 0x1B, SWI_ERRORCODE_SystemFail = 0x22, SWI_ERRORCODE_DataMissing, SWI_ERRORCODE_UnexpectValue,
  SWI_ERRORCODE_PasswdRegFail, SWI_ERRORCODE_NegPasswdChk, SWI_ERRORCODE_NumPasswdViolate = 0x2B, SWI_ERRORCODE_UnknownAlphabet = 0x47,
  SWI_ERRORCODE_UssdBusy, SWI_ERRORCODE_MaxMultiExceed = 0x7E, SWI_ERRORCODE_ResourceNotAvail
}
 
enum  SWI_TYPE_SS_ErrorType {
  SWI_ERRORTYPE_NoInfo, SWI_ERRORTYPE_CallBarring, SWI_ERRORTYPE_Status, SWI_ERRORTYPE_SubsViolate,
  SWI_ERRORTYPE_AbsentSubs, SWI_ERRORTYPE_SystemFail, SWI_ERRORTYPE_PasswdRegFail, SWI_ERRORTYPE_Incompatible
}
 
enum  SWI_TYPE_SS_CallBar { SWI_CALLBAR_Active, SWI_CALLBAR_OperatorBarring }
 
enum  SWI_TYPE_SS_SystemFail {
  SWI_SYSTEMFAIL_Plmn, SWI_SYSTEMFAIL_Hlr, SWI_SYSTEMFAIL_Vlr, SWI_SYSTEMFAIL_Pvlr,
  SWI_SYSTEMFAIL_ControlMsc, SWI_SYSTEMFAIL_VisitMsc, SWI_SYSTEMFAIL_Eir, SWI_SYSTEMFAIL_Rss
}
 
enum  SWI_TYPE_SS_PasswdRegFail { SWI_PASSWDFAILREASON_Undetermined, SWI_PASSWDFAILREASON_InvalidFormat, SWI_PASSWDFAILREASON_NewMismatch }
 
enum  SWI_TYPE_SS_ProblemType { SWI_PROBLEMTYPE_General, SWI_PROBLEMTYPE_Invoke, SWI_PROBLEMTYPE_ReturnResult, SWI_PROBLEMTYPE_ReturnError }
 
enum  SWI_TYPE_SS_RejectCode {
  SWI_REJECTCODE_GeneralUnrecognize = 0x00, SWI_REJECTCODE_GeneralMistype = 0x01, SWI_REJECTCODE_GeneralBadStruct = 0x02, SWI_REJECTCODE_InvokeDupId = 0x00,
  SWI_REJECTCODE_InvokeUnrecognizeId = 0x01, SWI_REJECTCODE_InvokeMistype = 0x02, SWI_REJECTCODE_InvokeResource = 0x03, SWI_REJECTCODE_InvokeInitRelease = 0x04,
  SWI_REJECTCODE_InvokeUnrecognizeLink = 0x05, SWI_REJECTCODE_InvokeLinkRspUnexpect = 0x06, SWI_REJECTCODE_InvokeLinkOpUnexpect = 0x07, SWI_REJECTCODE_ResultUnrecognizeId = 0x00,
  SWI_REJECTCODE_ResultUnexpected = 0x01, SWI_REJECTCODE_ResultMistype = 0x02, SWI_REJECTCODE_ErrorUnrecognizeId = 0x00, SWI_REJECTCODE_ErrorUnexpected = 0x01,
  SWI_REJECTCODE_ErrorUnrecognizedErr = 0x02, SWI_REJECTCODE_ErrorUnexpectedErr = 0x03, SWI_REJECTCODE_ErrorMistype = 0x04
}
 
enum  SWI_TYPE_SS_CancelReason {
  SWI_CANCELREASON_NoPipes, SWI_CANCELREASON_OngoingTrans, SWI_CANCELREASON_MnssReject, SWI_CANCELREASON_NoControl,
  SWI_CANCELREASON_InvalidId
}
 
enum  SWI_TYPE_SS_PasswordGuidance {
  SWI_SSPASSWORDGUIDANCE_Password, SWI_SSPASSWORDGUIDANCE_NewPassword, SWI_SSPASSWORDGUIDANCE_NewPasswordAgain, SWI_SSPASSWORDGUIDANCE_BadPassword,
  SWI_SSPASSWORDGUIDANCE_BadPasswordFormat
}
 
enum  SWI_TYPE_SS_ServiceCode {
  SWI_SERVCODE_AllServices, SWI_SERVCODE_AllLineIdServices = 0x10, SWI_SERVCODE_CallerIdPresent, SWI_SERVCODE_CallerIdRestrict,
  SWI_SERVCODE_ConnectIdPresent, SWI_SERVCODE_ConnectIdRestrict, SWI_SERVCODE_MCI, SWI_SERVCODE_CallingNamePresent = 0x19,
  SWI_SERVCODE_CallFwdAllServices = 0x20, SWI_SERVCODE_CallFwdUnconditional, SWI_SERVCODE_CallFwdAllConditional = 0x28, SWI_SERVCODE_CallFwdBusy,
  SWI_SERVCODE_CallFwdNoReply = 0x2A, SWI_SERVCODE_CallFwdNotReachable, SWI_SERVCODE_AllCallOffering = 0x30, SWI_SERVCODE_CT,
  SWI_SERVCODE_MAH, SWI_SERVCODE_AllCallComplete = 0x40, SWI_SERVCODE_CallWaiting, SWI_SERVCODE_CallHold,
  SWI_SERVCODE_CompletionBusySubsciber, SWI_SERVCODE_AllMultiparty = 0x50, SWI_SERVCODE_Multiply, SWI_SERVCODE_ALL_COMM_OF_INT = 0x60,
  SWI_SERVCODE_ClosedUserGroup, SWI_SERVCODE_AllCharging = 0x70, SWI_SERVCODE_AdviceChargeInfo, SWI_SERVCODE_AdviceChargeCharging,
  SWI_SERVCODE_AllAdditionalInfo = 0x80, SWI_SERVCODE_UserToUserSignalling, SWI_SERVCODE_AllCallRestriction = 0x90, SWI_SERVCODE_BarrOutgoing,
  SWI_SERVCODE_BarrAllOutgoing, SWI_SERVCODE_BarrOutgoingInter, SWI_SERVCODE_BarrOutgoingInterExcept, SWI_SERVCODE_BarrIncoming = 0x99,
  SWI_SERVCODE_BarrAllIncoming, SWI_SERVCODE_BarrIncomingRoam, SWI_SERVCODE_PLMNAllSpecific = 0xF0, SWI_SERVCODE_PLMNSpecific1,
  SWI_SERVCODE_PLMNSpecific2, SWI_SERVCODE_PLMNSpecific3, SWI_SERVCODE_PLMNSpecific4, SWI_SERVCODE_PLMNSpecific5,
  SWI_SERVCODE_PLMNSpecific6, SWI_SERVCODE_PLMNSpecific7, SWI_SERVCODE_PLMNSpecific8, SWI_SERVCODE_PLMNSpecific9,
  SWI_SERVCODE_PLMNSpecificA, SWI_SERVCODE_PLMNSpecificB, SWI_SERVCODE_PLMNSpecificC, SWI_SERVCODE_PLMNSpecificD,
  SWI_SERVCODE_PLMNSpecificE, SWI_SERVCODE_PLMNSpecificF
}
 
enum  SWI_TYPE_SS_BasicServGrpType { SWI_BASICSERVGRPTYPE_TeleServices, SWI_BASICSERVGRPTYPE_BearerServices }
 
enum  SWI_TYPE_SS_RequestType {
  SWI_SSREQUESTTYPE_Erase = 0x01, SWI_SSREQUESTTYPE_Activate, SWI_SSREQUESTTYPE_Deactivate, SWI_SSREQUESTTYPE_Interrogate,
  SWI_SSREQUESTTYPE_Register
}
 
enum  SWI_TYPE_UMTS_CallControl {
  SWI_CALL_CONTROL_UMTS_RelAllHeld, SWI_CALL_CONTROL_UMTS_RelAllActAccHeldWait, SWI_CALL_CONTROL_UMTS_ReleaseCallX, SWI_CALL_CONTROL_UMTS_HoldAllActAccHeldWait,
  SWI_CALL_CONTROL_UMTS_HoldAllActExceptCallX, SWI_CALL_CONTROL_UMTS_AddHeldCall, SWI_CALL_CONTROL_UMTS_ConTwoCallsAndDiscon, SWI_CALL_CONTROL_UMTS_DisconnectAll
}
 
enum  SWI_TYPE_GSM_CallState {
  SWI_CALLSTATE_Null, SWI_CALLSTATE_Connecting, SWI_CALLSTATE_Queued, SWI_CALLSTATE_Waiting,
  SWI_CALLSTATE_Alerting, SWI_CALLSTATE_Connected, SWI_CALLSTATE_Disconnecting
}
 
enum  SWI_TYPE_CallProgress {
  SWI_CALL_PROGRESS_Failed, SWI_CALL_PROGRESS_Connecting, SWI_CALL_PROGRESS_Queued, SWI_CALL_PROGRESS_Waiting,
  SWI_CALL_PROGRESS_Incoming, SWI_CALL_PROGRESS_Ringing, SWI_CALL_PROGRESS_Connected, SWI_CALL_PROGRESS_Disconnecting,
  SWI_CALL_PROGRESS_Disconnected, SWI_CALL_PROGRESS_Forwarded
}
 
enum  SWI_TYPE_GSM_CallError {
  SWI_CALL_ERROR_OK, SWI_CALL_ERROR_SubsciberBusy, SWI_CALL_ERROR_Congestions, SWI_CALL_ERROR_RadioPathUnavail,
  SWI_CALL_ERROR_Error, SWI_CALL_ERROR_NumberUnobtain, SWI_CALL_ERROR_AuthFailure, SWI_CALL_ERROR_NoNumber,
  SWI_CALL_ERROR_BckgndCallCtrlFail, SWI_CALL_ERROR_BckgndMMFail, SWI_CALL_ERROR_ChannelBusy, SWI_CALL_ERROR_FDNMismatch,
  SWI_CALL_ERROR_BCFail, SWI_CALL_ERROR_EmergencyOnly, SWI_CALL_ERROR_ACMExceeded, SWI_CALL_ERROR_HoldError,
  SWI_CALL_ERROR_BusyProcReq, SWI_CALL_ERROR_ChannelUnavail, SWI_CALL_ERROR_OutgoingBarred, SWI_CALL_ERROR_NumberBlacklisted,
  SWI_CALL_ERROR_BlackListFull, SWI_CALL_ERROR_RedialNotTimedOut, SWI_CALL_ERROR_ModifyFail, SWI_CALL_ERROR_NotInControl,
  SWI_CALL_ERROR_NoCauseCode, SWI_CALL_ERROR_CallBarred
}
 
enum  SWI_TYPE_CallPresentation { SWI_CALL_PRESENTATION_Number, SWI_CALL_PRESENTATION_Restricted, SWI_CALL_PRESENTATION_NoAvail }
 
enum  SWI_TYPE_CallScreening { SWI_CALL_SCREENING_NotScreened, SWI_CALL_SCREENING_Passed, SWI_CALL_SCREENING_Failed, SWI_CALL_SCREENING_Network }
 
enum  SWI_TYPE_GSM_CallType { SWI_CALL_TYPE_VoiceCallLine1, SWI_CALL_TYPE_VoiceCallLine2, SWI_CALL_TYPE_CSD, SWI_CALL_TYPE_FAX }
 
enum  SWI_TYPE_CallValid { SWI_CALL_VALID_NoInfo, SWI_CALL_VALID_InfoValid }
 
enum  SWI_TYPE_CallRestrict { SWI_CALL_RESTRICT_Default, SWI_CALL_RESTRICT_Allowed, SWI_CALL_RESTRICT_Restricted, SWI_CALL_RESTRICT_Unknown }
 
enum  SWI_TYPE_ToneLength { SWI_TONELENGTH_Short, SWI_TONELENGTH_Medium, SWI_TONELENGTH_Long, SWI_TONELENGTH_UserDefined }
 
enum  SWI_TYPE_AudioProfile {
  SWI_AUDIOPROFILE_Handset, SWI_AUDIOPROFILE_Headset, SWI_AUDIOPROFILE_SpeakerPhone, SWI_AUDIOPROFILE_CarKit,
  SWI_AUDIOPROFILE_TtyFullAudio, SWI_AUDIOPROFILE_TtyTalkAudio, SWI_AUDIOPROFILE_TtyHearAudio
}
 
enum  SWI_TYPE_AudioVolLevel {
  SWI_AUDIOVOLLEVEL_0, SWI_AUDIOVOLLEVEL_1, SWI_AUDIOVOLLEVEL_2, SWI_AUDIOVOLLEVEL_3,
  SWI_AUDIOVOLLEVEL_4, SWI_AUDIOVOLLEVEL_5, SWI_AUDIOVOLLEVEL_6, SWI_AUDIOVOLLEVEL_7
}
 
enum  SWI_TYPE_AudioGen { SWI_AUDIOGEN_Voice, SWI_AUDIOGEN_KeyBeep, SWI_AUDIOGEN_Midi }
 
enum  SWI_TYPE_AudioResult { SWI_AUDIORESULT_Success, SWI_AUDIORESULT_InvalidSetting }
 

Functions

SWI_API SWI_RCODE SwiGetGsmSpeakerVolume (struct SWI_STRUCT_GSM_SpeakerVolume *sSpeakerVolume, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetGsmSpeakerVolume (struct SWI_STRUCT_GSM_SpeakerVolume *sSpeakerVolume, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetMicMute (struct SWI_STRUCT_MicMute *pMicMute, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetMicMute (struct SWI_STRUCT_MicMute *pMicMute, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetSpeakerMute (struct SWI_STRUCT_GSM_SpeakerMute *pSpeakerMute, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetSpeakerMute (struct SWI_STRUCT_GSM_SpeakerMute *pSpeakerMute, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetNVToneStore (struct SWI_STRUCT_NVToneStore *pToneLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetNVToneStore (struct SWI_STRUCT_NVToneStore *pToneLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetAudioProfile (struct SWI_STRUCT_AudioProfile *pAudioProfile, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetAudioProfile (struct SWI_STRUCT_AudioProfile *pAudioProfile, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetCLIRSetting (struct SWI_STRUCT_CLIR_Setting *pCLIR, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetCLIRSetting (const struct SWI_STRUCT_CLIR_Setting *pCLIR, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetVoiceMessage (struct SWI_STRUCT_VoiceMessage *pVoiceMessage, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiAcknowledgeMissedCall (struct SWI_STRUCT_MissedCall *pMissedCall, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetCallOriginate (const struct SWI_STRUCT_CALL_Create *pCall, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetDTMFSend (struct SWI_STRUCT_DTMFSend *pDTMFSend, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetCallControlUMTS (const struct SWI_STRUCT_CALL_UMTS_Control *pCall, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetContDtmf (struct SWI_STRUCT_ContDtmf *pDtmf, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetSSRequest (struct SWI_STRUCT_SS_Request *sSSRequest, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiAbortRequest (struct SWI_STRUCT_SS_Abort *sSSAbort, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiStartSSPassReg (struct SWI_STRUCT_SS_PasswordReg *sSSPassReg, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetSSPassword (struct SWI_STRUCT_SS_PasswordStatus *sSSPassStatus, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetUserdefinedUserBusy (swi_uint32 timeout)
 

Detailed Description

This file contains definitions, enumerations, structures and forward declarations for SwiApiGsmVoice.c file.

Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved

Macro Definition Documentation

#define LENGTH_CallerNameVoice   (80 * UTF8_MAX_CHAR_SIZE) + 1
#define LENGTH_ForwardInfo   18
#define LENGTH_ForwardNumber   38
#define LENGTH_MaxPhone   20
#define LENGTH_RawData   229
#define LENGTH_SSPassword   4
#define LENGTH_SSString   40
#define MAX_BS_LIST   70
#define MAX_CALLS   7
#define MAX_FWD_INFO_ENTRIES   8
#define MAX_INFO_DATA   70

Enumeration Type Documentation

Enumeration of audio generator values

Enumerator
SWI_AUDIOGEN_Voice 

Voice.

SWI_AUDIOGEN_KeyBeep 

Key beep.

SWI_AUDIOGEN_Midi 

Midi.

Enumeration of audio profiles

Enumerator
SWI_AUDIOPROFILE_Handset 

Handset profile.

SWI_AUDIOPROFILE_Headset 

Headset profile.

SWI_AUDIOPROFILE_SpeakerPhone 

Speaker phone profile.

SWI_AUDIOPROFILE_CarKit 

Car kit profile.

SWI_AUDIOPROFILE_TtyFullAudio 

TTY-full audio profile.

SWI_AUDIOPROFILE_TtyTalkAudio 

TTY-talk audio profile.

SWI_AUDIOPROFILE_TtyHearAudio 

TTY-hear audio profile.

Enumeration of audio action result

Enumerator
SWI_AUDIORESULT_Success 

Valid audio profile setting.

SWI_AUDIORESULT_InvalidSetting 

Invalid audio profile setting.

Enumeration of audio volume levels

Enumerator
SWI_AUDIOVOLLEVEL_0 

Audio volume level 0.

SWI_AUDIOVOLLEVEL_1 

Audio volume level 1.

SWI_AUDIOVOLLEVEL_2 

Audio volume level 2.

SWI_AUDIOVOLLEVEL_3 

Audio volume level 3.

SWI_AUDIOVOLLEVEL_4 

Audio volume level 4.

SWI_AUDIOVOLLEVEL_5 

Audio volume level 5.

SWI_AUDIOVOLLEVEL_6 

Audio volume level 6.

SWI_AUDIOVOLLEVEL_7 

Audio volume level 7.

This enumeration contains all possible call presentation settings.

Enumerator
SWI_CALL_PRESENTATION_Number 

present number.

SWI_CALL_PRESENTATION_Restricted 

presentation restricted.

SWI_CALL_PRESENTATION_NoAvail 

number not available.

This enumeration contains all the call progress states.

Enumerator
SWI_CALL_PROGRESS_Failed 

the call has failed.

SWI_CALL_PROGRESS_Connecting 

the call is connecting.

SWI_CALL_PROGRESS_Queued 

this applies to outgoing calls only and indicates that this is a "call waiting" on the other party's phone.

SWI_CALL_PROGRESS_Waiting 

the call waiting feature must be provisioned to use this.

SWI_CALL_PROGRESS_Incoming 

there is an incoming call.

SWI_CALL_PROGRESS_Ringing 

the incoming call is ringing.

SWI_CALL_PROGRESS_Connected 

the call is connected.

SWI_CALL_PROGRESS_Disconnecting 

the call is disconnecting.

SWI_CALL_PROGRESS_Disconnected 

the call is disconnected.

SWI_CALL_PROGRESS_Forwarded 

this applies to incoming calls only and indicates the call has been forwarded to the modem by another phone..

This enumeration contains all possible call restriction settings.

Enumerator
SWI_CALL_RESTRICT_Default 

default.

SWI_CALL_RESTRICT_Allowed 

Caller ID allowed.

SWI_CALL_RESTRICT_Restricted 

Caller ID restricted.

SWI_CALL_RESTRICT_Unknown 

Caller ID unknown.

This enumeration contains all possible call screening settings.

Enumerator
SWI_CALL_SCREENING_NotScreened 

user not screened.

SWI_CALL_SCREENING_Passed 

user provided passed.

SWI_CALL_SCREENING_Failed 

user provided failed.

SWI_CALL_SCREENING_Network 

network provided.

This enumeration contains call information states.

Enumerator
SWI_CALL_VALID_NoInfo 

no number information.

SWI_CALL_VALID_InfoValid 

phone number information.

This enumeration contains all the call error states.

Enumerator
SWI_CALL_ERROR_OK 

OK - no error.

SWI_CALL_ERROR_SubsciberBusy 

subscriber busy.

SWI_CALL_ERROR_Congestions 

congestion.

SWI_CALL_ERROR_RadioPathUnavail 

radio path unavailable.

SWI_CALL_ERROR_Error 

general error.

SWI_CALL_ERROR_NumberUnobtain 

number unobtainable.

SWI_CALL_ERROR_AuthFailure 

authentication failure.

SWI_CALL_ERROR_NoNumber 

no number present.

SWI_CALL_ERROR_BckgndCallCtrlFail 

background call control failure.

SWI_CALL_ERROR_BckgndMMFail 

background mobility management failure.

SWI_CALL_ERROR_ChannelBusy 

channel busy.

SWI_CALL_ERROR_FDNMismatch 

FDN mismatch.

SWI_CALL_ERROR_BCFail 

BC fail.

SWI_CALL_ERROR_EmergencyOnly 

emergency calls only.

SWI_CALL_ERROR_ACMExceeded 

ACM limit exceeded.

SWI_CALL_ERROR_HoldError 

hold error.

SWI_CALL_ERROR_BusyProcReq 

busy processing request.

SWI_CALL_ERROR_ChannelUnavail 

active channel unavailable.

SWI_CALL_ERROR_OutgoingBarred 

outgoing calls barred.

SWI_CALL_ERROR_NumberBlacklisted 

number blacklisted.

SWI_CALL_ERROR_BlackListFull 

black list full.

SWI_CALL_ERROR_RedialNotTimedOut 

redial not timed out.

SWI_CALL_ERROR_ModifyFail 

modify failed.

SWI_CALL_ERROR_NotInControl 

not in control.

SWI_CALL_ERROR_NoCauseCode 

no cause code.

SWI_CALL_ERROR_CallBarred 

call barred.

This enumeration contains all possible call states.

Enumerator
SWI_CALLSTATE_Null 

null state.

SWI_CALLSTATE_Connecting 

connecting.

SWI_CALLSTATE_Queued 

queued.

SWI_CALLSTATE_Waiting 

waiting.

SWI_CALLSTATE_Alerting 

alerting.

SWI_CALLSTATE_Connected 

connected.

SWI_CALLSTATE_Disconnecting 

disconnecting.

This enumeration contains all possible call types.

Enumerator
SWI_CALL_TYPE_VoiceCallLine1 

voice call line 1.

SWI_CALL_TYPE_VoiceCallLine2 

voice call line 2.

SWI_CALL_TYPE_CSD 

circuit switched data.

SWI_CALL_TYPE_FAX 

FAX.

This enumeration contains all the Supplementary Service Basic Service Group Type

Enumerator
SWI_BASICSERVGRPTYPE_TeleServices 
SWI_BASICSERVGRPTYPE_BearerServices 

This enumeration contains all the Supplementary Service Car Barring Status

Enumerator
SWI_CALLBAR_Active 
SWI_CALLBAR_OperatorBarring 

This enumeration contains all the Supplementary Service Cancel Reasons

Enumerator
SWI_CANCELREASON_NoPipes 
SWI_CANCELREASON_OngoingTrans 
SWI_CANCELREASON_MnssReject 
SWI_CANCELREASON_NoControl 
SWI_CANCELREASON_InvalidId 

This enumeration contains all the Supplementary Service CLIR Setting

Enumerator
SWI_CLIRSETTING_Permanent 
SWI_CLIRSETTING_TempCallIdRestrict 
SWI_CLIRSETTING_TempCallIdAllow 

This enumeration contains all the Supplementary Service Error Code

Enumerator
SWI_ERRORCODE_UnknownSubs 
SWI_ERRORCODE_IllegalSubs 
SWI_ERRORCODE_BearServNotProv 
SWI_ERRORCODE_TellServNotProv 
SWI_ERRORCODE_IllegalEquip 
SWI_ERRORCODE_CallBarred 
SWI_ERRORCODE_IllegalOper 
SWI_ERRORCODE_ErrorStatus 
SWI_ERRORCODE_NotAvail 
SWI_ERRORCODE_SubsViolate 
SWI_ERRORCODE_Incompatible 
SWI_ERRORCODE_FacilityNotSup 
SWI_ERRORCODE_AbsentSubs 
SWI_ERRORCODE_SystemFail 
SWI_ERRORCODE_DataMissing 
SWI_ERRORCODE_UnexpectValue 
SWI_ERRORCODE_PasswdRegFail 
SWI_ERRORCODE_NegPasswdChk 
SWI_ERRORCODE_NumPasswdViolate 
SWI_ERRORCODE_UnknownAlphabet 
SWI_ERRORCODE_UssdBusy 
SWI_ERRORCODE_MaxMultiExceed 
SWI_ERRORCODE_ResourceNotAvail 

This enumeration contains all the Supplementary Service Error Type

Enumerator
SWI_ERRORTYPE_NoInfo 
SWI_ERRORTYPE_CallBarring 
SWI_ERRORTYPE_Status 
SWI_ERRORTYPE_SubsViolate 
SWI_ERRORTYPE_AbsentSubs 
SWI_ERRORTYPE_SystemFail 
SWI_ERRORTYPE_PasswdRegFail 
SWI_ERRORTYPE_Incompatible 

This enumeration contains all the Supplementary Service Forwarding Option

Enumerator
SWI_FORWARDOPTION_NotifyFwdParyMask 
SWI_FORWARDOPTION_NotifyCalledPartyMask 
SWI_FORWARDOPTION_MobileNotReachMask 
SWI_FORWARDOPTION_FwdBusyMask 
SWI_FORWARDOPTION_FwdNotReach 
SWI_FORWARDOPTION_FwdAllCalls 

This enumeration contains all the reasons Supplementary Service Password can fail

Enumerator
SWI_PASSWDFAILREASON_Undetermined 
SWI_PASSWDFAILREASON_InvalidFormat 
SWI_PASSWDFAILREASON_NewMismatch 

This enumeration contains all the Supplementary Service Password Guidance

Enumerator
SWI_SSPASSWORDGUIDANCE_Password 
SWI_SSPASSWORDGUIDANCE_NewPassword 
SWI_SSPASSWORDGUIDANCE_NewPasswordAgain 
SWI_SSPASSWORDGUIDANCE_BadPassword 
SWI_SSPASSWORDGUIDANCE_BadPasswordFormat 

This enumeration contains all the Supplementary Service Problem Type

Enumerator
SWI_PROBLEMTYPE_General 
SWI_PROBLEMTYPE_Invoke 
SWI_PROBLEMTYPE_ReturnResult 
SWI_PROBLEMTYPE_ReturnError 

This enumeration contains all the Supplementary Service Reject Codes

Enumerator
SWI_REJECTCODE_GeneralUnrecognize 
SWI_REJECTCODE_GeneralMistype 
SWI_REJECTCODE_GeneralBadStruct 
SWI_REJECTCODE_InvokeDupId 
SWI_REJECTCODE_InvokeUnrecognizeId 
SWI_REJECTCODE_InvokeMistype 
SWI_REJECTCODE_InvokeResource 
SWI_REJECTCODE_InvokeInitRelease 
SWI_REJECTCODE_InvokeUnrecognizeLink 
SWI_REJECTCODE_InvokeLinkRspUnexpect 
SWI_REJECTCODE_InvokeLinkOpUnexpect 
SWI_REJECTCODE_ResultUnrecognizeId 
SWI_REJECTCODE_ResultUnexpected 
SWI_REJECTCODE_ResultMistype 
SWI_REJECTCODE_ErrorUnrecognizeId 
SWI_REJECTCODE_ErrorUnexpected 
SWI_REJECTCODE_ErrorUnrecognizedErr 
SWI_REJECTCODE_ErrorUnexpectedErr 
SWI_REJECTCODE_ErrorMistype 

This enumeration contains all the Supplementary Service request types.

Enumerator
SWI_SSREQUESTTYPE_Erase 
SWI_SSREQUESTTYPE_Activate 
SWI_SSREQUESTTYPE_Deactivate 
SWI_SSREQUESTTYPE_Interrogate 
SWI_SSREQUESTTYPE_Register 

This enumeration contains all the Supplementary Service Service Code

Enumerator
SWI_SERVCODE_AllServices 
SWI_SERVCODE_AllLineIdServices 
SWI_SERVCODE_CallerIdPresent 
SWI_SERVCODE_CallerIdRestrict 
SWI_SERVCODE_ConnectIdPresent 
SWI_SERVCODE_ConnectIdRestrict 
SWI_SERVCODE_MCI 
SWI_SERVCODE_CallingNamePresent 
SWI_SERVCODE_CallFwdAllServices 
SWI_SERVCODE_CallFwdUnconditional 
SWI_SERVCODE_CallFwdAllConditional 
SWI_SERVCODE_CallFwdBusy 
SWI_SERVCODE_CallFwdNoReply 
SWI_SERVCODE_CallFwdNotReachable 
SWI_SERVCODE_AllCallOffering 
SWI_SERVCODE_CT 
SWI_SERVCODE_MAH 
SWI_SERVCODE_AllCallComplete 
SWI_SERVCODE_CallWaiting 
SWI_SERVCODE_CallHold 
SWI_SERVCODE_CompletionBusySubsciber 
SWI_SERVCODE_AllMultiparty 
SWI_SERVCODE_Multiply 
SWI_SERVCODE_ALL_COMM_OF_INT 
SWI_SERVCODE_ClosedUserGroup 
SWI_SERVCODE_AllCharging 
SWI_SERVCODE_AdviceChargeInfo 
SWI_SERVCODE_AdviceChargeCharging 
SWI_SERVCODE_AllAdditionalInfo 
SWI_SERVCODE_UserToUserSignalling 
SWI_SERVCODE_AllCallRestriction 
SWI_SERVCODE_BarrOutgoing 
SWI_SERVCODE_BarrAllOutgoing 
SWI_SERVCODE_BarrOutgoingInter 
SWI_SERVCODE_BarrOutgoingInterExcept 
SWI_SERVCODE_BarrIncoming 
SWI_SERVCODE_BarrAllIncoming 
SWI_SERVCODE_BarrIncomingRoam 
SWI_SERVCODE_PLMNAllSpecific 
SWI_SERVCODE_PLMNSpecific1 
SWI_SERVCODE_PLMNSpecific2 
SWI_SERVCODE_PLMNSpecific3 
SWI_SERVCODE_PLMNSpecific4 
SWI_SERVCODE_PLMNSpecific5 
SWI_SERVCODE_PLMNSpecific6 
SWI_SERVCODE_PLMNSpecific7 
SWI_SERVCODE_PLMNSpecific8 
SWI_SERVCODE_PLMNSpecific9 
SWI_SERVCODE_PLMNSpecificA 
SWI_SERVCODE_PLMNSpecificB 
SWI_SERVCODE_PLMNSpecificC 
SWI_SERVCODE_PLMNSpecificD 
SWI_SERVCODE_PLMNSpecificE 
SWI_SERVCODE_PLMNSpecificF 

This enumeration contains all the Supplementary Service Service Status

Enumerator
SWI_STATUS_ServActiveMask 
SWI_STATUS_ServRegisteredMask 
SWI_STATUS_ServProvMask 
SWI_STATUS_ServQuiescentMask 

This enumeration contains all the Supplementary Service Subscription Option Code

Enumerator
SWI_SUBSOPTIONCODE_OverrideEnabled 
SWI_SUBSOPTIONCODE_OverrideDisabled 
SWI_SUBSOPTIONCODE_ClirPermanent 
SWI_SUBSOPTIONCODE_TempCallIdRestrict 
SWI_SUBSOPTIONCODE_TempCallIdAllow 

This enumeration contains all the Supplementary Service Subscription Option Type

Enumerator
SWI_SUBSOPTIONTYPE_Override 
SWI_SUBSOPTIONTYPE_CLIR 

This enumeration contains all the Supplementary Service System can fail

Enumerator
SWI_SYSTEMFAIL_Plmn 
SWI_SYSTEMFAIL_Hlr 
SWI_SYSTEMFAIL_Vlr 
SWI_SYSTEMFAIL_Pvlr 
SWI_SYSTEMFAIL_ControlMsc 
SWI_SYSTEMFAIL_VisitMsc 
SWI_SYSTEMFAIL_Eir 
SWI_SYSTEMFAIL_Rss 

This enumeration contains the tone lengths used for DTMF over-dial digits.

Enumerator
SWI_TONELENGTH_Short 

short DTMF tone length.

SWI_TONELENGTH_Medium 

medium DTMF tone length.

SWI_TONELENGTH_Long 

long DTMF tone length.

SWI_TONELENGTH_UserDefined 

user defined DTMF tone length.

This enumeration contains the actions that can be performed on a call.

Enumerator
SWI_CALL_CONTROL_UMTS_RelAllHeld 

release all Held Calls.

SWI_CALL_CONTROL_UMTS_RelAllActAccHeldWait 

release all Active Calls and accept held or waiting call.

SWI_CALL_CONTROL_UMTS_ReleaseCallX 

release call X.

SWI_CALL_CONTROL_UMTS_HoldAllActAccHeldWait 

hold all Active Calls and accept held or waiting call.

SWI_CALL_CONTROL_UMTS_HoldAllActExceptCallX 

hold all Active Calls except X.

SWI_CALL_CONTROL_UMTS_AddHeldCall 

add held call to the conversation.

SWI_CALL_CONTROL_UMTS_ConTwoCallsAndDiscon 

connect two calls together and disconnect from the conservation.

SWI_CALL_CONTROL_UMTS_DisconnectAll 

disconnect All Calls.

Function Documentation

SWI_API SWI_RCODE SwiAbortRequest ( struct SWI_STRUCT_SS_Abort sSSAbort,
swi_uint32  timeout 
)

User initiated supplementary service operations can take up to 20 seconds to complete. This object provides the user with the cancel operation functionality

The first field of the set request and response packets is the current version of the packet format. These fields are guaranteed to never change position or size in their packet. The version indicates how the packet should be interpreted. The current version of both the set request and response packet is 1

Parameters
sSSAbort[IN],:information about the SS Abort request to be sent
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiAcknowledgeMissedCall ( struct SWI_STRUCT_MissedCall pMissedCall,
swi_uint32  timeout 
)
      This function is used to acknowledge missed calls.  This causes the 
      missed count to be reset.

      A request is sent to the modem.  The modem's response indicates 
      that the request has been processed.

      The caller must specify the amount of time to wait for the modem
      to respond to the request.    
Parameters
pMissedCall[OUT],:missed calls
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiGetAudioProfile ( struct SWI_STRUCT_AudioProfile pAudioProfile,
swi_uint32  timeout 
)
      This function is used to get the currently used audio profile
Parameters
pAudioProfile[OUT],:current audio profile currently used
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received.
See SWI_RCODE for other error return codes.
Note
A device may support multiple audio profiles.
SWI_API SWI_RCODE SwiGetCLIRSetting ( struct SWI_STRUCT_CLIR_Setting pCLIR,
swi_uint32  timeout 
)
      This function is used to fetch the caller line identity restriction 
      (CLIR) setting from the modem.  A request is sent to the modem.  
      The modem will respond with the current CLIR setting.  

      The caller must specify the amount of time to wait for the modem
      to respond to the request.    
Parameters
pCLIR[OUT],:the current CLIR setting
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the current CLIR setting has been retrieved
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiGetGsmSpeakerVolume ( struct SWI_STRUCT_GSM_SpeakerVolume sSpeakerVolume,
swi_uint32  timeout 
)

This function is used to retrieve the speaker volume. The speaker volume setting is stored on the modem.

The value returned is the percentage of full volume. This function should be used every time the host application is started to restore the previous setting.

Parameters
[OUT]sSpeakerVolume: Speaker volume
[IN]timeout: Response timeout value in milliseconds.
Returns
SWI_RCODE_OK: The request is being processed.
SWI_RCODE_REQUEST_TIMEOUT The request has timed out
See SWI_RCODE for other error return codes.
See Also
SWI_STRUCT_GSM_SpeakerVolume
SwiSetGsmSpeakerVolume
SWI_API SWI_RCODE SwiGetMicMute ( struct SWI_STRUCT_MicMute pMicMute,
swi_uint32  timeout 
)

This function is used to fetch the current mute status of the microphone.

A request is sent to the modem. The modem's response contains the modem's mute setting.

Use this function every time the application is started to determine the state of the microphone's mute setting.

Parameters
pMicMute[OUT]: Microphone Mute setting: 0 - Mic is not muted 1 - Mic is mute
timeout[IN]: Response timeout value in milliseconds.
Returns
SWI_RCODE_OK The mute status has been successfully returned
SWI_RCODE_REQUEST_TIMEOUT The request has timed out
See Also
See SWI_RCODE for other error return codes.
SWI_API SWI_RCODE SwiGetNVToneStore ( struct SWI_STRUCT_NVToneStore pToneLength,
swi_uint32  timeout 
)
   This function is used to retrieve DTMF tone parameters from the modem.
   The tone parameters are used when playing DTMF tones.

   A request is sent to the modem.  The modem's response contains the
   tone parameters stored in the modem.

   The caller must specify the amount of time to wait for the modem
   to respond to the request.    
Parameters
pToneLength[OUT],:information about the DTMF tones
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiGetSpeakerMute ( struct SWI_STRUCT_GSM_SpeakerMute pSpeakerMute,
swi_uint32  timeout 
)
      This function is used to retrieve the speaker mute setting.  The 
      speaker mute setting is stored on the modem.

      A request is sent to the modem.  The modem's response contains the
      speaker mute setting.

      The caller must specify the amount of time to wait for the modem
      to respond to the request.    
Parameters
pSpeakerMute[OUT],:speaker mute setting
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
Note
Use this function every time the host application is started to determine whether the speaker mute is enabled. (In this way, the speaker setting is attached to the modem, rather than the host.)
SWI_API SWI_RCODE SwiGetVoiceMessage ( struct SWI_STRUCT_VoiceMessage pVoiceMessage,
swi_uint32  timeout 
)
      This function is used to retrieve voice mail waiting status.  
      This indicates if there is new voice mail.

      A request is sent to the modem.  The modem's response contains the
      voice mail waiting status.

      The caller must specify the amount of time to wait for the modem
      to respond to the request.    
Parameters
pVoiceMessage[OUT],:voice mail waiting status
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
Note
Use this function to get the initial status (whether or not there are voice messages) when launching the application. Following this initial check, the SWI_NOTIFY_VoiceMessage notification informs the application as new messages arrive. A field in the data structure (VoiceMailWaiting- Feature) is intended to report whether voice messaging is a provisioned service, but this is a network dependent feature. The application should NOT use this field.

This function should not be called until the application receives the SWI_NOTIFY_SmsReady notification.

SWI_API SWI_RCODE SwiSetAudioProfile ( struct SWI_STRUCT_AudioProfile pAudioProfile,
swi_uint32  timeout 
)
    This function is used to configure the currently used audio profile
Parameters
pAudioProfile[IN],:current audio profile currently used
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received.
See SWI_RCODE for other error return codes.
Note
A device may support multiple audio profiles. SWI_NOTIFY_AudioProfile notification is sent anytime the audio profile is changed.
SWI_API SWI_RCODE SwiSetCallControlUMTS ( const struct SWI_STRUCT_CALL_UMTS_Control pCall,
swi_uint32  timeout 
)

This function is used to answer calls and manage multiple calls. Use this function to: answer an incoming call, put a call on hold, activate a call (take it off hold), link calls to create a multi-party call, swap an active call and on hold call and disconnect a call.

A request is sent to the modem indicating the call id and the action to take. The modem will respond to the request indicating that the request is being processed. The SWI_NOTIFY_CallProgress and SWI_NOTIFY_CallStatus notifications will reflect the status of the current calls.

The caller must specify the amount of time to wait for the modem to respond to the request.

Parameters
pCall[IN],:information needed to create the call
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request is being processed
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiSetCallOriginate ( const struct SWI_STRUCT_CALL_Create pCall,
swi_uint32  timeout 
)

This function is used to initiate an outgoing voice call. A request containing the phone number is sent to the modem. The modem will respond to the request indicating that the request is being processed. The SWI_NOTIFY_CallProgress and SWI_NOTIFY_CallStatus notifications will reflect the status of the created call.

The caller must specify the amount of time to wait for the modem to respond to the request.

Parameters
pCall[IN],:information needed to create the call
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request is being processed
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
Note
A wait period is required between calls of this function. If the function is called twice without a sufficient wait between the first and second call, it returns a "FAILED" return code. The duration that must elapse between calls is network dependent and the recommendation is to experiment with different durations before deciding on the wait period.
SWI_API SWI_RCODE SwiSetCLIRSetting ( const struct SWI_STRUCT_CLIR_Setting pCLIR,
swi_uint32  timeout 
)
      This function is used to modify the caller line identity 
      restriction (CLIR) setting on the modem.  A request is sent to the 
      modem specifying the a CLIR setting.  The modem will respond to the
      request indicating that the setting has been changed.   

      The caller must specify the amount of time to wait for the modem
      to respond to the request.    
Parameters
pCLIR[IN],:CLIR setting
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been processed
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiSetContDtmf ( struct SWI_STRUCT_ContDtmf pDtmf,
swi_uint32  timeout 
)
  This function is used to play a continuous DTMF tone to the earpiece
  and over-the-air.

  A request is sent to the modem.  The modem's response indicates that
  the request has been processed.

  The caller must specify the amount of time to wait for the modem
  to respond to the request.    
Parameters
pDtmf[IN],:information about the DTMF tone to be sent
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
Note
For earpiece feedback, the duration of the tone is limited to an absolute maximum. However, the over-the-air tones may play continuously for the duration of the voice call until the stop request is sent. Some carriers limit the maximum duration of tones sent over-the-air.
SWI_API SWI_RCODE SwiSetDTMFSend ( struct SWI_STRUCT_DTMFSend pDTMFSend,
swi_uint32  timeout 
)

This function is used to send overdial numbers during calls. This sends the digits as well as setting the duration of the DTMF tone and the duration of the interval between tones. It also enables/disables earpiece feedback (which determines whether the tone is audible).

A request is sent to the modem. The modem's response indicates that the request has been processed.

The caller must specify the amount of time to wait for the modem to respond to the request.

Parameters
pDTMFSend[IN],:information about the DTMF tones to be sent
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem SWI_RCODE_REQUEST_TIMEOUT - the request has timed out See SWI_RCODE for other error return codes
Note
Over-dial digits are numbers that are dialed after a circuit-switched call has been established to communicate with a voice messaging system or a PBX (for example, to enter a credit card number). If your application has a phone book feature, entries in the phone book may contain over-dial digits separated from the main calling number by the "DTMF Control Digit Separator" (a comma). For example, there might be a phone book entry, '6045551234,201,8'. This includes a component, ',201,8' to be over-dialed after the call is established. The first comma separates the over-dial digits from the main number. The second comma generates a three-second pause between dialing the '201' and the '8'. In this example, you would use the function, SwiSetCallOriginate to dial the phone number ('6045551234'). Once the call is established, use SwiSetDTMFSend to send the '201,8'. (The first comma should not be sent by either function.) The maximum number of digits that can be sent with this function is 20.
SWI_API SWI_RCODE SwiSetGsmSpeakerVolume ( struct SWI_STRUCT_GSM_SpeakerVolume sSpeakerVolume,
swi_uint32  timeout 
)

This function is used to set the speaker volume. The speaker volume is stored on the modem.

The value used in this function is the percentage of full volume. This is stored in NVRAM. The host application may present a few volume levels that are mapped to specific percentage levels. For example, the application might have six volume levels where: 1 = 17%, 2 = 33%, 3 = 50%, 4 = 66%, 5 = 83%, and 6 = 100%.

Parameters
[IN]sSpeakerVolume: Speaker volume
[IN]timeout: Response timeout value in milliseconds.
Returns
SWI_RCODE_OK: The request is being processed.
SWI_RCODE_REQUEST_TIMEOUT The request has timed out
See SWI_RCODE for other error return codes.
See Also
SWI_STRUCT_GSM_SpeakerVolume
SwiGetGsmSpeakerVolume
SWI_API SWI_RCODE SwiSetMicMute ( struct SWI_STRUCT_MicMute pMicMute,
swi_uint32  timeout 
)

This function is used to mute the microphone. The microphone mute setting is stored on the modem.

A request is sent to the modem. The modem's response indicates that the request has been processed.

This function does not affect the microphone volume setting, it only enables or disables the muting effect. Settings made with this function are lost when the modem resets. The setting is not lost when switching between calls. The application should ensure that the microphone is on when the user switches between calls.

Parameters
pMicMute[IN]: Microphone Mute setting: 0 - Mic is not muted 1 - Mic is muted
timeout[IN]: Response timeout value in milliseconds.
Returns
SWI_RCODE_OK: The request is being processed
SWI_RCODE_REQUEST_TIMEOUT The request has timed out
See Also
See SWI_RCODE for other error return codes.
SWI_API SWI_RCODE SwiSetNVToneStore ( struct SWI_STRUCT_NVToneStore pToneLength,
swi_uint32  timeout 
)
    This function is used to set the DTMF tone parameters in the modem.
    The parameters are stored on the modem.

    A request is sent to the modem.  The modem's response indicates that
    the request has been processed.

    The caller must specify the amount of time to wait for the modem
    to respond to the request.    
Parameters
pToneLength[IN],:information about the DTMF tones
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
Note
Every parameter in the data structure must be valid and none may be omitted. This function only allows you to store values entered in the application. (SwiGetNVToneStore is used to retrieve the values.) The firmware does not use the tone length values stored by this function-its purpose is to allow the application to have a user-defined tone configuration attached to the modem (rather than the host). The earpiece feedback setting stored by this function is used by the SwiSetContDtmf function.
SWI_API SWI_RCODE SwiSetSpeakerMute ( struct SWI_STRUCT_GSM_SpeakerMute pSpeakerMute,
swi_uint32  timeout 
)
      This function is used to mute the speaker.
      The speaker mute setting is stored on the modem.

      A request is sent to the modem.  The modem's response indicates that
      the request has been processed.

      The caller must specify the amount of time to wait for the modem
      to respond to the request.    
Parameters
pSpeakerMute[IN],:speaker mute setting
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
Note
This function does not impact speaker volume but only enables and disables muting. Settings made with this function are lost when the modem resets. The setting is not lost when switching between calls. The application should ensure that the speaker is on when the user switches between calls.
SWI_API SWI_RCODE SwiSetSSPassword ( struct SWI_STRUCT_SS_PasswordStatus sSSPassStatus,
swi_uint32  timeout 
)

The CNS_SS_PWD_STS notification can be received as a result of a CNS_SS_PWD_REG get request or can be network initiated

A CNS_SS_PWD_STS set request should be sent in response to a CNS_SS_PWD_STS notification if the transaction status is "Enter Password", "Enter New Password", "Enter New Password AGain", "Bad Password Try Again" or "Bad Password Format Try Again. IF the notification indicates "Bad Password Try Again" or "Bad PAssword Format Try Again" then the user should be notified.

The first field of the set request/response and notification packets is the current version of the packet format. These fields are guaranteed to never change position or size in their packet. The version indicates how the packet should be interpreted. The current version of the set request, response and notification packets is 1

Parameters
sSSPassStatus[IN],:information about the SS password
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiSetSSRequest ( struct SWI_STRUCT_SS_Request sSSRequest,
swi_uint32  timeout 
)

This function provides the main interface for user initiated supplementary service operations. There are 5 different request types: erase, activate, deactivate, interrogate and register.

If no basic service group information is present in this request, it is assumed that the requested operation should affect all supplementary services.

The international number flag, length of forwarding number, forwarding number and no reply information field are needed only when requested to register information for call forwarding.

To enable call waiting simply send a activate request with the call waiting supplemenetary service code

The first field of the set request and response packets is the current version of the packet. The version indicate how the packet should be interpreted. The current version of both the set request and response packets is 1.

Parameters
sSSRequest[IN],:information about the SS request to be sent
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiSetUserdefinedUserBusy ( swi_uint32  timeout)

This function is used to set UDUB to automatically send an incoming call to voicemail or return the busy signal.

A request is sent to the modem. The modem's response indicates that the request has been processed.

The caller must specify the amount of time to wait for the modem to respond to the request.

Parameters
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiStartSSPassReg ( struct SWI_STRUCT_SS_PasswordReg sSSPassReg,
swi_uint32  timeout 
)

The host can initiate the changing of a supplementary service password by sending a CNS_SS_PWD_REG set request. The card will return a transaction handle to the host in the set response.

The set request initiates a network password registration procedure. The network will prompt the host of the old password, the new password twice using the transaction handle and the CNS_SS_PWD_STS object notification. The host will return the passwords to the network using the CNS_SS_PWD_STS set request

The first field of the set request and response packet is the current version of the packet format. These fields are guaranteed to never change position or size in their packet. The version indicates how the packet should be interpreted. The current version of both the set request and response packets is 1.

Parameters
sSSPassReg[IN],:information about the SS password registration
timeout[IN],:response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
See SWI_RCODE for other error return codes

Linux SDK V1.4.0.5
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved