Hi, PJ_EINVAL may be caused by port number supplied is not valid. Try to check by enumerating ports in the conference bridge, see pjmedia_conf_enum_ports(). BR, nanang On Wed, Apr 14, 2010 at 11:39 PM, Saeed Abbassi <saeed144 at gmail.com> wrote: > Dear all, > > While trying to create a conference bridge and trying to attach port 1 > (pjmedia_snd_port_create_rec) to port 2 (pjmedia_snd_port_create_player), > both dev_id = -1; > I get this, > > Please help me, > I want to hard code a loop back in conference bridge, > Thanks in advance, > Saeed.A > >> >> ?21:03:04.937???? wmme_dev.c? WMME initialized, found 3 devices: >> ?21:03:04.937???? wmme_dev.c?? dev_id 0: Wave mapper? (in=2, out=2) >> ?21:03:04.937???? wmme_dev.c?? dev_id 1: Realtek HD Audio Input? (in=2, >> out=0) >> ?21:03:04.937???? wmme_dev.c?? dev_id 2: Realtek HD Audio output? (in=0, >> out=2) >> ?21:03:04.937????????? pjlib? WinNT IOCP I/O Queue created (003B633C) >> ?21:03:04.937?? conference.c? Creating conference bridge with 3 ports >> ?21:03:04.953?????? pa_dev.c? Opened device Microsoft Sound Mapper - >> Input(MME)/Microsoft Sound Mapper - Output(MME) for recording and playback, >> sample rate=44100, ch=2, bits=16, 882 samples per frame, input latency=120 >> ms, output latency=120 ms >> ?21:03:04.953?????? pa_dev.c? Starting Microsoft Sound Mapper - Input >> stream.. >> ?21:03:04.953?????? pa_dev.c? PA message: Pa_StartStream: waveInStart >> returned = 0x0. >> >> ?21:03:04.953?????? pa_dev.c? Done, status=0 >> ?21:03:04.953?? conference.c? Sound device successfully created for port 0 >> ?21:03:04.953?????? pa_dev.c? Opened device Microsoft Sound Mapper - Input >> (MME) for recording, sample rate=44100, ch=2, bits=16, 882 samples per >> frame, latency=120 ms >> ?21:03:04.953?????? pa_dev.c? Starting Microsoft Sound Mapper - Input >> stream.. >> ?21:03:04.953?????? pa_dev.c? PA message: Pa_StartStream: waveInStart >> returned = 0x0. >> >> ?21:03:04.953?????? pa_dev.c? Done, status=0 >> ?21:03:04.953?????? pa_dev.c? Opened device 2: Microsoft Sound Mapper - >> Output(MME) for playing, sample rate=44100, ch=2, bits=16, 882 samples per >> frame, latency=120 ms >> ?21:03:04.953?????? pa_dev.c? Starting Microsoft Sound Mapper - Output >> stream.. >> ?21:03:04.953?????? pa_dev.c? Done, status=0 >> ?21:03:04.953?????? loopbk.c? Error connecting port 1 to 2: Invalid value >> or argument (PJ_EINVAL) [code=70004] >> started.. >> ?21:03:04.984?????? pa_dev.c? Player thread started >> ?21:03:05.015?????? pa_dev.c? Recorder thread started >> ?21:03:05.015?????? pa_dev.c? Recorder thread started >> ?21:03:06.031?????? pa_dev.c? Stopping stream.. >> ?21:03:06.031?????? pa_dev.c? PA message: WinMME StopStream: waiting for >> background thread. >> >> ?21:03:06.031?????? pa_dev.c? Done, status=0 >> ?21:03:06.234?????? pa_dev.c? Closing Microsoft Sound Mapper - Output: 0 >> underflow, 0 overflow >> ?21:03:06.437????????? media? Thread stack max usage=0 by (null):0 >> ?21:03:06.437?????? pa_dev.c? PortAudio sound library shutting down.. >> ?21:03:06.437?????? pa_dev.c? PA message: TerminateHostApis in >> >> ?21:03:06.437?????? pa_dev.c? PA message: TerminateHostApis out >> >> ?21:03:06.437????? sndstream? Pool is not released by application, >> releasing now >> ?21:03:06.437??????? recstrm? Pool is not released by application, >> releasing now >> ?21:03:06.437??? thr00000AF8? Main thread stack max usage=4085 by >> ..\src\pj\string.c:174 > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >