aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-27 20:46:26 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-27 20:46:26 +0000
commit098bd84e629db6c2df49a97ad924061662984483 (patch)
tree5040e2a5c723993880eed643db820f9efbba768a
parentddc1292a8f4a30c4a6ee19eadae4f921d329a244 (diff)
Fix callerid with sample.call like outgoing calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@707 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xpbx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index 0e8136bb7..20d38b3ec 100755
--- a/pbx.c
+++ b/pbx.c
@@ -3181,6 +3181,8 @@ int ast_pbx_outgoing_exten(char *type, int format, void *data, int timeout, char
strncpy(chan->context, context, sizeof(chan->context) - 1);
if (exten && strlen(exten))
strncpy(chan->exten, exten, sizeof(chan->exten) - 1);
+ if (callerid && strlen(callerid))
+ strncpy(chan->callerid, callerid, sizeof(chan->callerid) - 1);
if (priority > 0)
chan->priority = priority;
if (sync > 1) {