summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMartin Pycko <martinp@digium.com>2003-09-05 04:00:57 +0000
committerMartin Pycko <martinp@digium.com>2003-09-05 04:00:57 +0000
commit6e8a0749127130c38c886551fd0d057407a0341a (patch)
treeba9c758b3575cc4236d5efa9f2f02d4b20e761d4 /apps
parentfb1c18e6fd124dbd67b60d83e7f0bc7610f1012c (diff)
Add restrictcid=[yes|no] for chan_zap and chan_sip. You can specify if the sip/zap users will have the callerid transmitted as ANI or CALLERID.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_dial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index f1a566fec..1594317ea 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -568,6 +568,8 @@ static int dial_exec(struct ast_channel *chan, void *data)
tmp->chan->ani = strdup(chan->ani);
else
tmp->chan->ani = NULL;
+ /* Pass hidecallerid setting */
+ tmp->chan->restrictcid = chan->restrictcid;
/* Presense of ADSI CPE on outgoing channel follows ours */
tmp->chan->adsicpe = chan->adsicpe;
/* Place the call, but don't wait on the answer */