aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_misdn.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-04bad bug in overlapdial case, we called start_pbx multiple times, because the ↵crichter1-1/+6
state wasn't changed.. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73207 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03fixed issue, that misdn_l2l1_check could only be called from mISDN Source ↵crichter1-5/+0
channels.. #9449 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73004 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29check if the bchannel stack id is already used, if so don't use it a second ↵crichter1-0/+7
time. Also added a release_chan lock, so that the same chan_list object cannot be freed twice. chan_misdn does not crash anymore on heavy load with these changes. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72585 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27simplified generation for dummy bchannels, also we mark them as dummies, so ↵crichter1-2/+4
they are not used later as real-bchannels, optimized the RESTART mechanisms, we block a channel now on cause:44, and send out a RESTART automatically, then on reception of RESTART_ACKNOWLEDGE we unblock the channel again. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72099 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21we activate the bchannels in TE mode on incoming calls only when we want to ↵crichter1-1/+0
connect the call. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70672 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20fixed a bug that was introduced by copy and paste in the last commit ↵crichter1-1/+1
..bchannels weren't cleaned properly. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70341 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20on receiption of cause:44 we mark the channel as in use and inform the user ↵crichter1-0/+2
about the situation, we need to test the RESTART stuff then. Also shuffled the empty_chan_in_stack function after the bchannel cleaning functions, to avoid race conditions. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70311 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19when we send out a SETUP, but get no response, we should cleanup everything ↵crichter1-1/+7
after reception of a hangup. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12if the bridged partner is mISDN too we should not send dtmf tones, they are ↵crichter1-3/+7
transmitted inband always git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12if we have already some digits, we just stop the tones.crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68874 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11added check for NULL Pointer when calling misdn_new. Asterisk does not allow ↵crichter1-0/+12
us to create channels anymore when stop gracefully is used :). also modified the restart_indicator to 0 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68732 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11fixed problem that the dummybc chanels had no lock, checking for the lock ↵crichter1-4/+9
now. Also fixed the channel restart stuff, we can now specify and restart particular channels too. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68631 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05simplified the EVENT_SETUP handling in the cb_events function a lot. ↵crichter1-175/+155
Commented the different possibilities a bit and made functions of shared code. When the dialed extension does not exist in the extensions.conf we'll jump into the 'i' extension if this does exist, else we disconnect the call with the cause:1 = No Route to Destination. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67306 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Backport of the overlap_dial functionality from asterisk-1.4's chan_misdn.nadi1-6/+195
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67239 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05added possibility to deactivate bridging per portcrichter1-0/+11
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67209 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24we should only activate the generator in chan_misdn, when asterisk hask not ↵crichter1-0/+2
yet taken the call (WAITING4DIGS state). Alerting audio will be generated fomr asterisk for example. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65767 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-22we stop the tones only when we're in the pre-call phase, otherwise e.g. when ↵crichter1-1/+2
in CONNECTED state we should not stop tones when we receive an Information Message git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65328 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18we *need* to send a PROCEEDING when sending_complete is set, even if ↵crichter1-1/+2
need_more_infos is requested. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64902 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-16in the case immediate=yes, we directly jump into the dialplan, where people ↵crichter1-10/+12
can use PlayTones to indicate a Dialtone, so we don't need to to that by ourself. also we should not do a dialtone_indicate for incoming calls on a TE port in overlapdialmode. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64513 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-09release_chan frees ch, so we should never touch ch after release_chan, this ↵crichter1-1/+3
may cause segfaults. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@63519 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-08added application misdn_check_l2l1 which tries to pull up the L1/L2 on all ↵crichter1-7/+116
ports that have the layers down in a group. It waits then for a timeout. This helps for scenarios where multiple PMP BRIs are grouped together, or where a provider has a faulty PTP Implementation, that looses the L2 after a while. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@63402 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-03when we're in state WAITING4DIGS, we use the asterisk tone-generator which ↵crichter1-5/+22
prods us, so we can't just return -1 in misdn_write in this case. Added a MISDN_KEYPAD channel variable, and fixed the sending of keypad. this enables us to modify the call forward parameters in the switch. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@62945 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-03fixed the problem that misdn_write did not return -1 when called with 0 ↵crichter1-1/+1
samples in a frame this resultet in a deadlock in some circumstances, when the call ended because of a busy extension. added encoding of keypad. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@62885 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11some fixes for PMP Hold/Retrieve, it should work now, when briding=nocrichter1-4/+9
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61357 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-02added option which allows us to accept incoming SETUP Messages without ↵crichter1-16/+35
automatically sending Proceeding or Setup Acknowledge, this is useful with some broken switches and if you want to Release incoming calls without previously having acknowledged them. The new option is noautorespond_on_setup=yes|no default is no, so we don't break the existing behaviour git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59639 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-02don't be verbose if no needcrichter1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59624 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-27fixed #9355crichter1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59252 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, ↵nadi1-7/+53
make chan_misdn use it. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59199 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-20modified a loglevelcrichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59063 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-20avoid sending a disconnect when we already received one.crichter1-0/+9
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59062 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-13fixed the crypt_keys stuffcrichter1-7/+13
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@58850 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-13added method standard_dec for dialing out on groups, to avoid conflicts, ↵crichter1-10/+12
which caused issues with some ISDN providers git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@58849 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-04fixed another place where the out_cause was hardcoded to 16crichter1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@57753 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28fixed bugs.digium.com bugs: #9157 and bugs.beronet.com bugs: #302, #303, #304crichter1-7/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@57034 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-30fixed some possible segfaults. also fixed an very important bug which occurs ↵crichter1-9/+24
on high load (when calls are very fast generated) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@52843 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-24fixed the busy problem (dialstatus was not busy when we called a busy extension)crichter1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@51966 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-11* more additions to make the RESTART message workcrichter1-11/+9
* added fix for misdn_call to allow SETUPs with empty extensions, replaced the strtok_r functions with strsep for that (inspired by Sandro Cappellazzo, thanks) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@50495 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-10more fixes regarding warnings for gcc-4 and first additions for the restart ↵crichter1-0/+26
Information element, in the first step we initiate a restart with a CLI command git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@50335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-03* Added check for bridging in misdn_call to avoid setting echocancellationcrichter1-19/+14
when 2 mISDN channels are involved and when bridging is set. That lead to a kernel panic before under different situations, because we switched about 2 times between hardware bridging and echocancelation * readded MISDN_URATE variable which got lost before, this should make app_v110 work again * fixed typo git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@49303 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-02added check for channel ranges in the set/empty channel functions. set ↵crichter1-1/+23
pmp_l1_check default to no. added misdn restart pid cli command. added cleaning of channel when we send a RELEASE_COMPLETE. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@49135 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18when our PTP Partner sends us a SETUP with a preselected channel we just ↵crichter1-0/+10
accept it, even when we're NT. added some checks for segfaults. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-14removed FIXUP state. added check for channel allocation conflict when we ↵crichter1-4/+0
create a setup while the other site creates a setup on the same channel, besides the check we resolve this conflict. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48467 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06added the export and import of the MISDN_ADDRESS_COMPLETE Variable to ↵crichter1-0/+10
inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48321 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06changed a few debugs to higher debug levelscrichter1-4/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48319 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-23fixed a litle bug regarding HOLD/RETRIEVE. beatufied some logs, changed some ↵crichter1-34/+36
loglevels. changed the default value of block_on_alarm git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47968 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09Fixed segfault when no misdn.conf exists, reported by Igor Neves, thanks.crichter1-2/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47359 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27fixed a bug which caused chan_misdn to try to allocate 2 times the same ↵crichter1-0/+1
channel on high load, which then caused instability of mISDN. removed a useless function from isdn_lib.c git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46350 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25added nttimeout option to configure wether we disconnect calls on NT ↵crichter1-3/+12
timeouts or not during an overlapdial session git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46176 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-21fixed issue, that if chan_misdn is loaded and couldn't be initialized it ↵crichter1-1/+6
would cause a segfault after 'reload'. Reported by Drew/Matt thx. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@45808 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-13avoiding warning, fixing potential bug (backported from 1.2)crichter1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@45090 f38db490-d61c-443f-a65b-d21fe96a405b