dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

75 Commits

Author SHA1 Message Date
crichter 17a09c1bff Merged revisions 44559 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r44559 | crichter | 2006-10-06 12:44:34 +0200 (Fr, 06 Okt 2006) | 9 lines

Merged revisions 44149 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44149 | crichter | 2006-10-02 15:28:14 +0200 (Mo, 02 Okt 2006) | 1 line

fixed the hold/retrieve/transfer issues, removed a useless bc field, added setting of frame.delivery fields, some minor code cleanups
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44840 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-11 08:23:16 +00:00
crichter d1f128b28b Merged revisions 44786 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r44786 | crichter | 2006-10-10 15:50:26 +0200 (Di, 10 Okt 2006) | 9 lines

Merged revisions 44785 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44785 | crichter | 2006-10-10 15:34:33 +0200 (Di, 10 Okt 2006) | 1 line

(re)added support of dynamical enabling hdlc on bchannels
........

................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44787 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-10 14:54:58 +00:00
crichter 7e31abf5b7 Merged revisions 43852 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r43852 | crichter | 2006-09-28 13:03:05 +0200 (Do, 28 Sep 2006) | 9 lines

Merged revisions 43764 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r43764 | crichter | 2006-09-27 14:51:03 +0200 (Mi, 27 Sep 2006) | 1 line

fixed a bug which led to chan_list zombies, when the call could not be 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/trunk@43855 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 11:32:32 +00:00
kpfleming 8b0c007ad9 merge new_loader_completion branch, including (at least):
- 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-21 02:11:39 +00:00
nadi a392d1fb28 adding support for AOCD facility messages.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39987 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-16 13:19:54 +00:00
crichter e8972b947d removed libbnec dependencies.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39864 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-15 19:41:14 +00:00
nadi bc424f034a moved the asn1 and facility portions of code to mISDNuser, so removing the files here.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39807 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-15 16:49:26 +00:00
nadi d4b3463e80 fixing compile warnings, renaming config option "overlap_dial" to "overlapdial"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39479 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-09 09:24:21 +00:00
nadi cc220aaf1a * first bits of decoding facility information elements
* 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 18:13:40 +00:00
crichter 72b838e8f8 * added possibility to change echocancel settings during calls
* 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-08 09:19:06 +00:00
crichter dba3bf0c27 changed naming of mISDN channels, so that hinting works proper
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39131 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-07 09:09:17 +00:00
crichter e75c6a98a8 * removed pp_l2_check (fixed L2 bug in mISDNuser)
* 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-08-03 16:38:00 +00:00
crichter 64ca850133 added even more statefulness for sending out 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-13 14:13:24 +00:00
crichter b55dc5f392 * Introducing a new way for the l1watcher thread using the ast_sched way. 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-11 19:30:35 +00:00
crichter 2571c03ca7 removed unnecessary locking, which might have created deadlocks. removed 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-10 11:06:47 +00:00
crichter cb375e9152 * removed tone_indicate, we genrate only the dialtone by ourself (and the 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-06 15:11:40 +00:00
crichter 012ceb12ed removed our own tone creation from misdn_indicate, we just return -1. Now we 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-03 16:47:28 +00:00
crichter 69b854b61f added misdn show config description[s] to show all the possible misdn.conf settings with a description in the CLI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36865 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03 16:41:43 +00:00
crichter b67164aba6 added fix, that if the L2 goes down on ptp-NT that we reinitialize the NT 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-30 14:05:42 +00:00
crichter 0423e3b72b added better L2 handling for ptp, if it's down we don't try to call on that 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-29 20:12:19 +00:00
crichter 0ad003bb87 fixed a few state problems when hanging up the call. also changed a few debug messages to higher log level
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36188 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-28 14:15:29 +00:00
crichter 75ea3a18d3 * fixed the busy state
* 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-26 17:37:11 +00:00
crichter 8420c9b600 * added support for PID export/import to identify bridging in misdn_call already
* 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-21 15:21:46 +00:00
crichter cf81182b8b when we get a disconnect, we should stop the tones on te side..
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34788 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-19 09:44:04 +00:00
crichter b836b26aaa added TONE_HANGUP, also added Tone generation by mISDN_dsp for post hangup 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-18 19:09:32 +00:00
crichter 198718ea0a * fixed bchannel cleaning race condition with new bchannel state (CLEAN_REQUEST)
* 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-17 10:37:35 +00:00
crichter c916ddbc4f when we don't want the call we need to release_complete it.. ignoring it breaks the ETSI rules ..
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33195 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-09 10:31:30 +00:00
crichter 3e5a1d9c70 changed the clean_up_bc function to work proper again. fixed the print with the conference nr. when bridged
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32779 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 13:01:02 +00:00
crichter 169754edd2 added select before write to avoid deadlock on full buffer. added some 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-06 09:40:41 +00:00
crichter d4f65ee9d1 the interface needs to be changed as well..
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01 16:41:07 +00:00
crichter 3ce7d26860 unified the PH_CONTROL Interface for the mISDN_dsp interface to int
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31409 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01 16:25:04 +00:00
crichter f6aed90150 added bearer capability reject support. we send release instead of 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-06-01 12:51:41 +00:00
crichter 896fe12d0c added EVENT_NEW_CHANNEL. We change the channel name now when we got the real 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-24 23:21:03 +00:00
crichter bbff5301f8 added a l1watcher timeout, therefore removed the old behaviour of guessing the l1state.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29803 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23 19:40:16 +00:00
crichter 87a7c7793b * export_ies uses now _VAR else the vars are not copied to the dest chan
* 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-23 12:38:06 +00:00
crichter 0430160715 added callcounters for incoming and outgoing calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-22 15:02:03 +00:00
crichter c3eb6cbef2 this is not a warning, it might happen during call initialization
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28091 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-18 08:45:43 +00:00
crichter 5e278d3836 fixed very bad memory overwrite which leaded to segfaults on some systems. 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-16 14:34:21 +00:00
crichter 833bc0adf4 in PTMP TE we should set the free state for the B-Channel if we ignore an incoming call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25384 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 07:30:28 +00:00
crichter d84eb5f102 Added option far_alerting. This option makes it possible to generate a 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-05-05 16:38:15 +00:00
crichter abdc0b9710 added an up-queue message mechanism to avoid buffer fillups in the kernel, 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-29 22:56:00 +00:00
crichter 01857b473a Facility decoding doesn't work proper yet
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22549 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26 14:51:32 +00:00
crichter b15208140b mISDN Messages must be freed with free_msg \!\!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19160 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 08:31:19 +00:00
crichter ceee192818 fixed some issues, that appear at higher load
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18835 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 16:50:20 +00:00
crichter b441bcd687 * advanced the error Handling routine for wrong frames from mISDN
* 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-05 14:51:48 +00:00
crichter 34628eb758 fixed some essential segfaults happening under heavy load. Added a bit more 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-04 19:09:26 +00:00
crichter edfa5cf57f * removed unneeded bc->state field
* 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-04-03 19:17:59 +00:00
crichter fb8b94f577 fixed no dtmf detect on 64 bit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16085 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 14:26:43 +00:00
crichter 33cdd88430 fixed bug that we don't allocate the bchan in setup_acknowledge already .. 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-27 16:15:44 +00:00
crichter 48e3cf2126 fixed hicom busy bug, we now see if the systemphone is busy, also fixed the 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-27 10:13:11 +00:00