diff options
author | Martin Pycko <martinp@digium.com> | 2003-03-27 20:46:26 +0000 |
---|---|---|
committer | Martin Pycko <martinp@digium.com> | 2003-03-27 20:46:26 +0000 |
commit | 65761373bda169655e3e77db63327a01de08911c (patch) | |
tree | 5040e2a5c723993880eed643db820f9efbba768a /pbx.c | |
parent | e44df9eaa27a8e6669fc76ad8fceb655a7fb9813 (diff) |
Fix callerid with sample.call like outgoing calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |