[Home]

Summary:ASTERISK-02307: [request] Put Span Out Of Service from CLI
Reporter:dimi (dimi)Labels:
Date Opened:2004-08-31 12:03:26Date Closed:2011-06-07 14:05:28
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_zap_loopup_v2.patch
( 1) chan_zap_loopup.patch
Description:Many times have i need to put down one of my span (TE410P) to test call overflow or to disable incoming call from one Carrier.
Is possible to have a command on the CLI to put one Span or Trunk Group to a State like "Out of Service"?
Many thanks
Comments:By: zoa (zoa) 2004-08-31 15:58:19

i also like the idea... for example in case a span starts misbehaving and you don't want to kill all the other channels.

By: Clod Patry (junky) 2004-09-27 00:20:45

that feature seems really interesting ya.

anyone working on this feature ?

By: twisted (twisted) 2004-10-27 16:55:47

This is an interesting idea, however, not much interest has been shown.  Can we get an update as to who, if anyone, is working on this?  Since there have been no real updates since 9/27/04, We're going to need one to keep this open, otherwise, it should be moved to the wiki, under the wishlist

By: James Sharp (jpsharp) 2004-10-28 11:47:37

Would it be enough to just put the trunk in loopback?

Actually, a full set of span commands from the CLI would be nice.

"zap span 1 loop up" or the like.

By: James Sharp (jpsharp) 2004-11-01 22:18:17.000-0600

I've added a few new CLI commands to chan_zap to let a user loop up and loop down a span from the CLI.

I've not tested it, since I don't have a live T1 to test against.

The patch is against CVS HEAD as of 11-1-2004 11:18PM EST

By: James Sharp (jpsharp) 2004-11-01 22:19:26.000-0600

ohyeah.  The commands are "zap loop up span <spanno>" and "zap loop down span <spanno>"

By: Brian West (bkw918) 2004-11-03 09:41:35.000-0600

ast_cli_unregister <- DO NOT FORGET THIS for your cli commands.

bkw

By: dimi (dimi) 2004-11-03 10:52:25.000-0600

Many thanks jpsharp i have try your patch on my test pbx with E100P and seems to work great.. Im waiting to see this patch in Stable branch :-)

By: James Sharp (jpsharp) 2004-11-03 11:03:53.000-0600

v2 of the patch includes the ast_cli_unregister stuff bkw pointed out.

I have a disclaimer on file with Digium from my old work with writing cdr_mysql.

By: James Golovich (jamesgolovich) 2004-11-03 12:18:05.000-0600

It would be good to be able to specify which type of loop to do.
I also noticed some minor formatting issues (space vs tabs) in the patch.

By: Russell Bryant (russell) 2004-11-14 22:10:19.000-0600

Feel free to re-open if you have any updates for your patch that address comments that have been given.

Thanks!