summaryrefslogtreecommitdiff
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-12 06:00:18 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-12 06:00:18 +0000
commit66a57e51e328a0c0b855184c15096758401c0dac (patch)
tree37350d3bd0d6df02129f16dc35b893e9a674e627 /apps/app_dial.c
parent67fad0eab1076f82a0f50e74df6ec52b03a95735 (diff)
Wed Mar 12 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@641 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 8743e0baa..ac9953bc3 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -557,6 +557,10 @@ static int dial_exec(struct ast_channel *chan, void *data)
/* If appropriate, log that we have a destination channel */
if (chan->cdr)
ast_cdr_setdestchan(chan->cdr, peer->name);
+ if (peer->name)
+ pbx_builtin_setvar_helper(chan, "DIALEDPEERNAME", peer->name);
+ if (numsubst)
+ pbx_builtin_setvar_helper(chan, "DIALEDPEERNUMBER", numsubst);
/* Make sure channels are compatible */
res = ast_channel_make_compatible(chan, peer);
if (res < 0) {