]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Move populate TNS/Presentation/TON from calling channel
authorMark Spencer <markster@digium.com>
Sat, 2 Oct 2004 01:05:11 +0000 (01:05 +0000)
committerMark Spencer <markster@digium.com>
Sat, 2 Oct 2004 01:05:11 +0000 (01:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3875 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index e9c435ff5956fba8e8115ad89e4a974e9b0c837d..c09d054dd5969678b0b92988ba496bf053ecd662 100755 (executable)
@@ -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 */