[Asterisk-cvs] asterisk/channels chan_zap.c,1.155,1.156
martinp at lists.digium.com
martinp at lists.digium.com
Thu Dec 18 10:09:35 CST 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv19685/channels
Modified Files:
chan_zap.c
Log Message:
Change long variable name to the shorter one
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- chan_zap.c 17 Dec 2003 23:39:16 -0000 1.155
+++ chan_zap.c 18 Dec 2003 16:01:08 -0000 1.156
@@ -136,7 +136,7 @@
static char musicclass[MAX_LANGUAGE] = "";
static int use_callerid = 1;
-static int useincomingcalleridonzaptransfer = 0;
+static int zaptrcallerid = 0;
static int cur_signalling = -1;
static unsigned int cur_group = 0;
@@ -456,7 +456,7 @@
int resetting;
int prioffset;
int alreadyhungup;
- int useincomingcalleridonzaptransfer;
+ int zaptrcallerid; /* should we use the callerid from incoming call on zap transfer or not */
#ifdef PRI_EVENT_PROCEEDING
int proceeding;
#endif
@@ -3024,7 +3024,7 @@
} else if (!p->subs[SUB_THREEWAY].owner) {
char callerid[256];
if (p->threewaycalling && !check_for_conference(p)) {
- if (p->useincomingcalleridonzaptransfer && p->owner)
+ if (p->zaptrcallerid && p->owner)
strncpy(callerid, p->owner->callerid, sizeof(callerid) - 1);
/* XXX This section needs much more error checking!!! XXX */
/* Start a 3-way call if feasible */
@@ -3034,7 +3034,7 @@
if (!alloc_sub(p, SUB_THREEWAY)) {
/* Make new channel */
chan = zt_new(p, AST_STATE_RESERVED, 0, SUB_THREEWAY, 0, 0);
- if (p->useincomingcalleridonzaptransfer) {
+ if (p->zaptrcallerid) {
if (!p->origcallerid) {
p->origcallerid = malloc(strlen(p->callerid) + 1);
strncpy(p->origcallerid, p->callerid, strlen(p->callerid) + 1);
@@ -5319,7 +5319,7 @@
tmp->channel = channel;
tmp->stripmsd = stripmsd;
tmp->use_callerid = use_callerid;
- tmp->useincomingcalleridonzaptransfer = useincomingcalleridonzaptransfer;
+ tmp->zaptrcallerid = zaptrcallerid;
tmp->restrictcid = restrictcid;
tmp->use_callingpres = use_callingpres;
strncpy(tmp->accountcode, accountcode, sizeof(tmp->accountcode)-1);
@@ -7161,7 +7161,7 @@
else
strncpy(callerid, v->value, sizeof(callerid)-1);
} else if (!strcasecmp(v->name, "useincomingcalleridonzaptransfer")) {
- useincomingcalleridonzaptransfer = ast_true(v->value);
+ zaptrcallerid = ast_true(v->value);
} else if (!strcasecmp(v->name, "restrictcid")) {
restrictcid = ast_true(v->value);
} else if (!strcasecmp(v->name, "usecallingpres")) {
More information about the svn-commits
mailing list