aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn/isdn_msg_parser.c
AgeCommit message (Collapse)AuthorFilesLines
2007-08-10fixed a bug with the useruser information element. We send them now also in ↵crichter1-0/+18
the disconnect message. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78936 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02Merged revisions 72099 via svnmerge from crichter1-6/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72099 | crichter | 2007-06-27 15:22:37 +0200 (Mi, 27 Jun 2007) | 1 line simplified generation for dummy bchannels, also we mark them as dummies, so 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.4@72851 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 69053 via svnmerge from crichter1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r69053 | crichter | 2007-06-13 11:55:54 +0200 (Mi, 13 Jun 2007) | 1 line restart indicator 0x80 is correct, at least that's what libpri does. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71118 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11Merged revisions 68732 via svnmerge from crichter1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r68732 | crichter | 2007-06-11 18:49:00 +0200 (Mo, 11 Jun 2007) | 1 line added check for NULL Pointer when calling misdn_new. Asterisk does not allow 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.4@68733 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11Merged revisions 68631 via svnmerge from crichter1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r68631 | crichter | 2007-06-11 11:18:01 +0200 (Mo, 11 Jun 2007) | 1 line fixed problem that the dummybc chanels had no lock, checking for the lock 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.4@68644 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18Merged revisions 65007 via svnmerge from crichter1-5/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r65007 | crichter | 2007-05-18 13:23:11 +0200 (Fr, 18 Mai 2007) | 1 line fixed a warning regarding Keypad encoding. encode the IE sending_complete at the right position. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65039 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-09Merged revisions 62945,63402,63519 via svnmerge from crichter1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r62945 | crichter | 2007-05-03 17:39:21 +0200 (Do, 03 Mai 2007) | 1 line when we're in state WAITING4DIGS, we use the asterisk tone-generator which 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. ........ r63402 | crichter | 2007-05-08 17:07:37 +0200 (Di, 08 Mai 2007) | 1 line added application misdn_check_l2l1 which tries to pull up the L1/L2 on all 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. ........ r63519 | crichter | 2007-05-09 13:26:16 +0200 (Mi, 09 Mai 2007) | 1 line release_chan frees ch, so we should never touch ch after release_chan, this may cause segfaults. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63534 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-03Merged revisions 61357,61770,62885 via svnmerge from crichter1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r61357 | crichter | 2007-04-11 14:05:57 +0200 (Mi, 11 Apr 2007) | 1 line some fixes for PMP Hold/Retrieve, it should work now, when briding=no ........ r61770 | crichter | 2007-04-24 15:50:05 +0200 (Di, 24 Apr 2007) | 1 line added lock for sending messages to avoid double sending. shuffled some 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. ........ r62885 | crichter | 2007-05-03 15:59:00 +0200 (Do, 03 Mai 2007) | 1 line fixed the problem that misdn_write did not return -1 when called with 0 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.4@62912 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-12added UU transceiving and corect handling for rdniscrichter1-0/+16
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58825 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-23Merged revisions 50495,50506 via svnmerge from crichter1-1/+5
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r50495 | crichter | 2007-01-11 14:27:52 +0100 (Do, 11 Jan 2007) | 6 lines * more additions to make the RESTART message work * 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) ........ r50506 | crichter | 2007-01-11 15:45:38 +0100 (Do, 11 Jan 2007) | 1 line when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51649 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-03Merged revisions 48319,48321,48467,48552,48576,49135,49303 via svnmerge from crichter1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48319 | crichter | 2006-12-06 15:35:25 +0100 (Mi, 06 Dez 2006) | 1 line changed a few debugs to higher debug levels ........ r48321 | crichter | 2006-12-06 16:48:45 +0100 (Mi, 06 Dez 2006) | 1 line added the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that. ........ r48467 | crichter | 2006-12-14 14:03:49 +0100 (Do, 14 Dez 2006) | 1 line removed FIXUP state. added check for channel allocation conflict when we create a setup while the other site creates a setup on the same channel, besides the check we resolve this conflict. ........ r48552 | crichter | 2006-12-18 11:19:39 +0100 (Mo, 18 Dez 2006) | 1 line when our PTP Partner sends us a SETUP with a preselected channel we just accept it, even when we're NT. added some checks for segfaults. ........ r48576 | crichter | 2006-12-19 14:08:51 +0100 (Di, 19 Dez 2006) | 1 line when we reject a channel, because it's in use already, we shouldn't process the setup anymore. made the channel allocation a bit easier and more understandable, removed a few unused lines ........ r49135 | crichter | 2007-01-02 11:07:22 +0100 (Di, 02 Jan 2007) | 1 line added check for channel ranges in the set/empty channel functions. set pmp_l1_check default to no. added misdn restart pid cli command. added cleaning of channel when we send a RELEASE_COMPLETE. ........ r49303 | crichter | 2007-01-03 09:24:00 +0100 (Mi, 03 Jan 2007) | 9 lines * Added check for bridging in misdn_call to avoid setting echocancellation 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.4@49313 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27Merged revisions 46350 via svnmerge from crichter1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r46350 | crichter | 2006-10-27 11:24:01 +0200 (Fr, 27 Okt 2006) | 1 line fixed a bug which caused chan_misdn to try to allocate 2 times the same 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.4@46353 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-13Merged revisions 44993 via svnmerge from crichter1-5/+12
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r44993 | crichter | 2006-10-13 09:40:07 +0200 (Fr, 13 Okt 2006) | 1 line fixed issue, that the hangupcause got a wrong isdn cause at RELEASE_COMPLETE ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44994 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-63/+84
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-16adding support for AOCD facility messages.nadi1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39987 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-15moved the asn1 and facility portions of code to mISDNuser, so removing the ↵nadi1-25/+45
files here. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39807 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-09fixing compile warnings, renaming config option "overlap_dial" to "overlapdial"nadi1-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39479 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-08* first bits of decoding facility information elementsnadi1-5/+2
* fail on misdn_cfg_init() if elements in the config enum don't match with the config structs in misdn_config.c * implemented first bits for encoding ISDN facility information elements via ASN.1 descriptions * using unnamed semaphore for syncing in misdn_thread * advanced fax detection: configurable detect timeout and context to jump into git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39378 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-08* added possibility to change echocancel settings during callscrichter1-1/+1
* removed the holded element from the chan_list struct, we know this from the state already * added a few tweaks to make HOLD/RETRIEVE work again (TRANSFER does not work yet) * added possibility to debug mISDN frames via syslog * added misdn_lib_port_is_blocked function to check if a port is blocked * removed ec_training=1 from empty_bc, we don't use ec_training anymore * removed unused misdn_lib_get_l2_status function * added the nt bit to dummy misdn_bchannel objects * setting bc->out_fac_type to FACILITY_NONE defaultly * removed HANDLER_DEBUG stuff for better readability git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39295 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-03* removed pp_l2_check (fixed L2 bug in mISDNuser)crichter1-0/+2
* added blocking flag to stack object. A port can be blocked/unblocked from the cli * added EVENT_PORT_ALARM to send alarm infos to the chan_misdn.c layer (later we can add a manager event for that) * added block_on_alarm option, to block the port whenever a ALARM occurs * added need_busy flag to indicate if we've sended a CONTROL_BUSY already * changed a bunch of cb_log(-1,..) to cb_log(0,..) due to funny behaviour in recent asterisk ast_log messages.. * fixed a few ETSI state violations, especially when finishing calls in different seldom states * changed debug levels a lot to make the log more readable in low debuglevels * some first fixes for the HOLD/RETRIEVE stuff (doesn't work totally still) * removed the PRECONNECTED state stuff * added cause 27 when we get a CLEANUP directly after a outgoing SETUP, this creates a CHANISUNAVAIL instead of a NOANSWER * removed the addr pointer from "misdn show stacks" that's not needed anymore and makes the output more unreadable * added cause saving on RELEASE/RELEASE_COMPLETE * set cause to 16 on prepare_bc * removed stack getting from ph_control functions, we don't really need it there * added beroec api git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38801 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01added bearer capability reject support. we send release instead of ↵crichter1-3/+5
disconnect in case we have no real channel yet. added support for Restarting channels added support for sending complete decoding. changed some log levels. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31324 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24added EVENT_NEW_CHANNEL. We change the channel name now when we got the real ↵crichter1-1/+6
channel, also changed name generation to new stringfield api git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30132 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-16fixed very bad memory overwrite which leaded to segfaults on some systems. ↵crichter1-1/+2
removed redundant buffer betweend mISDN reading thread and ast_read in favour of the already existing pipe, this clarifies the way a voice frame takes between mISDN and asterisk a lot. centralized debugging of NumberPlan. removed a compiler warning. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27346 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26Facility decoding doesn't work proper yetcrichter1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22549 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05* advanced the error Handling routine for wrong frames from mISDNcrichter1-11/+12
* added more code for connected party number handling * fixed the portinfo program, it can now be used to test mISDN again git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17562 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-04 fixed some essential segfaults happening under heavy load. Added a bit more ↵crichter1-0/+7
error handling if we receive wrong data form mISDN (e.g. if we crashed before => handle_err() ). Added first steps to implement the parseing of the connected party number. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17404 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-09added option to change the connected party number dialplan (ton)crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12481 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-24added export and import of RDNIS channel variablecrichter1-0/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11017 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22* changed some strncpys to ast_copy_str crichter1-0/+2
* added copying of some IEs (user,rate,urate) with channel vars * added #6251 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10787 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22fixed a ETSI violation (after RELEASE we need to RELEASE_COMPLETE (network ↵crichter1-2/+2
side) one needs to upgread mISDNuser for that fix as well. also fixed the reload issue #6547 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10713 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-08* dozens of white-space removementscrichter1-16/+6
* some // comment removements * debugging optimization, use port where possible * fixed pickup problem (pickup didn't work anymore after mqueue) * removed some mIDSN_JOLLY defines which are not needed anymore in mqueue * adapted the new cli.h constifications git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9215 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-02* removed unnecessary struct elements and functionscrichter1-42/+53
* fixed "RETRIEVE does not work" bug * fixed some NT Mode bugs * removed some // comments * added configureable jitterbuffer * removed own tone-generator, and use asterisks instead, to support asterisks indications * added more support for hw-bridging, we bridge now every possible call * fixed some hdlc mode issues, with a patch for chan_zap we can make data calls between chan_zap and chan_misdn now * completely reworked the config engine, works like a charm now * fixed SetCallerPres - bug * added Progress and Proceeding passing * optimized Ringing Indication handling * added full ast_send_text support (you can setup nice menus with the dialplan now) * added support to read /etc/misdn-init.conf to clarify the NT+PTP Problem * we compile now channels/misdn if mISDNuser is installed systemwide git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9114 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-09committed head of chan_misdn with a lot of new features. Most important of ↵crichter1-194/+61
all: chan_misdn supports now the mISDN mqueue tree (smp,preemptible,gcc-4 aware\!). Additionally there are some code optimizations, new facility management (Calldeflect works for now). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7413 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-15issue #5739 (plus ast_copy_string() usage conversion)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7105 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01issue #5566kpfleming1-7/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6938 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31finish chan_misdn commitkpfleming1-0/+1352
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6915 f38db490-d61c-443f-a65b-d21fe96a405b