aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-15 17:09:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-15 17:09:34 +0000
commitc710ff2c1ab8c49ca631e222eec21046c4bf4714 (patch)
treea827ef0dea922cd212dd0f6486ae0c9d40cf9768
parent5423a2a2771ba708a6849f735587c2a3f8a20c8f (diff)
MOve to definition
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@854 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_zap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 7999d1952..4d4554514 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -74,6 +74,9 @@
/* #define ZHONE_HACK */
+/* Typically, how many rings before we should send Caller*ID */
+#define DEFAULT_CIDRINGS 1
+
#define CHANNEL_PSEUDO -12
#define AST_LAW(p) (((p)->law == ZT_LAW_ALAW) ? AST_FORMAT_ALAW : AST_FORMAT_ULAW)
@@ -1177,7 +1180,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
} else {
if (ioctl(p->subs[SUB_REAL].zfd, ZT_SETCADENCE, NULL))
ast_log(LOG_WARNING, "Unable to reset default ring on '%s'\n", ast->name);
- p->cidrings = 1;
+ p->cidrings = DEFAULT_CIDRINGS;
}