mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Copy Caller*ID on local channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -189,6 +189,15 @@ static int local_digit(struct ast_channel *ast, char digit)
|
||||
static int local_call(struct ast_channel *ast, char *dest, int timeout)
|
||||
{
|
||||
struct local_pvt *p = ast->pvt->pvt;
|
||||
|
||||
if (p->owner->callerid)
|
||||
p->chan->callerid = strdup(p->owner->callerid);
|
||||
else
|
||||
p->chan->callerid = NULL;
|
||||
if (p->owner->ani)
|
||||
p->chan->ani = strdup(p->owner->ani);
|
||||
else
|
||||
p->chan->ani = NULL;
|
||||
/* Start switch on sub channel */
|
||||
return ast_pbx_start(p->chan);
|
||||
}
|
||||
|
Reference in New Issue
Block a user