Segfault core dump in chan_capi.c


I get a core dump from chan_capi.c, when trying to connect from one specific SIP inbound connection to an outbound CAPI channel. A local SIP phone can connect to that capi channel without problems. I’m using the most recent Junghans BRI-Stuff package (bristuff-0.3.0-PRE-1l), which contains asterisk 1.2.4 (with Junghans patches, including chan_capi version 0.4.0-PRE1.

The console log indicates no errors (nothing different from the working connections), by asterisk just dies.

GDB indicates that the segfault is triggered by a strncpy in chan_capi.c, line 1152.

Has anyone a good suggestion how to find out what exactly is causing this?

Thanks for your help,