added the option 'reject_cause' to make it possible to set the RELEASE_COMPLETE - cause on the 3. incoming PMP channel, which is automatically rejected because chan_misdn does not support that kind of callwaiting. Therefore chan_misdn supports now 3 incoming channels on a PMP BRI Port. misdn_lib_get_free_bc now gets the info if the requested channel is incoming or outgoing to make the 3. channel possible

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Christian Richter
2006-10-04 15:13:58 +00:00
parent 9c405de30d
commit 0b4f47c3c3
6 changed files with 95 additions and 26 deletions

View File

@@ -19,6 +19,14 @@
/* typedef int ie_nothing_t ;*/
/** end of init usage **/
/*
* uncomment the following to make chan_misdn create
* record files in /tmp/misdn-{rx|tx}-PortChannel format
* */
/*#define MISDN_SAVE_DATA*/
#ifdef WITH_BEROEC
typedef int beroec_t;
@@ -94,6 +102,7 @@ enum mISDN_NUMBER_PLAN {
enum event_response_e {
RESPONSE_IGNORE_SETUP_WITHOUT_CLOSE,
RESPONSE_IGNORE_SETUP,
RESPONSE_RELEASE_SETUP,
RESPONSE_ERR,
RESPONSE_OK
};
@@ -228,6 +237,7 @@ struct misdn_bchannel {
int channel_preselected;
int in_use;
int cw;
int addr;
unsigned char * bframe;
@@ -391,7 +401,7 @@ char *manager_isdn_get_info(enum event_e event);
void misdn_lib_transfer(struct misdn_bchannel* holded_bc);
struct misdn_bchannel* misdn_lib_get_free_bc(int port, int channel);
struct misdn_bchannel* misdn_lib_get_free_bc(int port, int channel, int inout);
void manager_bchannel_activate(struct misdn_bchannel *bc);
void manager_bchannel_deactivate(struct misdn_bchannel * bc);