On Fri, 31 Mar 2006, Armin Schindler wrote: > On Fri, 31 Mar 2006, Daniel Swarbrick wrote: > > On Fri, 2006-03-31 at 00:36 +0200, Armin Schindler wrote: > > > > > Hi, > > > > > > maybe it's too late here and I should go to bed, but after upgrading to > > > current pre-0.2 branch, my music-on-hold does not work any more. > > > > > > > Which SVN revision are you running? I ran into a similar problem quite > > some time ago, but the problem turned out to be when you added language > > support to chan_capi, and the struct wasn't being populated with the > > language code from capi.conf properly. Without the language code in the > > struct, file.c wasn't searching directories properly, and reported that > > no suitable MoH formats were found. > > I don't have the revision number here, but I exported from pre-0.2 five days > ago. > > If no language is set, file.c uses DEFAULT_LANGUAGE and in either case the > searched path seems to be something like > /opt/openpbx.org/var/data/sounds/en/opt/openpbx.org/var/data/moh/my_sound
Daniel you are right, the setting of language= for capi fixes it. Thanks for that. But I still think there is an error: Why do I need to set a language? The DEFAULT_LANGUAGE should be enough. And why is a language setting necessary, when the moh file is not searched in lang-subdirectories? Armin _______________________________________________ Openpbx-dev mailing list [email protected] http://lists.openpbx.org/mailman/listinfo/openpbx-dev
