On Fri, 16 Dec 2005, Daniel Swarbrick wrote: > Armin Schindler wrote: > > > > chan_capi speaks alaw (or ulaw) only, which is set in > > writeformat/readformat. This works with older Asterisk perfectly. But > > with current OpenPBX I get an error when calling SIP/IAX2 which allow > > gsm only. According to the debug log, the formats are set correctly, but > > OpenPBX is sending frames with subclass 'slin' to chan_capi->write instead > > of alaw. > > > > I may be wrong, but isn't it necessary to match the ulaw/alaw format of > CAPI to the telco? ie. for ETSI it will be alaw, for North America it > will be ulaw?
Yes, if course. The default of chan_capi is alaw, but you can switch to ulaw by changing that in capi.conf. > I have a problem which may or may not be related to what you describe > above anyway. I've got OpenPBX SVN-1137 working quite well with an Eicon > Divas 4-port BRI card - simple in/out calling works fine. If an incoming > CAPI call hits a SIP phone, and that call is answered and then > transferred to another SIP phone, the original PSTN caller hears > extremely choppy/garbled/unintelligible sound, but the SIP callee can > hear the PSTN caller perfectly. Up until the transfer however, the sound > is fine, both ways. The SIP phone (Grandstream GXP2000) shows the codec > as alaw (since we are ETSI in NZ), which is fine because the GXP2000 is > configured for either a/ulaw. I don't think this is related to my problem above, since it is alaw all along. But if there is a problem with the OpenPBX codec stuff .... > Obviously this is a show-stopper for us, and tonight I had to abort the > PBX cutover and regress to their existing hardware PBX :( I have current OpenPBX SVN in a production system running, without any problems (besides the non-alaw thing above). It works pretty good (if otherwise, I would be killed in that company ;-) The setup is 10 SIP phones (will grow) and 2 DIVA 4BRI cards. The second 4BRI card is running in NT-mode to bridge all 4 BRI lines to an old Alcatel-PBX, which is still in use. Everything as embedded linux image booting from CDROM with just a small IDE-HDD to have logs, sqlite-db and spool-dir for e.g. faxes. So I don't know why you have those problems. Can you provide a debug log? Maybe we can find out whats happening. Armin _______________________________________________ Openpbx-dev mailing list [email protected] http://lists.openpbx.org/mailman/listinfo/openpbx-dev
