mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
Allow the use of immediate=yes with PRI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5547,8 +5547,11 @@ static void *pri_dchannel(void *vpri)
|
||||
strcpy(pri->pvt[chan]->callerid, "");
|
||||
strncpy(pri->pvt[chan]->rdnis, e->ring.redirectingnum, sizeof(pri->pvt[chan]->rdnis));
|
||||
}
|
||||
/* If immediate=yes go to s|1 */
|
||||
if (pri->pvt[chan]->immediate)
|
||||
strcpy(pri->pvt[chan]->exten, "s");
|
||||
/* Get called number */
|
||||
if (strlen(e->ring.callednum)) {
|
||||
else if (strlen(e->ring.callednum)) {
|
||||
strncpy(pri->pvt[chan]->exten, e->ring.callednum, sizeof(pri->pvt[chan]->exten)-1);
|
||||
}
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user