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:
Martin Pycko
2003-05-08 16:31:58 +00:00
parent 06101a43c8
commit 94c3b35271

View File

@@ -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