Re: [Opalvoip-user] Restrict devices before opening OPAL?
Brought to you by:
csoutheren,
rjongbloed
|
From: Robert J. <ro...@vo...> - 2015-02-19 23:37:36
|
I am bit confused by your requirement, as V4L is video and ALSA is audio,
they are not interchangeable!
There is nothing to be called before OpalInitialise() it is the first
function you call.
I do not understand why not having a V4L device causes OpalInitialise to
return NULL. It should not care. Can you provide the trace log?
Robert Jongbloed
*OPAL/OpenH323/PTLib Architect and Co-founder*.
On 19 February 2015 at 16:01, jeremy ardley <jer...@gm...> wrote:
> I use a small snippet of code to open the OPAL device in a SIP voice
> application
>
> OpalHandle hOPAL;
>
> unsigned version;
>
> version = OPAL_C_API_VERSION;
>
> if ((hOPAL = OpalInitialise(&version, OPAL_PREFIX_SIP " TraceLevel=4"))
> == NULL)
>
> {
>
> fputs("Could not initialise OPAL\n", stderr);
>
> return false;
>
> }
>
> However the OPAL instance wants to open a V4L2 device and fails since I
> don't have one.
>
> Can I prevent the OPAL instance from trying to open a V4L device and
> instead open an ALSA device?
>
> What calls prior to the OplaInitialise are required? Or is using the
> wrapper functions not suitable for this and I should use low level
> calls? Or does it require compile time switches? In all cases is there a
> link or tutorial I can use?
>
> I did searches on the error message phrase and not found much of use
> other than similar messages from apps using OPAL. I also looked through
> the doxygen documentation but it's a bit obscure about this. I also
> installed a 4VL device and got it to work O.K. but my target application
> won't have V4L.
>
> Any advice appreciated.
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> Opalvoip-user mailing list
> Opa...@li...
> https://lists.sourceforge.net/lists/listinfo/opalvoip-user
>
|