- set RDNIS if redirecting number was received.

This commit is contained in:
MelwareDE 2005-10-01 08:54:09 +00:00
parent 47df07e707
commit e62f05eb33
1 changed files with 5 additions and 0 deletions

View File

@ -2320,6 +2320,11 @@ static void capi_handle_info_indication(_cmsg *CMSG, unsigned int PLCI, unsigned
snprintf(reasonbuf, sizeof(reasonbuf) - 1, "%d", val);
pbx_builtin_setvar_helper(i->owner, "REDIRECTINGNUMBER", p);
pbx_builtin_setvar_helper(i->owner, "REDIRECTREASON", reasonbuf);
#ifdef CC_AST_CHANNEL_HAS_CID
i->owner->cid.cid_num = strdup(p);
#else
i->owner->rdnis = strdup(p);
#endif
}
break;
case 0x00a1: /* Sending Complete */