[Asterisk-Dev] Problems with chan_capi

Jorge Merlino jorge at teledata.com.uy
Wed Jun 8 12:46:20 MST 2005


Hello:

I'm using chan_capi with asterisk 1.0.5 and an eicon diva card with 4 
bri channels. The problem is that chan_capi breaks with a segfault error 
and asterisk goes down about two or three times a day. I don't know if 
this driver is still being developed but anyway here I attach a 
backtrace of the error I get. I don't have asterisk compiled with debug 
but the error seems to come from chan_capi.

Regards,
    Jorge


#0  0x409518b4 in pipe_msg (PLCI=135934568, CMSG=0x8108200) at 
chan_capi.c:1432
        in chan_capi.c
#0  0x409518b4 in pipe_msg (PLCI=135934568, CMSG=0x8108200) at 
chan_capi.c:1432
        i = (struct ast_capi_pvt *) 0x68742074
        CMSG = {ApplId = 1, Command = 128 '\200', Subcommand = 128 '\200',
  Messagenumber = 24036, adr = {adrController = 3736066, adrPLCI = 3736066,
    adrNCCI = 3736066}, AdditionalInfo = CAPI_COMPOSE, B1configuration = 
0x0,
  B1protocol = 0, B2configuration = 0x0, B2protocol = 0,
  B3configuration = 0x0, B3protocol = 0, BC = 0x0, BChannelinformation = 
0x0,
  BProtocol = CAPI_COMPOSE, CalledPartyNumber = 0x0,
  CalledPartySubaddress = 0x0, CallingPartyNumber = 0x0,
  CallingPartySubaddress = 0x20640000 <Address 0x20640000 out of bounds>,
  CIPmask = 0, CIPmask2 = 0, CIPValue = 0, Class = 0, ConnectedNumber = 0x0,
  ConnectedSubaddress = 0x0, Data32 = 0, Data64 = 0, DataHandle = 0,
  DataLength = 0, FacilityConfirmationParameter = 0x0,
  Facilitydataarray = 0x0,
  FacilityIndicationParameter = 0xa <Address 0xa out of bounds>,
  FacilityRequestParameter = 0x28 <Address 0x28 out of bounds>,
  FacilityResponseParameters = 0x40be8b70 "", FacilitySelector = 0, 
Flags = 0,
  Function = 0, HLC = 0x7 <Address 0x7 out of bounds>, Info = 35680,
  InfoElement = 0x40be8a0c "", InfoMask = 0, InfoNumber = 32357,
  Keypadfacility = 0x1b <Address 0x1b out of bounds>,
  LLC = 0xffffffff <Address 0xffffffff out of bounds>, ManuData = 0x0,
  ManuID = 1086228232, NCPI = 0x0, Reason = 0, Reason_B3 = 0, Reject = 0,
  Useruserdata = 0x0, SendingComplete = 0x40157158 "\200½öúÿÿ", Data = 0x0,
  l = 21, p = 3, par = 0x40968534 "\003 \036\001", m = 0x4096c740 "\036",
  buf = '\0' <repeats 44 times>, "{~\r\b", '\0' <repeats 106 times>, "x 
", '\0' <repeats 23 times>}
        buf = "\006\001\000\002\000@"
        CMSG2 = {ApplId = 1, Command = 4 '\004', Subcommand = 131 '\203',
  Messagenumber = 44751, adr = {adrController = 516, adrPLCI = 516,
    adrNCCI = 516}, AdditionalInfo = CAPI_COMPOSE, B1configuration = 0x0,
  B1protocol = 0, B2configuration = 0x0, B2protocol = 0,
  B3configuration = 0x0, B3protocol = 0, BC = 0x0, BChannelinformation = 
0x0,
  BProtocol = CAPI_COMPOSE, CalledPartyNumber = 0x0,
  CalledPartySubaddress = 0x0, CallingPartyNumber = 0x0,
  CallingPartySubaddress = 0x0, CIPmask = 0, CIPmask2 = 0, CIPValue = 0,
  Class = 0, ConnectedNumber = 0x0, ConnectedSubaddress = 0x0, Data32 = 0,
  Data64 = 0, DataHandle = 0, DataLength = 0,
  FacilityConfirmationParameter = 0x0, Facilitydataarray = 0x0,
  FacilityIndicationParameter = 0x0, FacilityRequestParameter = 0x0,
  FacilityResponseParameters = 0x0, FacilitySelector = 0, Flags = 0,
  Function = 0, HLC = 0x0, Info = 0, InfoElement = 0x0, InfoMask = 0,
  InfoNumber = 0, Keypadfacility = 0x0, LLC = 0x0, ManuData = 0x0, 
ManuID = 0,
  NCPI = 0x0, Reason = 0, Reason_B3 = 0, Reject = 0, Useruserdata = 0x0,
  SendingComplete = 0x0, Data = 0x0, l = 12, p = 1,
  par = 0x409685a5 "\003\001", m = 0x4096c740 "\036",
  buf = '\0' <repeats 179 times>}
        error = 0
        fr = {frametype = 5, subclass = 8, datalen = 0, samples = 160,
  mallocd = 0, offset = 64, src = 0x0, data = 0x40be86f4, delivery = {
    tv_sec = 0, tv_usec = 0}, prev = 0x4c, next = 0x40179262}
        b3buf = '\0' <repeats 28 times>, "ùccéé\000\031äþ?", '\0' 
<repeats 26 times>, 
"UWVT×ÓÑÕTUÕÔ×ÕTVWUÕTVQTÔ×ÕÕÕÕÔ××Õ×××××UTTTUUÕUTUÕÕÕÕUUUTTTVWTUUTUÕÕÕÕÕ××ÕÕUTUTTUUUUUÔ×ÕÕÔÕUUUUUÕUUÕUUUUUÕÕUÕÕÕUUÔÕUÕÕUTUUUTTUÕÕÕUTTTTUUÕÕÕÕÔÕÕÕÔÔÕUÕÔÕUÕÕUTTTTTU", 
'\0' <repeats 112 times>...
        j = 135934568
        b3len = 135934568
        dtmf = 48 '0'
        dtmflen = 0
        rxavg = 0
        txavg = 0
        __PRETTY_FUNCTION__ = "pipe_msg"
#1  0x409530e9 in do_monitor (data=0x0) at chan_capi.c:2281
        monCMSG = (_cmsg *) 0x8108200
#2  0x40027421 in pthread_start_thread () from /lib/i686/libpthread.so.0
No symbol table info available.
#3  0x401da36a in clone () from /lib/i686/libc.so.6




More information about the asterisk-dev mailing list