diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-19 21:13:41 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-19 21:13:41 +0000 |
commit | 10717cc766b828c2b0b344ad7cd74148939bc294 (patch) | |
tree | 788562539a60bddcdd1880d1d76415845a03beac /channels/chan_modem_i4l.c | |
parent | e5d58524be40d77f9d4717c40afff6b5c31fb1c3 (diff) |
Merge Olle's comment patch (bug #3097)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4488 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_modem_i4l.c')
-rwxr-xr-x | channels/chan_modem_i4l.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/channels/chan_modem_i4l.c b/channels/chan_modem_i4l.c index 48e76aa69..0fbf5d49c 100755 --- a/channels/chan_modem_i4l.c +++ b/channels/chan_modem_i4l.c @@ -172,8 +172,8 @@ static int i4l_init(struct ast_modem_pvt *p) if (strlen(p->incomingmsn)) { char *q; snprintf(cmd, sizeof(cmd), "AT&L%s", p->incomingmsn); - // translate , into ; since that is the seperator I4L uses, but can't be directly - // put in the config file because it will interpret the rest of the line as comment. + /* translate , into ; since that is the seperator I4L uses, but can't be directly */ + /* put in the config file because it will interpret the rest of the line as comment. */ q = cmd+4; while (*q) { if (*q == ',') *q = ';'; @@ -319,9 +319,9 @@ static struct ast_frame *i4l_read(struct ast_modem_pvt *p) /* Read the first two bytes, first, in case it's a control message */ res = read(p->fd, result, 2); if (res < 2) { - // short read, means there was a hangup? - // (or is this also possible without hangup?) - // Anyway, reading from unitialized buffers is a bad idea anytime. + /* short read, means there was a hangup? */ + /* (or is this also possible without hangup?) */ + /* Anyway, reading from unitialized buffers is a bad idea anytime. */ if (errno == EAGAIN) return i4l_handle_escape(p, 0); return NULL; @@ -337,7 +337,7 @@ static struct ast_frame *i4l_read(struct ast_modem_pvt *p) ast_modem_trim(result); if (!strcasecmp(result, "VCON")) { /* If we're in immediate mode, reply now */ -// if (p->mode == MODEM_MODE_IMMEDIATE) +/* if (p->mode == MODEM_MODE_IMMEDIATE) */ return i4l_handle_escape(p, 'X'); } else if (!strcasecmp(result, "BUSY")) { @@ -587,11 +587,11 @@ static int i4l_dial(struct ast_modem_pvt *p, char *stuff) char tmpmsn[255]; struct ast_channel *c = p->owner; - // Find callerid number first, to set the correct A number + /* Find callerid number first, to set the correct A number */ if (c && c->cid.cid_num && !(c->cid.cid_pres & 0x20)) { snprintf(tmpmsn, sizeof(tmpmsn), ",%s,", c->cid.cid_num); if(strlen(p->outgoingmsn) && strstr(p->outgoingmsn,tmpmsn) != NULL) { - // Tell ISDN4Linux to use this as A number + /* Tell ISDN4Linux to use this as A number */ snprintf(cmd, sizeof(cmd), "AT&E%s\n", c->cid.cid_num); if (ast_modem_send(p, cmd, strlen(cmd))) { ast_log(LOG_WARNING, "Unable to set A number to %s\n", c->cid.cid_num); |