Iax2 test losspct command

How does the iax2 test losspct command work?
It sets the IAX2 incoming frame loss percentage for testing, but does that mean you deliberately loose packets on calls and how do you undo it and reset to normal operation?

Anybody know the answer to that?

The command essentially just reads in a packet and given a chance acts as if it was never received. You would be able to just use “iax2 test losspct 0” to turn it off but I haven’t tried it.

Is iax2 test losspct turned off upon Asterisk restart?
On iax2 reload as well?

It will be turned off by a restart, on a reload I don’t know. The easiest way to see would be to set it to 100 and see what happens in the reload case.

1 Like