VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mrmdev at outlook.com Guest
|
Posted: Thu Aug 20, 2015 12:52 pm Post subject: [asterisk-users] Changing volume via dialplan |
|
|
Greetings everyone,
I am attempting to adjust the volume of a call using Set(VOLUME) in my extensions.conf file. I am finding that Set(VOLUME(TX)=x) and Set(VOLUME(RX)=y) have no discernable effect on my endpoints (Snom 300 IP phones). I have tried setting x and y to -30, -10, -3, -2, -1, 0, 1, 2, 3, 4, 10, and 100 and there appears to be no change on the phone volume. I can see that the Set(VOLUME) instruction is being executed on the Asterisk CLI.
I have also tried using Set(CHANNEL(txgain)=x) and Set(CHANNEL(rxgain)=y) and those don't seem to have any effect either. I have tried setting x and y to -30, -10, -3, -2, -1, 0, 1, 2, 3, 4, 10, and 100 and there appears to be no change on the phone volume. I can see that the Set(CHANNEL) instruction is being executed on the Asterisk CLI.
I am using PJSIP and just upgraded to Asterisk 13.5.0. It wasn't working on 13.4.0 either, but when I saw the release notes on 13.5 and volume was addressed, I was hopeful that it might solve my problem for me.
So I have a couple of questions:
1) Am I using the correct functions in the dial plan to adjust volume? It would be something like:
Quote: |
same => n,Set(VOLUME(TX)=3)
or
same =>n,Set(CHANNEL(rxgain)=0) |
2) If this is correct, what are the min/max values that I can use when adjusting volume? I was digging around the source code and it looked like maybe a min of -4 and max of +4 was expected - but I am unsure.
If anyone has any ideas on how to do this, I would appreciate any help.
Thanks a lot,
--Matt |
|
Back to top |
|
|
jcolp at digium.com Guest
|
Posted: Tue Aug 25, 2015 1:00 pm Post subject: [asterisk-users] Changing volume via dialplan |
|
|
Matthew Murphy wrote:
Quote: | Greetings everyone,
|
Kia ora,
Quote: | I am attempting to adjust the volume of a call using *Set(VOLUME)* in my
extensions.conf file. I am finding that*Set(VOLUME(TX)=x)*and
*S**et(VOLUME(RX)=y)*have no discernable effect on my endpoints (Snom
300 IP phones). I have tried setting x and y to -30, -10, -3, -2, -1, 0,
1, 2, 3, 4, 10, and 100 and there appears to be no change on the phone
volume. I can see that the Set(VOLUME) instruction is being executed on
the Asterisk CLI.
|
I just did the following on 13.5.0:
exten => 1002,1,Answer
exten => 1002,2,Set(VOLUME(tx)=10)
exten => 1002,3,Playback(demo-congrats)
From my D70 and confirmed the audio was ... louder/horrible.
Do you have any other endpoints you could test from?
Quote: |
I have also tried using *Set(CHANNEL(txgain)=x)* and
*Set(CHANNEL(rxgain)=y)* and those don't seem to have any effect either.
I have tried setting x and y to -30, -10, -3, -2, -1, 0, 1, 2, 3, 4, 10,
and 100 and there appears to be no change on the phone volume. I can see
that the Set(CHANNEL) instruction is being executed on the Asterisk CLI.
|
These aren't applicable to PJSIP.
Quote: |
I am using *PJSIP *and just upgraded to *Asterisk 13.5.0*. It wasn't
working on 13.4.0 either, but when I saw the release notes on 13.5 and
volume was addressed, I was hopeful that it might solve my problem for me.
So I have a couple of questions:
1) Am I using the correct functions in the dial plan to adjust volume?
It would be something like:
same => n,Set(VOLUME(TX)=3)
or
same =>n,Set(CHANNEL(rxgain)=0)
|
Yes, the VOLUME dialplan function should do the job.
Quote: |
2) If this is correct, what are the min/max values that I can use when
adjusting volume? I was digging around the source code and it looked
like maybe a min of -4 and max of +4 was expected - but I am unsure.
|
There is no enforced minimum/maximum. The value provided is in dB.
Cheers,
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
mrmdev at outlook.com Guest
|
Posted: Tue Aug 25, 2015 1:32 pm Post subject: [asterisk-users] Changing volume via dialplan |
|
|
You are right, it works just fine!
Needless to say, I had tricked myself into thinking I was using Asterisk 13.5. There was a build error getting covered up by my install script. So I was still using the "old" Asterisk 13.4.0 that I had previously installed. Once I fixed that, everything worked nicely.
Typical PICNIC error: Problem In Chair, Not In Computer.
Thanks for the help!
Quote: | Date: Tue, 25 Aug 2015 15:00:09 -0300
From: jcolp@digium.com
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Changing volume via dialplan
Matthew Murphy wrote:
Quote: | Greetings everyone,
|
Kia ora,
Quote: | I am attempting to adjust the volume of a call using *Set(VOLUME)* in my
extensions.conf file. I am finding that*Set(VOLUME(TX)=x)*and
*S**et(VOLUME(RX)=y)*have no discernable effect on my endpoints (Snom
300 IP phones). I have tried setting x and y to -30, -10, -3, -2, -1, 0,
1, 2, 3, 4, 10, and 100 and there appears to be no change on the phone
volume. I can see that the Set(VOLUME) instruction is being executed on
the Asterisk CLI.
|
I just did the following on 13.5.0:
exten => 1002,1,Answer
exten => 1002,2,Set(VOLUME(tx)=10)
exten => 1002,3,Playback(demo-congrats)
From my D70 and confirmed the audio was ... louder/horrible.
Do you have any other endpoints you could test from?
Quote: |
I have also tried using *Set(CHANNEL(txgain)=x)* and
*Set(CHANNEL(rxgain)=y)* and those don't seem to have any effect either.
I have tried setting x and y to -30, -10, -3, -2, -1, 0, 1, 2, 3, 4, 10,
and 100 and there appears to be no change on the phone volume. I can see
that the Set(CHANNEL) instruction is being executed on the Asterisk CLI.
|
These aren't applicable to PJSIP.
Quote: |
I am using *PJSIP *and just upgraded to *Asterisk 13.5.0*. It wasn't
working on 13.4.0 either, but when I saw the release notes on 13.5 and
volume was addressed, I was hopeful that it might solve my problem for me.
So I have a couple of questions:
1) Am I using the correct functions in the dial plan to adjust volume?
It would be something like:
same => n,Set(VOLUME(TX)=3)
or
same =>n,Set(CHANNEL(rxgain)=0)
|
Yes, the VOLUME dialplan function should do the job.
Quote: |
2) If this is correct, what are the min/max values that I can use when
adjusting volume? I was digging around the source code and it looked
like maybe a min of -4 and max of +4 was expected - but I am unsure.
|
There is no enforced minimum/maximum. The value provided is in dB.
Cheers,
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|