How to down span via CLI or API?
I found only the one command:
CLI> pri destroy span 1
but it not suitable for me, because I don’t want to destroy span, but only shutdown specified span.
e.g.:
CLI> pri show spans
PRI span 1/0: Up, Active
PRI span 2/0: Up, Active
CLI> pri destroy span 1
PRI span 2/0: Up, Active
The required state is:
PRI span 1/0: Down, Active
Keep in mind, that the this call is forbidden:
int fd = open("/dev/dahdi/ctl", O_RDWR);
ioctl(fd, DAHDI_SHUTDOWN, &span);
because after that, the call:
ioctl(fd, DAHDI_STARTUP, &span);
return unconfigured span.
You have change config and do reload.
Or patch asterisk for needed command.
Related
I have the following problem:
STM32F7 Flash starts at 0x0800 0000. My program works fine.
Then I shift my code in FLASH at 0x0802 0000 to leave space for future bootloader. I changed my MemoryMap.xml file :
<MemorySegment start="0x08020000" name="FLASH" size="0x80000" access="ReadOnly"/>
and the corresponding flashplacement.xml file:
<ProgramSection alignment="0x100" load="Yes" name=".vectors" start=" 0x8020000"/>
and start debuging....Program works fine until an link error occurs which triggers a system restart with a call of HAL_NVIC_SystemReset.
The result is a hanging application which is not the case when my code resides at the start of FLASH (0x0800 0000)
Does anybody knows why is this happens?
Regards
/Kostas
The answer is rather easy. You cant just move memory start address. Your micro will get the stack pointer value and the reset handler routine address from the same address as usually. You need to have this boot loader already flashed( at least the vector table and the reset handler which will set the new vector table, set the app stack pointer and pass the control to your app reset handlet
I'm currently using c-kermit with a serial connector to my ARM-Board. So, if I type reboot into the c-kermit connected terminal, the Board reboots. Okay, then I type Space, while it boots, to get into U-Boot. This works fine.
But I want to write a script for it. So, if I execute this script I'm already in the U-boot terminal.
My currently used .kermrc is the following:
set line /dev/ttyUSB3
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5
connect
input "reboot"
input " "
input " "
output instead of input also doesn't work.
Please check, if the below link helps you some how.
http://blog.mezeske.com/?p=483
I need a solution to this problem. When I dial through one PRI line x having group g0.
dial(DAHDI/g0/9xxxxxxxxx,35,rt)
and if that particular PRI is down(suppose signal is not down but not able to dial)for some reason, then how to re route and dial this number through another PRI. So that the dial does not fail.
You can put pri into groups using dahdi.conf, just set both pri to same group number
You also can use DIALSTATUS variable and GotoIF in dialplan to do hunting by dialplan(described in any asterisk book)
I have merged two PRI lines i.e now we have 60 channels on one span.Is there any extra configuration required for itOr we can continue with basic configuration?
Just set same group for both pri with statment like
group=0
After that dial like
exten =>_X,1,Dial(DAHDI/g0/${EXTEN},,r)
There are alot of examples available
http://www.voip-info.org/wiki/view/Asterisk+ZAP+channels
From the man page (http://manpages.ubuntu.com/manpages/precise/en/man1/tmux.1.html):
refresh-client [-S] [-t target-client]
(alias: refresh)
Refresh the current client if bound to a key, or a single client
if one is given with -t. If -S is specified, only update the
client's status bar.
What does it mean for a client to be bound to a key? I'm trying to think of when I may actually use this.
This is by default bound to "r" in tmux, and I'm thinking of overriding it. Could someone explain an example use case for wanting to refresh the client? Thanks.
tmux only updates the screen when there is some new content to display. If you put something like date into your status line, the date will only update when the content of the pane changes, when you change between panes, or when run refresh-client. So in that case, you could use Ctrl-b r to refresh the screen.
Alternatively, you can also set set status-interval 1 to redraw every second, but that will cause CPU usage and drain your battery.
If you don't have anything dynamic in your status line, you can safely remap the key. And if you ever need to execute refresh-client, you can still run it with tmux refresh-client.