From 14f76f1e81f0a4e7a63e83136d1ac958bf85c8a5 Mon Sep 17 00:00:00 2001 From: Super User Date: Sat, 19 Jan 2008 18:10:46 +0100 Subject: work on unfinished asterisk channel driver (bchannel handling) modified: Makefile modified: README modified: action.cpp modified: admin_server.c modified: apppbx.cpp modified: apppbx.h new file: bchannel.c new file: bchannel.h renamed: asterisk_client.c -> chan_lcr.c renamed: asterisk_client.h -> chan_lcr.h deleted: channel.c modified: dss1.cpp modified: extension.c modified: extension.h modified: interface.c modified: interface.h modified: joinremote.cpp modified: joinremote.h modified: mISDN.cpp modified: mISDN.h modified: main.h modified: message.h modified: route.c modified: todo.txt --- apppbx.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'apppbx.cpp') diff --git a/apppbx.cpp b/apppbx.cpp index e59bbea..c2619e9 100644 --- a/apppbx.cpp +++ b/apppbx.cpp @@ -40,7 +40,7 @@ EndpointAppPBX::EndpointAppPBX(class Endpoint *epoint, int origin) : EndpointApp memset(&e_ext, 0, sizeof(struct extension)); // *************** NOTE: also change value in read_extension() ************** e_ext.rights = 4; /* international */ - e_ext.rxvol = e_ext.txvol = 0; + e_ext.rx_gain = e_ext.tx_gain = 0; e_state = EPOINT_STATE_IDLE; e_ext.number[0] = '\0'; e_extension_interface[0] = '\0'; @@ -1569,12 +1569,12 @@ void EndpointAppPBX::port_setup(struct port_list *portlist, int message_type, un /* set volume of rx and tx */ if (param->setup.callerinfo.itype == INFO_ITYPE_ISDN_EXTENSION) - if (e_ext.txvol!=0 || e_ext.rxvol!=0) + if (e_ext.tx_gain!=0 || e_ext.rx_gain!=0) { message = message_create(ea_endpoint->ep_serial, portlist->port_id, EPOINT_TO_PORT, MESSAGE_mISDNSIGNAL); message->param.mISDNsignal.message = mISDNSIGNAL_VOLUME; - message->param.mISDNsignal.rxvol = e_ext.txvol; - message->param.mISDNsignal.txvol = e_ext.rxvol; + message->param.mISDNsignal.rx_gain = e_ext.tx_gain; + message->param.mISDNsignal.tx_gain = e_ext.rx_gain; message_put(message); } @@ -2059,12 +2059,12 @@ void EndpointAppPBX::port_connect(struct port_list *portlist, int message_type, new_state(EPOINT_STATE_CONNECT); /* set volume of rx and tx */ - if (e_ext.txvol!=0 || e_ext.rxvol!=0) + if (e_ext.tx_gain!=0 || e_ext.rx_gain!=0) { message = message_create(ea_endpoint->ep_serial, portlist->port_id, EPOINT_TO_PORT, MESSAGE_mISDNSIGNAL); message->param.mISDNsignal.message = mISDNSIGNAL_VOLUME; - message->param.mISDNsignal.rxvol = e_ext.txvol; - message->param.mISDNsignal.txvol = e_ext.rxvol; + message->param.mISDNsignal.rx_gain = e_ext.tx_gain; + message->param.mISDNsignal.tx_gain = e_ext.rx_gain; message_put(message); } @@ -2439,13 +2439,13 @@ void EndpointAppPBX::port_notify(struct port_list *portlist, int message_type, u case INFO_NOTIFY_USER_RESUMED: /* set volume of rx and tx */ if (param->setup.callerinfo.itype == INFO_ITYPE_ISDN_EXTENSION) - if (e_ext.txvol!=0 || e_ext.rxvol!=0) + if (e_ext.tx_gain!=0 || e_ext.rx_gain!=0) if (portlist) { message = message_create(ea_endpoint->ep_serial, portlist->port_id, EPOINT_TO_PORT, MESSAGE_mISDNSIGNAL); message->param.mISDNsignal.message = mISDNSIGNAL_VOLUME; - message->param.mISDNsignal.rxvol = e_ext.txvol; - message->param.mISDNsignal.txvol = e_ext.rxvol; + message->param.mISDNsignal.rx_gain = e_ext.tx_gain; + message->param.mISDNsignal.tx_gain = e_ext.rx_gain; message_put(message); } /* set current tone */ -- cgit v1.2.3-55-g7522