Obviously somebody didn't compile with libss7 support when doing the DAHDI conversion.
authorMatthew Fredrickson <creslin@digium.com>
Fri, 27 Jun 2008 19:00:44 +0000 (19:00 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 27 Jun 2008 19:00:44 +0000 (19:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125982 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 2607780..ba71518 100644 (file)
@@ -9294,7 +9294,7 @@ static void ss7_start_call(struct dahdi_pvt *p, struct dahdi_ss7 *linkset)
        char tmp[256];
 
        if (ioctl(p->subs[SUB_REAL].zfd, DAHDI_AUDIOMODE, &law) == -1)
        char tmp[256];
 
        if (ioctl(p->subs[SUB_REAL].zfd, DAHDI_AUDIOMODE, &law) == -1)
-               ast_log(LOG_WARNING, "Unable to set audio mode on channel %d to %d: %s\n", p->channel, law, strrerror(errno));
+               ast_log(LOG_WARNING, "Unable to set audio mode on channel %d to %d: %s\n", p->channel, law, strerror(errno));
        
        if (linkset->type == SS7_ITU)
                law = DAHDI_LAW_ALAW;
        
        if (linkset->type == SS7_ITU)
                law = DAHDI_LAW_ALAW;
@@ -13215,7 +13215,7 @@ static int linkset_addsigchan(int sigchan)
                        return -1;
                }
 
                        return -1;
                }
 
-               ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDI, link->fds[curfd]);
+               ss7_add_link(link->ss7, SS7_TRANSPORT_ZAP, link->fds[curfd]);
                link->numsigchans++;
 
                memset(&si, 0, sizeof(si));
                link->numsigchans++;
 
                memset(&si, 0, sizeof(si));