Asterisk 1.6 volume(tx|rx) function

HI Guys i try to use this function http://www.voip-info.org/wiki/view/Asterisk+func+volume on asterisk 1.6 but I don´t know how it works with dial function and the ‘’ and ‘#’ keys. I try with this example and works ok, I can see how the volume increase and decrease in the channel, but I can´t do that this work with and outgoing call. How this function work with '’ and ‘#’ keys during a call¿?

(this work)
[ejemplito]
exten => s,1,Set(RX=0)
exten => s,2,Set(TX=0)
exten => s,3,Set(TIMEOUT(digit)=3)
exten => s,4,Set(TIMEOUT(response)=10)
exten = s,5,NOOP(“RX:${RX} TX:${TX}”)
exten => s,6,Background(tt-allbusy)
exten => s,7,Goto(1,1);
exten => 1,1,Set(RX=$[${RX} + 1])
exten => 1,2,Set(VOLUME(RX)=${RX})
exten => 1,3,goto(s,5)
exten => 2,1,Set(RX=$[${RX} - 1])
exten => 2,2,Set(VOLUME(RX)=${RX})
exten => 2,3,goto(s,5)
exten => 3,1,Set(TX=$[${TX} + 1])
exten => 3,2,Set(VOLUME(TX)=${TX})
exten => 3,3,goto(s,5)
exten => 4,1,Set(TX=$[${TX} - 1])
exten => 4,2,Set(VOLUME(TX)=${TX})
exten => 4,3,goto(s,5)

(in a call how¿?¿?)
[out]
exten = _0[689]XXXXXXXX!,1,Set(VOLUME(TX)=3)
exten = _0[689]XXXXXXXX!,2,Set(VOLUME(RX)=2)
exten = _0[689]XXXXXXXX!,3,Dial(SIP/{EXTEN:1}@XXXXXXXXX,30)

Someone¿?¿?¿¿ :cry:

It only works where the D-A/A-D conversion is being done by the Asterisk machine. I see SIP but not dahdi, so I doubt that you have any analogue signals in your system.

ok, is true, asterisk is not convert D-A/A-D, and if this function only works in this context you are on right, but why the first example works?? there is no conversion in progress. ¿?

The first example uses the Background application, the second example dials a SIP peer. That’s the difference.

Cheers.

ok, I know it, so i must to asume it , because i don´t know where asterisk do a D-A/A-D conversion when I use Background application ¿?¿?¿?¿.

Thanks. I will try it with some analogue system.