Error getting the conference signal level:

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

 



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






[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