asterisk/asterisk.git
15 years agotrivial formatting change
Russell Bryant [Thu, 20 Sep 2007 19:45:00 +0000 (19:45 +0000)]
trivial formatting change

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

15 years agotrivial formatting change
Russell Bryant [Thu, 20 Sep 2007 19:42:33 +0000 (19:42 +0000)]
trivial formatting change

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

15 years agominor spelling fixes in a comment
Russell Bryant [Thu, 20 Sep 2007 19:32:18 +0000 (19:32 +0000)]
minor spelling fixes in a comment

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

15 years agominor grammar fix
Russell Bryant [Thu, 20 Sep 2007 19:22:10 +0000 (19:22 +0000)]
minor grammar fix

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

15 years agofix spelling in a comment
Russell Bryant [Thu, 20 Sep 2007 19:17:16 +0000 (19:17 +0000)]
fix spelling in a comment

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

15 years agotrivial formatting change
Russell Bryant [Thu, 20 Sep 2007 19:11:31 +0000 (19:11 +0000)]
trivial formatting change

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

15 years agoFix a trivial typo, to test our new commit bot
Jason Parker [Thu, 20 Sep 2007 19:05:16 +0000 (19:05 +0000)]
Fix a trivial typo, to test our new commit bot

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

15 years agoMerged revisions 83246 via svnmerge from
Jason Parker [Thu, 20 Sep 2007 17:10:14 +0000 (17:10 +0000)]
Merged revisions 83246 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83246 | qwell | 2007-09-20 12:09:14 -0500 (Thu, 20 Sep 2007) | 8 lines

If # is pressed after dialing an extension in DISA, stop trying to collect more digits.

(closes issue #10754)
Reported by: atis
Patches:
      app_disa.c.branch.patch uploaded by atis (license 242)
      app_disa.c.trunk.patch uploaded by atis (license 242)

........

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

15 years agoMerged revisions 83232 via svnmerge from
Joshua Colp [Thu, 20 Sep 2007 16:28:00 +0000 (16:28 +0000)]
Merged revisions 83232 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83232 | file | 2007-09-20 13:25:30 -0300 (Thu, 20 Sep 2007) | 7 lines

Make sure the minimum T1 timer value is obeyed in all cases.
(closes issue #10768)
Reported by: flefoll
Patches:
      chan_sip.c.trunk.83071.retrans-patch uploaded by flefoll (license 244)
      chan_sip.c.br14.83070.retrans-patch uploaded by flefoll (license 244)

........

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

15 years agoDon't start the event processing thread until after forking.
Russell Bryant [Thu, 20 Sep 2007 16:27:07 +0000 (16:27 +0000)]
Don't start the event processing thread until after forking.
(reported by Simon on the -dev list, thanks!)

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

15 years agoMerged revisions 83230 via svnmerge from
Joshua Colp [Thu, 20 Sep 2007 16:19:45 +0000 (16:19 +0000)]
Merged revisions 83230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83230 | file | 2007-09-20 13:17:24 -0300 (Thu, 20 Sep 2007) | 7 lines

Fix a minor spelling error.
(closes issue #10769)
Reported by: flefoll
Patches:
      chan_sip.c.trunk.83071.inita-patch uploaded by flefoll (license 244)
      chan_sip.c.br14.83070.inita-patch uploaded by flefoll (license 244)

........

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

15 years agoFix memory leaks in pbx_dundi, cdr_pgsql, and the configuration file parser.
Joshua Colp [Thu, 20 Sep 2007 16:10:57 +0000 (16:10 +0000)]
Fix memory leaks in pbx_dundi, cdr_pgsql, and the configuration file parser.

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

15 years agoMore conversions to NEW_CLI
Jason Parker [Wed, 19 Sep 2007 23:16:51 +0000 (23:16 +0000)]
More conversions to NEW_CLI

(issue #10724)
Patches:
      chan_zap.c.patch uploaded by moy (license 222)
      app_queue.c.patch uploaded by eliel (license 64)
      app_voicemail.c.patch uploaded by eliel (license 64)
      app_meetme.c.patch uploaded by eliel (license 64)

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

15 years agoClean up code in cdr_csv. (Are you sensing a theme for me today?)
Joshua Colp [Wed, 19 Sep 2007 20:06:31 +0000 (20:06 +0000)]
Clean up code in cdr_csv. (Are you sensing a theme for me today?)

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

15 years agoClean up code in res_adsi.
Joshua Colp [Wed, 19 Sep 2007 20:01:34 +0000 (20:01 +0000)]
Clean up code in res_adsi.

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

15 years agoput the channel in autoservice when executing func_shell
Russell Bryant [Wed, 19 Sep 2007 19:54:58 +0000 (19:54 +0000)]
put the channel in autoservice when executing func_shell

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

15 years agoMerged revisions 83179 via svnmerge from
Russell Bryant [Wed, 19 Sep 2007 19:51:47 +0000 (19:51 +0000)]
Merged revisions 83179 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83179 | russell | 2007-09-19 14:50:48 -0500 (Wed, 19 Sep 2007) | 5 lines

The System() and TrySystem() applications can take a substantial amount of
time to execute while not servicing the channel.  So, put the channel in
autoservice while the command is being executed.
(closes issue #10726, reported by mnicholson)

........

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

15 years agoMerged revisions 83177 via svnmerge from
Russell Bryant [Wed, 19 Sep 2007 19:36:34 +0000 (19:36 +0000)]
Merged revisions 83177 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83177 | russell | 2007-09-19 14:34:25 -0500 (Wed, 19 Sep 2007) | 4 lines

Using curl can take a substantial amount of time, so the channel should be
autoserviced while waiting for it to complete.
(closes issue #10725, reported by mnicholson)

........

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

15 years agoMerged revisions 83175 via svnmerge from
Russell Bryant [Wed, 19 Sep 2007 19:14:58 +0000 (19:14 +0000)]
Merged revisions 83175 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83175 | russell | 2007-09-19 14:13:29 -0500 (Wed, 19 Sep 2007) | 8 lines

When handling a reload of chan_iax2, don't use an ao2_callback() to POKE all
peers.  Instead, use an iterator.  By using an iterator, the peers container
is not locked while the POKE is being done.  It can cause a deadlock if the
peers container is locked because poking a peer will try to lock pvt structs,
while there is a lot of other code that will hold a pvt lock when trying to
go lock the peers container.
(reported to me directly by Loic Didelot.  Thank you for the debug info!)

........

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

15 years agoFix indentation in app_db.
Joshua Colp [Wed, 19 Sep 2007 17:22:42 +0000 (17:22 +0000)]
Fix indentation in app_db.

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

15 years agoClean up code in app_authenticate.
Joshua Colp [Wed, 19 Sep 2007 17:20:43 +0000 (17:20 +0000)]
Clean up code in app_authenticate.

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

15 years agoClean up code in app_adsiprog.
Joshua Colp [Wed, 19 Sep 2007 17:14:02 +0000 (17:14 +0000)]
Clean up code in app_adsiprog.

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

15 years agoMerged revisions 83121 via svnmerge from
Russell Bryant [Wed, 19 Sep 2007 15:11:12 +0000 (15:11 +0000)]
Merged revisions 83121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83121 | russell | 2007-09-19 10:10:14 -0500 (Wed, 19 Sep 2007) | 4 lines

Fix up another potential race condition.  Do the loop decrementing use count
on events with the eventq protected from being changed.
(reported on IRC by Ivan)

........

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

15 years agoDISA only needs to know about the end of DTMF, not the beginning/duration.
Joshua Colp [Wed, 19 Sep 2007 15:08:43 +0000 (15:08 +0000)]
DISA only needs to know about the end of DTMF, not the beginning/duration.

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

15 years agoClean up app_disa code a bit.
Joshua Colp [Wed, 19 Sep 2007 15:05:35 +0000 (15:05 +0000)]
Clean up app_disa code a bit.

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

15 years agoReplace Google namespace occurrences with Jingle. The former namespace
Philippe Sultan [Wed, 19 Sep 2007 13:55:08 +0000 (13:55 +0000)]
Replace Google namespace occurrences with Jingle. The former namespace
is handled by chan_gtalk.

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

15 years agoMerged revisions 83074 via svnmerge from
Joshua Colp [Wed, 19 Sep 2007 13:49:47 +0000 (13:49 +0000)]
Merged revisions 83074 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83074 | file | 2007-09-19 10:47:59 -0300 (Wed, 19 Sep 2007) | 6 lines

Protect the CDR record from modification by pbx_exec so that the application data contains the Queue data.
(closes issue #10761)
Reported by: snar
Patches:
      app-queue-mixmonitor.patch uploaded by snar (license 245)

........

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

15 years agoExtend manager show connected with additional information.
Joshua Colp [Wed, 19 Sep 2007 13:30:01 +0000 (13:30 +0000)]
Extend manager show connected with additional information.
(closes issue #10757)
Reported by: outtolunc
Patches:
      manager.c.sessionstart.diff uploaded by outtolunc (license 237)

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

15 years agoRemove namespaces in payload-type tags.
Philippe Sultan [Wed, 19 Sep 2007 13:29:44 +0000 (13:29 +0000)]
Remove namespaces in payload-type tags.

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

15 years agoMerged revisions 83070 via svnmerge from
Joshua Colp [Wed, 19 Sep 2007 13:21:41 +0000 (13:21 +0000)]
Merged revisions 83070 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83070 | file | 2007-09-19 10:18:22 -0300 (Wed, 19 Sep 2007) | 6 lines

(closes issue #10760)
Reported by: dimas
Patches:
      chan_sip.patch uploaded by dimas (license 88)
Read in subscribecontext option in general to be the default.

........

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

15 years agoTransmit proper invitation, thus conforming to XEP-0166 (Jingle general
Philippe Sultan [Wed, 19 Sep 2007 12:23:56 +0000 (12:23 +0000)]
Transmit proper invitation, thus conforming to XEP-0166 (Jingle general
specifications), XEP-0167 (Jingle Audio via RTP) and XEP-0176 (Jingle ICE
Transport).

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

15 years agoMerged revisions 83023-83024 via svnmerge from
Christian Richter [Wed, 19 Sep 2007 09:48:33 +0000 (09:48 +0000)]
Merged revisions 83023-83024 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83023 | crichter | 2007-09-19 11:31:55 +0200 (Mi, 19 Sep 2007) | 1 line

added 'astdtmf' option to allow configuring the asterisk dtmf detector instead of the mISDN_dsp ones. also added the patch from irroot #10190, so that dtmf tones detected by the asterisk detector are passed outofband to asterisk, to make any use of dtmf tones at all.
........
r83024 | crichter | 2007-09-19 11:32:42 +0200 (Mi, 19 Sep 2007) | 1 line

removed comment which violates the coding guidelines.
........

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

15 years agoMerged revisions 82992 via svnmerge from
Russell Bryant [Wed, 19 Sep 2007 00:21:41 +0000 (00:21 +0000)]
Merged revisions 82992 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82992 | russell | 2007-09-18 19:19:49 -0500 (Tue, 18 Sep 2007) | 4 lines

Change the description of app_flash to note how it can be a useful tool instead
of just saying that it is generally a worthless feature.
(Thanks to Jim Van Meggelen for pointing it out and providing the proposed text)

........

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

15 years agoMerged revisions 82961 via svnmerge from
Joshua Colp [Tue, 18 Sep 2007 23:42:24 +0000 (23:42 +0000)]
Merged revisions 82961 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82961 | file | 2007-09-18 20:41:02 -0300 (Tue, 18 Sep 2007) | 2 lines

Initialize a variable to NULL to make the world happy.

........

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

15 years agoMerged revisions 82929 via svnmerge from
Russell Bryant [Tue, 18 Sep 2007 22:46:05 +0000 (22:46 +0000)]
Merged revisions 82929 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82929 | russell | 2007-09-18 17:42:27 -0500 (Tue, 18 Sep 2007) | 11 lines

Add a new patch to handle interrupting the fgets() call when using FastAGI.
This version of the patch maintains the original behavior of the code when
not using FastAGI.
(closes issue #10553)
Reported by: juggie
Patches:
      res_agi_fgets-4.patch uploaded by juggie (license 24)
      res_agi_fgets_1.4svn.patch uploaded by juggie (license 24)
  Slight mods by me
Tested by: juggie, festr

........

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

15 years ago(issue #10724)
Jason Parker [Tue, 18 Sep 2007 22:43:45 +0000 (22:43 +0000)]
(issue #10724)
Reported by: eliel
Patches:
      res_features.c.patch uploaded by eliel (license 64)
      res_agi.c.patch uploaded by seanbright (license 71)
      res_musiconhold.c.patch uploaded by seanbright (license 71)
      pbx.c.patch uploaded by moy (license 222)
      logger.c.patch uploaded by moy (license 222)
      frame.c.patch uploaded by moy (license 222)
      manager.c.patch uploaded by moy (license 222)
      http.c.patch uploaded by moy (license 222)
      dnsmgr.c.patch uploaded by moy (license 222)
      res_realtime.c.patch uploaded by eliel (license 64)
      res_odbc.c.patch uploaded by seanbright (license 71)
      res_jabber.c.patch uploaded by eliel (license 64)
      chan_local.c.patch uploaded by eliel (license 64)
      chan_agent.c.patch uploaded by eliel (license 64)
      chan_alsa.c.patch uploaded by eliel (license 64)
      chan_features.c.patch uploaded by eliel (license 64)
      chan_sip.c.patch uploaded by eliel (license 64)
      RollUp.1.patch (includes all of the above patches) uploaded by seanbright (license 71)

Convert many CLI commands to the NEW_CLI format.

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

15 years ago(closes issue #10739)
Jason Parker [Tue, 18 Sep 2007 21:07:08 +0000 (21:07 +0000)]
(closes issue #10739)
Reported by: ruffle
Patches:
      app_voicemail.c.diff uploaded by ruffle (license 201)
      10739-moveheard.diff uploaded by qwell (license 4)
Tested by: callguy, ruffle

Add an option to disable the automatic moving of "heard" messages to the Old folder.

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

15 years agoMerged revisions 82867 via svnmerge from
Russell Bryant [Tue, 18 Sep 2007 20:59:21 +0000 (20:59 +0000)]
Merged revisions 82867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82867 | russell | 2007-09-18 15:56:43 -0500 (Tue, 18 Sep 2007) | 10 lines

Fix a memory leak that can occur on systems under higher load.  The issue is
that when events are appended to the master event queue, they use the number
of active sessions as a use count so it will know when all active sessions
at the time the event happened have consumed it.  However, the handling of
the number of sessions was not properly synchronized, so the use count was
not always correct, causing an event to disappear early, or get stuck in
the event queue for forever.

(closes issue #9238, reported by bweschke, patch from Ivan, modified by me)

........

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

15 years agoMerged revisions 82865 via svnmerge from
Mark Michelson [Tue, 18 Sep 2007 20:10:59 +0000 (20:10 +0000)]
Merged revisions 82865 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82865 | mmichelson | 2007-09-18 15:09:02 -0500 (Tue, 18 Sep 2007) | 4 lines

Moving the logic for handling an empty membername to the create_member function so that there is a common place
where this occurs instead of being spread out to several different places.

........

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

15 years agoMerged revisions 82834 via svnmerge from
Kevin P. Fleming [Tue, 18 Sep 2007 19:06:34 +0000 (19:06 +0000)]
Merged revisions 82834 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82834 | kpfleming | 2007-09-18 13:59:52 -0500 (Tue, 18 Sep 2007) | 2 lines

there is no need for conditional logic to select ->interface or ->membername, snince ->membername will always be populated

........

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

15 years agoMerged revisions 82802 via svnmerge from
Russell Bryant [Tue, 18 Sep 2007 16:34:05 +0000 (16:34 +0000)]
Merged revisions 82802 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82802 | russell | 2007-09-18 11:31:01 -0500 (Tue, 18 Sep 2007) | 4 lines

When copying the contents from the wildcard peer, do a deep copy instead of
shallow copy so that it doesn't crash when beging destroyed.
(closes issue #10546, patch by me)

........

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

15 years ago(closes issue #10755)
Jason Parker [Tue, 18 Sep 2007 16:16:36 +0000 (16:16 +0000)]
(closes issue #10755)
Reported by: snar
Patches:
      app-queue-cdr-trunk.patch uploaded by snar (license 245)
      queues.conf.patch uploaded by snar (license 245)

Add an updatecdr option to queues.conf, so that if a "member name" is specified,
 the cdr record will be updated with that, rather than the channel.

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

15 years agoMake sure that libpthread doesn't try to call free() directly when MALLOC_DEBUG
Russell Bryant [Tue, 18 Sep 2007 16:14:14 +0000 (16:14 +0000)]
Make sure that libpthread doesn't try to call free() directly when MALLOC_DEBUG
is enabled.  If it does, Asterisk will crash as the address isn't the real
beginning of the allocation.

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

15 years agoDon't use ast_channel_lock_both() here, it only exists in one of my branches.
Russell Bryant [Tue, 18 Sep 2007 16:10:48 +0000 (16:10 +0000)]
Don't use ast_channel_lock_both() here, it only exists in one of my branches.
This is theoretically a potential deadlock, but it's the way it was before so
I'm going to leave it this way for now.

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

15 years agoMerged revisions 82751 via svnmerge from
Jason Parker [Tue, 18 Sep 2007 15:29:26 +0000 (15:29 +0000)]
Merged revisions 82751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #10753)
........
r82751 | qwell | 2007-09-18 10:28:21 -0500 (Tue, 18 Sep 2007) | 4 lines

Correct the allowexternaldomains option in SIP sample config.

Issue 10753

........

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

15 years agoconvert various places that access the channel lock directly to use the channel lock...
Russell Bryant [Mon, 17 Sep 2007 22:59:36 +0000 (22:59 +0000)]
convert various places that access the channel lock directly to use the channel lock wrappers

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

15 years agoDon't try to continue loading cdr_sqlite3_custom on a module load failure (such as...
Jason Parker [Mon, 17 Sep 2007 21:52:07 +0000 (21:52 +0000)]
Don't try to continue loading cdr_sqlite3_custom on a module load failure (such as the config not existing)

Closes issue #10749, patch by seanbright.

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

15 years agoFix the sample redirect to point to a valid file in the Asterisk GUI.
Jason Parker [Mon, 17 Sep 2007 21:44:38 +0000 (21:44 +0000)]
Fix the sample redirect to point to a valid file in the Asterisk GUI.

Closes issue #10748, patch by bkruse

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

15 years agoAdd support for #include, var_metric, and cat_metric in res_config_sqlite
Russell Bryant [Mon, 17 Sep 2007 20:24:50 +0000 (20:24 +0000)]
Add support for #include, var_metric, and cat_metric in res_config_sqlite
(closes issue #10738, rbraun_proformatique)

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

15 years agoMerged revisions 82676 via svnmerge from
Russell Bryant [Mon, 17 Sep 2007 20:19:58 +0000 (20:19 +0000)]
Merged revisions 82676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82676 | russell | 2007-09-17 15:16:25 -0500 (Mon, 17 Sep 2007) | 4 lines

Put a memset in ast_localtime() instead of a couple places in app_voicemail
to prevent the problem everywhere instead of just a couple of places.
(related to issue #10746)

........

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

15 years agoMerged revisions 82644 via svnmerge from
Russell Bryant [Mon, 17 Sep 2007 20:10:10 +0000 (20:10 +0000)]
Merged revisions 82644 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82644 | russell | 2007-09-17 15:00:32 -0500 (Mon, 17 Sep 2007) | 6 lines

Initialize some memory to fix crashes when leaving voicemail.  This problem
was fixed by running Asterisk under valgrind.
(closes issue #10746, reported by arcivanov, patched by me)

*** IMPORTANT NOTE:  We need to check to see if this same bug exists elsewhere.

........

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

15 years agoMake the MALLOC_DEBUG output for free() useful again. After changing calls to
Russell Bryant [Mon, 17 Sep 2007 18:57:56 +0000 (18:57 +0000)]
Make the MALLOC_DEBUG output for free() useful again.  After changing calls to
free to be ast_free, astmm said all calls to free were coming from utils.h

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

15 years agoMerged revisions 82594 via svnmerge from
Russell Bryant [Mon, 17 Sep 2007 16:58:23 +0000 (16:58 +0000)]
Merged revisions 82594 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82594 | russell | 2007-09-17 11:46:59 -0500 (Mon, 17 Sep 2007) | 5 lines

Handle the case where there are multiple dynamic features with the same digit
mapping, but won't always match the activated on/by access controls.  In that
case, the code needs to keep trying features for a match.
(reported by Atis on the asterisk-dev list, patched by me)

........

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

15 years agoMerged revisions 82590,82592 via svnmerge from
Kevin P. Fleming [Mon, 17 Sep 2007 16:44:13 +0000 (16:44 +0000)]
Merged revisions 82590,82592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82590 | kpfleming | 2007-09-17 11:33:30 -0500 (Mon, 17 Sep 2007) | 2 lines

fix a couple of places where a logical member name (if specified) was not used, but instead the direct interface was listed

........
r82592 | kpfleming | 2007-09-17 11:40:12 -0500 (Mon, 17 Sep 2007) | 2 lines

revert a change that wasn't supposed to be committed... doh!

........

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

15 years agoFix memory leak introduced when POST support was added.
Doug Bailey [Mon, 17 Sep 2007 14:58:19 +0000 (14:58 +0000)]
Fix memory leak introduced when POST support was added.

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

15 years ago(closes issue #10715)
Joshua Colp [Mon, 17 Sep 2007 02:20:40 +0000 (02:20 +0000)]
(closes issue #10715)
Reported by: the-chopper
Don't bother hanging up the new channel if it does not exist yet.

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

15 years agoMerged revisions 82514 via svnmerge from
Joshua Colp [Mon, 17 Sep 2007 02:02:09 +0000 (02:02 +0000)]
Merged revisions 82514 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82514 | file | 2007-09-16 23:00:59 -0300 (Sun, 16 Sep 2007) | 4 lines

(closes issue #10734)
Reported by: asgaroth
Instead of passing a NULL pointer into snprintf pass "". It makes Solaris much happier.

........

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

15 years agoOption maxmessage should be maxsecs per-folder, too (closes issue #10729)
Tilghman Lesher [Sun, 16 Sep 2007 15:32:00 +0000 (15:32 +0000)]
Option maxmessage should be maxsecs per-folder, too (closes issue #10729)

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

15 years agoMerged revisions 82444 via svnmerge from
Steve Murphy [Fri, 14 Sep 2007 21:30:44 +0000 (21:30 +0000)]
Merged revisions 82444 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82444 | murf | 2007-09-14 15:19:27 -0600 (Fri, 14 Sep 2007) | 1 line

closes issue #10668; thanks to arkadia for his patch; had to leave out the bit about ending the previous cdr in the fork; it would destroy current implementations.
........

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

15 years agoMerged revisions 82435 via svnmerge from
Russell Bryant [Fri, 14 Sep 2007 21:21:23 +0000 (21:21 +0000)]
Merged revisions 82435 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82435 | russell | 2007-09-14 16:17:08 -0500 (Fri, 14 Sep 2007) | 3 lines

Add a note to help clarify the value set with the echocancel option.
(inspired by Malcolm's blog post on blogs.digium.com about HPEC)

........

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

15 years agoAdd support in chan_skinny for sending RTP directly to the endpoints.
Jason Parker [Fri, 14 Sep 2007 19:49:05 +0000 (19:49 +0000)]
Add support in chan_skinny for sending RTP directly to the endpoints.

Closes issue #9154, patch by DEA

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

15 years agoBlocking revision 82398
Mark Michelson [Fri, 14 Sep 2007 18:37:00 +0000 (18:37 +0000)]
Blocking revision 82398

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

15 years agoMerged revisions 82396 via svnmerge from
Mark Michelson [Fri, 14 Sep 2007 18:34:53 +0000 (18:34 +0000)]
Merged revisions 82396 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82396 | mmichelson | 2007-09-14 13:28:36 -0500 (Fri, 14 Sep 2007) | 5 lines

Adding member name field to manager events where they were missing before

(closes issue #10721, reported by snar)

........

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

15 years agoMerged revisions 82394 via svnmerge from
Jason Parker [Fri, 14 Sep 2007 17:51:22 +0000 (17:51 +0000)]
Merged revisions 82394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82394 | qwell | 2007-09-14 12:48:05 -0500 (Fri, 14 Sep 2007) | 5 lines

If a channel does not have an owner, do not try to set a channel variable.
This will end up making the channel variable global, which is not right.

Closes issue #10720, patch by flefoll.

........

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

15 years agoAdd a direct execute method to res_odbc (closes issue #10722)
Tilghman Lesher [Fri, 14 Sep 2007 17:29:23 +0000 (17:29 +0000)]
Add a direct execute method to res_odbc (closes issue #10722)

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

15 years agouse the standard license header for the xpmr files
Russell Bryant [Fri, 14 Sep 2007 16:02:39 +0000 (16:02 +0000)]
use the standard license header for the xpmr files

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

15 years agoAdd chan_usbradio to trunk
Russell Bryant [Fri, 14 Sep 2007 15:58:31 +0000 (15:58 +0000)]
Add chan_usbradio to trunk

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

15 years agoMerged revisions 82385 via svnmerge from
Russell Bryant [Fri, 14 Sep 2007 15:52:28 +0000 (15:52 +0000)]
Merged revisions 82385 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82385 | russell | 2007-09-14 10:50:49 -0500 (Fri, 14 Sep 2007) | 3 lines

Add checking for libusb here, so nobody has to deal with conflicts in the
chan_usbradio-1.4 branch every time the configure script gets changed

........

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

15 years agoMerged revisions 82376 via svnmerge from
Mark Michelson [Fri, 14 Sep 2007 14:44:15 +0000 (14:44 +0000)]
Merged revisions 82376 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82376 | mmichelson | 2007-09-14 09:42:29 -0500 (Fri, 14 Sep 2007) | 5 lines

Fixing a typo in the coding guidelines

(closes issue #10717, reported and patched by leedm777)

........

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

15 years agoFix DTMF following what has been done in issue #9401. Thanks irroot.
Philippe Sultan [Fri, 14 Sep 2007 13:02:31 +0000 (13:02 +0000)]
Fix DTMF following what has been done in issue #9401. Thanks irroot.

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

15 years agoMerged revisions 82358 via svnmerge from
Jason Parker [Thu, 13 Sep 2007 23:12:16 +0000 (23:12 +0000)]
Merged revisions 82358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82358 | qwell | 2007-09-13 18:11:27 -0500 (Thu, 13 Sep 2007) | 4 lines

Fix a small typo.

retrytime > waittime

........

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

15 years agoChanged "in" to "queue" in "queue {pause|unpause} member" command to be more clear.
Mark Michelson [Thu, 13 Sep 2007 21:53:01 +0000 (21:53 +0000)]
Changed "in" to "queue" in "queue {pause|unpause} member" command to be more clear.
Also added check to be sure that sixth argument is the word "reason" if full command is given

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

15 years agoAdded the ability to pause and unpause members via the CLI
Mark Michelson [Thu, 13 Sep 2007 21:23:32 +0000 (21:23 +0000)]
Added the ability to pause and unpause members via the CLI

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

15 years agoMerged revisions 82346 via svnmerge from
Mark Michelson [Thu, 13 Sep 2007 20:17:41 +0000 (20:17 +0000)]
Merged revisions 82346 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82346 | mmichelson | 2007-09-13 15:16:37 -0500 (Thu, 13 Sep 2007) | 4 lines

Preemptively fixing a possible segfault. It is possible that queuename is NULL
(meaning pause ALL queues), so use q->name instead.

........

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

15 years agoMerged revisions 82344 via svnmerge from
Jason Parker [Thu, 13 Sep 2007 20:13:58 +0000 (20:13 +0000)]
Merged revisions 82344 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82344 | qwell | 2007-09-13 15:11:40 -0500 (Thu, 13 Sep 2007) | 9 lines

Fix a crash that could occur in cdr_csv when mutliple threads tried to close the same file.

Do we actually need the locking here?  What happens if you open the same file twice, and
 two threads try to write to it at the same time?  Is fputs() going to write out the entire
 line at once?  I suspect that it could be possible for the second fopen to run during the
 first fputs, so the position could be in the middle of the previously written line...

Issue 10347, initial patch by explidous (but I removed all of the paranoia stuff..)

........

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

15 years agoMerged revisions 82339 via svnmerge from
Russell Bryant [Thu, 13 Sep 2007 19:16:24 +0000 (19:16 +0000)]
Merged revisions 82339 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82339 | russell | 2007-09-13 13:57:08 -0500 (Thu, 13 Sep 2007) | 1 line

resolve a warning when not building under dev mode
........

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

15 years agoMerged revisions 82337 via svnmerge from
Russell Bryant [Thu, 13 Sep 2007 18:52:35 +0000 (18:52 +0000)]
Merged revisions 82337 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82337 | russell | 2007-09-13 13:45:59 -0500 (Thu, 13 Sep 2007) | 4 lines

Only compile in tracking astobj2 statistics if dev-mode is enabled.  Also, when
dev mode is enabled, register the CLI command that can be used to run the astobj2
test and print out statistics.

........

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

15 years agoMerged revisions 82335 via svnmerge from
Kevin P. Fleming [Thu, 13 Sep 2007 18:13:44 +0000 (18:13 +0000)]
Merged revisions 82335 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r82335 | kpfleming | 2007-09-13 11:12:00 -0700 (Thu, 13 Sep 2007) | 10 lines

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

........
r82334 | kpfleming | 2007-09-13 11:10:12 -0700 (Thu, 13 Sep 2007) | 2 lines

clarify the OpenSSL and OpenH323 license exceptions

........

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

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

15 years agoAdd setvar support to chan_zap. Just like you can in chan_sip and chan_iax2 you can...
Joshua Colp [Thu, 13 Sep 2007 16:58:59 +0000 (16:58 +0000)]
Add setvar support to chan_zap. Just like you can in chan_sip and chan_iax2 you can now use it with zaptel channels. (done while in Montreal at the Asterisk bootcamp!)

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

15 years agoMerged revisions 82326 via svnmerge from
Mark Michelson [Thu, 13 Sep 2007 16:27:42 +0000 (16:27 +0000)]
Merged revisions 82326 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82326 | mmichelson | 2007-09-13 11:25:59 -0500 (Thu, 13 Sep 2007) | 7 lines

Added logic to handle the unlikely case that someone has two queues with the same name.
Asterisk will log a warning message letting the user know that one was already defined with that
name and is it skipping all further instances. This also will work for realtime queues but in order
for that to happen, the user would have to trigger a perfectly timed reload as a realtime queue is being
looked up, which is highly unlikely (but taken care of nonetheless).

........

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

15 years agoVarious code and documentation cleanups for res_config_sqlite
Russell Bryant [Thu, 13 Sep 2007 15:26:40 +0000 (15:26 +0000)]
Various code and documentation cleanups for res_config_sqlite
(closes issue #10711, rbraun_proformatique)

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

15 years agoModify rule filters to match with the Jingle namespace constant
Philippe Sultan [Thu, 13 Sep 2007 15:25:18 +0000 (15:25 +0000)]
Modify rule filters to match with the Jingle namespace constant

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

15 years agoAssign namespace properly
Philippe Sultan [Thu, 13 Sep 2007 15:10:08 +0000 (15:10 +0000)]
Assign namespace properly

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

15 years agoChanged Jingle and Jingle DTMF namespaces.
Philippe Sultan [Thu, 13 Sep 2007 15:05:16 +0000 (15:05 +0000)]
Changed Jingle and Jingle DTMF namespaces.

As both specifications are in the Experimental status, the namespaces
specified therein shall be of the form
"http://www.xmpp.org/extensions/xep-XXXX.html#ns".

See the Namespace issuance section in XEP-0053 :
http://www.xmpp.org/extensions/xep-0053.html#namespaces

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

15 years agoReflect Jingle DTMF specification changes
Philippe Sultan [Thu, 13 Sep 2007 14:00:56 +0000 (14:00 +0000)]
Reflect Jingle DTMF specification changes

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

15 years agoFix a missing unref of a member struct. This was pointed out by Marta. Thanks!
Russell Bryant [Thu, 13 Sep 2007 13:34:24 +0000 (13:34 +0000)]
Fix a missing unref of a member struct.  This was pointed out by Marta.  Thanks!
This function in 1.4 didn't have the problem.

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

15 years agoMerged revisions 82309 via svnmerge from
Philippe Sultan [Thu, 13 Sep 2007 11:54:56 +0000 (11:54 +0000)]
Merged revisions 82309 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82309 | phsultan | 2007-09-13 13:47:14 +0200 (Thu, 13 Sep 2007) | 4 lines

Closes issue #9401, reported and patched by irrot, with slight
modifications by me.

Handle DTMF sent by Asterisk properly.
........

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

15 years agoMerged revisions 82296 via svnmerge from
Russell Bryant [Wed, 12 Sep 2007 21:57:30 +0000 (21:57 +0000)]
Merged revisions 82296 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82296 | russell | 2007-09-12 16:56:32 -0500 (Wed, 12 Sep 2007) | 3 lines

Fix a check of the wrong pointer, as pointed out by an XXX comment left in
the code.  The problem was harmless, however.

........

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

15 years agoAfter some discussions, we decided that the return values here were a bit messy.
Jason Parker [Wed, 12 Sep 2007 21:55:32 +0000 (21:55 +0000)]
After some discussions, we decided that the return values here were a bit messy.

This also fixes a bug on reload, where peers may not have reregistered properly.

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

15 years agoMerged revisions 82291 via svnmerge from
Tilghman Lesher [Wed, 12 Sep 2007 21:32:24 +0000 (21:32 +0000)]
Merged revisions 82291 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82291 | tilghman | 2007-09-12 16:28:33 -0500 (Wed, 12 Sep 2007) | 2 lines

Oops, wrong location for FreeBSD zone files

........

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

15 years agoMerged revisions 82285 via svnmerge from
Tilghman Lesher [Wed, 12 Sep 2007 21:25:57 +0000 (21:25 +0000)]
Merged revisions 82285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82285 | tilghman | 2007-09-12 15:12:06 -0500 (Wed, 12 Sep 2007) | 4 lines

Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
updated the localtime.c file from source.  Next we'll have to write ast_strptime
to match.

........

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

15 years agoRemoved an unneeded ao2_ref. This was a problem because unless get_member_status...
Mark Michelson [Wed, 12 Sep 2007 21:17:45 +0000 (21:17 +0000)]
Removed an unneeded ao2_ref. This was a problem because unless get_member_status returned QUEUE_NORMAL, a NULL member
would be unreferenced. While this didn't cause any crashes or anything terrible, it still is incorrect

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

15 years agoThis fix closes issue #10642 -- it's not perfect, but should retain most blank lines...
Steve Murphy [Wed, 12 Sep 2007 20:50:40 +0000 (20:50 +0000)]
This fix closes issue #10642 -- it's not perfect, but should retain most blank lines in config files, via read/write cycles.

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

15 years agoMerged revisions 82286 via svnmerge from
Dwayne M. Hubbard [Wed, 12 Sep 2007 20:47:32 +0000 (20:47 +0000)]
Merged revisions 82286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82286 | dhubbard | 2007-09-12 15:24:24 -0500 (Wed, 12 Sep 2007) | 1 line

remove a race condition for the creation of recordthread's, and fix a small memory leak.  This closes issue# 10636
........

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

15 years agoFixes Solaris build warnings
Mark Michelson [Wed, 12 Sep 2007 16:24:45 +0000 (16:24 +0000)]
Fixes Solaris build warnings

(closes issue #10698, reported and patched by snuffy)

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

15 years agoChange the traversal to use ao2_callback() instead of an ao2_iterator. Using
Russell Bryant [Wed, 12 Sep 2007 15:53:40 +0000 (15:53 +0000)]
Change the traversal to use ao2_callback() instead of an ao2_iterator.  Using
ao2_callback() is a much more efficient way of performing an operation on every
item in the container.  This change makes hashtest2 run in about 25% of the
time it ran before on my system.

In general, I would say that it makes the most sense to use an ao2_iterator if
the operation being performed is going to take a long time and you don't want
to keep the container locked while you work with each object.  Otherwise,
the use of ao2_callback is preferred.

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

15 years agoMerged revisions 82280 via svnmerge from
Russell Bryant [Wed, 12 Sep 2007 15:19:11 +0000 (15:19 +0000)]
Merged revisions 82280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82280 | russell | 2007-09-12 10:16:49 -0500 (Wed, 12 Sep 2007) | 4 lines

Clean up the output of "asterisk -h".  This tweaks the wording and wraps lines
at 80 characters.
(closes issue #10699, seanbright)

........

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

15 years agoMerged revisions 82278 via svnmerge from
Russell Bryant [Wed, 12 Sep 2007 15:12:52 +0000 (15:12 +0000)]
Merged revisions 82278 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82278 | russell | 2007-09-12 10:11:11 -0500 (Wed, 12 Sep 2007) | 3 lines

revert patch from issue #10553, as someone not using fastagi reported that this
broke their system.

........

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

15 years agoBlocking changes from revision 82276
Mark Michelson [Wed, 12 Sep 2007 14:31:36 +0000 (14:31 +0000)]
Blocking changes from revision 82276

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

15 years agoMerged revisions 82274 via svnmerge from
Mark Michelson [Wed, 12 Sep 2007 14:29:15 +0000 (14:29 +0000)]
Merged revisions 82274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82274 | mmichelson | 2007-09-12 09:24:53 -0500 (Wed, 12 Sep 2007) | 6 lines

We should only initialize a realtime queue when it is allocated, not every time we access it. This prevents the members ao2_container
from being reallocated every time the queue is accessed.

I also removed a debug message I had accidentally left in on a previous commit.

........

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