From: Martin Pycko Date: Thu, 27 Mar 2003 20:46:26 +0000 (+0000) Subject: Fix callerid with sample.call like outgoing calls X-Git-Tag: 0.4.0~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65761373bda169655e3e77db63327a01de08911c;p=thirdparty%2Fasterisk.git Fix callerid with sample.call like outgoing calls git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@707 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index 0e8136bb7c..20d38b3ec7 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) {