int sm_play_sas_cas(struct sm_play_sas_cas_parms *parms, ADSI_MODULE mp)
typedef struct sm_play_sas_cas_parms { tSMChannelId channel; /* in */ enum kSASToneType { kSASToneTypeSingleBurst, kSASToneTypeDoubleBurst, kSASToneTypeTripleBurst, } sas_tone_type; /* in */ } SM_PLAY_SAS_CAS_PARMS;
This function generates the Subscriber Alerting Signal (SAS) and the CPE Alerting Signal (CAS). The exact sequence generated is:
kSASToneTypeSingleBurst | kSASToneTypeDoubleBurst | kSASToneTypeTripleBurst |
---|---|---|
440 Hz @ -16 dBm0 for 300 mS | - | 440 Hz @ -16 dBm0 for 100 mS |
- | silence for 100 mS | |
440 Hz @ -16 dBm0 for 100 mS | ||
silence for 100 mS | ||
440 Hz @ -16 dBm0 for 100 mS | ||
2130 Hz @ -15 dBm0 + 2750 Hz @ -15 dBm0 for 82 mS | ||
silence for 160 mS |
Since this function uses sm_play_cptone() to generate the signal, the end of the signal is reported by sm_play_cptone_status() which can be monitored by waiting on the write event.
This function requires the firmware module tonegen to have been downloaded.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody ADSI library API.