[Asterisk-Users] Who is on a call?

Joshua Colp jcolp at digium.com
Mon Apr 3 08:59:09 MST 2006


Douglas Garstang wrote:
> The 'sip show channels' and 'show channels' command aren't exactly easy to interpret, especially if one of the numbers has pic codes and rate centers inserted (the rest is truncated on the output), or you have a proxy involved in the call. Wish someone with some C knowledge would fix that.
>  
> Doug.
> 
> 	-----Original Message----- 
> 	From: Ronald Wiplinger [mailto:ronald at elmit.com] 
> 	Sent: Sun 4/2/2006 8:48 PM 
> 	To: Asterisk Users Mailing List - Non-Commercial Discussion 
> 	Cc: 
> 	Subject: [Asterisk-Users] Who is on a call?
> 	
> 	
> 
> 	I would like to know which extension number is engaged in a call.
> 	
> 	show channels  shows me:
> 	
> 	*CLI> show channels
> 	Channel              Location             State  
> 	Application(Data)           
> 	SIP/asterisk.elmit.com-0 690 at default:2        Up     
> 	Echo()                      
> 	SIP/8807-066 690 at newcontext Up      Echo()                      
> 	2 active channels
> 	2 active calls
> 	
> 	but it is not true!!! 
> 	show channels verbose gives me even a time to each of 112:43:33 and
> 	347:23:22
> 	
> 	
> 	I want to know:
> 	1. is extension number 444 in use (calls)
> 	
> 	2. is the connection to my provider abc in use (call)
> 	
> 	How can I get this info as CLI comand and as a jump criteria in the
> 	dialplan????
> 	
> 	
> 	bye
> 	
> 	Ronald Wiplinger
> 	_______________________________________________
> 	--Bandwidth and Colocation provided by Easynews.com --
> 	
> 	Asterisk-Users mailing list
> 	To UNSUBSCRIBE or update options visit:
> 	   http://lists.digium.com/mailman/listinfo/asterisk-users
> 	
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

Channel names have no standard to follow for looks. They shouldn't be 
used for these sort of things since they can vary channel driver to 
channel driver, and from call to call as you see.  It all depends.

Joshua Colp



More information about the asterisk-users mailing list