Open up audio channel when we get ACM on SS7 event
authorMatthew Fredrickson <creslin@digium.com>
Sun, 11 May 2008 02:19:21 +0000 (02:19 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Sun, 11 May 2008 02:19:21 +0000 (02:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115598 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 0788957..d134f69 100644 (file)
@@ -9632,6 +9632,7 @@ static void *ss7_linkset(void *data)
                                        break;
                                } else {
                                        struct ast_frame f = { AST_FRAME_CONTROL, AST_CONTROL_PROCEEDING, };
+                                       struct ast_frame g = { AST_FRAME_CONTROL, AST_CONTROL_PROGRESS, };
 
                                        p = linkset->pvts[chanpos];
 
@@ -9644,6 +9645,8 @@ static void *ss7_linkset(void *data)
                                        ast_mutex_lock(&p->lock);
                                        zap_queue_frame(p, &f, linkset);
                                        p->proceeding = 1;
+                                       zap_queue_frame(p, &g, linkset);
+                                       p->progress = 1;
 
                                        ast_mutex_unlock(&p->lock);
                                }