|
| 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 | SwiSetMicMute (struct SWI_STRUCT_MicMute *pMicMute, swi_uint32 timeout) |
| |
| SWI_API SWI_RCODE | SwiGetMicMute (struct SWI_STRUCT_MicMute *pMicMute, swi_uint32 timeout) |
| |
| SWI_API SWI_RCODE | SwiSetSpeakerMute (struct SWI_STRUCT_GSM_SpeakerMute *pSpeakerMute, swi_uint32 timeout) |
| |
| SWI_API SWI_RCODE | SwiGetSpeakerMute (struct SWI_STRUCT_GSM_SpeakerMute *pSpeakerMute, swi_uint32 timeout) |
| |
| SWI_API SWI_RCODE | SwiSetNVToneStore (struct SWI_STRUCT_NVToneStore *pToneLength, swi_uint32 timeout) |
| |
| SWI_API SWI_RCODE | SwiGetNVToneStore (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 | SwiSetCLIRSetting (const struct SWI_STRUCT_CLIR_Setting *pCLIR, swi_uint32 timeout) |
| |
| SWI_API SWI_RCODE | SwiGetCLIRSetting (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 | SwiSetUserdefinedUserBusy (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) |
| |
Contains source code for GSM APIs related to Voice.
Copyright: © 2011 Sierra Wireless, Inc. all rights reserved
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
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.
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
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.
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
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
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