Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8529833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:07:08+00:00 2026-06-11T09:07:08+00:00

Hello friends and colleagues I am trying to make a function mute / un

  • 0

Hello friends and colleagues

I am trying to make a function mute / un mute microphone and also speakers for my program softphone on pyt4 and using library PJSIP

I found this in the code pjsip

pjsip:

    def conf_set_tx_level(self, slot, level):
        """Adjust the signal level to be transmitted from the bridge to 
        the specified port by making it louder or quieter.

        Keyword arguments:
        slot        -- integer to identify the conference slot number.
        level       -- Signal level adjustment. Value 1.0 means no level
                       adjustment, while value 0 means to mute the port.
        """
        lck = self.auto_lock()
        err = _pjsua.conf_set_tx_level(slot, level)
        self._err_check("conf_set_tx_level()", self, err)

    def conf_set_rx_level(self, slot, level):
        """Adjust the signal level to be received from the specified port
        (to the bridge) by making it louder or quieter.

        Keyword arguments:
        slot        -- integer to identify the conference slot number.
        level       -- Signal level adjustment. Value 1.0 means no level
                       adjustment, while value 0 means to mute the port.
        """
        lck = self.auto_lock()
        err = _pjsua.conf_set_rx_level(slot, level)
        self._err_check("conf_set_rx_level()", self, err)

well I understand I need to send a parameter 0, but how to do?
And to return back work the sound device and microphone.
Maybe it “””””pjsua_conf_adjust_tx_level(slot_number, 0 )”””””

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:07:09+00:00Added an answer on June 11, 2026 at 9:07 am

    himself answer 🙂

    in my case it was so

            # call window
    
            ################ 
            self.MuteMic = False
            self.MuteSpeaker = False
            ################
    
    
            #btn signals
            self.connect(self.MuteUnmuteMicButton, QtCore.SIGNAL("clicked()"), self.MuteUnmuteMic)
            self.connect(self.MuteUnmuteSpeakerButton, QtCore.SIGNAL("clicked()"), self.MuteUnmuteSpeaker)
    
    
    
    
        def MuteUnmuteMic(self):
            try:
                if self.MuteMic:
                    self.MuteMic = False
                    self.parent().unmute_mic()
                else:
                    self.MuteMic = True
                    self.parent().mute_mic()
    
            except:
                    debug ("ошибка при вызове функции включение или отключение микрофона (call Window).")
    
        def MuteUnmuteSpeaker(self):
            try:
                if self.MuteSpeaker:
                    self.MuteSpeaker = False
                    self.parent().unmute_speaker()
                else:
                    self.MuteSpeaker = True
                    self.parent().mute_speaker()
    
            except:
                    debug ("ошибка при вызове функции включение или отключение микрофона (call Window).")
    
    # other code
    
    
    ----------
    
    
    # ----------------------core of the my app 
    # ---import PJUA lib----
    
            def mute_mic(self):
                #this that you need in my case my app connected to pjua "self.lib"
                self.lib.conf_set_rx_level(0,0)
    
                debug ("вызвана функция выключение микрофона")
            def unmute_mic(self):
                self.lib.conf_set_rx_level(0,1)
    
            debug ("вызвана функция включение микрофона")
            def mute_speaker(self):         
                self.lib.conf_set_tx_level(0,0)
    
                debug ("вызвана функция выключение динамиков")
            def unmute_speaker(self):
                self.lib.conf_set_tx_level(0,1)
    
            debug ("вызвана функция включение динамиков")
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello friends i m trying to make a inbox system in which we select
Hello friends i am running code given below which contains the setLogTimeEntery function and
Hello friends i need a book/ tutorials for rails without using scoffold. All the
Hello friends here's my code function dropItems(idOfDraggedItem,targetId,x,y) { var html = document.getElementById('dropContent').innerHTML; if(html.length<=0){ html.innerHTML='<img
hello friends i am trying to get a list of user id and want
Hello friends I am using this code in my view.. Using this code I
Hello Friends I am using a list box control in aspx page i have
Hello friends I have three div tags on my page.. I am trying to
hello friends i am using this galleria gallery link to display images on my
Hello Friends I am trying to compose two images in imagemagick shell script commane

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.