<br>In my experience with digium boards, after a red and/or yellow alarm the driver ignores the previous span setting and synchronizes the span to whatever clock first became available when the alarm condition is gone, usually the board's internal clock (and in most cases we want the board to sync to the remote clock in these situations).<br>
<br>If you run /usr/sbin/dahdi_cfg, it'll probably reset the sync source to the proper setting of /etc/dahdi/system.conf. <br><br>In my (non-asterisk) applications, I monitor the span for alarms and issue a DAHDI_SPANCONFIG ioctl after any red/yellow alarms are cleared (else the driver syncs to the wrong source regardless of system.conf or previous DAHDI_SPANCONFIG calls).<br>
<br>I don't know whether the semantics of alarm recovery are meant to work like this (design decision), but working around it is somewhat trivial from the programmer's point of view.<br><br>-- Felipe Bergo<br>Labcom Sistemas, Campinas, SP, Brazil<br>
<br><div class="gmail_quote">On Tue, Nov 25, 2008 at 9:57 AM, Anton VG <span dir="ltr"><<a href="mailto:anton.vazir@gmail.com">anton.vazir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2008/11/25 Tzafrir Cohen <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>>:<br>
<div class="Ih2E3d">> On Tue, Nov 25, 2008 at 11:23:50AM +0500, Anton wrote:<br>
>> On Monday 24 November 2008 23:20, Tzafrir Cohen wrote:<br>
>> ><br>
>> > What did you expect here to happen?<br>
>><br>
>> Hm, I'm not sure what you mean. But shouldn't zaptel dahdi<br>
>> select the proper device to be a master clock instead first<br>
>> available?<br>
><br>
> How would you define "proper"?<br>
><br>
> BTW: it is "span" rather than "device".<br>
<br>
</div>Tzafrir,<br>
<br>
If you have ever used over than a single E1 span link, what you surely<br>
did, you must know that one of the links becomes a master clock for<br>
asterisk through zaptel, what you also surely do. I'm surprised why<br>
you ask such a questions, since I definitely know you know what I<br>
mean, and it's YOUR code (written by you), which actually shows what<br>
device is an actual MASTER for the system. but MASTER is seems to be<br>
not selectable, regardless ZAP/DAHDI config settings, and that's why I<br>
do ask if I do miss something, since it's looks definitely<br>
misbehaving.<br>
<div><div></div><div class="Wj3C7c"><br>
</div></div></blockquote></div><br>