Optimize global/user/peer configuration call options. Bug #4336

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeremy McNamara
2005-05-21 17:09:30 +00:00
parent 39f884aaff
commit 2353f5925c
2 changed files with 120 additions and 200 deletions

View File

@@ -36,11 +36,14 @@ typedef struct call_options {
int noFastStart;
int noH245Tunneling;
int noSilenceSuppression;
/* unsigned int port; */
int progress_setup;
int progress_alert;
int progress_audio;
int dtmfcodec;
int dtmfmode;
int capability;
int bridge;
int nat;
} call_options_t;
/* structure to hold the valid asterisk users */
@@ -51,14 +54,10 @@ struct oh323_user {
char callerid[80];
char accountcode[20];
int amaflags;
int capability;
int bridge;
int nat;
int dtmfmode;
int host;
call_options_t options;
struct ast_ha *ha;
struct sockaddr_in addr;
struct ast_ha *ha;
call_options_t options;
struct oh323_user *next;
};
@@ -67,10 +66,6 @@ struct oh323_user {
struct oh323_peer {
char name[80];
char mailbox[80];
int capability;
int bridge;
int nat;
int dtmfmode;
int delme;
struct sockaddr_in addr;
struct ast_ha *ha;