]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
17 years agoHandle escaped URI's in call pickups. Patch by oej and IgorG.
Olle Johansson [Tue, 1 Jul 2008 14:27:33 +0000 (14:27 +0000)] 
Handle escaped URI's in call pickups. Patch by oej and IgorG.

Reported by: IgorG
Patches:
      bug12299-11062-v2.patch uploaded by IgorG (license 20)
Tested by: IgorG, oej
(closes issue #12299)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126899 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoClear up documentation on "domain=" setting in sip.conf
Olle Johansson [Tue, 1 Jul 2008 12:53:01 +0000 (12:53 +0000)] 
Clear up documentation on "domain=" setting in sip.conf

Reported by: davidw
(closes issue #12413)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126844 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoReport 200 OK to all in-dialog OPTIONs requests (to confirm that the dialog
Olle Johansson [Tue, 1 Jul 2008 11:51:38 +0000 (11:51 +0000)] 
Report 200 OK to all in-dialog OPTIONs requests (to confirm that the dialog
exist). Don't bother checking the request URI.

(closes issue #11264)
Reported by: ibc

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126789 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix bad XML for hold notification.
Olle Johansson [Tue, 1 Jul 2008 07:49:15 +0000 (07:49 +0000)] 
Fix bad XML for hold notification.
Reported by: gowen72
Patches:
      hold.patch uploaded by gowen72 (license 432)
(closes issue #12942)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126735 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoLoad the proper channel configuration file based on which driver was detected.
Jeff Peeler [Mon, 30 Jun 2008 23:11:16 +0000 (23:11 +0000)] 
Load the proper channel configuration file based on which driver was detected.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126680 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdd note about other names for EuroISDN
Tilghman Lesher [Mon, 30 Jun 2008 22:30:37 +0000 (22:30 +0000)] 
Add note about other names for EuroISDN

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126674 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix a typo in the non-DEBUG_THREADS version of the recently added DEADLOCK_AVOIDANCE()
Russell Bryant [Mon, 30 Jun 2008 16:05:08 +0000 (16:05 +0000)] 
Fix a typo in the non-DEBUG_THREADS version of the recently added DEADLOCK_AVOIDANCE()
macro.  This caused the lock to not actually be released, and as a result, not
avoid deadlocks at all.  This resolves the issues reported in the last while about
Asterisk locking up all over the place (and most commonly, in chan_iax2).

(closes issue #12927)
(closes issue #12940)
(closes issue #12925)
(potentially closes others ...)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126573 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoSend all responses to an INVITE reliably, so that we retransmit if we don't get an...
Olle Johansson [Mon, 30 Jun 2008 12:50:55 +0000 (12:50 +0000)] 
Send all responses to an INVITE reliably, so that we retransmit if we don't get an ACK and
also fail if we don't get the very same precious ACK. Based on patch by tsearle, with
my own additions.

(closes issue #12951)

Reported by: tsearle
Patches:
      busy_retransmit.patch uploaded by tsearle (license 373)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126516 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoignore warnings for prototypes in GTK headers
Kevin P. Fleming [Sun, 29 Jun 2008 18:05:34 +0000 (18:05 +0000)] 
ignore warnings for prototypes in GTK headers

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126395 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoWhen we get a 408 Timeout, don't stop trying to re-register.
Tilghman Lesher [Fri, 27 Jun 2008 22:01:09 +0000 (22:01 +0000)] 
When we get a 408 Timeout, don't stop trying to re-register.
(closes issue #12863)
 Reported by: ricvil

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@126056 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoSince HAVE_DAHDI is defined to HAVE_ZAPTEL in dahdi_compat.h, we must first
Tilghman Lesher [Fri, 27 Jun 2008 16:46:05 +0000 (16:46 +0000)] 
Since HAVE_DAHDI is defined to HAVE_ZAPTEL in dahdi_compat.h, we must first
check for HAVE_ZAPTEL.
(closes issue #12938)
 Reported by: opticron
 Patches:
       tonezone_compat.diff uploaded by opticron (license 267)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125893 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIn this debugging function, copy to a buffer instead of using potentially unsafe...
Tilghman Lesher [Fri, 27 Jun 2008 13:45:03 +0000 (13:45 +0000)] 
In this debugging function, copy to a buffer instead of using potentially unsafe pointers.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125793 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdd proper deadlock avoidance.
Tilghman Lesher [Fri, 27 Jun 2008 12:19:39 +0000 (12:19 +0000)] 
Add proper deadlock avoidance.
(closes issue #12914)
 Reported by: ozan
 Patches:
       20080625__bug12914.diff.txt uploaded by Corydon76 (license 14)
 Tested by: ozan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125740 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMake sure to unlock the lock_info lock (huh?). Possible deadlock?
Jason Parker [Thu, 26 Jun 2008 23:03:15 +0000 (23:03 +0000)] 
Make sure to unlock the lock_info lock (huh?).  Possible deadlock?

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125587 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdd the interface of a queue member to the output of the "queue show" command
Mark Michelson [Thu, 26 Jun 2008 22:52:39 +0000 (22:52 +0000)] 
Add the interface of a queue member to the output of the "queue show" command
so that it can easily be associated with a queue member's name. This helps
so that the appropriate queue member can be removed or paused since the
interface is required, not the member's name.

(closes issue #12783)
Reported by: davevg
Patches:
      app_queue.diff uploaded by davevg (license 209) with small mod from me

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125585 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoBackport of attended transfer queue_log patch from trunk.
Mark Michelson [Thu, 26 Jun 2008 22:02:55 +0000 (22:02 +0000)] 
Backport of attended transfer queue_log patch from trunk.

This patch allows for attended transfers to be logged in the
queue_log the same way that blind transfers have always been.

It was decided by popular opinion on the asterisk-dev mailing
list that this should be backported to 1.4. Thanks to everyone
who gave an opinion.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125530 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoPrior to this patch, the "queue show" command used cached
Mark Michelson [Thu, 26 Jun 2008 20:56:01 +0000 (20:56 +0000)] 
Prior to this patch, the "queue show" command used cached
information for realtime queues instead of giving up-to-date
info. Now realtime is queried for the latest and greatest in
queue info.

(closes issue #12858)
Reported by: bcnit
Patches:
      queue_show.patch uploaded by putnopvut (license 60)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125476 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdd support for peer realm based auth (a few missing lines, the rest is well document...
Olle Johansson [Thu, 26 Jun 2008 16:32:08 +0000 (16:32 +0000)] 
Add support for peer realm based auth (a few missing lines, the rest is well documented but never worked)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125384 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoensure that (whenever possible) if we generate a log message because an ioctl() call...
Kevin P. Fleming [Thu, 26 Jun 2008 15:30:33 +0000 (15:30 +0000)] 
ensure that (whenever possible) if we generate a log message because an ioctl() call to DAHDI/Zaptel failed, that we include the reason it failed by including the stringified error number

(issue AST-80)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125327 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoCheck for rtcp structure before trying to delete schedule.
Tilghman Lesher [Thu, 26 Jun 2008 11:01:21 +0000 (11:01 +0000)] 
Check for rtcp structure before trying to delete schedule.
(closes issue #12872)
 Reported by: destiny6628
 Patches:
       20080621__bug12872.diff.txt uploaded by Corydon76 (license 14)
 Tested by: destiny6628

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125276 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoDocument ackcall=always.
Tilghman Lesher [Thu, 26 Jun 2008 01:24:26 +0000 (01:24 +0000)] 
Document ackcall=always.
(closes issue #12852)
 Reported by: davidw

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125218 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoallow tonezone to live in a different place than DAHDI/Zaptel, since dahdi-tools...
Kevin P. Fleming [Wed, 25 Jun 2008 22:21:30 +0000 (22:21 +0000)] 
allow tonezone to live in a different place than DAHDI/Zaptel, since dahdi-tools and dahdi-linux are now separate packages and can be installed in different places

don't include tonezone.h in dahdi_compat.h, because only a couple of modules need it

get app_rpt building again after the DAHDI changes

(closes issue #12911)
Reported by: tzafrir

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@125132 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoPvt deadlock causes some channels to get stuck in Reserved status.
Tilghman Lesher [Wed, 25 Jun 2008 00:46:24 +0000 (00:46 +0000)] 
Pvt deadlock causes some channels to get stuck in Reserved status.
(closes issue #12621)
 Reported by: fabianoheringer
 Patches:
       20080612__bug12621.diff.txt uploaded by Corydon76 (license 14)
 Tested by: fabianoheringer

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124965 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoOccasionally control characters find their way into CallerID. These need to
Tilghman Lesher [Tue, 24 Jun 2008 21:08:52 +0000 (21:08 +0000)] 
Occasionally control characters find their way into CallerID.  These need to
be stripped prior to placing CallerID in the headers of an email.
(closes issue #12759)
 Reported by: RobH
 Patches:
       20080602__bug12759__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: RobH

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124910 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoDon't access the pvt structure if unable to acquire the lock.
Tilghman Lesher [Tue, 24 Jun 2008 20:52:43 +0000 (20:52 +0000)] 
Don't access the pvt structure if unable to acquire the lock.
(closes issue #12162)
 Reported by: norman
 Patches:
       12162-lockfail.diff uploaded by qwell (license 4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124908 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoemit a warning if the old IAX2 call searching code finds a call when the new code...
Kevin P. Fleming [Mon, 23 Jun 2008 21:22:08 +0000 (21:22 +0000)] 
emit a warning if the old IAX2 call searching code finds a call when the new code did not... so that we can get rid of the old code in 2-3 months

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124743 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years ago(closes issue #12910)
Steve Murphy [Sun, 22 Jun 2008 02:54:52 +0000 (02:54 +0000)] 
(closes issue #12910)
Reported by: chris-mac

Sorry, my testing did not contain the simple case of forkCDR(v),
I am much embarrassed to admit.  If I had, I would have
more solidly initialized the opts element for varset.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124540 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agousleep with a value over 1,000,000 is nonportable. Changing to use sleep()
Tilghman Lesher [Fri, 20 Jun 2008 23:12:33 +0000 (23:12 +0000)] 
usleep with a value over 1,000,000 is nonportable.  Changing to use sleep()
instead.  (closes issue #12814)
 Reported by: pputman
 Patches:
       app_rtp_sleep.patch uploaded by pputman (license 81)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124450 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIf the last character in a string to be parsed is the delimiter, then we should
Tilghman Lesher [Fri, 20 Jun 2008 22:02:55 +0000 (22:02 +0000)] 
If the last character in a string to be parsed is the delimiter, then we should
count that final empty string as an additional argument.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124395 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix issues in digium-mib.txt and asterisk-mib.txt to placate smilint - bug 12905
Jeff Gehlbach [Fri, 20 Jun 2008 21:14:40 +0000 (21:14 +0000)] 
Fix issues in digium-mib.txt and asterisk-mib.txt to placate smilint - bug 12905

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124372 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoWhen using a Local channel, started by a call file, with a destination of an
Tilghman Lesher [Fri, 20 Jun 2008 20:16:02 +0000 (20:16 +0000)] 
When using a Local channel, started by a call file, with a destination of an
AGI script, the AGI script does not always get notified of a hangup if the
underlying channel hangs up early.
(closes issue #11833)
 Reported by: IgorG
 Patches:
       local_hangup-v1.diff uploaded by IgorG (license 20)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124315 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIt's possible for a hangup to be received, even just after the initial cid
Tilghman Lesher [Thu, 19 Jun 2008 22:53:22 +0000 (22:53 +0000)] 
It's possible for a hangup to be received, even just after the initial cid
spill.
(closes issue #12453)
 Reported by: Alex728
 Patches:
       20080604__bug12453.diff.txt uploaded by Corydon76 (license 14)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124182 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix IMAP forwarding so that messages are sent to the proper mailbox.
Mark Michelson [Thu, 19 Jun 2008 20:28:41 +0000 (20:28 +0000)] 
Fix IMAP forwarding so that messages are sent to the proper mailbox.

(closes issue #12897)
Reported by: jaroth
Patches:
      destination_forward.patch uploaded by jaroth (license 50)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124112 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMerge revision 124064 from trunk. Add errors that report any locks held by threads...
Brett Bryant [Thu, 19 Jun 2008 19:55:36 +0000 (19:55 +0000)] 
Merge revision 124064 from trunk. Add errors that report any locks held by threads when they are being closed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124066 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoChange informative messages to use the _multiple variant when multiple formats
Tilghman Lesher [Thu, 19 Jun 2008 16:58:19 +0000 (16:58 +0000)] 
Change informative messages to use the _multiple variant when multiple formats
are possible.
(Closes issue #12848)
Reported by klaus3000

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123930 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoOnly process 40 arguments (20 files) at once with xargs, because some older
Tilghman Lesher [Thu, 19 Jun 2008 16:26:03 +0000 (16:26 +0000)] 
Only process 40 arguments (20 files) at once with xargs, because some older
shells may force xargs to separate on an odd boundary.
(Closes issue #12883)
Reported by Nik Soggia

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123909 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoCorrect description of notifyringing option.
Tilghman Lesher [Thu, 19 Jun 2008 16:20:41 +0000 (16:20 +0000)] 
Correct description of notifyringing option.
(Closes issue #12890)
Reported by gminet

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123883 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoThe RDTSC instruction was introduced on the Pentium line of microprocessors,
Tilghman Lesher [Thu, 19 Jun 2008 16:07:23 +0000 (16:07 +0000)] 
The RDTSC instruction was introduced on the Pentium line of microprocessors,
and is not compatible with certain 586 clones, like Cyrix.  Hence, asking for
i386 compatibility was always incorrect. See http://en.wikipedia.org/wiki/RDTSC
(Closes issue #12886)
Reported by tecnoxarxa

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdd support for saying numbers in Hebrew.
Tilghman Lesher [Wed, 18 Jun 2008 22:08:30 +0000 (22:08 +0000)] 
Add support for saying numbers in Hebrew.
(closes issue #11662)
 Reported by: greenfieldtech
 Patches:
       say.c.patch-12042008 uploaded by greenfieldtech (license 369)
       Hebrew-Sounds.ods uploaded by greenfieldtech
       (with signficant changes to the spreadsheet by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123769 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoSet the variables top-down, so that if a script sets a variable more than once,
Tilghman Lesher [Wed, 18 Jun 2008 20:22:42 +0000 (20:22 +0000)] 
Set the variables top-down, so that if a script sets a variable more than once,
the last one will take precedence.
(closes issue #12673)
 Reported by: phber
 Patches:
       20080519__bug12673.diff.txt uploaded by Corydon76 (license 14)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123710 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMake chan_sip build under dev mode with compilers >= GCC 4.2
Mark Michelson [Tue, 17 Jun 2008 20:26:38 +0000 (20:26 +0000)] 
Make chan_sip build under dev mode with compilers >= GCC 4.2
Thanks to jpeeler for alerting me of this

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123485 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix 3 more places where not locking the structure could cause the wrong lock to be
Tilghman Lesher [Tue, 17 Jun 2008 18:56:53 +0000 (18:56 +0000)] 
Fix 3 more places where not locking the structure could cause the wrong lock to be
unlocked.  (Closes issue #12795)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123391 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoCisco BTS sends SIP responses with a tab between the Cseq number and
Mark Michelson [Tue, 17 Jun 2008 18:09:16 +0000 (18:09 +0000)] 
Cisco BTS sends SIP responses with a tab between the Cseq number and
SIP request method in the Cseq: header. Asterisk did not handle this
properly, but with this patch, all is well.

(closes issue #12834)
Reported by: tobias_e
Patches:
      12834.patch uploaded by putnopvut (license 60)
Tested by: tobias_e

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agodavidw pointed out that the holdtime calculation used by
Mark Michelson [Tue, 17 Jun 2008 15:56:55 +0000 (15:56 +0000)] 
davidw pointed out that the holdtime calculation used by
app_queue does not use "boxcar" filtering as the comments
say. The term "boxcar" means that the number of samples used
to calculate stays constant, with new samples replacing the
oldest ones. The queue holdtime calculation uses all holdtime
samples collected since the queue was loaded, so the comment
has been changed to be accurate.

(closes issue #12781)
Reported by: davidw

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123274 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix a memory leak in astobj2 that was pointed out by seanbright. When a container
Russell Bryant [Tue, 17 Jun 2008 15:48:31 +0000 (15:48 +0000)] 
Fix a memory leak in astobj2 that was pointed out by seanbright.  When a container
got destroyed, the underlying bucket list entry for each object that was in the
container at that time did not get free'd.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123271 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoPort "hasvoicemail" change from SIP to other channel drivers
Tilghman Lesher [Mon, 16 Jun 2008 19:50:12 +0000 (19:50 +0000)] 
Port "hasvoicemail" change from SIP to other channel drivers

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123113 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoPeople expect that if "hasvoicemail" is set in users.conf, even if "mailbox"
Tilghman Lesher [Mon, 16 Jun 2008 19:21:58 +0000 (19:21 +0000)] 
People expect that if "hasvoicemail" is set in users.conf, even if "mailbox"
isn't set, that SIP will detect a mailbox.
(closes issue #12855)
 Reported by: PLL
 Patches:
       20080614__bug12855__2.diff.txt uploaded by Corydon76 (license 14)
 Tested by: PLL

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123110 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoOnly compare the first 15 characters so that even if the charset is specified we...
Joshua Colp [Mon, 16 Jun 2008 12:31:09 +0000 (12:31 +0000)] 
Only compare the first 15 characters so that even if the charset is specified we still accept it as SDP.
(closes issue #12803)
Reported by: lanzaandrea
Patches:
      chan_sip.c.diff uploaded by lanzaandrea (license 496)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122919 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoDon't send a BYE on a dialog that is already gone during a REFER.
Joshua Colp [Mon, 16 Jun 2008 12:08:28 +0000 (12:08 +0000)] 
Don't send a BYE on a dialog that is already gone during a REFER.
(closes issue #12865)
Reported by: flefoll
Patches:
      chan_sip.c.br14.121495.patch-ALREADYGONE uploaded by flefoll (license 244)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoShort circuit the loop in autoservice_run if there are no channels to poll.
Mark Michelson [Fri, 13 Jun 2008 21:44:53 +0000 (21:44 +0000)] 
Short circuit the loop in autoservice_run if there are no channels to poll.
If we continued, then the result would be calling poll() with a NULL
pollfd array. While this is fine with POSIX's poll(2) system call, those
who use Asterisk's internal poll mechanism (Darwin systems) would have
a failed assertion occur when poll is called.

(related to issue #10342)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122713 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agofixed dahdi compatability header from assuming either dahdi or zaptel is installed...
Jeff Peeler [Fri, 13 Jun 2008 18:57:24 +0000 (18:57 +0000)] 
fixed dahdi compatability header from assuming either dahdi or zaptel is installed (may not have either)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122663 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoRemove extra option from previous solution attempt
Terry Wilson [Fri, 13 Jun 2008 17:45:55 +0000 (17:45 +0000)] 
Remove extra option from previous solution attempt

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122617 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years ago(closes issue #12846)
Jeff Peeler [Fri, 13 Jun 2008 17:36:56 +0000 (17:36 +0000)] 
(closes issue #12846)
Reported by: Netview
Tested by: jpeeler

Use correct location to search for tonezone.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122613 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoThis should fix the behavior of the 'T' dial feature being passed incorrectly to...
Terry Wilson [Fri, 13 Jun 2008 16:29:07 +0000 (16:29 +0000)] 
This should fix the behavior of the 'T' dial feature being passed incorrectly to the transferee when builtin_atxfers are used.
Also, doing a builtin_atxfer to parking was broken and is fixed here as well.

(closes issue #11898)
Reported by: sergee
Tested by: otherwiseguy

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122589 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff should...
Jeff Peeler [Thu, 12 Jun 2008 19:08:20 +0000 (19:08 +0000)] 
Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff should continue working. Release announcement to follow.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122314 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoProperly play a holdtime message if the announce-holdtime option is
Mark Michelson [Thu, 12 Jun 2008 18:50:58 +0000 (18:50 +0000)] 
Properly play a holdtime message if the announce-holdtime option is
set to "once."

(closes issue #12842)
Reported by: ramonpeek
Patches:
      patch001.diff uploaded by ramonpeek (license 266)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122311 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix some race conditions that cause ast_assert() to report that chan_iax2 tried
Russell Bryant [Thu, 12 Jun 2008 18:22:44 +0000 (18:22 +0000)] 
Fix some race conditions that cause ast_assert() to report that chan_iax2 tried
to remove an entry that wasn't in the scheduler

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122259 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years ago(closes issue #12193)
Jeff Peeler [Thu, 12 Jun 2008 15:46:08 +0000 (15:46 +0000)] 
(closes issue #12193)
Reported by: davidw
Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122208 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFlipflop the sections for two options, since the section for 'X' (exit context)
Tilghman Lesher [Thu, 12 Jun 2008 15:18:39 +0000 (15:18 +0000)] 
Flipflop the sections for two options, since the section for 'X' (exit context)
may otherwise absorb keypresses meant for 's' (admin/user menu).
(closes issue #12836)
 Reported by: blitzrage
 Patches:
       20080611__bug12836.diff.txt uploaded by Corydon76 (license 14)
 Tested by: blitzrage

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122137 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoOccasionally, the alertpipe loses its nonblocking status, so detect and correct
Tilghman Lesher [Thu, 12 Jun 2008 15:11:30 +0000 (15:11 +0000)] 
Occasionally, the alertpipe loses its nonblocking status, so detect and correct
that situation before it causes a deadlock.  (Reported and tested by ctooley
via #asterisk-dev)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122130 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoArkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer...
Steve Murphy [Thu, 12 Jun 2008 14:51:44 +0000 (14:51 +0000)] 
Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _noanswer was redundant. Didn't spot it until I was resolving conflicts in trunk. Ugh. Redundant code removed. It wasn't harmful. Just dumb.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122127 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years ago(closes issue #10668)
Steve Murphy [Thu, 12 Jun 2008 13:47:34 +0000 (13:47 +0000)] 
(closes issue #10668)
Reported by: arkadia
Tested by: murf, arkadia

Options added to forkCDR() app and the CDR() func to
remove some roadblocks for CDR applications.

The "show application ForkCDR" output was upgraded
to more fully explain the inner workings of forkCDR.

The A option was added to forkCDR to force the
CDR system to NOT change the disposition on the
original CDR, after the fork. This involves
ast_cdr_answer, _busy, _failed, and so on.

The T option was added to forkCDR to force
obedience of the cdr LOCKED flag in the
ast_cdr_end, all the disposition changing
funcs (ast_cdr_answer, etc), and in the
ast_cdr_setvar func.

The CHANGES file was updated to explain ALL
the new options added to satisfy this bug report
(and some requests made verbally and via
email, irc, etc, over the past months/year)

The 's' option was added to the CDR() func,
to force it to skip LOCKED cdr's in the
chain.

Again, the new options should be totally transparent
to existing apps! Current behavior of CDR,
forkCDR, and the rest of the CDR system should
not change one little bit. Until you add the
new options, at least!

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122046 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoBackport fix for 11520--for some reason I didn't do this back in February when I...
Terry Wilson [Wed, 11 Jun 2008 23:47:23 +0000 (23:47 +0000)] 
Backport fix for 11520--for some reason I didn't do this back in February when I patched for trunk.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121992 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMake calls to ast_assert() actually test something, so that the error message
Tilghman Lesher [Wed, 11 Jun 2008 18:18:16 +0000 (18:18 +0000)] 
Make calls to ast_assert() actually test something, so that the error message
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121861 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoadd instructions for logging gdb output via set logging on
Jeff Peeler [Wed, 11 Jun 2008 16:11:09 +0000 (16:11 +0000)] 
add instructions for logging gdb output via set logging on

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121804 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agofixed issue with previous commit, the find_free_channel test for channels which where...
Christian Richter [Wed, 11 Jun 2008 09:28:04 +0000 (09:28 +0000)] 
fixed issue with previous commit, the find_free_channel test for channels which where inuse was broken.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121751 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFixes a problem with some buggy versions of GNU awk (3.1.3) not liking carriage retur...
Sean Bright [Tue, 10 Jun 2008 18:34:45 +0000 (18:34 +0000)] 
Fixes a problem with some buggy versions of GNU awk (3.1.3) not liking carriage returns in scripts.

(closes issue #12749)
Reported by: alinux
Tested by: Laureano (on #asterisk-dev), juggie

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121596 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIf we are destroying a dialog only set the MWI dialog pointer on the related peer...
Joshua Colp [Tue, 10 Jun 2008 13:34:27 +0000 (13:34 +0000)] 
If we are destroying a dialog only set the MWI dialog pointer on the related peer to NULL if it is the dialog currently being destroyed.
(closes issue #12828)
Reported by: ramonpeek

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121495 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoUpdate BRIDGEPEER variable before we do a generic bridge in case we just broke out...
Joshua Colp [Tue, 10 Jun 2008 12:52:06 +0000 (12:52 +0000)] 
Update BRIDGEPEER variable before we do a generic bridge in case we just broke out of a native bridge and fell through to generic.
(closes issue #12815)
Reported by: ramonpeek

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121442 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoDo not attempt to do emulation if an END digit is received and the length is
Russell Bryant [Mon, 9 Jun 2008 16:35:40 +0000 (16:35 +0000)] 
Do not attempt to do emulation if an END digit is received and the length is
less than the defined minimum digit length, and the other end only wants END
digits (SIP INFO, for example).

(closes issue #12778)
Reported by: tsearle
Patches:
      12778.rev1.txt uploaded by russell (license 2)
Tested by: tsearle

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121280 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoA unique situation of timeouts brought forth a failure situation for
Mark Michelson [Mon, 9 Jun 2008 15:02:37 +0000 (15:02 +0000)] 
A unique situation of timeouts brought forth a failure situation for
autologoff in chan_agent. If using AgentCallbackLogin-style agents,
then if the timeout specified by the Dial() to reach the agent's phone
was shorter than the timeout specified in queues.conf, then autologoff
would only work if the caller hung up while the agent's phone was ringing.
This patch allows autologoff to work in this situation when the call in
queue transfers to the next available agent (as it would have if the timeout
in queues.conf were less than the timeout in the Dial()).

(closes issue #12754)
Reported by: Rodrigo
Patches:
      12754.patch uploaded by putnopvut (license 60)
Tested by: Rodrigo

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121229 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoDon't run LIST_HEAD_DESTROY on a STATIC list
Russell Bryant [Sat, 7 Jun 2008 14:10:56 +0000 (14:10 +0000)] 
Don't run LIST_HEAD_DESTROY on a STATIC list

(closes issue #12807)
Reported by: ys
Patches:
      chan_agent_local.diff uploaded by ys (license 281)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121078 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoadd another LOW_MEMORY define I forgot
Jeff Peeler [Fri, 6 Jun 2008 18:29:14 +0000 (18:29 +0000)] 
add another LOW_MEMORY define I forgot

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120959 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoonly define thread storage variable if necessary for LOW_MEMORY
Jeff Peeler [Fri, 6 Jun 2008 18:05:15 +0000 (18:05 +0000)] 
only define thread storage variable if necessary for LOW_MEMORY

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120908 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoCorrection to commmit 120863, make sure proper destructor function is called as well...
Jeff Peeler [Fri, 6 Jun 2008 16:39:20 +0000 (16:39 +0000)] 
Correction to commmit 120863, make sure proper destructor function is called as well define two thread storage local variables.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120885 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoThis fixes a crash when LOW_MEMORY is turned on. Two allocations of the ast_rtp struc...
Jeff Peeler [Fri, 6 Jun 2008 15:33:15 +0000 (15:33 +0000)] 
This fixes a crash when LOW_MEMORY is turned on. Two allocations of the ast_rtp struct that were previously allocated on the stack have been modified to use thread local storage instead.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120863 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agofix filename
Russell Bryant [Thu, 5 Jun 2008 18:03:45 +0000 (18:03 +0000)] 
fix filename

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120735 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdd the UPGRADE.txt file from Asterisk 1.2, for handy reference.
Russell Bryant [Thu, 5 Jun 2008 18:01:25 +0000 (18:01 +0000)] 
Add the UPGRADE.txt file from Asterisk 1.2, for handy reference.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120731 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIgnore appended resource when comparing JIDs.
Philippe Sultan [Thu, 5 Jun 2008 16:56:15 +0000 (16:56 +0000)] 
Ignore appended resource when comparing JIDs.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120675 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIt turns out that searching on the forwarding station isn't very useful for
Russell Bryant [Thu, 5 Jun 2008 16:38:52 +0000 (16:38 +0000)] 
It turns out that searching on the forwarding station isn't very useful for
most people, so pull in the changes that allow searching for SMDI messages
based on other components of the SMDI message.  Also, update the SMDI
documentation.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120671 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMake sure that the string we set will survive the unref of
Mark Michelson [Wed, 4 Jun 2008 22:05:33 +0000 (22:05 +0000)] 
Make sure that the string we set will survive the unref of
the queue member.

Thanks to Russell, who pointed this out.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120513 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoIf we fail to setup the PRI request channel, don't continue, exit with an error.
Tilghman Lesher [Wed, 4 Jun 2008 18:35:47 +0000 (18:35 +0000)] 
If we fail to setup the PRI request channel, don't continue, exit with an error.
(closes issue #11989)
 Reported by: Corydon76
 Patches:
       20080213__zap_memleak.diff.txt uploaded by Corydon76 (license 14)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120425 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoMake the "dialplan remove include" CLI command actually work. Also, tweak
Russell Bryant [Wed, 4 Jun 2008 16:26:43 +0000 (16:26 +0000)] 
Make the "dialplan remove include" CLI command actually work.  Also, tweak
some formatting, and make the success message a little bit more clear.
(closes AST-52)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120371 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoTab completion when removing a member should give the member's interface,
Mark Michelson [Wed, 4 Jun 2008 14:11:12 +0000 (14:11 +0000)] 
Tab completion when removing a member should give the member's interface,
not the name, since the interface is what is expected for the command.

(closes issue #12783)
Reported by: davevg

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120285 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix a log message and add a message for when the dialplan is done reloading.
Joshua Colp [Wed, 4 Jun 2008 13:31:09 +0000 (13:31 +0000)] 
Fix a log message and add a message for when the dialplan is done reloading.
(closes issue #12716)
Reported by: chappell
Patches:
      dialplan_reload_2.diff uploaded by chappell (license 8)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120282 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoDue to incorrect use of the AST_LIST_INSERT_HEAD() macro the loopback switch
Tilghman Lesher [Tue, 3 Jun 2008 22:41:04 +0000 (22:41 +0000)] 
Due to incorrect use of the AST_LIST_INSERT_HEAD() macro the loopback switch
cannot perform any translation on the extension number before searching for it
in the target context.
(closes issue #12473)
 Reported by: chappell
 Patches:
       pbx_loopback.c.diff uploaded by chappell (license 8)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120226 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years ago(closes issue #11594)
Jeff Peeler [Tue, 3 Jun 2008 22:15:33 +0000 (22:15 +0000)] 
(closes issue #11594)
Reported by: yem
Tested by: yem

This change decreases the buffer size allocated on the stack substantially in config_text_file_load when LOW_MEMORY is turned on. This change combined with the fix from revision 117462 (making mkintf not copy the zt_chan_conf structure) was enough to prevent the crash.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120173 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoFix another place where peer->callno could change at a very bad time, and also
Russell Bryant [Tue, 3 Jun 2008 21:34:55 +0000 (21:34 +0000)] 
Fix another place where peer->callno could change at a very bad time, and also
fix a place where a peer was used after the reference was released.
(inspired by rev 120001)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120168 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoWhen listing the manager users, managers in users.conf are not shown, even
Tilghman Lesher [Tue, 3 Jun 2008 18:23:32 +0000 (18:23 +0000)] 
When listing the manager users, managers in users.conf are not shown, even
though they are allowed to connect.
(closes issue #12594)
 Reported by: bkruse
 Patches:
       12594-managerusers-2.diff uploaded by qwell (license 4)
 Tested by: bkruse

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120061 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoSave the callno when we're poking, because our peer structure could change
Tilghman Lesher [Tue, 3 Jun 2008 16:10:53 +0000 (16:10 +0000)] 
Save the callno when we're poking, because our peer structure could change
during destruction (and thus we unlock the wrong callno, causing a
cascade failure).
(closes issue #12717)
 Reported by: gewfie
 Patches:
       20080525__bug12717.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gewfie

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120001 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoUpdated the regressions on AEL. Hadn't updated
Steve Murphy [Tue, 3 Jun 2008 15:26:56 +0000 (15:26 +0000)] 
Updated the regressions on AEL. Hadn't updated
this for the changes I made to preserve ${EXTEN}
in switches, which affected several tests because
it adds extra priorities, and at least one needed to be updated
because of the removal of the empty extension warning
message.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119966 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoas per http://lists.digium.com/pipermail/asterisk-users/2008-June/212934.html,
Steve Murphy [Tue, 3 Jun 2008 14:49:46 +0000 (14:49 +0000)] 
as per http://lists.digium.com/pipermail/asterisk-users/2008-June/212934.html,
which is a message from Philipp Kempgen, requesting that the WARNING
that an extension is empty be reduced to a NOTICE or less, as empty
extensions are syntactically possible, and no big deal.

With which I agree, and have removed that WARNING message entirely.
I think it is not necessary to see this message. It didn't
state that a NoOp() was inserted automatically on your behalf,
and really, as users, who cares? Why freak out dialplan writers
with unnecessary warnings? The details of the machinations a compiler goes
thru to produce working assembly code is of little interest
to most programmers-- we will follow the unix principal of
doing our work silently.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119929 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoTreat ECONNREFUSED as an error that will stop further retransmissions. (issue #AST...
Joshua Colp [Tue, 3 Jun 2008 14:46:24 +0000 (14:46 +0000)] 
Treat ECONNREFUSED as an error that will stop further retransmissions. (issue #AST-58, patch from Switchvox)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119926 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoRevert a change made for issue #12479. This change caused a regression such that
Russell Bryant [Mon, 2 Jun 2008 20:08:04 +0000 (20:08 +0000)] 
Revert a change made for issue #12479.  This change caused a regression such that
a dial string such as (IAX2/foo) did not automatically fall back to dialing the 's'
extension anymore.

(closes issue #12770)
Reported by: dagmoller

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119838 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoImprove CLI command blacklist checking for the command manager action. Previously,
Russell Bryant [Mon, 2 Jun 2008 14:39:45 +0000 (14:39 +0000)] 
Improve CLI command blacklist checking for the command manager action.  Previously,
it did not handle case or whitespace properly.  This made it possible for blacklisted
commands to get executed anyway.
(closes issue #12765)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119742 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoDo not link the guest account with any configured XMPP client (in
Philippe Sultan [Mon, 2 Jun 2008 14:32:53 +0000 (14:32 +0000)] 
Do not link the guest account with any configured XMPP client (in
jabber.conf). The actual connection is made when a call comes in
Asterisk.

Fix the ast_aji_get_client function that was not able to retrieve an
XMPP client from its JID.

(closes issue #12085)
Reported by: junky
Tested by: phsultan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119740 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoEven of the first PING or LAGRQ doesn't get sent because it comes up too soon,
Russell Bryant [Mon, 2 Jun 2008 12:30:17 +0000 (12:30 +0000)] 
Even of the first PING or LAGRQ doesn't get sent because it comes up too soon,
make sure to reschedule so it gets sent later.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119687 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agofixed compile issue when dev-mode is enabled
Christian Richter [Mon, 2 Jun 2008 09:29:21 +0000 (09:29 +0000)] 
fixed compile issue when dev-mode is enabled

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119636 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoAdded counter for unhandled_bmsg Print, this prevents the logs to be flooded to fast...
Christian Richter [Mon, 2 Jun 2008 08:35:28 +0000 (08:35 +0000)] 
Added counter for unhandled_bmsg Print, this prevents the logs to be flooded to fast and save CPU in this error scenario. Added 'last_used' element to bc structure, when a bchannel changes from used to free this exact time will be marked in last_used. When a new channel is requested the find_free_chan function will check if the new empty channel was used within the last second, if yes it will search for the next channel, if no it will return this channel. This simple mechanism has prooven to prevent race conditions where the NT and TE tried to allocate the exact same channel at the same time (RELEASE cause: 44).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119585 65c4cc65-6c06-0410-ace0-fbb531ad65f3

17 years agoChange a debug message to an actual debug message
Russell Bryant [Mon, 2 Jun 2008 01:06:09 +0000 (01:06 +0000)] 
Change a debug message to an actual debug message

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119533 65c4cc65-6c06-0410-ace0-fbb531ad65f3