I am running Asterisk and mldonkey P2P app on my server and want to control the bandwidth of mldonkey when I am making or receiving a SIP/IAX call.
So far I have this :-
exten => 613,1,System(/root/mldonkey-slow.sh) exten => 613,2,Dial(IAX2/iaxfwd/613) exten => 613,3,System(/root/mldonkey-fast.sh)
priority 1 and 2 work well with the /root/mldonkey-slow.sh script slowing down mldonkey to 1kb up / 1kb down then dialing.
the echo test goes well.
but , priority 3 never activates as the dial command completes the context.
any ideas I can use to restore the normal P2P settings when no SIP/IAX is in progress ?