[android] tongenerator in conference bridge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
I have problem with playing tonegenerator and call at same time. I'd like to hear other side and play some tone(likie CW tone) by tonegenerator to playback device. Here is log form call:
							  pjsua_media.c  ......Audio updated, stream #0: PCMA (sendrecv)
pjsua_aud.c  .....Switch connect: 1 --> 0
pjsua_aud.c  ......Opening sound device (speaker + mic) PCM@8000/1/20ms
android_jni_dev.c  .......Creating Android JNI stream
android_jni_dev.c  .......Using audio input source : 7
android_jni_dev.c  .......Audio record initialized successfully.
android_jni_dev.c  Recorder thread started
android_jni_dev.c  Setting thread priority successful
android_jni_dev.c  .......Audio track initialized successfully.
android_jni_dev.c  Playback thread started
android_jni_dev.c  Setting thread priority successful
android_jni_dev.c  .......Android JNI stream started
conf_switch.c ......Port 1 (tonegen) transmitting to port 0 (Android JNI (8KHz))
pjsua_aud.c  .....Switch connect: 0 --> 2
conf_switch.c ......Port 0 (Android JNI (8KHz)) transmitting to port 2 (sip:number@sipserver)
pjsua_aud.c  .....Switch connect: 2 --> 0
conf_switch.c ......Connection [1->0] is disconnected for new connection [2->0] conf_switch.c ......Port 1 (tonegen) stop transmitting to port 0 (Android JNI (8KHz)) conf_switch.c ......Port 2 (sip:number@sipserver) transmitting to port 0 (Android JNI (8KHz))

and here is my onCallMediaState callback

if (toneGenerator != null) {toneGenerator.startTransmit(ep.audDevManager().getPlaybackDevMedia());} ep.audDevManager().getCaptureDevMedia().startTransmit(am); am.startTransmit(ep.audDevManager().getPlaybackDevMedia());

I don't know why pjsua_aud make Switch not Conf in pjsua_conf_connect, I'm using pjsip in version 2.6, as I remember in old version it was working.

Do you know how I to make conference bridge in my case?

BR,
Andrzej

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux