Never mind that patch. Its ust totally messy. Why to we need number and name anyway ? And not just use ast_chan->cid.cid_num ? Michael
Btw. It works great. Sound is indeed better i think (than zaphfc). But there is still a bad fifo problem (te mode outgoing, incomming is okay) > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:visdn-hackers- > [EMAIL PROTECTED] Im Auftrag von Michael Labuschke > Gesendet: Samstag, 19. November 2005 23:55 > An: [email protected] > Betreff: AW: [Visdn-hackers] 2.6.14 kernel and asterisk 1.2 > > This is a patch to a patch ( matteos -head ( *-1.2) patch) > > > --- visdn-0.0.0.orig/chan_visdn/chan_visdn.c 2005-11-19 > 23:43:15.000000000 +0100 > +++ visdn-0.0.0/chan_visdn/chan_visdn.c 2005-11-19 23:39:01.000000000 > +0100 > @@ -1413,8 +1413,10 @@ > > char *name=NULL, *number=NULL; > > - strcpy(name, ast_chan->cid.cid_name); > - strcpy(number, ast_chan->cid.cid_num); > + name=malloc(strlen(ast_chan->cid.cid_name) + 1); > + number=malloc(strlen(ast_chan->cid.cid_num) + 1); > + strncpy(name, > ast_chan->cid.cid_name,sizeof(ast_chan->cid.cid_name)); > + strncpy(number, > ast_chan->cid.cid_num,sizeof(ast_chan->cid.cid_num)); > > if (number) { > struct q931_ie_calling_party_number *cgpn = > @@ -2165,6 +2167,7 @@ > static const struct ast_channel_tech visdn_tech = { > .type = VISDN_CHAN_TYPE, > .description = VISDN_DESCRIPTION, > + .capabilities = AST_FORMAT_ALAW, > .requester = visdn_request, > .call = visdn_call, > .hangup = visdn_hangup, > > > -----Ursprüngliche Nachricht----- > > Von: [EMAIL PROTECTED] [mailto:visdn-hackers- > > [EMAIL PROTECTED] Im Auftrag von oliver oli > > Gesendet: Samstag, 19. November 2005 20:52 > > An: [email protected] > > Betreff: [Visdn-hackers] 2.6.14 kernel and asterisk 1.2 > > > > i'm using the snapshot from today with a 2.6.12 kernel and asterisk > > 1.0.9. does it also work with 2.6.14 kernel and/or asterisk 1.2? > > > > btw, i have the impresion that visdn sounds a little bit better than > > zaphfc... > > _______________________________________________ > > Visdn-hackers mailing list > > [email protected] > > https://mailman.uli.it/mailman/listinfo/visdn-hackers > > _______________________________________________ > Visdn-hackers mailing list > [email protected] > https://mailman.uli.it/mailman/listinfo/visdn-hackers _______________________________________________ Visdn-hackers mailing list [email protected] https://mailman.uli.it/mailman/listinfo/visdn-hackers
