Hi, A possible suspect is audio switchboard is in use, instead of conference bridge. Audio switchboard cannot do audio mixing, hence a port can only receive from only a single source port (old source port will be automatically disconnected first before making new connection). BR, nanang On Tue, Dec 15, 2009 at 10:31 PM, Magnus Burman <magnus.burman at adamo.es> wrote: > Hi guys, > > I'm trying to use pjsip to test some rtp/audio issues. What I want to do is > make multiple outgoing calls and record the incoming audio. Preferably to > one file per call, but if all calls share one file that's OK. > > I'm using the python module for this and are having problems with the > recordings. If I start several calls, it seems only the last one is > recorded. > > I'm struggling to understand how the bridge work. For each call I get a > slot, and for each recording I get a slot, and then I connect the two. Isn't > this the right idea? > > I would be eternally grateful for a push in the right direction. > > Here's my code, simplified: > > dst = "some_number" > for i in range(nr_of_calls): > ? recorder.append(lib.create_recorder('file' + str(i) + '.wav')) > ? calls.append(acc.make_call(dst, call_cb)) > > In the on_media_state in the callback: > global lib, recorder > if self.call.info().media_state == pj.MediaState.ACTIVE: > ? call_slot = self.call.info().conf_slot > ? rec_slot = lib.recorder_get_slot(recorder) > ? lib.conf_connect(call_slot, rec_slot) > > Best Regards, > Magnus > > _______________________________________________ > 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 > >