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
This commit is contained in:
Martin Pycko
2003-09-05 04:00:57 +00:00
parent fb1c18e6fd
commit 6e8a074912
4 changed files with 24 additions and 1 deletions

View File

@@ -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 */