[asterisk-dev] Does dahdi_dynamic_local driver support non-dynamic spans cross connect?

li yuqian li770426 at gmail.com
Mon Jul 28 02:30:34 CDT 2014


Hi All,

I want to cross connect two spans, but when i am reading
the dahdi_dynamic_local driver, i am wondering does it support Analog spans
(for example, a tdm400p cards cross connect to a dynamic span) as i found
the driver only point to dynamic spans as following:
-------------------
static void
dahdi_dynamic_local_transmit(struct dahdi_dynamic *dyn, u8 *msg, size_t
msglen)
{
struct dahdi_dynamic_local *d;
unsigned long flags;

spin_lock_irqsave(&local_lock, flags);
d = dyn->pvt;
if (d && d->peer && d->peer->span) {
if (test_bit(DAHDI_FLAGBIT_REGISTERED, &d->peer->span->flags))
dahdi_dynamic_receive(d->peer->span, msg, msglen);
}
if (d && d->monitor_rx_peer && d->monitor_rx_peer->span) {
if (test_bit(DAHDI_FLAGBIT_REGISTERED,
     &d->monitor_rx_peer->span->flags))  {
dahdi_dynamic_receive(d->monitor_rx_peer->span,
      msg, msglen);
}
}
spin_unlock_irqrestore(&local_lock, flags);
}
-------------------------------------

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140728/47923ef5/attachment.html>


More information about the asterisk-dev mailing list