aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn
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 ↵crichter3-31/+41
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 ↵crichter2-91/+67
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 ↵crichter2-12/+29
..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 ↵crichter2-22/+50
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-13restart indicator 0x80 is correct, at least that's what libpri does.crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69053 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11added check for NULL Pointer when calling misdn_new. Asterisk does not allow ↵crichter1-1/+1
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 ↵crichter4-9/+37
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-05briding is a bool, fixed copy and paste issue.crichter1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67307 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Backport of the overlap_dial functionality from asterisk-1.4's chan_misdn.nadi1-0/+1
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/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67209 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18fixed a warning regarding Keypad encoding. encode the IE sending_complete at ↵crichter2-4/+4
the right position. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65007 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-05-03when we're in state WAITING4DIGS, we use the asterisk tone-generator which ↵crichter1-1/+1
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-0/+4
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-24added lock for sending messages to avoid double sending. shuffled some ↵crichter3-39/+66
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-03Use the new sysfs way of mISDN 1.2 to check if a port is NT or not.nadi1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@59788 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-02added option which allows us to accept incoming SETUP Messages without ↵crichter1-0/+1
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-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, ↵nadi4-7/+29
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, ↵crichter3-26/+55
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 workcrichter2-3/+17
* 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 ↵crichter5-35/+61
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 warningscrichter3-56/+49
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 ↵crichter2-4/+25
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-12-06added the export and import of the MISDN_ADDRESS_COMPLETE Variable to ↵crichter1-0/+4
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-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-11-09Fixed segfault when no misdn.conf exists, reported by Igor Neves, thanks.crichter1-1/+1
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 ↵crichter3-29/+30
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-0/+1
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-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-13fixed issue, that the hangupcause got a wrong isdn cause at RELEASE_COMPLETEcrichter1-5/+12
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44993 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 ↵crichter3-23/+72
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