Check which codec used

I have connected two asterisk system by iax trunk. how can i check the whick codec the call is using by iax channel an trunk? I would like to calculate the bandwith be used.


then look for the NativeFormat, WriteFormat and ReadFormat information. once you have this you can use [code]CLI> show codecs[/code] to get the info for the codecs indicated in the first lot of output.

then look for the NativeFormat, WriteFormat and ReadFormat information. once you have this you can use CLI> show codecs to get the info for the codecs indicated in the first lot of output.

No “show channel iax” command be found. I use “iax2 show channels”. Below is the output. But no any format found.

HBivr*CLI> iax2 show channels
Channel Peer Username ID (Lo/Rem) Seq (Tx/Rx) Lag Jitter JitBuf Format
IAX2/petty@192.18.11 192.18.118.110 petty 00003/03828 00010/00006 [Native Bridged to ID=00004]
IAX2/192.168.142.8:4 192.168.142.8 REC_SERVER 00004/00001 00007/00009 [Native Bridged to ID=00003]
2 active IAX channel(s)