Add a verbose message for those that have immediate=yes on the PRI
authorMartin Pycko <martinp@digium.com>
Tue, 3 Jun 2003 16:24:12 +0000 (16:24 +0000)
committerMartin Pycko <martinp@digium.com>
Tue, 3 Jun 2003 16:24:12 +0000 (16:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1070 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index de10dd4..889f71c 100755 (executable)
@@ -5608,8 +5608,11 @@ static void *pri_dchannel(void *vpri)
                                                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)
+                                       if (pri->pvt[chan]->immediate) {
+                                               if (option_verbose > 2)
+                                                       ast_verbose(VERBOSE_PREFIX_3 "Going to extension s|1 because of immediate=yes\n");
                                                strcpy(pri->pvt[chan]->exten, "s");
+                                       }
                                        /* Get called number */
                                        else if (strlen(e->ring.callednum)) {
                                                strncpy(pri->pvt[chan]->exten, e->ring.callednum, sizeof(pri->pvt[chan]->exten)-1);