Hi, I'm trying to view a list of the active calls to see if I can restart Asterisk. When I do 'sip show channels', I get a huge list like this (just a sample pasted):- 92.110.7.210 (None) 198827f2469 00102/00000 0x0 (nothing) No Init: OPTIONS 92.110.7.210 (None) 6b211bb04ac 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 4e05e84848b 00102/00000 0x0 (nothing) No Init: OPTIONS 92.110.7.210 (None) 7bdb88176f0 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 49ef531c4b7 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 4039350f335 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 0b91ed9d733 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 3223de36008 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 258c01bf4d6 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 2f35c6eb767 00102/00000 0x0 (nothing) No Init: OPTIONS Thanks Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100914/42bb9a2e/attachment.htm
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dan Journo Sent: Tuesday, September 14, 2010 11:32 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] sip show channels Hi, I'm trying to view a list of the active calls to see if I can restart Asterisk. When I do 'sip show channels', I get a huge list like this (just a sample pasted):- 92.110.7.210 (None) 198827f2469 00102/00000 0x0 (nothing) No Init: OPTIONS 92.110.7.210 (None) 6b211bb04ac 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 4e05e84848b 00102/00000 0x0 (nothing) No Init: OPTIONS 92.110.7.210 (None) 7bdb88176f0 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 49ef531c4b7 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 4039350f335 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 0b91ed9d733 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 3223de36008 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 258c01bf4d6 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 2f35c6eb767 00102/00000 0x0 (nothing) No Init: OPTIONS Thanks Dan You should be doing "core show channels", even if all of your channels are indeed SIP. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100914/ecf34f43/attachment.htm
> You should be doing "core show channels", even if all of your channels are indeed SIP.Thats great thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100914/078234c2/attachment.htm
Do a 'show channels'. You can also do 'show channels concise' or 'show channels verbose' for more details. In any case, it'll show you number of active calls at the end of output. Now some may point out to prepend 'core' before issuing these commands. I prefer to be brief, and used to this shorter syntax. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-09-14 12:39 PM, "Dan Journo" <dan at keshercommunications.com> wrote: Hi, I'm trying to view a list of the active calls to see if I can restart Asterisk. When I do 'sip show channels', I get a huge list like this (just a sample pasted):- 92.110.7.210 (None) 198827f2469 00102/00000 0x0 (nothing) No Init: OPTIONS 92.110.7.210 (None) 6b211bb04ac 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 4e05e84848b 00102/00000 0x0 (nothing) No Init: OPTIONS 92.110.7.210 (None) 7bdb88176f0 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 49ef531c4b7 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 4039350f335 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 0b91ed9d733 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 3223de36008 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 258c01bf4d6 00102/00000 0x0 (nothing) No Init: OPTIONS 92.108.34.153 (None) 2f35c6eb767 00102/00000 0x0 (nothing) No Init: OPTIONS Thanks Dan -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100914/cf8eac60/attachment.htm
On 14 Sep 2010, at 17:32, Dan Journo wrote:> I'm trying to view a list of the active calls to see if I can restart Asterisk.Don't?..... 'core restart when convenient' will wait until there are no calls. S
True, that is even better. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-09-14 12:49 PM, "Steve Howes" <steve-lists at geekinter.net> wrote: On 14 Sep 2010, at 17:32, Dan Journo wrote:> I'm trying to view a list of the active calls to see i...Don't?..... 'core restart when convenient' will wait until there are no calls. S -- _____________________________________________________________________ -- Bandwidth and Colocation Pr... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100914/6fb1da3e/attachment-0001.htm