aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 23:49:57 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-10 23:49:57 +0000
commit72af60b3e6fa9af1b23524377a82330e18cca8d3 (patch)
tree4db59d5d09ba10d210876efd1cab834c716be5b0 /channels
parentcbc8a4b7d2382b98f0666fd6a81ce4cca5a4fc22 (diff)
define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6076 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_alsa.c4
-rwxr-xr-xchannels/chan_h323.c4
-rwxr-xr-xchannels/chan_iax2.c12
-rwxr-xr-xchannels/chan_local.c20
-rwxr-xr-xchannels/chan_oss.c4
-rwxr-xr-xchannels/chan_sip.c10
-rwxr-xr-xchannels/chan_skinny.c4
-rwxr-xr-xchannels/chan_zap.c10
8 files changed, 34 insertions, 34 deletions
diff --git a/channels/chan_alsa.c b/channels/chan_alsa.c
index bdf273ec0..0fd44922b 100755
--- a/channels/chan_alsa.c
+++ b/channels/chan_alsa.c
@@ -91,7 +91,7 @@ static const char desc[] = "ALSA Console Channel Driver";
static const char tdesc[] = "ALSA Console Channel Driver";
static const char config[] = "alsa.conf";
-static char context[AST_MAX_EXTENSION] = "default";
+static char context[AST_MAX_CONTEXT] = "default";
static char language[MAX_LANGUAGE] = "";
static char exten[AST_MAX_EXTENSION] = "s";
@@ -124,7 +124,7 @@ static struct chan_alsa_pvt {
keeps this driver as simple as possible -- as it should be. */
struct ast_channel *owner;
char exten[AST_MAX_EXTENSION];
- char context[AST_MAX_EXTENSION];
+ char context[AST_MAX_CONTEXT];
#if 0
snd_pcm_t *card;
#endif
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 671e9e401..e306131d4 100755
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -98,7 +98,7 @@ static const char type[] = "H323";
static const char desc[] = "The NuFone Network's Open H.323 Channel Driver";
static const char tdesc[] = "The NuFone Network's Open H.323 Channel Driver";
static const char config[] = "h323.conf";
-static char default_context[AST_MAX_EXTENSION] = "default";
+static char default_context[AST_MAX_CONTEXT] = "default";
static struct sockaddr_in bindaddr;
/** H.323 configuration values */
@@ -129,7 +129,7 @@ struct oh323_pvt {
int nonCodecCapability; /* non-audio capability */
int outgoing; /* Outgoing or incoming call? */
char exten[AST_MAX_EXTENSION]; /* Requested extension */
- char context[AST_MAX_EXTENSION]; /* Context where to start */
+ char context[AST_MAX_CONTEXT]; /* Context where to start */
char accountcode[256]; /* Account code */
char cid_num[80]; /* Caller*id number, if available */
char cid_name[80]; /* Caller*id name, if available */
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 7b4f556e9..4889d4efd 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -127,7 +127,7 @@ static const char channeltype[] = "IAX2";
static char context[80] = "default";
static char language[MAX_LANGUAGE] = "";
-static char regcontext[AST_MAX_EXTENSION] = "";
+static char regcontext[AST_MAX_CONTEXT] = "";
static int max_retries = 4;
static int ping_time = 20;
@@ -217,7 +217,7 @@ static pthread_t netthreadid = AST_PTHREADT_NULL;
#define IAX_STATE_TBD (1 << 2)
struct iax2_context {
- char context[AST_MAX_EXTENSION];
+ char context[AST_MAX_CONTEXT];
struct iax2_context *next;
};
@@ -277,7 +277,7 @@ struct iax2_peer {
char secret[80];
char dbsecret[80];
char outkey[80]; /* What key we use to talk to this peer */
- char context[AST_MAX_EXTENSION]; /* For transfers only */
+ char context[AST_MAX_CONTEXT]; /* For transfers only */
char regexten[AST_MAX_EXTENSION]; /* Extension to register (if regcontext is used) */
char peercontext[AST_MAX_EXTENSION]; /* Context to pass to peer */
char mailbox[AST_MAX_EXTENSION]; /* Mailbox */
@@ -605,7 +605,7 @@ static struct ast_firmware_list {
#define CACHE_FLAG_MATCHMORE (1 << 7)
static struct iax2_dpcache {
- char peercontext[AST_MAX_EXTENSION];
+ char peercontext[AST_MAX_CONTEXT];
char exten[AST_MAX_EXTENSION];
struct timeval orig;
struct timeval expirey;
@@ -2654,8 +2654,8 @@ struct create_addr_info {
char outkey[80];
char timezone[80];
char prefs[32];
- char context[AST_MAX_EXTENSION];
- char peercontext[AST_MAX_EXTENSION];
+ char context[AST_MAX_CONTEXT];
+ char peercontext[AST_MAX_CONTEXT];
};
static int create_addr(const char *peername, struct sockaddr_in *sin, struct create_addr_info *cai)
diff --git a/channels/chan_local.c b/channels/chan_local.c
index a16e07ed2..fd8c7f318 100755
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -87,18 +87,18 @@ static const struct ast_channel_tech local_tech = {
};
static struct local_pvt {
- ast_mutex_t lock; /* Channel private lock */
- char context[AST_MAX_EXTENSION]; /* Context to call */
+ ast_mutex_t lock; /* Channel private lock */
+ char context[AST_MAX_CONTEXT]; /* Context to call */
char exten[AST_MAX_EXTENSION]; /* Extension to call */
- int reqformat; /* Requested format */
- int glaredetect; /* Detect glare on hangup */
- int cancelqueue; /* Cancel queue */
- int alreadymasqed; /* Already masqueraded */
- int launchedpbx; /* Did we launch the PBX */
+ int reqformat; /* Requested format */
+ int glaredetect; /* Detect glare on hangup */
+ int cancelqueue; /* Cancel queue */
+ int alreadymasqed; /* Already masqueraded */
+ int launchedpbx; /* Did we launch the PBX */
int nooptimization;
- struct ast_channel *owner; /* Master Channel */
- struct ast_channel *chan; /* Outbound channel */
- struct local_pvt *next; /* Next entity */
+ struct ast_channel *owner; /* Master Channel */
+ struct ast_channel *chan; /* Outbound channel */
+ struct local_pvt *next; /* Next entity */
} *locals = NULL;
static int local_queue_frame(struct local_pvt *p, int isoutbound, struct ast_frame *f, struct ast_channel *us)
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index c4b05101e..8b61abf87 100755
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -87,7 +87,7 @@ static const char desc[] = "OSS Console Channel Driver";
static const char tdesc[] = "OSS Console Channel Driver";
static const char config[] = "oss.conf";
-static char context[AST_MAX_EXTENSION] = "default";
+static char context[AST_MAX_CONTEXT] = "default";
static char language[MAX_LANGUAGE] = "";
static char exten[AST_MAX_EXTENSION] = "s";
@@ -120,7 +120,7 @@ static struct chan_oss_pvt {
keeps this driver as simple as possible -- as it should be. */
struct ast_channel *owner;
char exten[AST_MAX_EXTENSION];
- char context[AST_MAX_EXTENSION];
+ char context[AST_MAX_CONTEXT];
} oss;
static struct ast_channel *oss_request(const char *type, int format, void *data, int *cause);
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 5ed890f2b..80374497c 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -262,7 +262,7 @@ const struct cfsip_options {
static char default_useragent[AST_MAX_EXTENSION] = DEFAULT_USERAGENT;
#define DEFAULT_CONTEXT "default"
-static char default_context[AST_MAX_EXTENSION] = DEFAULT_CONTEXT;
+static char default_context[AST_MAX_CONTEXT] = DEFAULT_CONTEXT;
static char default_language[MAX_LANGUAGE] = "";
@@ -351,7 +351,7 @@ static int recordhistory = 0; /* Record SIP history. Off by default */
static char global_musicclass[MAX_MUSICCLASS] = ""; /* Global music on hold class */
#define DEFAULT_REALM "asterisk"
static char global_realm[MAXHOSTNAMELEN] = DEFAULT_REALM; /* Default realm */
-static char regcontext[AST_MAX_EXTENSION] = ""; /* Context for auto-extensions */
+static char regcontext[AST_MAX_CONTEXT] = ""; /* Context for auto-extensions */
/* Expire slowly */
#define DEFAULT_EXPIRY 900
@@ -516,7 +516,7 @@ static struct sip_pvt {
int route_persistant; /* Is this the "real" route? */
char from[256]; /* The From: header */
char useragent[256]; /* User agent in SIP request */
- char context[AST_MAX_EXTENSION]; /* Context for this call */
+ char context[AST_MAX_CONTEXT]; /* Context for this call */
char fromdomain[MAXHOSTNAMELEN]; /* Domain to show in the from field */
char fromuser[AST_MAX_EXTENSION]; /* User to show in the user field */
char fromname[AST_MAX_EXTENSION]; /* Name to show in the user field */
@@ -600,7 +600,7 @@ struct sip_user {
ASTOBJ_COMPONENTS(struct sip_user);
char secret[80]; /* Password */
char md5secret[80]; /* Password in md5 */
- char context[AST_MAX_EXTENSION]; /* Default context for incoming calls */
+ char context[AST_MAX_CONTEXT]; /* Default context for incoming calls */
char cid_num[80]; /* Caller ID num */
char cid_name[80]; /* Caller ID name */
char accountcode[AST_MAX_ACCOUNT_CODE]; /* Account code */
@@ -631,7 +631,7 @@ struct sip_peer {
char secret[80]; /* Password */
char md5secret[80]; /* Password in MD5 */
struct sip_auth *auth; /* Realm authentication list */
- char context[AST_MAX_EXTENSION]; /* Default context for incoming calls */
+ char context[AST_MAX_CONTEXT]; /* Default context for incoming calls */
char username[80]; /* Temporary username until registration */
char accountcode[AST_MAX_ACCOUNT_CODE]; /* Account code */
int amaflags; /* AMA Flags (for billing) */
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index 45d5db23d..545dc29dd 100755
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -672,7 +672,7 @@ struct ast_hostent ahp; struct hostent *hp;
static int skinnysock = -1;
static pthread_t tcp_thread;
static pthread_t accept_t;
-static char context[AST_MAX_EXTENSION] = "default";
+static char context[AST_MAX_CONTEXT] = "default";
static char language[MAX_LANGUAGE] = "";
static char musicclass[MAX_MUSICCLASS] = "";
static char cid_num[AST_MAX_EXTENSION] = "";
@@ -816,7 +816,7 @@ struct skinny_line {
struct skinny_subchannel *sub; /* pointer to our current connection, channel and stuff */
char accountcode[AST_MAX_ACCOUNT_CODE];
char exten[AST_MAX_EXTENSION]; /* Extention where to start */
- char context[AST_MAX_EXTENSION];
+ char context[AST_MAX_CONTEXT];
char language[MAX_LANGUAGE];
char cid_num[AST_MAX_EXTENSION]; /* Caller*ID */
char cid_name[AST_MAX_EXTENSION]; /* Caller*ID */
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index e3ac80dc4..f1ff5ffa8 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -165,7 +165,7 @@ static const char config[] = "zapata.conf";
static int cur_emdigitwait = 250; /* Wait time in ms for digits on EM channel */
-static char context[AST_MAX_EXTENSION] = "default";
+static char context[AST_MAX_CONTEXT] = "default";
static char cid_num[256] = "";
static char cid_name[256] = "";
static char defaultcic[64] = "";
@@ -371,7 +371,7 @@ struct zt_pri {
pthread_t master; /* Thread of master */
ast_mutex_t lock; /* Mutex */
char idleext[AST_MAX_EXTENSION]; /* Where to idle extra calls */
- char idlecontext[AST_MAX_EXTENSION]; /* What context to use for idle */
+ char idlecontext[AST_MAX_CONTEXT]; /* What context to use for idle */
char idledial[AST_MAX_EXTENSION]; /* What to dial before dumping */
int minunused; /* Min # of channels to keep empty */
int minidle; /* Min # of "idling" calls to keep active */
@@ -449,7 +449,7 @@ struct distRingData {
int ring[3];
};
struct ringContextData {
- char contextData[AST_MAX_EXTENSION];
+ char contextData[AST_MAX_CONTEXT];
};
struct zt_distRings {
struct distRingData ringnum[3];
@@ -562,8 +562,8 @@ static struct zt_pvt {
struct zt_distRings drings;
- char context[AST_MAX_EXTENSION];
- char defcontext[AST_MAX_EXTENSION];
+ char context[AST_MAX_CONTEXT];
+ char defcontext[AST_MAX_CONTEXT];
char exten[AST_MAX_EXTENSION];
char language[MAX_LANGUAGE];
char musicclass[MAX_MUSICCLASS];