aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn
AgeCommit message (Collapse)AuthorFilesLines
2006-08-08* added possibility to change echocancel settings during callscrichter4-148/+162
* 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-07changed naming of mISDN channels, so that hinting works propercrichter2-0/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39131 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-03* removed pp_l2_check (fixed L2 bug in mISDNuser)crichter6-146/+325
* 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-07-13added even more statefulness for sending out ↵crichter2-0/+4
disconnect/release/release_complete messages. added support for incoming presentation/screening. fixed a bug that we generate TONE_EVENTS on hanguptone_indicatem, which caused asterisk to write blocking thread messages. added nodialtone option to prevent dialtone for always_immediate git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-11* Introducing a new way for the l1watcher thread using the ast_sched way. ↵crichter3-60/+27
Now l1watcher timeouts can be configured separately for every portgroup. * added a signal handler to allow waking up the misdn task thread (that may sleep in a poll call) via misdn_tasks_wakeup(). * overlap_dial functionality implemented. * fixes a bug which leads to a segfault after reordering config elements in the enum or struct git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37382 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-10removed unnecessary locking, which might have created deadlocks. removed ↵crichter1-0/+2
find_chan_by_l3id, since the l3id is not unique over all ports. removed automatic nt_stack reinitialization, since this creates segfaults. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37323 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06* removed tone_indicate, we genrate only the dialtone by ourself (and the ↵crichter3-24/+72
hanguptone of course) * removed the state handling from release_chan, and simplified the ast_hangup/ast_queue_hangup stuff * added pp_l2_check option, for pp lines where the pbx does not initially gets the L2 up * simplified and fixed a bug in the pid generation code * fixed a bug in empty_chan, which might cause segfaults and memorry corruptions * added prepare_bc function, which is sort of the opposite of empty_bc git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37172 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03removed our own tone creation from misdn_indicate, we just return -1. Now we ↵crichter1-1/+3
get a lot fewer blocked in thread blah warnings.. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36867 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03added misdn show config description[s] to show all the possible misdn.conf ↵crichter1-0/+10
settings with a description in the CLI git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36865 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-30added fix, that if the L2 goes down on ptp-NT that we reinitialize the NT ↵crichter2-47/+62
Library. Also if we have no ntflags, we don't pass the filename to the debug routines of mISDNuser. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36376 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-29added better L2 handling for ptp, if it's down we don't try to call on that ↵crichter4-16/+54
port in groupdial anymore, also we try to get it up then. Additionally added the configoptions ntdebugflags and ntdebugfile to debug the mISDNuser NT Stack (should have done that ages before..). isdn_lib.c compiles again. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36298 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-28fixed a few state problems when hanging up the call. also changed a few ↵crichter1-1/+1
debug messages to higher log level git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36188 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-26* fixed the busy statecrichter3-9/+49
* fixed tone handling after ast_hangup was called * optimized the tone_indication function * removed warnings in favour of log debugs * improved the round_robin method * added logs for channel setting/emptying * fixed channel forgot to set bug git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36082 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-21* added support for PID export/import to identify bridging in misdn_call alreadycrichter1-132/+204
* fixed a few inband Alerting issues, sometimes we need to create alerting, some times it's inband * beautified the state debugging of misdn_hangup * removed "real" bchannel activating/deactivating in chan_misdn.c * fixed "round_robin" bug when there's only 1 port * added more informative prints when channel could not be created * changed some warnings to notices * reworked the whole bchannel state machine stuff, it is now like in the examples of mISDNuser and therefore a lot easier, and it is now harder to create bugs * bchannel_activate/deactivate is now only called in setup/cleanup bc, they may merge sometime * it is very important to setup/cleanup the bchannels under the correct conditions, especially in the NT Side we can only setup the bchannels when we send a Message! In the TE side we can only setup the bchannel when we received the channel of course git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-19when we get a disconnect, we should stop the tones on te side..crichter1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34788 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-18added TONE_HANGUP, also added Tone generation by mISDN_dsp for post hangup ↵crichter2-0/+39
tones, therefore the TONE_X defines are in the isdn_lib.h now. changed a REALEASE to a DISCONNECT in NT Stack, to make tones available in that state. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34604 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-17* fixed bchannel cleaning race condition with new bchannel state (CLEAN_REQUEST)crichter2-19/+37
* added early bridge-hook, so we know if we need to generate ringing or can take it from the far end chan_misdn channel (if available) * fixed the issue, that we may not activate the bchannel on PTMP, when we receive ALERTING/PROCEEDING/PROGRESS, only on CONNECT. There might be other PTMP devices and we might disturb their bchannel. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09when we don't want the call we need to release_complete it.. ignoring it ↵crichter1-0/+3
breaks the ETSI rules .. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33195 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07changed the clean_up_bc function to work proper again. fixed the print with ↵crichter1-5/+4
the conference nr. when bridged git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32779 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-06added select before write to avoid deadlock on full buffer. added some ↵crichter1-14/+109
defines for deadlock debugging. added code snippet for generating silence if we don't have data to write. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32524 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01the interface needs to be changed as well..crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01unified the PH_CONTROL Interface for the mISDN_dsp interface to intcrichter1-9/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31409 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01added bearer capability reject support. we send release instead of ↵crichter5-26/+53
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 ↵crichter3-8/+16
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-23added a l1watcher timeout, therefore removed the old behaviour of guessing ↵crichter3-12/+43
the l1state. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29803 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23* export_ies uses now _VAR else the vars are not copied to the dest chancrichter1-13/+72
* when receiving a connect from the NT Side we wait until we have the final l3id until we queue the answer to asterisk to avoid bridging conflicts * when not bridged to misdn we had a segfault after receiving the connect due to a strcasecmp bug.. this didn't happen before, cause we hadn't had the bridge before * cleanup of the bchannels is queued now, due to possible race conditions * added mISDN_clear_stack when cleaning the bchannel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29667 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-22added callcounters for incoming and outgoing callscrichter1-0/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-18this is not a warning, it might happen during call initializationcrichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28091 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-16fixed very bad memory overwrite which leaded to segfaults on some systems. ↵crichter3-54/+7
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-05-08in PTMP TE we should set the free state for the B-Channel if we ignore an ↵crichter1-0/+2
incoming call git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25384 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-05Added option far_alerting. This option makes it possible to generate a ↵crichter3-3/+13
Ringing on other channels if they feel that they should have inband ringing, but there is non in reality. I need this due to the fact that asterisk has not the possibility to transmit progress indicators thus chan_sip and others do not know wether they should generate a Rining tone themselves if they receive AST_CONTROL_RINGING.. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24879 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29added an up-queue message mechanism to avoid buffer fillups in the kernel, ↵crichter2-16/+95
also changed some strdups to ast_strdupa git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23443 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-11mISDN Messages must be freed with free_msg \!\!crichter1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19160 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10fixed some issues, that appear at higher loadcrichter1-2/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18835 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05* advanced the error Handling routine for wrong frames from mISDNcrichter5-38/+69
* 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 ↵crichter3-4/+62
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-04-03* removed unneeded bc->state fieldcrichter2-108/+306
* added statefullness for bchannel activation/deactivation * fixed a lot PCM bridging issues * some debugging logs are now on a higher loglevel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17128 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29fixed no dtmf detect on 64 bitcrichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16085 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-27fixed bug that we don't allocate the bchan in setup_acknowledge already .. ↵crichter1-0/+1
wonder why this wasn't fixed eearlier .. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15249 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-27fixed hicom busy bug, we now see if the systemphone is busy, also fixed the ↵crichter1-3/+13
immediate=yes does not work anymore issue git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15220 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-20removed dynamic switching from transparent to hdlc mode. Instead we've got a ↵crichter2-2/+3
config option hdlc=yes now which enables the hdlc controller for a data call git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13637 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-09added option to change the connected party number dialplan (ton)crichter4-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12481 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-07added misdn port down to send a L1 Deactivate to a NT Port. changed some ↵crichter2-4/+65
default values regarding jitterbuffer. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12288 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-23removed the misdn Makefile target from channels/misdn/Makefile in favour of ↵crichter1-11/+0
a short howto install mISDN/mISDNuser in the doc/misdn.txt file. This helps to make asterisk completely compileable by non-root users git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10914 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22* changed some strncpys to ast_copy_str crichter2-1/+4
* 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 ↵crichter2-11/+12
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-15adde incoming_early_audio option, to avoid sending tone indications to the ↵crichter1-0/+1
remote party on incoming calls from the pstn, this shouldnt be enabled, only if the provider allows it git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10227 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15added pmp_l1_check option, to avoid l1 checking for group calls on PMP portscrichter3-14/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10225 f38db490-d61c-443f-a65b-d21fe96a405b