summaryrefslogtreecommitdiff
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-10-02 01:05:11 +0000
committerMark Spencer <markster@digium.com>2004-10-02 01:05:11 +0000
commit8dd03ff284b2115c0f1a5a76e47e3428453eaf08 (patch)
treedbf627c56e51a78c5fa3e8bb719ad4dada9874ec /apps/app_dial.c
parent04fc29c8b2e7db9b66a138f47412770867819f7f (diff)
Move populate TNS/Presentation/TON from calling channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-xapps/app_dial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index e9c435ff5..c09d054dd 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -823,6 +823,10 @@ static int dial_exec(struct ast_channel *chan, void *data)
strncpy(tmp->chan->musicclass, chan->musicclass, sizeof(tmp->chan->musicclass) - 1);
/* Pass callingpres setting */
tmp->chan->cid.cid_pres = chan->cid.cid_pres;
+ /* Pass type of number */
+ tmp->chan->cid.cid_ton = chan->cid.cid_ton;
+ /* Pass type of tns */
+ tmp->chan->cid.cid_tns = chan->cid.cid_tns;
/* Presense of ADSI CPE on outgoing channel follows ours */
tmp->chan->adsicpe = chan->adsicpe;
/* pass the digital flag */