~damg/ubuntu/quantal/asterisk/LP1097687

« back to all changes in this revision

Viewing changes to funcs/func_channel.c

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey)
  • Date: 2009-09-22 16:22:14 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922162214-awce8id0lt9v51jb
Tags: 1:1.6.2.0~rc2-0ubuntu1

* New upstream version, upstream is now DFSG compliant.
  - ilibc has been removed upstream.
  - Music on Hold is now cc-by-sa.
  - binary firmware iaxy.bin has been removed upstream.
* debian/rules: Santitised UPSTREAM variable for compatiability
  with Ubuntu and other variants.
* debian/control: Removed Debian Vcs-Svn entry and replaced 
  with ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
* patches/makefile_appdocs_dtd: Removed, merged upstream.
* patches/disable_moh: Previosly disabled, removed from pool.
* patches/ubuntu-banner: Ported debian-banner to display Ubuntu
  centric bug report information.
* Refresh quilt patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "asterisk.h"
28
28
 
29
 
ASTERISK_FILE_VERSION(__FILE__, "$Revision: 193612 $")
 
29
ASTERISK_FILE_VERSION(__FILE__, "$Revision: 211580 $")
30
30
 
31
31
#include <regex.h>
32
32
 
323
323
        } else if (!strcasecmp(data, "callgroup"))
324
324
                chan->callgroup = ast_get_group(value);
325
325
        else if (!strcasecmp(data, "txgain")) {
326
 
                sscanf(value, "%hhd", &gainset);
 
326
                sscanf(value, "%4hhd", &gainset);
327
327
                ast_channel_setoption(chan, AST_OPTION_TXGAIN, &gainset, sizeof(gainset), 0);
328
328
        } else if (!strcasecmp(data, "rxgain")) {
329
 
                sscanf(value, "%hhd", &gainset);
 
329
                sscanf(value, "%4hhd", &gainset);
330
330
                ast_channel_setoption(chan, AST_OPTION_RXGAIN, &gainset, sizeof(gainset), 0);
331
331
        } else if (!strcasecmp(data, "transfercapability")) {
332
332
                unsigned short i;