Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:48:57 2009

## Asterisk developer's documentation

# func_language.c File Reference

Language related dialplan functions. More...

`#include <stdlib.h>`
`#include <string.h>`
`#include <sys/types.h>`
`#include "asterisk.h"`
`#include "asterisk/channel.h"`
`#include "asterisk/pbx.h"`
`#include "asterisk/logger.h"`
`#include "asterisk/utils.h"`
`#include "asterisk/app.h"`

Include dependency graph for func_language.c:

Go to the source code of this file.

## Functions

static char * | builtin_function_language_read (struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
static void | builtin_function_language_write (struct ast_channel *chan, char *cmd, char *data, const char *value)

## Variables

static struct ast_custom_function | language_function

## Detailed Description

Language related dialplan functions.

Definition in file func_language.c.

## Function Documentation

static char* builtin_function_language_read | ( | struct ast_channel * | chan,
|  | char * | cmd,
|  | char * | data,
|  | char * | buf,
|  | size_t | len |
| ) |  |  | `[static]`

Definition at line 37 of file func_language.c.

References ast_channel::language.

    00038 {
    00039    ast_copy_string(buf, chan ? chan->language : "", len);
    00040
    00041    return buf;
    00042 }

static void builtin_function_language_write | ( | struct ast_channel * | chan,
|  | char * | cmd,
|  | char * | data,
|  | const char * | value |
| ) |  |  | `[static]`

Definition at line 44 of file func_language.c.

References ast_channel::language.

    00045 {
    00046    if (chan && value)
    00047       ast_copy_string(chan->language, value, sizeof(chan->language));
    00048 }

## Variable Documentation

struct ast_custom_function language_function`[static]`

Definition at line 53 of file func_language.c.