dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

81 Commits

Author SHA1 Message Date
dbailey 166a6aeef6 Cleanup fsk spill if off hook is detected during mwi spill.
Correct logic error in handling events when sending mwi spill 
(closes issue #14143)
Reported by: alecdavis
Patches:
      chan_dahdi.handle_init_event2.diff.txt uploaded by dbailey



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@167416 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-07 17:05:37 +00:00
mmichelson de66250540 Change some incorrect syntax for pri set debug and correct
an off-by-one error in ss7 set debug command



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@167021 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-31 21:52:02 +00:00
mmichelson 5a46fa7b76 Merged revisions 166380 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r166380 | mmichelson | 2008-12-22 14:56:29 -0600 (Mon, 22 Dec 2008) | 36 lines

Fix a deadlock relating to channel locks and autoservice

It has been discovered that if a channel is locked prior
to a call to ast_autoservice_stop, then it is likely that
a deadlock will occur. The reason is that the call to 
ast_autoservice_stop has a check built into it to be sure
that the thread running autoservice is not currently trying
to manipulate the channel we are about to pull out of 
autoservice.

The autoservice thread, however, cannot advance beyond where
it currently is, though, because it is trying to acquire
the lock of the channel for which autoservice is attempting
to be stopped.

The gist of all this is that a channel MUST NOT be locked
when attempting to stop autoservice on the channel.

In this particular case, the channel was locked by a call
to ast_read. A call to ast_exists_extension led to autoservice
being started and stopped due to the existence of dialplan
switches.

It may be that there are future commits which handle the same
symptoms but in a different location, but based on my looks through
the code, it is very rare to see a construct such as this one.

(closes issue #14057)
Reported by: rtrauntvein
Patches:
      14057v3.patch uploaded by putnopvut (license 60)
Tested by: rtrauntvein

Review: http://reviewboard.digium.com/r/107/


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@166382 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-22 21:08:03 +00:00
mattf e679eac279 Add configuration support for half_full DAHDI buffer policy
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@166058 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-19 21:44:18 +00:00
file 6fff9b550d Numerous documentation updates.
(closes issue #13970)
Reported by: pkempgen
Patches:
      __20081217_cli_usage_fixes.patch.txt uploaded by blitzrage (license 10)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@165792 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-18 21:21:44 +00:00
russell 33d2c8c815 Fix usage of the DAHDI_VMWI ioctl.
(closes issue #14090)
Reported by: alecdavis
Patches:
      chan_dahdi.VMWI_ioctl.diff.txt uploaded by alecdavis (license 585)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164602 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-16 14:17:45 +00:00
tilghman a41b34a63c Merge ast_str_opaque branch (discontinue usage of ast_str internals)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@163991 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-13 08:36:35 +00:00
murf a39114bf2e demote always-appearing debug message (for certain boards) to ast_debug lev 3 msg instead
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@163675 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-12 19:16:32 +00:00
eliel 6e243a5434 Janitor, use ARRAY_LEN() when possible.
(closes issue #13990)
Reported by: eliel
Patches:
      array_len.diff uploaded by eliel (license 64)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161218 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-05 10:31:25 +00:00
jpeeler 7d9ae22261 remove duplicate comment that I accidentally merged
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160333 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-02 18:04:51 +00:00
jpeeler 60cb1eef09 (closes issue #13786)
Reported by: tzafrir

Readding DAHDI_CHECK_HOOKSTATE define that was removed in r134260 which fixes not being able to make outgoing calls on some FXO adapters:
http://lists.digium.com/pipermail/asterisk-users/2008-November/thread.html#221553



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160319 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-02 18:00:24 +00:00
tilghman a836c3d93b Add an option, waitfordialtone, for UK analog lines which do not end a call
until the originating line hangs up.
(closes issue #12382)
 Reported by: one47
 Patches: 
       zap-waitfordialtone-trunk.080901.patch uploaded by one47 (license 23)
       zap-waitfordialtone-bra-1.4.21.2.patch uploaded by fleed (license 463)
 Tested by: fleed


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159317 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25 22:45:59 +00:00
mattf eb5e55e9c9 Fix for #13963. Make physical channel mapping unconfigured default
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158482 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21 21:06:59 +00:00
mattf 7e9cdbaadb Remove some useless locking and make sure we hangup channels on a link when we get a GRS.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156874 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-14 16:34:33 +00:00
tilghman c35b7f560f Command offsets were not changed correctly when the command syntax for
'pri set debug' was changed from 'pri debug'.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156647 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-13 19:10:28 +00:00
tilghman 93db929c7f Send call release with unallocated cause instead of normal call clearing, when
invalid extension is called.
(closes issue #13408)
 Reported by: adomjan
 Patches: 
       chan_dahdi.c-ss7-unallocated-2 uploaded by adomjan (license 487)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155324 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-07 20:13:32 +00:00
kpfleming 4dae7361f0 put ifdef protection around the rest of the libpri function calls that were added at the same time as progress_with_cause
move parsing of the qsig channel mapping configuration option outside ifdef HAVE_PRI_INBANDDISCONNECT and into a properly ifdef'd block



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@155066 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-06 20:51:26 +00:00
mattf 2e86ed61ac Make compilation of chan_dahdi so that it does not require the new pri_progress_with_cause function to have libpri support work.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154875 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-05 20:45:03 +00:00
eliel c7832dd1fd Add XML documentation for:
Applications
     - DAHDISendKeypadFacility()
     - DAHDISendCallreroutingFacility()



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154149 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-04 14:38:20 +00:00
kpfleming 24021189d2 fix one more warning missed because i did not have new enough libpri installed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153650 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-02 19:39:41 +00:00
kpfleming cc1b2c100f bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153616 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-02 18:52:13 +00:00
jpeeler 2b0597ebff Merged revisions 152286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r152286 | jpeeler | 2008-10-27 18:28:49 -0500 (Mon, 27 Oct 2008) | 2 lines

Buffer policy setting for half is not needed.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@152287 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-27 23:31:39 +00:00
mmichelson 420637cc6c Change some logical ands to bitwise ands and add
messages alerting that a channel is being ignored
if the PROC_DAHDI_NOCHAN option is set in process_dahdi.

(closes issue #13759)
Reported by: smurfix
Patches:
      dahdi.patch uploaded by smurfix (license 547)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@151600 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-22 20:05:14 +00:00
mattf f9bc0453df Merge in patch for #13454. Includes CallRereouting dialplan application, option for discard of remote hold messages, and using the alternate logical channel mapping in Q.SIG instead of the default physical channel mapping.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150640 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-17 17:25:58 +00:00
mvanbaak 02af335400 fix some CLI commands we borked during devcon2008
Thanks rmudget for letting me know and providing hints on how to fix it best.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147853 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-09 17:01:24 +00:00
kpfleming 68c5ea6ef6 Merged revisions 147681 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r147681 | kpfleming | 2008-10-08 17:22:09 -0500 (Wed, 08 Oct 2008) | 3 lines
  
  when parsing a text configuration option, ensure that the buffer on the stack is actually large enough to hold the legal values of that option, and also ensure that sscanf() knows to stop parsing if it would overrun the buffer (without these changes, specifying "buffers=...,immediate" would overflow the buffer on the stack, and could not have worked as expected)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147689 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-08 22:26:55 +00:00
seanbright 146f94185f Move the DAHDI-to-DAHDI operator mode check from app_dial into chan_dahdi
so we don't have to hardcode anything.

(closes issue #13636)
Reported by: seanbright
Patches:
      13636.diff uploaded by seanbright (license 71)
Reviewed by: russellb, putnopvut


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147388 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-07 21:34:44 +00:00
mvanbaak b6fa2c3b98 Merge the cli_cleanup branch.
This work is done by lmadsen, junky and mvanbaak
during AstriDevCon.

This is the second audit the CLI got, and
this time lmadsen made sure he had _ALL_ modules
loaded that have CLI commands in them.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@145121 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-28 23:32:14 +00:00
kpfleming 2003cfe993 rename chandup() and clarify its usage
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@145027 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-28 17:08:12 +00:00
mvanbaak 38c229a3bc fix a couple of CLI commands that did not have a help description.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@144879 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-27 00:49:24 +00:00
tilghman 95bae85759 Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating
when a file is invalid from when a file is missing.  This is most important when
we have two configuration files.  Consider the following example:

Old system:
sip.conf     users.conf     Old result               New result
========     ==========     ==========               ==========
Missing      Missing        SIP doesn't load         SIP doesn't load
Missing      OK             SIP doesn't load         SIP doesn't load
Missing      Invalid        SIP doesn't load         SIP doesn't load
OK           Missing        SIP loads                SIP loads
OK           OK             SIP loads                SIP loads
OK           Invalid        SIP loads incompletely   SIP doesn't load
Invalid      Missing        SIP doesn't load         SIP doesn't load
Invalid      OK             SIP doesn't load         SIP doesn't load
Invalid      Invalid        SIP doesn't load         SIP doesn't load

So in the case when users.conf doesn't load because there's a typo that
disrupts the syntax, we may only partially load users, instead of failing with
an error, which may cause some calls not to get processed.  Worse yet, the old
system would do this with no indication that anything was even wrong.

(closes issue #10690)
 Reported by: dtyoo
 Patches: 
       20080716__bug10690.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@142992 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-12 23:30:03 +00:00
dbailey a1f4c1f47a Move the mwi send thread functionality back into the do_monitor thread so that it is easier to manage CID spill resources when do_monitor needs to be killed.
(closes issue #13213)
Reported by: bbryant



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140246 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-26 21:59:31 +00:00
jpeeler 2235277721 Merged revisions 140056 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r140056 | jpeeler | 2008-08-26 10:57:02 -0500 (Tue, 26 Aug 2008) | 9 lines

(closes issue #12071)
Reported by: tzafrir
Patches:
      dahdi_close.diff uploaded by tzafrir (license 46)
Tested by: tzafrir, jpeeler

This patch fixes closing open file descriptors in the case of an error.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140205 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-26 18:48:55 +00:00
jpeeler be3a4ce2e6 Merged revisions 139387 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r139387 | jpeeler | 2008-08-21 18:39:31 -0500 (Thu, 21 Aug 2008) | 3 lines

Fixes loop that could possibly never exit in the event of a channel never being able to be opened or specify after a restart.
(closes issue #11017)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@139391 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-21 23:41:50 +00:00
jpeeler 0d46d0e195 add missing define for SS7 in dahdi_restart
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@138518 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-18 02:13:04 +00:00
tilghman 4bbd698565 Fix compilation warnings (found with dev-mode)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@138412 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-16 13:07:08 +00:00
jpeeler 962eea31ad Merged revisions 138360 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r138360 | jpeeler | 2008-08-15 20:12:18 -0500 (Fri, 15 Aug 2008) | 1 line

fixes use count to properly decrement if an active dahdi channel is destroyed allowing module to be unloaded
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@138361 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-16 01:13:26 +00:00
jpeeler 765aca3dfc Merged revisions 138119,138151,138238 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r138119 | jpeeler | 2008-08-15 14:21:51 -0500 (Fri, 15 Aug 2008) | 4 lines

Fixes the dahdi restart functionality. Dahdi restart allows one to restart all DAHDI channels, even if they are currently in use. This is different from unloading and then loading the module since unloading requires the use count to be zero. Reloading the module is different in that the signalling is not changed from what it was originally configured. Also, this fixes not closing all the file descriptors for D-channels upon module unload (which would prevent loading the module afterwards).

(closes issue #11017)

........
r138151 | jpeeler | 2008-08-15 14:41:29 -0500 (Fri, 15 Aug 2008) | 1 line

declared static mutexes using AST_MUTEX_DEFINE_STATIC macro
........
r138238 | jpeeler | 2008-08-15 16:28:26 -0500 (Fri, 15 Aug 2008) | 1 line

initialize condition variable ss_thread_complete using ast_cond_init
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@138311 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-15 23:46:09 +00:00
jpeeler e39711a3c2 rename all zfd instances in chan_dahdi to dfd to match 1.4 (left over from DAHDI transition)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@138155 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-15 20:12:19 +00:00
tilghman e9ce07ce2c Merged revisions 137847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r137847 | tilghman | 2008-08-14 11:47:30 -0500 (Thu, 14 Aug 2008) | 9 lines

When creating the secondary subchannel name, it is necessary to compare to
the existing channel name without the "Zap/" or "DAHDI/" prefix, since our
test string is also without that prefix.
(closes issue #13027)
 Reported by: dferrer
 Patches: 
       chan_zap-1.4.21.1_fix2.patch uploaded by dferrer (license 525)
       (Slightly modified by me, to compensate for both names)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137848 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-14 16:52:43 +00:00
seanbright 428ca97131 Biggest offender? chan_dahdi.c! More RSW merging.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136890 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-09 13:13:48 +00:00
dhubbard 385b99a0ae use ARRAY_LEN
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136787 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-08 15:58:38 +00:00
kpfleming c5d4094208 build against the now-typedef-free dahdi/user.h, and remove some #ifdefs for features that will always be present in DAHDI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134260 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-29 22:22:13 +00:00
kpfleming 255f52d647 remove remaining Zaptel references in various places
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134086 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-28 16:42:00 +00:00
tilghman 1b294dd713 Deprecate *_device_state_* APIs in favor of *_devstate_* APIs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133860 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-25 21:20:03 +00:00
qwell cbc2653144 Merged revisions 133295 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133295 | qwell | 2008-07-23 16:49:03 -0500 (Wed, 23 Jul 2008) | 1 line

inbandrelease is gone - it's now inbanddisconnect
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133296 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23 21:50:20 +00:00
mmichelson 3cf9da7746 Merged revisions 133038 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r133038 | mmichelson | 2008-07-23 12:50:01 -0500 (Wed, 23 Jul 2008) | 7 lines

Small cleanup. Move the declaration of the DAHDI_SPANINFO
variable to the block where it is used. This allows one
less #ifdef HAVE_PRI to clutter things up.

Thanks to Tzafrir for pointing this out on #asterisk-dev


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133041 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23 17:54:03 +00:00
kpfleming c9303b9182 correct fix made in r132777... the code *did* compile in dev-mode, as long as libpri was installed and enabled
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132791 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22 22:14:37 +00:00
mmichelson 740017ed3f Get chan_dahdi to compile in devmode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132777 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22 21:52:24 +00:00
kpfleming 1a2ed7d013 Merged revisions 132712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132712 | kpfleming | 2008-07-22 16:17:23 -0500 (Tue, 22 Jul 2008) | 6 lines

ensure that if any alarms exist at channel creation time, they are handled identically to if they occurred later, so that later alarm clearing will work properly and 'make sense'

(closes issue #12160)
Reported by: tzafrir


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132721 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22 21:21:56 +00:00