HI Benny, The issue is cleared already, the rx_level gave me the current level of the "incoming" microphone i had on slot one, so whenever checking its value i was never was speaking into the microphone at the same time thats why the value showed 0. Stupid me ;) Cheers Thomas 2007/11/16, Benny Prijono <bennylp at pjsip.org>: > > Thomas Plotkowiak wrote: > > According to the api i should get a value between 0 and 255, when in use > > this function but somehow it does only get set to 0, although i tested > > it and the setting works fine, when I press - the sound gets muted, and > > when I press + i can hear it again. > > > > Some dummy initialization: > > > > unsigned rx_level = 99; > > unsigned tx_level = 99; > > ... > > setup some conference on slot 1. > > ... > > > > for (;;) { > > if (option[0] == '-') > > pjsua_conf_adjust_rx_level(1,0); > > > > if (option[0] =='+') > > pjsua_conf_adjust_rx_level(1,1); > > > > if (option[0] == 's'){ > > status = pjsua_conf_get_signal_level(1, &tx_level, &rx_level); > > if (status != PJ_SUCCESS) error_exit("Error getting port > > volume", status); > > printf("%s%u", "RXLevel: ", rx_level); > > } > > > > Try printing the tx_level too just in case you have some value > there. Also do you really have some signal going to/from the slot? > > cheers, > -benny > > > Cheers > > Thomas > > > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20071116/69e977dc/attachment.html