00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 static uint8_t ex_gsm[] = {
00011 0xda, 0xa6, 0xac, 0x2d, 0xa3, 0x50, 0x00, 0x49, 0x24, 0x92,
00012 0x49, 0x24, 0x50, 0x40, 0x49, 0x24, 0x92, 0x37, 0x24, 0x52,
00013 0x00, 0x49, 0x24, 0x92, 0x47, 0x24, 0x50, 0x80, 0x46, 0xe3,
00014 0x6d, 0xb8, 0xdc,
00015 };
00016
00017 static struct ast_frame *gsm_sample(void)
00018 {
00019 static struct ast_frame f = {
00020 .frametype = AST_FRAME_VOICE,
00021 .subclass = AST_FORMAT_GSM,
00022 .datalen = sizeof(ex_gsm),
00023
00024 .samples = GSM_SAMPLES,
00025 .mallocd = 0,
00026 .offset = 0,
00027 .src = __PRETTY_FUNCTION__,
00028 .data.ptr = ex_gsm,
00029 };
00030
00031 return &f;
00032 }