How to disconnect a iax channel?

if two iax clients are talking to each other through asterisk server or maybe peer to peer ,how can i disconnect them on asterisk?

You didn’t need to post that three times! Once would have been enough!

If two clients are talking peer you can’t disconnect them - and why would you want to be able to?

If you have a look at: … terisk+CLI

you’ll see the command soft hangup will probably do what you want with calls going via asterisk.