mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 04:46:29 +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 */
|
char label[42]; /* Label that shows next to the line buttons */
|
||||||
struct skinny_subchannel *sub; /* pointer to our current connection, channel and stuff */
|
struct skinny_subchannel *sub; /* pointer to our current connection, channel and stuff */
|
||||||
char accountcode[AST_MAX_ACCOUNT_CODE];
|
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 context[AST_MAX_CONTEXT];
|
||||||
char language[MAX_LANGUAGE];
|
char language[MAX_LANGUAGE];
|
||||||
char cid_num[AST_MAX_EXTENSION]; /* Caller*ID */
|
char cid_num[AST_MAX_EXTENSION]; /* Caller*ID */
|
||||||
@@ -2388,7 +2388,7 @@ static int handle_message(skinny_req *req, struct skinnysession *s)
|
|||||||
transmit_response(s, req);
|
transmit_response(s, req);
|
||||||
break;
|
break;
|
||||||
case UNREGISTER_MESSAGE:
|
case UNREGISTER_MESSAGE:
|
||||||
/* XXX Acutally unregister the device */
|
/* XXX Actually unregister the device */
|
||||||
break;
|
break;
|
||||||
case IP_PORT_MESSAGE:
|
case IP_PORT_MESSAGE:
|
||||||
/* no response necessary */
|
/* no response necessary */
|
||||||
@@ -2613,7 +2613,7 @@ static int handle_message(skinny_req *req, struct skinnysession *s)
|
|||||||
#if 0
|
#if 0
|
||||||
/* XXX Do this right XXX */
|
/* XXX Do this right XXX */
|
||||||
/* If the redial function works the way I think it will, a modification of it
|
/* 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;
|
req->data.speeddialreq.speedDialNumber = speedDialNum;
|
||||||
snprintf(req->data.speeddial.speedDialDirNumber, sizeof(req->data.speeddial.speedDialDirNumber), "31337");
|
snprintf(req->data.speeddial.speedDialDirNumber, sizeof(req->data.speeddial.speedDialDirNumber), "31337");
|
||||||
snprintf(req->data.speeddial.speedDialDisplayName, sizeof(req->data.speeddial.speedDialDisplayName),"Asterisk Rules!");
|
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:
|
case ONHOOK_MESSAGE:
|
||||||
sub = find_subchannel_by_line(s->device->lines);
|
sub = find_subchannel_by_line(s->device->lines);
|
||||||
if (sub->parent->hookstate == SKINNY_ONHOOK) {
|
if (sub->parent->hookstate == SKINNY_ONHOOK) {
|
||||||
/* Somthing else already put us back on hook */
|
/* Something else already put us back on hook */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sub->cxmode = SKINNY_CX_RECVONLY;
|
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);
|
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))) {
|
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're allowed to transfer, we have two active calls and
|
||||||
/* we made at least one of the calls. Let's try and transfer */
|
we made at least one of the calls. Let's try and transfer */
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if ((res = attempt_transfer(p)) < 0) {
|
if ((res = attempt_transfer(p)) < 0) {
|
||||||
|
Reference in New Issue
Block a user