Merge sending complete patch with no number (bug #176)
authorMark Spencer <markster@digium.com>
Sat, 13 Sep 2003 23:57:48 +0000 (23:57 +0000)
committerMark Spencer <markster@digium.com>
Sat, 13 Sep 2003 23:57:48 +0000 (23:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1509 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 834f9b2..002a7d8 100755 (executable)
@@ -5831,6 +5831,12 @@ static void *pri_dchannel(void *vpri)
 #endif
                                        else
                                                strcpy(pri->pvt[chan]->exten, "");
 #endif
                                        else
                                                strcpy(pri->pvt[chan]->exten, "");
+                                       /* No number yet, but received "sending complete"? */
+                                       if (e->ring.complete && (!strlen(e->ring.callednum))) {
+                                               if (option_verbose > 2)
+                                                       ast_verbose(VERBOSE_PREFIX_3 "Going to extension s|1 because of Complete received\n");
+                                               strcpy(pri->pvt[chan]->exten, "s");
+                                       }
                                        /* queue DTMF frame if the PBX for this call was already started (we're forwarding INFORMATION further on */
                                        if (pri->overlapdial && pri->pvt[chan]->call==e->ring.call && pri->pvt[chan]->owner) {
                                                /* how to do that */
                                        /* queue DTMF frame if the PBX for this call was already started (we're forwarding INFORMATION further on */
                                        if (pri->overlapdial && pri->pvt[chan]->call==e->ring.call && pri->pvt[chan]->owner) {
                                                /* how to do that */