Support new TRANSPORT definitions in libss7
authorMatthew Fredrickson <creslin@digium.com>
Fri, 11 Jul 2008 21:36:26 +0000 (21:36 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 11 Jul 2008 21:36:26 +0000 (21:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130293 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 767a00f..640df55 100644 (file)
@@ -13230,7 +13230,11 @@ static int linkset_addsigchan(int sigchan)
                        return -1;
                }
 
-               ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDI, link->fds[curfd]);
+               if (p.sigtype == DAHDI_SIG_MTP2)
+                       ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDIMTP2, link->fds[curfd]);
+               else
+                       ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDIDCHAN, link->fds[curfd]);
+
                link->numsigchans++;
 
                memset(&si, 0, sizeof(si));