|
From: Tzafrir C. <tza...@xo...> - 2009-09-23 12:48:26
|
On Thu, Sep 17, 2009 at 04:06:52PM -0400, Henri Herscher wrote:
> Tzafir,
>
> This object is initialize both in Initialize() and in Configure(), I wonder
> how you managed to get it null?
> Did you run OrkAudio without a config file or something? How did you manage
> to get this segfault?
I still can't reproduce this, but see the following. Liens begginng with
'#' in the following trace are comments I have added now and not part of
the trace. Also note that this shifted lines of other messages down a
bit.
Also note that orkadio is not installed on the system. In order to avoid
the install cycle, I have:
oreka$ ls -l plugins/ orkaudio/orkaudio
-rwxr-xr-x 1 tzafrir tzafrir 542058 2009-09-23 13:37 orkaudio/orkaudio
plugins/:
lrwxrwxrwx 1 tzafrir tzafrir 63 2009-09-23 12:17 libgenerator.so -> ../orkaudio/audiocaptureplugins/generator/.libs/libgenerator.so
lrwxrwxrwx 1 tzafrir tzafrir 49 2009-09-23 12:17 librtpmixer.so -> ../orkaudio/filters/rtpmixer/.libs/librtpmixer.so
lrwxrwxrwx 1 tzafrir tzafrir 53 2009-09-23 12:17 libvoip.so -> ../orkaudio/audiocaptureplugins/voip/.libs/libvoip.so
I also moved /usr/lib/orkaudio/plugins out of the way to make sure it is
not used.
My config file:
$ sed -e 's/<!--.*-->//' -e '/^[ \t]*$/d' /etc/orkaudio/config.xml
<config>
<AudioOutputPath>/var/log/orkaudio/audio</AudioOutputPath>
<CapturePlugin>libvoip.so</CapturePlugin>
<CapturePluginPath>/home/tzafrir/Proj/Asterisk/Oreka/oreka/plugins</CapturePluginPath>
<StorageAudioFormat>gsm</StorageAudioFormat>
<DeleteNativeFile>yes</DeleteNativeFile>
<TrackerHostname>localhost</TrackerHostname>
<TrackerTcpPort>8080</TrackerTcpPort>
<CapturePortFilters>LiveMonitoring</CapturePortFilters>
<TapeProcessors>BatchProcessing, Reporting</TapeProcessors>
<BatchProcessingEnhancePriority>true</BatchProcessingEnhancePriority>
<VoIpPlugin>
<Devices>eth0</Devices>
<DahdiIntercept>yes</DahdiIntercept>
</VoIpPlugin>
</config>
This is basically the default (linux) config file, with the following
differences:
1. CapturePluginPath set to some non-standard value. The value
originally set in the file: '/usr/lib', which is quite non-useful.
2. The value for 'Devices' under 'VoIpPlugin' is explicitly set to
'eth0'. In my case the default value (when it was not set) was "the last
network adapter, which happens to be 'tun0' and not very useful.
sweetmorn:~# /home/tzafrir/Proj/Asterisk/Oreka/oreka/orkaudio/orkaudio debug
# Message added by me:
2009-09-23 12:39:14,038 INFO root:226 - Before loading CapturePluginProxy
2009-09-23 12:39:14,039 INFO root:109 - Loaded plugin: /home/tzafrir/Proj/Asterisk/Oreka/oreka/plugins/libvoip.so
2009-09-23 12:39:14,044 INFO packet:3587 - Initializing VoIP plugin
2009-09-23 12:39:14,146 INFO packet:3400 - Available pcap devices:
2009-09-23 12:39:14,146 INFO packet:3407 - * eth0 -
2009-09-23 12:39:14,158 INFO packet:3439 - Successfully opened device.
pcap handle:f981a0 message:arptype 65534 not supported by libpcap -
falling back to cooked socket
2009-09-23 12:39:14,158 INFO packet:3407 - * tun0 -
2009-09-23 12:39:14,158 INFO packet:3407 - * any - Pseudo-device that captures on all interfaces
2009-09-23 12:39:14,158 INFO packet:3407 - * lo -
2009-09-23 12:39:14,158 WARN packet:3540 - LoadPartyMaps: Could not open file:localpartymap.csv -- trying:/etc/orkaudio/localpartymap.csv now
2009-09-23 12:39:14,159 INFO packet:3546 - LoadPartyMaps: Could not open file:/etc/orkaudio/localpartymap.csv either -- giving up
# Added by me:
2009-09-23 12:39:14,159 INFO root:234 - Calling LoadPlugins from MainThread
2009-09-23 12:39:14,159 ERROR root:88 - Plugins directory could not be found:/usr/lib/orkaudio/plugins/ check your config.xml
2009-09-23 12:39:14,159 INFO taperegistry:55 - Registered processor: BatchProcessing
2009-09-23 12:39:14,159 INFO reporting:301 - Thread reporting to localhost,8080 started
2009-09-23 12:39:14,160 INFO taperegistry:55 - Registered processor: Reporting
2009-09-23 12:39:14,160 INFO taperegistry:55 - Registered processor: TapeFileNaming
2009-09-23 12:39:14,160 INFO immediateProcessing:64 - thread starting - queue size:10000
2009-09-23 12:39:14,160 INFO batchProcessing:102 - thread Th0 starting - queue size:20000
2009-09-23 12:39:14,160 INFO tapeFileNamingLog:86 - Started
2009-09-23 12:39:14,161 INFO commandlineserver:59 - Started command line server on port:59130
2009-09-23 12:39:14,161 INFO httpserver:159 - Started HTTP server on port:59140
2009-09-23 12:39:14,162 INFO eventstreamingserver:277 - Started event streaming server on port:59150
2009-09-23 12:39:14,162 INFO packet:3089 - Start Capturing: pcap
handle:f981a0
As you can see, the voip plugin is loaded from
CapturePluginProxy::Singleton()->Initialize() and loaded from the right
path. A bit later on, LoadPlugins() fails to find the plugins directory
I set and tries to use the hardwired default.
--
Tzafrir Cohen
icq#16849755 jabber:tza...@xo...
+972-50-7952406 mailto:tza...@xo...
http://www.xorcom.com iax:gu...@lo.../tzafrir
|