aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn/isdn_lib.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-04bchannel configurations like echocancel and volume control, need to be ↵crichter1-0/+20
setuped on inbound calls too. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73252 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-1/+10
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-26/+36
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-27simplified channel finding and locking a lot. removed unnecessary #ifdefed ↵crichter1-81/+65
areas. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72087 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27isdn_lib.c didn't compilecrichter1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72041 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27for inbound TE calls, we setup the bchannel when we get the ↵crichter1-45/+4
CONNECT_ACKNOWLEDGE, to make sure mISDN has everything ready. removed some #if 0 areas which weren't used anymore. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72040 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21we activate the bchannels in TE mode on incoming calls only when we want to ↵crichter1-0/+2
connect the call. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70672 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20forgot one place .. crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@70342 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20fixed a bug that was introduced by copy and paste in the last commit ↵crichter1-12/+28
..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-22/+48
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-11fixed problem that the dummybc chanels had no lock, checking for the lock ↵crichter1-8/+15
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-05-08added application misdn_check_l2l1 which tries to pull up the L1/L2 on all ↵crichter1-5/+11
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-04-24added lock for sending messages to avoid double sending. shuffled some ↵crichter1-39/+61
empty_chans after the cb_event calls, this avoids that a release_complete from a quite different call releases a fresh created setup by accident. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61770 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11some fixes for PMP Hold/Retrieve, it should work now, when briding=nocrichter1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61357 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-02we can now make 30 channels on a PRI (before we forgot chan 31..)crichter1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59623 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, ↵nadi1-5/+19
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-13added method standard_dec for dialing out on groups, to avoid conflicts, ↵crichter1-24/+51
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-09we can free channel 31 as well, since we can occupy itcrichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@58558 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-04fixed another place where the out_cause was hardcoded to 16crichter1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@57753 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-02fixed typocrichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@57523 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28fixed bugs.digium.com bugs: #9157 and bugs.beronet.com bugs: #302, #303, #304crichter1-0/+2
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-34/+3
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-11when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as ↵crichter1-1/+6
well. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@50506 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-11* more additions to make the RESTART message workcrichter1-2/+12
* 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-1/+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-08make gcc 4 happy, remove some warningscrichter1-37/+30
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@49922 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-03* Added check for bridging in misdn_call to avoid setting echocancellationcrichter1-1/+2
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-4/+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-19when we reject a channel, because it's in use already, we shouldn't process ↵crichter1-56/+38
the setup anymore. made the channel allocation a bit easier and more understandable, removed a few unused lines git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48576 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18when our PTP Partner sends us a SETUP with a preselected channel we just ↵crichter1-15/+18
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/+23
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-11-23fixed a litle bug regarding HOLD/RETRIEVE. beatufied some logs, changed some ↵crichter1-18/+16
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-10-27fixed a bug which caused chan_misdn to try to allocate 2 times the same ↵crichter1-29/+27
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-13fixed some echocandisable issues when bridged. this caused a kernel panic ↵crichter1-1/+1
sometimes..also some minor formatting fixes git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@45020 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-10(re)added support of dynamical enabling hdlc on bchannelscrichter1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44785 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04added the option 'reject_cause' to make it possible to set the ↵crichter1-22/+60
RELEASE_COMPLETE - cause on the 3. incoming PMP channel, which is automatically rejected because chan_misdn does not support that kind of callwaiting. Therefore chan_misdn supports now 3 incoming channels on a PMP BRI Port. misdn_lib_get_free_bc now gets the info if the requested channel is incoming or outgoing to make the 3. channel possible git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44334 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02fixed the hold/retrieve/transfer issues, removed a useless bc field, added ↵crichter1-23/+59
setting of frame.delivery fields, some minor code cleanups git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44149 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27fixed a bug which led to chan_list zombies, when the call could not be ↵crichter1-15/+0
properly established in misdn_call. also removed the ACK_HDLC stuff which is not really needed. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43764 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-17This rather small ;-) commit merges the changes from my team branch 0.3.0 into tcrichter1-895/+1896
he 1.2 branch. These changes include the new mISDN mqueue interface which makes it possible to compile chan_misdn against the current cvs version of mISDN/mISDNuser. These changes also contain various additions and numerous bugfixes to chan_misdn . Each change is documented in the commit logs in the team/crichter/0.3.0 branch. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@40306 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-15* Added mISDN/mISDNuser Echo cancel Patchcrichter1-6/+14
* Fixed Makefiles so that chan_misdn can be compiled again * added some hints, that mISDN cannot be compiled against gcc-4, SMP, Spinlock Debug * fixed some Minor issues in chan_misdn, regarding Type Of Number and Presentation git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-15issue #5739 (plus ast_copy_string() usage conversion)kpfleming1-17/+48
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7105 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5639kpfleming1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7000 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06chan_misdn updates (bug #5597)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6972 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01issue #5566kpfleming1-209/+377
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6938 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31finish chan_misdn commitkpfleming1-0/+3103
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6915 f38db490-d61c-443f-a65b-d21fe96a405b