mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
More whitespace and typo fixes for chan_skinny - yay!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -827,7 +827,7 @@ struct skinny_line {
|
||||
char label[42]; /* Label that shows next to the line buttons */
|
||||
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 exten[AST_MAX_EXTENSION]; /* Extension where to start */
|
||||
char context[AST_MAX_CONTEXT];
|
||||
char language[MAX_LANGUAGE];
|
||||
char cid_num[AST_MAX_EXTENSION]; /* Caller*ID */
|
||||
@@ -979,7 +979,7 @@ static struct skinny_subchannel *find_subchannel_by_name(char *dest)
|
||||
}
|
||||
d = d->next;
|
||||
}
|
||||
/* Device not found*/
|
||||
/* Device not found */
|
||||
ast_mutex_unlock(&devicelock);
|
||||
return NULL;
|
||||
}
|
||||
@@ -1590,7 +1590,7 @@ static struct skinny_device *build_device(char *cat, struct ast_variable *v)
|
||||
l->mwiblink = mwiblink;
|
||||
l->onhooktime = time(NULL);
|
||||
l->instance = 1;
|
||||
/* ASSUME we're onhook at this point*/
|
||||
/* ASSUME we're onhook at this point */
|
||||
l->hookstate = SKINNY_ONHOOK;
|
||||
|
||||
for (i = 0; i < MAX_SUBS; i++) {
|
||||
@@ -1851,8 +1851,8 @@ static void *skinny_ss(void *data)
|
||||
sub->next->owner &&
|
||||
ast_bridged_channel(sub->next->owner)) {
|
||||
/* This is a three way call, the main call being a real channel,
|
||||
and we're parking the first call. */
|
||||
ast_masq_park_call(ast_bridged_channel(sub->next->owner), chan, 0, NULL);
|
||||
and we're parking the first call. */
|
||||
ast_masq_park_call(ast_bridged_channel(sub->next->owner), chan, 0, NULL);
|
||||
if (option_verbose > 2) {
|
||||
ast_verbose(VERBOSE_PREFIX_3 "Parking call to '%s'\n", chan->name);
|
||||
}
|
||||
@@ -2388,7 +2388,7 @@ static int handle_message(skinny_req *req, struct skinnysession *s)
|
||||
transmit_response(s, req);
|
||||
break;
|
||||
case UNREGISTER_MESSAGE:
|
||||
/* XXX Acutally unregister the device */
|
||||
/* XXX Actually unregister the device */
|
||||
break;
|
||||
case IP_PORT_MESSAGE:
|
||||
/* no response necessary */
|
||||
@@ -2613,7 +2613,7 @@ static int handle_message(skinny_req *req, struct skinnysession *s)
|
||||
#if 0
|
||||
/* XXX Do this right XXX */
|
||||
/* If the redial function works the way I think it will, a modification of it
|
||||
can work here was well. Yikes. */
|
||||
can work here as well. Yikes. */
|
||||
req->data.speeddialreq.speedDialNumber = speedDialNum;
|
||||
snprintf(req->data.speeddial.speedDialDirNumber, sizeof(req->data.speeddial.speedDialDirNumber), "31337");
|
||||
snprintf(req->data.speeddial.speedDialDisplayName, sizeof(req->data.speeddial.speedDialDisplayName),"Asterisk Rules!");
|
||||
@@ -2704,7 +2704,7 @@ static int handle_message(skinny_req *req, struct skinnysession *s)
|
||||
case ONHOOK_MESSAGE:
|
||||
sub = find_subchannel_by_line(s->device->lines);
|
||||
if (sub->parent->hookstate == SKINNY_ONHOOK) {
|
||||
/* Somthing else already put us back on hook */
|
||||
/* Something else already put us back on hook */
|
||||
break;
|
||||
}
|
||||
sub->cxmode = SKINNY_CX_RECVONLY;
|
||||
@@ -2714,8 +2714,8 @@ static int handle_message(skinny_req *req, struct skinnysession *s)
|
||||
ast_verbose("Skinny %s@%s went on hook\n",sub->parent->name, sub->parent->parent->name);
|
||||
}
|
||||
if (sub->parent->transfer && (sub->owner && sub->next->owner) && ((!sub->outgoing) || (!sub->next->outgoing))) {
|
||||
/* We're allowed to transfer, we have two active calls and */
|
||||
/* we made at least one of the calls. Let's try and transfer */
|
||||
/* We're allowed to transfer, we have two active calls and
|
||||
we made at least one of the calls. Let's try and transfer */
|
||||
|
||||
#if 0
|
||||
if ((res = attempt_transfer(p)) < 0) {
|
||||
|
Reference in New Issue
Block a user