Commit Graph

9522 Commits

Author SHA1 Message Date
BJ Weschke ffd9281db9 Provide a little more protection to make sure that a MOH class is specified when using the 'm' option with WaitExten, and prevent a segfault in the process.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 21:26:04 +00:00
BJ Weschke bbc9c049ab Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk-dev.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 20:44:14 +00:00
BJ Weschke 7057035ae0 Changes/fixes to the app_waitforsilence app to make it behave more the way the author originally intended for it
to function along with an option to keep backward compatible with "old-style" functionality in 1.2. 
 (#6595 - davetroy reported and patched w/some very minor mods/corrections)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 20:23:41 +00:00
BJ Weschke c5c1d4579f This was added to app_dial a while back, and now it's in app_queue as well. Provide an option to prevent members of the queue from forwarding calls from the queue to somewhere else.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 19:32:51 +00:00
BJ Weschke f1b43be465 Some changes/fixes for func_curl. curl_global_init is only supposed to be called once, and if it returns non-zero, we need to give up on further executions with that instance. Additionally, let's set absolute timeout values for the CURL connections to try and prevent possible Zap (and possibly other channel tech) channel lockouts.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 19:07:58 +00:00
BJ Weschke 06b98dcc77 Merged revisions 41882 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r41882 | bweschke | 2006-09-03 13:38:22 -0400 (Sun, 03 Sep 2006) | 3 lines

 Make sure the forwarded channel inherits variables appropriately when we receive a call forward in the queue. (#7867 - raarts reported and patched)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 17:40:08 +00:00
BJ Weschke 775288c74b Blocking 41880 from coming into /trunk since I already patched it in /trunk first. Ooops!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 17:15:07 +00:00
BJ Weschke 91f4aa93bb Don't keep trying the same member in certain strategies when members of the queue are unavailable (#7278 - diLLec reported and patched)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 17:12:30 +00:00
Joshua Colp 6fdd2ef790 Tweak the if statement a bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 16:44:49 +00:00
Russell Bryant e576ac0930 Don't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
very stupid thing to do.  It ends up duplicating the frame twice, linking in
one of them and setting the tail pointer to the other one.  Sorry ...

Thanks to file for pointing out the breakage!!!  file rocks.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 16:41:02 +00:00
BJ Weschke c4dac0c1e5 We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 15:21:12 +00:00
Russell Bryant cf5a226c4b remove leading space in Packet manager event header
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 15:04:26 +00:00
BJ Weschke a17cdb94c0 r41830 isn't going to merge cleanly into /trunk so it is blocked.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 14:54:02 +00:00
BJ Weschke b6ccca7566 Merged revisions 41827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r41827 | bweschke | 2006-09-03 10:16:08 -0400 (Sun, 03 Sep 2006) | 3 lines

 Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574 - reported by regin)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 14:28:25 +00:00
BJ Weschke a9da7b62cb Block 30546 from coming into /trunk. Some old cleanup.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-03 14:26:44 +00:00
BJ Weschke e736c8a27b With the somewhat recent addition (from one of the Astridevcon Europe sessions) of more detailed device states, we need to change strategy in app_queue in how we determine whether a queue member is "in use" or not. Basically, instead of specifically looking for that device state as we did previously, now we're going to observe any other device state aside from the two that we know for sure are "not in use" as "in use". This will cause some other states to fall through that we know will never be available (eg - "INVALID","UNAVAILABLE",etc) but there's other code already within to handle those conditions. (#7433 - tgrman reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-02 18:36:53 +00:00
Jason Parker ce35c33353 It was pointed out to me, that using two frames is silly.
Thanks Josh.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-02 01:44:50 +00:00
Jason Parker 1d9bf5b1e8 fix some module loader breakage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-02 01:39:42 +00:00
Jason Parker 696465a002 Fix VLDTMF issues.
It still isn't variable length, but it does let you dial again.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-02 01:39:15 +00:00
Joshua Colp e43b830a9d Merged revisions 41768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r41768 | file | 2006-09-01 18:49:07 -0400 (Fri, 01 Sep 2006) | 2 lines

Only wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 22:51:46 +00:00
Matt O'Gorman d9d3127ee3 get rid of some useless debug messages and raise debug level of others
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 22:03:33 +00:00
Matt O'Gorman e31af51923 more staticness, and syntax cleaning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 19:23:07 +00:00
Joshua Colp f912c9e69f Unbridge the RTP streams at the correct place
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 18:57:10 +00:00
Joshua Colp 0be2884d80 If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 17:54:22 +00:00
Kevin P. Fleming 449f311cda block this rev... fix is already present in this branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 17:41:52 +00:00
Matt O'Gorman c13e44eacb whitespace clean up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 17:20:48 +00:00
Joshua Colp b4d0f26d2b You see nothing...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 16:50:02 +00:00
Steve Murphy a845587805 Another formatting update for PCadach.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 16:48:06 +00:00
Joshua Colp 043a01e6bd 0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 16:40:18 +00:00
Joshua Colp 9edf55b64d Merged revisions 41690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r41690 | file | 2006-09-01 12:28:08 -0400 (Fri, 01 Sep 2006) | 2 lines

Don't treat an unexpected control subclass as voice (issue #7858 reported by PCadach)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 16:34:57 +00:00
Steve Murphy 2ff2b02eae PCadach wanted better formatting of those 'if' conditions for 7859.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 16:33:22 +00:00
Joshua Colp 8ee7419d26 If no number is specified in the SIP_HEADER dialplan function, then just use the first one. (issue #7854 reported by sxpert and issue #7863 reported by hristo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 16:19:03 +00:00
Steve Murphy cd8635b9b5 This small tweek will hopefully fix 7859, and silence all possible others
along that line.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-01 15:57:05 +00:00
Russell Bryant eb3db2fc15 fix some breakage, MOG DID IT!!!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 21:50:55 +00:00
Russell Bryant 7dfc749551 there is no need for __iax_frame_free ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 21:50:07 +00:00
Anthony LaMantia e553725500 spacing update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 21:12:26 +00:00
Anthony LaMantia 2161a251a8 small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 21:06:07 +00:00
Matt O'Gorman 05a695af72 everything that loads a config that needs a config file to run
now reports AST_MODULE_LOAD_DECLINE when loading if config file
is not there, also fixed an error in res_config_pgsql where it 
had a non static function when it should.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 21:00:20 +00:00
Joshua Colp f2b836ff4f Tweak the DTMF muting stuff a bit to take into account VLDTMF and compensation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 21:00:16 +00:00
Anthony LaMantia 7399d40ec7 fix for bugid: 0007830
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 20:49:26 +00:00
Russell Bryant 0c6932eeb4 there is no need to use iax_frame_free here, as it will actually just end up
having a bunch of erroneous messages about attempting to double free frames
spammed to the console.  Problem reported to me by file ...


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 20:39:12 +00:00
Joshua Colp faf4975122 Ignore DTMF begin frames in the waitstream core so that we don't get duplicate digits in our extension match
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 19:03:13 +00:00
Joshua Colp d6096858d0 Don't fail the write if they try to write a NULL or IAX frame as we just ignore these.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 18:47:51 +00:00
Joshua Colp aaaec0e917 Add new frame types for DTMF
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 18:21:00 +00:00
Joshua Colp 29ee02bfce Only write a received packet out if we are actually bridged to something
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 14:46:46 +00:00
Olle Johansson 3f888b84f3 Use GLOBAL() in dialplan examples
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 10:40:24 +00:00
Russell Bryant badabb5bb9 oops.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 04:19:54 +00:00
Russell Bryant 42fc890acc The behavior of REGEX when it did not match was not defined by the docs, so
define it to provide a result of "0" and change the code appropriately.
(issue #7805)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 04:07:35 +00:00
Steve Murphy 6557d250c8 This commit is a basic AEL enhancement: c-style comments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 02:53:15 +00:00
Joshua Colp a0cd4f4cc8 Force a rebuild since we mucked with enough stuff to justify it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 02:03:01 +00:00