(BioDamage)

Asterisk. , . .

, . , , "" . , , . , :)

, , "" . , , . ? .


FreePBX. (feature codes), , , .

Asterisk. .


/etc/asterisk/globals_custom.conf. , Asterisk ( , ).

, . , :
touch /etc/asterisk/globals_custom.conf 
chown asterisk:asterisk /etc/asterisk/globals_custom.conf
chmod 775 /etc/asterisk/globals_custom.conf

:

DYNAMIC_FEATURES=VUp#VDown#MUp#MDown
Vol=0
Mic=0

, . . etc/asterisk/features_applicationmap_custom.conf :

VUp => 52*,self,Macro,VolumeUp
VDown => 58*,self,Macro,VolumeDown
MUp => 54*,self,Macro,MicUp
MDown => 56*,self,Macro,MicDown

, . - "" , , , "", ;)

Go ahead. . /etc/asterisk/extensions_custom.conf :

[from-internal-custom]
Set(__DYNAMIC_FEATURES=VUp#VDown#MUp#MDown)

, Asterisk, FreePBX.

extensions_custom.conf. . , :

[macro-VolumeUp]
exten => s,1,Set(Vol=$[${Vol}+5])
same => n,Set(VOLUME(TX)=${Vol})

[macro-VolumeDown]
exten => s,1,Set(Vol=$[${Vol}-5])
same => n,Set(VOLUME(TX)=${Vol})        

[macro-MUp]
exten => s,1,Set(Mic=$[${Mic}+5])
same => n,Set(VOLUME(RX)=${Mic})

[macro-MDown]
exten => s,1,Set(Mic=$[${Mic}-5])
same => n,Set(VOLUME(RX)=${Mic})

. . , - "" . . 2 , , .

( )? , () , 52* , . : 58* "".

, ? :) - . . , .

, ? : , , ? . 54* , , !


40%
50%
60%
: 30 24 : 59 : 59