Error getting the conference signal level:

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

 



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);
    }


Cheers
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20071114/852e8fba/attachment.html 


[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