Stefan Knoblich a4216351c0 ftmod_libpri: Implement channel hunting in NT-mode.
Hunt for a free channel for incoming calls that do not
preselect a channel (pevent->ring.channel == -1).

Verify the preselected channel for calls that do specify a channel
and in case the channel is already taken, hunt for a free one,
or abort with an error message (if the preselection was exclusive).

TE-mode channel selection is the same as before
(there's still room for improvement, though, but i'll save that for later).

The MSN/DDI filter code is moved into the TE-mode section (only useful there).

The duplicate ring detection had to be reworked. We now store the
call reference (CRV) in caller_data->call_reference of the selected channel
and do a CRV -> channel look up with find_channel_by_cref()
at the top of on_ring().

NOTE: This is only lightly tested (NT/TE mode), i'd either have to
      write a lot of custom code to check it toroughly or the need for
      a scriptable ISDN stack...

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-24 00:36:34 +02:00
2012-05-28 16:35:00 +00:00
2012-08-17 19:46:54 -05:00
2012-08-13 14:15:06 -05:00
2012-07-06 17:54:21 -05:00
2012-08-18 10:20:42 -05:00
2012-05-15 10:20:52 -05:00
2012-08-09 21:39:28 -06:00
2012-08-09 21:39:28 -06:00
2012-08-20 12:59:55 +00:00
add
2011-10-21 10:15:15 -05:00
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Multiple Licenses 267 MiB
Languages
C 64.4%
C++ 21.8%
JavaScript 4.7%
Assembly 2%
Makefile 1%
Other 5.4%