summaryrefslogtreecommitdiff
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authorJeremy McNamara <jj@nufone.net>2003-09-12 23:47:02 +0000
committerJeremy McNamara <jj@nufone.net>2003-09-12 23:47:02 +0000
commit86278dfb1fd9f5e455fad73fbfb1d79ef0415a6b (patch)
tree0ae2d195a090e1caa287317cf506481a8361d9b9 /channels/chan_skinny.c
parent3bd044c236b8d1b8fb61f91070b3f9b435ddc52e (diff)
clean up code and output d->addr properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_skinny.c')
-rwxr-xr-xchannels/chan_skinny.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index 1d59a59cc..05637c8e6 100755
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -9,6 +9,7 @@
*
* This program is free software, distributed under the terms of
* the GNU General Public License
+ *
*/
@@ -549,6 +550,7 @@ static int callnums = 1;
#define SKINNY_CX_MUTE 4
#define SKINNY_CX_INACTIVE 4
+#if 0
static char *skinny_cxmodes[] = {
"sendonly",
"recvonly",
@@ -556,6 +558,7 @@ static char *skinny_cxmodes[] = {
"confrnce",
"inactive"
};
+#endif
/* driver scheduler */
static struct sched_context *sched;
@@ -921,7 +924,7 @@ static int skinny_show_lines(int fd, int argc, char *argv[])
d = devices;
while(d) {
l = d->lines;
- ast_cli(fd, "Device '%s' at %s\n", d->name, d->addr.sin_addr.s_addr);
+ ast_cli(fd, "Device '%s' at %s\n", d->name, inet_ntoa(d->addr.sin_addr));
while(l) {
ast_cli(fd, " -- '%s@%s in '%s' is %s\n", l->name, d->name, l->context, l->sub->owner ? "active" : "idle");
haslines = 1;
@@ -2352,19 +2355,6 @@ static struct ast_channel *skinny_request(char *type, int format, void *data)
sub->parent->callwaiting, sub->parent->dnd, sub->owner ? 1 : 0, sub->next->owner ? 1: 0);
}
- /* Must be busy */
- if (((sub->parent->callwaiting) && ((sub->owner) && (sub->next->owner))) ||
- ((!sub->parent->callwaiting) && (sub->owner)) ||
- (sub->parent->dnd && (!strlen(sub->parent->call_forward)))) {
- if (sub->parent->hookstate == SKINNY_ONHOOK) {
- if (has_voicemail(sub->parent)) {
-// transmit_notify_request(sub,"vmwi(+)");
- } else {
-// transmit_notify_request(sub,"vmwi(-)");
- }
- }
- return NULL;
- }
tmpc = skinny_new(sub->owner ? sub->next : sub, AST_STATE_DOWN);
if (!tmpc)
ast_log(LOG_WARNING, "Unable to make channel for '%s'\n", tmp);
@@ -2374,7 +2364,7 @@ static struct ast_channel *skinny_request(char *type, int format, void *data)
return tmpc;
}
-static int reload_config()
+static int reload_config(void)
{
int on=1;
struct ast_config *cfg;