dect
/
asterisk
Archived
13
0
Fork 0

Copy Caller*ID on local channels

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@954 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-05-03 05:53:42 +00:00
parent 893eaf8d5c
commit cd78510af9
1 changed files with 9 additions and 0 deletions

View File

@ -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);
}