Is there a way to know which Codec a particular phone is using? I have several devices which support different codecs and I would like to find out which one was negotiaded with Asterisk. Is there a CLI or Manager command to get this information? -- Carlos Chavez Computer Engineer, CCNA Corporativo Lacer S.A. de C.V.
Carlos Chavez wrote: > Is there a way to know which Codec a particular phone is using? I have > several devices which support different codecs and I would like to find out > which one was negotiaded with Asterisk. Is there a CLI or Manager command to > get this information? > > -- > Carlos Chavez > Computer Engineer, CCNA > Corporativo Lacer S.A. de C.V. > OK. You've got the word "Engineer" and the initials "CCNA" as well. This should be a no-brainer man. Think CLI. Now, think IOS (or pretty much ANY other CLI)... What do you type when you want to know what you can do? Hit the "?" at the CLI prompt. *CLI> ? ! abort add database debug dont dump exit extensions help iax2 include init load logger mgcp no pri quit reload remove restart set show sip soft stop unload zap Now, if we dig around a bit, we can find the following commands... *CLI> sip show channels Peer User/ANR Call ID Seq (Tx/Rx) Lag Jitter Format xx.xxx.xxx.x 100 000bbe40-41 00101/00103 00000ms 0000ms ULAW 1 active SIP channel(s) *CLI> iax2 show channels Peer Username ID (Lo/Rem) Seq (Tx/Rx) Lag Jitter Format xxx.xxx.xxx.xxx username 16384/16384 00003/00004 00000ms 0000ms ULAW 1 active IAX channel(s) John
Carlos, If you are using SIP devices, you can use 'sip show channels' in the CLI to display stats of current calls. e.g. CLI> sip show channels Peer User/ANR Call ID Seq (Tx/Rx) Lag Jitter Format 10.155.10.5 phone1 00036be7-af 00101/00103 00000ms 0000ms ALAW You can do the same for iax devices. -Heison On Sat, Mar 13, 2004 at 11:07:05PM -0600, Carlos Chavez wrote:> Is there a way to know which Codec a particular phone is using? I have > several devices which support different codecs and I would like to find out > which one was negotiaded with Asterisk. Is there a CLI or Manager command to > get this information? > > -- > Carlos Chavez > Computer Engineer, CCNA > Corporativo Lacer S.A. de C.V. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >