#include <stdlib.h>
#include "asterisk.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/utils.h"
Go to the source code of this file.
Functions | |
static char * | function_moh_read (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) |
static void | function_moh_write (struct ast_channel *chan, char *cmd, char *data, const char *value) |
Variables | |
static struct ast_custom_function | moh_function |
Definition in file func_moh.c.
static char* function_moh_read | ( | struct ast_channel * | chan, | |
char * | cmd, | |||
char * | data, | |||
char * | buf, | |||
size_t | len | |||
) | [static] |
Definition at line 33 of file func_moh.c.
References ast_channel::musicclass.
00034 { 00035 ast_copy_string(buf, chan->musicclass, len); 00036 00037 return buf; 00038 }
static void function_moh_write | ( | struct ast_channel * | chan, | |
char * | cmd, | |||
char * | data, | |||
const char * | value | |||
) | [static] |
Definition at line 40 of file func_moh.c.
References ast_channel::musicclass.
00041 { 00042 ast_copy_string(chan->musicclass, value, sizeof(chan->musicclass)); 00043 }
struct ast_custom_function moh_function [static] |
Definition at line 48 of file func_moh.c.