]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoFix a possible crash in pbx_spool.
Sean Bright [Wed, 3 Jun 2009 20:39:10 +0000 (20:39 +0000)] 
Fix a possible crash in pbx_spool.

We were trying to reference members of a struct that had previously been freed.
This patch makes sure that we free the struct after it has been removed from
the spooler queue.

(closes issue #15072)
Reported by: garlew
Patches:
      spool.diff uploaded by garlew (license 376)

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

16 years agoGeneric call forward api, ast_call_forward()
David Vossel [Wed, 3 Jun 2009 15:49:46 +0000 (15:49 +0000)] 
Generic call forward api, ast_call_forward()

The function ast_call_forward() forwards a call to an extension specified in an ast_channel's call_forward string.  After an ast_channel is called, if the channel's call_forward string is set this function can be used to forward the call to a new channel and terminate the original one.  I have included this api call in both channel.c's ast_request_and_dial() and res_feature.c's feature_request_and_dial().  App_dial and app_queue already contain call forward logic specific for their application and options.

(closes issue #13630)
Reported by: festr

Review: https://reviewboard.asterisk.org/r/271/

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

16 years agoIf using the old deprecated format, a reload would cause the class to disappear.
Tilghman Lesher [Mon, 1 Jun 2009 20:07:04 +0000 (20:07 +0000)] 
If using the old deprecated format, a reload would cause the class to disappear.
(closes issue #14759)
 Reported by: lidocaineus
 Patches:
       20090518__issue14759.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen

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

16 years agoProperly terminate AMI JabberSend response messages.
Sean Bright [Sat, 30 May 2009 19:36:20 +0000 (19:36 +0000)] 
Properly terminate AMI JabberSend response messages.

The response message (either Error or Success) needs an extra trailing \r\n
after the fields to inform the client that the message is complete.

(closes issue #14876)
Reported by: srt
Patches:
      05302009_1.4_res_jabber.c.diff uploaded by seanbright (license 71)
      asterisk_14876.patch uploaded by srt (license 378)
      trunk-14876-2.diff uploaded by phsultan (license 73)

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

16 years agoFix a crash that occurred when MWI SMDI messages expired.
Russell Bryant [Sat, 30 May 2009 03:42:46 +0000 (03:42 +0000)] 
Fix a crash that occurred when MWI SMDI messages expired.

(closes issue #14561)
Reported by: cmoss28

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

16 years agoTreat an empty FORWARD_CONTEXT the same way we treat a missing one.
Sean Bright [Sat, 30 May 2009 02:46:41 +0000 (02:46 +0000)] 
Treat an empty FORWARD_CONTEXT the same way we treat a missing one.

(closes issue #15056)
Reported by: p_lindheimer
Patches:
      05292009_bug15056.diff uploaded by seanbright (license 71)
Tested by: p_lindheimer

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

16 years agoUse AST_CDR_NOANSWER instead of AST_CDR_NULL as the default CDR disposition.
Matthew Nicholson [Fri, 29 May 2009 18:53:01 +0000 (18:53 +0000)] 
Use AST_CDR_NOANSWER instead of AST_CDR_NULL as the default CDR disposition.

This change also involves the addition of an AST_CDR_FLAG_ORIGINATED flag that is used on originated channels to distinguish: them from dialed channels.

(closes issue #12946)
Reported by: meral
Patches:
      null-cdr2.diff uploaded by mnicholson (license 96)
Tested by: mnicholson, dbrooks

(closes issue #15122)
Reported by: sum
Tested by: sum

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

16 years agoFix 'make config' target for Slackware.
Sean Bright [Fri, 29 May 2009 18:14:12 +0000 (18:14 +0000)] 
Fix 'make config' target for Slackware.

There was a missing semi-colon after the echo statement in the Makefile that was
causing problems for some users.  Fix suggested by reporter.

(closes issue #15225)
Reported by: pdavis

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

16 years agoUpdate MixMonitor documentation.
Leif Madsen [Thu, 28 May 2009 23:57:00 +0000 (23:57 +0000)] 
Update MixMonitor documentation.

Updated the MixMonitor documentation for the 'b' option so that
it is more obvious that you must not optimize awat the Local
channel when using this option.

(issue #14829)

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

16 years ago'iax show peer blah' now outputs whether or not peer 'blah' is in trunk mode or not.
David Vossel [Thu, 28 May 2009 15:51:52 +0000 (15:51 +0000)] 
'iax show peer blah' now outputs whether or not peer 'blah' is in trunk mode or not.

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

16 years agoAllow for media to arrive from an alternate source when responding to a reinvite...
Mark Michelson [Thu, 28 May 2009 15:27:49 +0000 (15:27 +0000)] 
Allow for media to arrive from an alternate source when responding to a reinvite with 491.

When we receive a SIP reinvite, it is possible that we may not be able to process the
reinvite immediately since we have also sent a reinvite out ourselves. The problem is
that whoever sent us the reinvite may have also sent a reinvite out to another party,
and that reinvite may have succeeded.

As a result, even though we are not going to accept the reinvite we just received, it
is important for us to not have problems if we suddenly start receiving RTP from a new
source. The fix for this is to grab the media source information from the SDP of the
reinvite that we receive. This information is passed to the RTP layer so that it will
know about the alternate source for media.

Review: https://reviewboard.asterisk.org/r/252

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

16 years agoUse the address we already know when reloading a peer with nat=yes.
Eliel C. Sardanons [Thu, 28 May 2009 15:21:32 +0000 (15:21 +0000)] 
Use the address we already know when reloading a peer with nat=yes.

If we already have an address for a peer, and we are reloading the sip
configuration, try to use that address to contact the peer, instead of
getting it from the Contact.

(closes issue #15194)
Reported by: ibc
Patches:
      sip.patch uploaded by eliel (license 64)
      Tested by: manwe

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

16 years agoAdd flags to chanspy audiohook so that audio stays in sync.
Mark Michelson [Thu, 28 May 2009 14:49:13 +0000 (14:49 +0000)] 
Add flags to chanspy audiohook so that audio stays in sync.

There are two flags being added to the chanspy audiohook here. One
is the pre-existing AST_AUDIOHOOK_TRIGGER_SYNC flag. With this set,
we ensure that the read and write slinfactories on the audiohook do
not skew beyond a certain tolerance.

In addition, there is a new audiohook flag added here,
AST_AUDIOHOOK_SMALL_QUEUE. With this flag set, we do not allow for
a slinfactory to build up a substantial amount of audio before
flushing it. For this particular issue, this means that the person
spying on the call will hear the conversations in real time with very
little delay in the audio.

(closes issue #13745)
Reported by: geoffs
Patches:
      13745.patch uploaded by mmichelson (license 60)
Tested by: snblitz

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

16 years agoFix a bug where the flag indicating the presence of rport would get overwritten by...
Joshua Colp [Thu, 28 May 2009 13:44:58 +0000 (13:44 +0000)] 
Fix a bug where the flag indicating the presence of rport would get overwritten by the nat setting.

The presence of rport is now stored as a separate flag. Once the dialog is setup and authenticated
(or it passes through unauthenticated) the proper nat flag is set.

(closes issue #13823)
Reported by: dimas

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

16 years agoUse bash explicitly when calling build_tools/mkpkgconfig from the Makefile.
Sean Bright [Wed, 27 May 2009 20:12:06 +0000 (20:12 +0000)] 
Use bash explicitly when calling build_tools/mkpkgconfig from the Makefile.

Since we use bashisms in build_tools/mkpkgconfig, we should call on bash
explicitly when running from the Makefile, otherwise we get errors during a
'make install.'

(closes issue #15209)
Reported by: seandarcy

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

16 years agoTypo fix
Olle Johansson [Wed, 27 May 2009 20:07:04 +0000 (20:07 +0000)] 
Typo fix

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

16 years agoUse a different determinator on whether to print the delimiter, since leading fields...
Tilghman Lesher [Wed, 27 May 2009 19:09:42 +0000 (19:09 +0000)] 
Use a different determinator on whether to print the delimiter, since leading fields may be blank.
(closes issue #15208)
 Reported by: ramonpeek
 Patch by me, though inspired in part by a patch from ramonpeek

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

16 years agoFix broken attended transfers
Jeff Peeler [Wed, 27 May 2009 16:49:38 +0000 (16:49 +0000)] 
Fix broken attended transfers

The bridge was terminating immediately after the attended transfer was
completed. The problem was because upon reentering ast_channel_bridge
nexteventts was checked to see if it was set and if so could possibly
return AST_BRIDGE_COMPLETE.

(closes issue #15183)
Reported by: andrebarbosa
Tested by: andrebarbosa, tootai, loloski

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

16 years agoFix handling of the 'state_interface' option of the 'queue add member' CLI
Sean Bright [Wed, 27 May 2009 13:54:35 +0000 (13:54 +0000)] 
Fix handling of the 'state_interface' option of the 'queue add member' CLI
command.

This change relates to r184980, which was a backport of the state interface
changes to app_queue from trunk.  trunk and all of the 1.6.x branches are not
affected.

'queue add member' allows for specifying an interface to use for device state
when adding a queue member via CLI, but the validation code was not properly
updated to reflect this optional argument.

(closes issue #15198)
Reported by: loloski
Patches:
      05272009_app_queue.diff uploaded by seanbright (license 71)
Tested by: loloski

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

16 years agoResolve a file handle leak.
Russell Bryant [Tue, 26 May 2009 18:14:36 +0000 (18:14 +0000)] 
Resolve a file handle leak.

The frames here should have always been freed.  However, out of luck, there was
never any memory leaked.  However, after file streams became reference counted,
this code would leak the file stream for the file being read.

(closes issue #15181)
Reported by: jkroon

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

16 years agoRemove some bash specific stuff from safe_asterisk.
Joshua Colp [Tue, 26 May 2009 13:06:09 +0000 (13:06 +0000)] 
Remove some bash specific stuff from safe_asterisk.

(closes issue #10812)
Reported by: paravoid
Patches:
      safe_asterisk_bashism.diff uploaded by tzafrir (license 46)

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

16 years agoFix a bug where using immediate with mISDN caused a cause code of 16 to get sent...
Joshua Colp [Fri, 22 May 2009 13:54:17 +0000 (13:54 +0000)] 
Fix a bug where using immediate with mISDN caused a cause code of 16 to get sent back instead of 1 if the 's' extension did not exist.

(closes issue #12286)
Reported by: lmamane

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

16 years agoSign problem calculating timestamp for iax frame leads to no audio on the receiving...
David Vossel [Thu, 21 May 2009 19:04:56 +0000 (19:04 +0000)] 
Sign problem calculating timestamp for iax frame leads to no audio on the receiving peer.

There are rare cases in which a frame's delivery timestamp is slightly less than the iax2_pvt's offset.  This causes the pvt's timestamp to be a small negative number, but since the timestamp value is unsigned it looks like a huge positive number.  This patch checks for this negative case and sets the ms to zero.  A similar check is already done right below this one in the 'else' statement.

(closes issue #15032)
Reported by: guillecabeza
Patches:
      chan_iax2.c.patch_timestamp uploaded by guillecabeza (license 380)
Tested by: guillecabeza

(closes issue #14216)
Reported by: Andrey Sofronov

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

16 years agoThis commit prevents cdr records with AST_CDR_FLAG_ANSLOCKED and AST_CDR_FLAG_LOCKED...
Matthew Nicholson [Thu, 21 May 2009 15:25:50 +0000 (15:25 +0000)] 
This commit prevents cdr records with AST_CDR_FLAG_ANSLOCKED and AST_CDR_FLAG_LOCKED from being updated in certain cases.

This is accomplished by adding two functions to update the answer time and disposition of calls that checks for the proper lock flags.  These functions are used in the ast_bridge_call() function so that ForkCDR(A) calls are respected.

This patch also modifies the way ast_bridge_call() chooses the cdr record to base the bridged_cdr on.  Previously the first unlocked cdr record would be chosen, now instead the first cdr record is chosen and forked cdr records are moved to the bridge_cdr.  This allows the original cdr record and any forked cdr records to be properly updated with answer and end times.

(closes issue #13797)
Reported by: sh0t
Tested by: sh0t

(closes issue #14744)
Reported by: deepesh

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

16 years agoFix some code that wrongly assumed a pointer would always be non-NULL when dealing...
Joshua Colp [Wed, 20 May 2009 17:30:25 +0000 (17:30 +0000)] 
Fix some code that wrongly assumed a pointer would always be non-NULL when dealing with CDRs after a bridge.

(closes issue #15079)
Reported by: barryf

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

16 years agoFix a bug where the MeetMe option 'D' did not actually prompt for the pin.
Joshua Colp [Wed, 20 May 2009 17:14:00 +0000 (17:14 +0000)] 
Fix a bug where the MeetMe option 'D' did not actually prompt for the pin.

(closes issue #15050)
Reported by: pmhaddad

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

16 years agoEnsure thread keys are initialized before attempting to access them.
Tilghman Lesher [Tue, 19 May 2009 20:12:20 +0000 (20:12 +0000)] 
Ensure thread keys are initialized before attempting to access them.
(closes issue #14889)
 Reported by: jaroth
 Patches:
       app_voicemail.c.patch uploaded by msirota (license 758)
 Tested by: msirota, BlargMaN

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

16 years agoFix a bug where direct RTP setup would partially occur even when disabled if the...
Joshua Colp [Tue, 19 May 2009 14:41:45 +0000 (14:41 +0000)] 
Fix a bug where direct RTP setup would partially occur even when disabled if the calling channel was answered.

(issue #13545)
Reported by: davidw
(issue #14244)
Reported by: mbnwa

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

16 years agoAdd a similar dependency on SMDI for voicemail as already exists for ADSI.
Tilghman Lesher [Mon, 18 May 2009 20:24:13 +0000 (20:24 +0000)] 
Add a similar dependency on SMDI for voicemail as already exists for ADSI.
(closes issue #14846)
 Reported by: pj
 Patches:
       20090413__bug14846__1.4.diff.txt uploaded by tilghman (license 14)
       20090507__issue14846__1.6.0.diff.txt uploaded by tilghman (license 14)
       20090507__issue14846__1.6.1.diff.txt uploaded by tilghman (license 14)

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

16 years agoFix a typo which caused loss of audio when using G729 in some scenarios with a smooth...
Joshua Colp [Mon, 18 May 2009 15:51:22 +0000 (15:51 +0000)] 
Fix a typo which caused loss of audio when using G729 in some scenarios with a smoother present.

(closes issue #15105)
Reported by: bamby
Patches:
      process-vad-correctly.diff uploaded by bamby (license 430)

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

16 years agoFix a bug where the codecs of the called party leg were not properly sent back to...
Joshua Colp [Mon, 18 May 2009 13:53:39 +0000 (13:53 +0000)] 
Fix a bug where the codecs of the called party leg were not properly sent back to the caller call leg when reinvited.

(closes issue #13569)
Reported by: bkw918

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

16 years agoDon't try to unlock a bogus channel.
Russell Bryant [Mon, 18 May 2009 12:57:46 +0000 (12:57 +0000)] 
Don't try to unlock a bogus channel.

(closes issue #15144)
Reported by: cristiandimache

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

16 years agoIAX2 REGAUTH loop
David Vossel [Fri, 15 May 2009 22:43:13 +0000 (22:43 +0000)] 
IAX2 REGAUTH loop

IAX was not sending REGREJ to terminate invalid registrations.  Instead it sent another REGAUTH if the authentication challenge failed.  This caused a loop of REGREQ and REGAUTH frames.

(Related to Security fix AST-2009-001)

(closes issue #14867)
Reported by: aragon
Tested by: dvossel

(closes issue #14717)
Reported by: mobeck
Patches:
      regauth_loop_update_patch.diff uploaded by dvossel (license 671)
Tested by: dvossel

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

16 years agoFix some spelling fail.
Russell Bryant [Fri, 15 May 2009 18:43:18 +0000 (18:43 +0000)] 
Fix some spelling fail.

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

16 years agoUpdate to previous IAX2 "Ghost" Channels patch.
David Vossel [Fri, 15 May 2009 15:40:37 +0000 (15:40 +0000)] 
Update to previous IAX2 "Ghost" Channels patch.

Fixed some comments made on reviewboard for the previous patch.

(issue #14207)

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

16 years agoIAX2 "Ghost" Channels
David Vossel [Thu, 14 May 2009 22:59:43 +0000 (22:59 +0000)] 
IAX2 "Ghost" Channels

There is a bug tracker issue where people are reporting "Ghost" channels in their 'iax2 show channels' output.  The confusion is caused by channels being listed as "(NONE)" with format "unknown".  These are not channels of coarse.  They are usually just pending registration or poke requests, but it is confusing output.  To help make sense of this I have added two columns to 'iax2 show channels'.  One shows the first message which started the transaction, and the second shows the last message sent by either side of the call.  This helps diagnose why the entry exists and why it may not go away.

(closes issue #14207)
Reported by: clive18

Review: https://reviewboard.asterisk.org/r/246/

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

16 years agoUpdate URL to Reviewboard
Kevin P. Fleming [Thu, 14 May 2009 22:23:49 +0000 (22:23 +0000)] 
Update URL to Reviewboard

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

16 years agoFix a race condition where a reinvite could trigger a 482 response.
Mark Michelson [Thu, 14 May 2009 22:17:55 +0000 (22:17 +0000)] 
Fix a race condition where a reinvite could trigger a 482 response.

The loop detection/spiral detection code in chan_sip used the owner
channel's state as a criterion for determining if the incoming INVITE
is a looped request. The problem with this is that the INVITE-handling
code happens in a different thread than the thread that marks the owner
channel as being up. As a result, if a reinvite were to come in very quickly,
say from another Asterisk on the same LAN, it was possible for the reinvite
to arrive before the owner channel had been set to the up state.

This patch corrects the problem by using the invitestate of the sip_pvt
instead, since that can be guaranteed to be set correctly by the time
the reinvite arrives. Since there is a switch statement further in the
INVITE-handling code, the AST_STATE_RINGING state also checks the invitestate
of the sip_pvt in case we should actually be treating the channel as if it were
up already.

(closes issue #12215)
Reported by: jpyle
Patches:
      12215_confirmed.patch uploaded by mmichelson (license 60)
Tested by: lmadsen

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

16 years agoRemove an extraneous unlocking operation from ast_channel_free.
Mark Michelson [Wed, 13 May 2009 19:41:44 +0000 (19:41 +0000)] 
Remove an extraneous unlocking operation from ast_channel_free.

In the case that we could not remove the desired channel from the
list of channels, there was an extra call to unlock the channel list.
Since we unlock the list later on in the function anyway, this results
in the list being unlocked twice yet only being locked once.

(closes issue #15098)
Reported by: tim_ringenbach
Patches:
      remove_extra_unlock.diff uploaded by tim (license 540)

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

16 years agoPull in a piece of murf's 88166 patch that makes it safe to call
Doug Bailey [Wed, 13 May 2009 16:18:36 +0000 (16:18 +0000)] 
Pull in a piece of murf's 88166 patch that makes it safe to call
pbx_substitute_variables_helper_full with a non-zero'd buffer

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

16 years agoFix RFC2833 issues with DTMF getting duplicated and with duration wrapping over.
Joshua Colp [Wed, 13 May 2009 13:38:01 +0000 (13:38 +0000)] 
Fix RFC2833 issues with DTMF getting duplicated and with duration wrapping over.

(closes issue #14815)
Reported by: geoff2010
Patches:
      v1-14815.patch uploaded by dimas (license 88)
Tested by: geoff2010, file, dimas, ZX81, moliveras
(closes issue #14460)
Reported by: moliveras
Tested by: moliveras

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

16 years agoFix logic for how to proceed with a single digit extension.
Tilghman Lesher [Wed, 13 May 2009 00:52:03 +0000 (00:52 +0000)] 
Fix logic for how to proceed with a single digit extension.
(closes issue #15091)
 Reported by: andrew
 Patches:
       20090512__issue15091.diff.txt uploaded by tilghman (license 14)
 Tested by: andrew

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

16 years agoThis change modifies app_queue to properly generate CDR records in failure
Matthew Nicholson [Tue, 12 May 2009 22:15:45 +0000 (22:15 +0000)] 
This change modifies app_queue to properly generate CDR records in failure
situations.

This involves setting a proper cdr disposition coresponding to the given
failure condition and ensuring the proper information is stored in the cdr
record.

(closes issue #13691)
Reported by: dferrer
Tested by: mnicholson

(closes issue #13637)
Reported by: atis
Tested by: atis

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

16 years agoAvoid initializing routines if the authentication fails. Fixes a crash (RR) issue.
Tilghman Lesher [Tue, 12 May 2009 20:39:21 +0000 (20:39 +0000)] 
Avoid initializing routines if the authentication fails.  Fixes a crash (RR) issue.
(closes issue #14508)
 Reported by: tiziano
 Patches:
       20090221_2_wrongmailbox.diff.txt uploaded by tiziano (license 377)

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

16 years agoSet the invitestate to INV_CANCELLED only if we are actually sending a SIP CANCEL.
Mark Michelson [Tue, 12 May 2009 18:18:44 +0000 (18:18 +0000)] 
Set the invitestate to INV_CANCELLED only if we are actually sending a SIP CANCEL.

The problem was that the hangup code was setting the invitestate too early. The result of
this was that we would always send a CANCEL request, even if it was not an appropriate
time to do so (e.g. we have not yet received a provisional response for our INVITE).

Note that this same fix had been applied to trunk and the 1.6.X branches starting with
revision 155467. This is why you will see this revision being blocked from those places.

AST-216

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

16 years agoMove 300 bytes around on the stack, to make more room for an extension buffer.
Tilghman Lesher [Mon, 11 May 2009 22:48:20 +0000 (22:48 +0000)] 
Move 300 bytes around on the stack, to make more room for an extension buffer.
This allows more concurrent extensions to be copied for a single voicemail,
without creating a possibility of upsetting existing users, where a dialplan
could run out of stack space where it had run fine before.  Alternatively,
we could have allocated off the heap, but that is a larger change and would
have increased the chance for instability introduced by this change.

This is really solved starting in 1.6.0.11, as the use of an ast_str buffer
allows an unlimited number of extensions (up to available memory).  We
additionally create a new warning message when the buffer length is exceeded,
permitting administrators to see an issue after the fact, whereas previously
the list was silently truncated.
(closes issue #14739)
 Reported by: p_lindheimer
 Patches:
       20090417__bug14739.diff.txt uploaded by tilghman (license 14)
 Tested by: p_lindheimer

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

16 years agoSent wrong message to clear a call we started if the other end has not responed yet.
Richard Mudgett [Mon, 11 May 2009 19:09:00 +0000 (19:09 +0000)] 
Sent wrong message to clear a call we started if the other end has not responed yet.

In the state MISDN_CALLING (i.e. SETUP was sent but no answer has arrived yet),
it is not allowed to clear the call with RELEASE_COMPLETE.  It must be
cleared with DISCONNECT.  A RELEASE_COMPLETE is only allowed as an answer
to a SETUP.  (See Q.931 ch. 5.3.2, 5.3.2.a, 5.3.2.b)

Patches:
    chan-misdn-ccstate7.patch uploaded by customer.

JIRA ABE-1862

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

16 years agoDocument CHANNEL(transfercapability) in CLI documentation.
Leif Madsen [Mon, 11 May 2009 17:35:17 +0000 (17:35 +0000)] 
Document CHANNEL(transfercapability) in CLI documentation.

(issue #15073)
Reported by: pkempgen
Patches:
      20090511__issue15073.diff.txt uploaded by tilghman (license 14)

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

16 years agoSet the proper disposition on originated calls.
Matthew Nicholson [Fri, 8 May 2009 21:01:25 +0000 (21:01 +0000)] 
Set the proper disposition on originated calls.

(closes issue #14167)
Reported by: jpt
Patches:
      call-file-missing-cdr2.diff uploaded by mnicholson (license 96)
Tested by: dlotina, rmartinez, mnicholson

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

16 years ago"misdn show config" segfaults asterisk, if no MSN lists
David Vossel [Fri, 8 May 2009 14:51:09 +0000 (14:51 +0000)] 
"misdn show config" segfaults asterisk, if no MSN lists

(closes issue #14976)
Reported by: alecdavis
Patches:
      misdn_config.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis, FabienToune

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

16 years agoMake absolute paths for logger channels work properly
Kevin P. Fleming [Fri, 8 May 2009 14:03:28 +0000 (14:03 +0000)] 
Make absolute paths for logger channels work properly

(Note: This is not a new feature, it was previously undocumented and broken.)

The Asterisk logger has a feature to support absolute pathnames for logger channels, but the code implementing the feature was broken. This has been fixed, and the absolute path feature is now documented in the sample logger.conf.

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

16 years agoFix Background within a Macro for FreePBX.
Tilghman Lesher [Thu, 7 May 2009 23:41:11 +0000 (23:41 +0000)] 
Fix Background within a Macro for FreePBX.
If the single digit DTMF is an extension in the specified context, then
go there and signal no DTMF.  Otherwise, we should exit with that DTMF.
If we're in Macro, we'll exit and seek that DTMF as the beginning of an
extension in the Macro's calling context.  If we're not in Macro, then
we'll simply seek that extension in the calling context.  Previously,
someone complained about the behavior as it related to the interior of a
Gosub routine, and the fix (#14011) inadvertently broke FreePBX
(#14940).  This change should fix both of these situations, but with the
possible incompatibility that if a single digit extension does not exist
(but a longer extension COULD have matched), it would have previously
gone immediately to the "i" extension, but will now need to wait for a
timeout.
(closes issue #14940)
 Reported by: p_lindheimer
 Patches:
       20090420__bug14940.diff.txt uploaded by tilghman (license 14)
 Tested by: p_lindheimer

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

16 years agoGive a more helpful message when an incoming call's dialed extension does not match.
Richard Mudgett [Thu, 7 May 2009 22:17:06 +0000 (22:17 +0000)] 
Give a more helpful message when an incoming call's dialed extension does not match.

Added the dialed extension and context to the chan_misdn messages warning
that the dialed number cannot be matched in the dialplan.

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

16 years agoEliminate repetition of fullcontact during reconstruction.
Tilghman Lesher [Thu, 7 May 2009 16:29:08 +0000 (16:29 +0000)] 
Eliminate repetition of fullcontact during reconstruction.
If the fullcontact field appears in both the sippeers and the
sipregs table, then during reconstruction of the field, it will
otherwise be doubled.
(closes issue #14754)
 Reported by: Alexei Gradinari
 Patches:
       20090506__bug14754.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen

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

16 years agoMake ParkedCall application stop execution of the dialplan after hang up
Jeff Peeler [Wed, 6 May 2009 22:15:19 +0000 (22:15 +0000)] 
Make ParkedCall application stop execution of the dialplan after hang up

Just changed park_exec to always return non-zero. I really wasn't entirely sure
at first if this was a bug. Decided it was since it would be surprising when
not using ParkedCall in the dialplan to hang up and have dialplan execution
continue.

(closes issue #14555)
Reported by: francesco_r

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

16 years agoUpdate some old logic to stop both begin and end DTMF frames from reaching the core...
Joshua Colp [Wed, 6 May 2009 13:30:51 +0000 (13:30 +0000)] 
Update some old logic to stop both begin and end DTMF frames from reaching the core if rfc2833 is not enabled.

(closes issue #15036)
Reported by: dimas
Patches:
      v1-15036.patch uploaded by dimas (license 88)

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

16 years agoFix Javascript error when using astman.js in Internet Explorer.
Sean Bright [Tue, 5 May 2009 19:56:11 +0000 (19:56 +0000)] 
Fix Javascript error when using astman.js in Internet Explorer.

Internet Explorer (tested with 7.0) does not like trailing commas on constructs
like object initializers, so get rid of them to avoid some errors.

(closes issue #15026)
Reported by: rajnishgiri
Patches:
      bug15026.patch uploaded by seanbright (license 71)
Tested by: seanbright

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

16 years agoFix an incorrect assumption that certain values on the channel will always exist...
Joshua Colp [Tue, 5 May 2009 18:22:27 +0000 (18:22 +0000)] 
Fix an incorrect assumption that certain values on the channel will always exist when they may not.

The CDR code involved with bridges wrongly assumed that the currently executing application and data
values will always exist. It is possible for this to be false when call forwarding is involved.

(closes issue #14984)
Reported by: gincantalupo

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

16 years agoFix a bug where the followme application would continue trying numbers after the...
Joshua Colp [Tue, 5 May 2009 17:43:30 +0000 (17:43 +0000)] 
Fix a bug where the followme application would continue trying numbers after the caller hung up.

(closes issue #13624)
Reported by: sgenyuk

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

16 years agoglobal mohinterpret setting is ignored
David Vossel [Mon, 4 May 2009 22:37:31 +0000 (22:37 +0000)] 
global mohinterpret setting is ignored

mohinterpret and mohsuggest global variables were not copied over during build_users and build_peers.

(closes issue #14728)
Reported by: dimas
Patches:
      v1-14728.patch uploaded by dimas (license 88)
Tested by: dimas, dvossel

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

16 years agoFix a bug which resulted from the Hebrew voicemail commit.
Mark Michelson [Sat, 2 May 2009 18:48:20 +0000 (18:48 +0000)] 
Fix a bug which resulted from the Hebrew voicemail commit.

This fixes a case where a certain message could get played twice.

(closes issue #13155)
Reported by: greenfieldtech
Patches:
      app_voicemail.c.multi-lang-patch uploaded by greenfieldtech (license 369)
Tested by: greenfieldtech

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

16 years agoKevin has informed me that thi sort of thing is not necessary.
Mark Michelson [Sat, 2 May 2009 10:45:24 +0000 (10:45 +0000)] 
Kevin has informed me that thi sort of thing is not necessary.

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

16 years agoMove static buffers to outside for loops in app_chanspy.
Mark Michelson [Sat, 2 May 2009 10:21:00 +0000 (10:21 +0000)] 
Move static buffers to outside for loops in app_chanspy.

Similar to seanbright's commit 191422, this moves some static buffers
to be defined outside of for loops since it is undefined if memory
will be re-used or if the stack will grow with each iteration of the
loop.

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

16 years agoSIP Response 410 maps to cause code 22 (or 23), not 1.
Tilghman Lesher [Fri, 1 May 2009 20:00:23 +0000 (20:00 +0000)] 
SIP Response 410 maps to cause code 22 (or 23), not 1.
(closes issue #14993)
 Reported by: BigJimmy
 Patches:
       causepatch uploaded by BigJimmy (license 371)

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

16 years agoFix DTMF not being sent to other side after a partial feature match
Jeff Peeler [Fri, 1 May 2009 17:40:46 +0000 (17:40 +0000)] 
Fix DTMF not being sent to other side after a partial feature match

This fixes a regression from commit 176701. The issue was that
ast_generic_bridge never exited after the feature digit timeout had elapsed,
which prevented the queued DTMF from being sent to the other side.

This issue was reported to me directly.

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

16 years agoMove the defintion of the a couple arrays out of loops.
Sean Bright [Fri, 1 May 2009 15:42:48 +0000 (15:42 +0000)] 
Move the defintion of the a couple arrays out of loops.

According to Kevin, it is unspecified as to whether a variable defined inside
a block is allocated once by the compiler or for each pass through the block
(loops being the only interesting case), so just define these before we get
into our loop to be sure.

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

16 years agoAllow H.323 to compile with FDLEAK checking enabled.
Tilghman Lesher [Wed, 29 Apr 2009 23:10:54 +0000 (23:10 +0000)] 
Allow H.323 to compile with FDLEAK checking enabled.

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

16 years agoPatch to fix tab-completion crash on "remove extension"
David Brooks [Wed, 29 Apr 2009 18:07:59 +0000 (18:07 +0000)] 
Patch to fix tab-completion crash on "remove extension"

This patch simply removes some old code back before Asterisk used editline.
This fixes the crash that occurred when tab-completing "remove extension".

(closes issue #14689)
Reported by: isaacgal

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

16 years agoFix a crash in app_queue with very long member lists.
Sean Bright [Wed, 29 Apr 2009 15:23:07 +0000 (15:23 +0000)] 
Fix a crash in app_queue with very long member lists.

A user reported via #asterisk that with very long lists of members, a crash
occurs in ast_strdupa, so just use a single buffer and ast_copy_string instead
of stack allocating copys of each interface name.

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

16 years agoFix 'inconsistent line endings' when autoconf 2.63 is used
Kevin P. Fleming [Mon, 27 Apr 2009 19:29:46 +0000 (19:29 +0000)] 
Fix 'inconsistent line endings' when autoconf 2.63 is used

Attempt to make configure script regeneration 'safe' using autoconf 2.63, which embeds a bare CR into the script, thus making Subversion complain about inconsistent line endings

This commit changes the MIME type of the configure script to be 'binary' thus making Subversion no longer inspect line endings, and as a bonus 'svn diff' will no longer try to generate diff output for it, which is not generally useful anyway.

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

16 years agoFix a typo from 190661.
Russell Bryant [Mon, 27 Apr 2009 19:03:59 +0000 (19:03 +0000)] 
Fix a typo from 190661.

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

16 years agoResolve a crash in res_smdi when used with chan_dahdi.
Russell Bryant [Mon, 27 Apr 2009 19:00:54 +0000 (19:00 +0000)] 
Resolve a crash in res_smdi when used with chan_dahdi.

When chan_dahdi goes to get an SMDI message, it provides no search criteria.
It just grabs the next message that arrives.  This code was written with the
SMDI dialplan functions in mind, since that is now the preferred method of
using SMDI.  However, this broke support of it being used from chan_dahdi.

(closes AST-212)

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

16 years agoRemove a bogus ast_channel_unlock().
Russell Bryant [Thu, 23 Apr 2009 21:07:07 +0000 (21:07 +0000)] 
Remove a bogus ast_channel_unlock().

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

16 years agoFix a bug in chan_local glare hangup detection.
Joshua Colp [Thu, 23 Apr 2009 19:13:18 +0000 (19:13 +0000)] 
Fix a bug in chan_local glare hangup detection.

If both sides of a Local channel were hung up at around the same time it was
possible for one thread to destroy the local private structure and have the other thread
immediately try to remove the already freed structure from the local channel list.

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

16 years agounistd.h is required for usleep() on Darwin. It will not hurt to include it always
Olle Johansson [Thu, 23 Apr 2009 10:07:26 +0000 (10:07 +0000)] 
unistd.h is required for usleep() on Darwin. It will not hurt to include it always
on other platforms either.

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

16 years agoDetect availability of pthread_rwlock_timedwrlock() before using it.
Tilghman Lesher [Wed, 22 Apr 2009 21:35:03 +0000 (21:35 +0000)] 
Detect availability of pthread_rwlock_timedwrlock() before using it.
(closes issue #14930)
 Reported by: tilghman
 Patches:
       20090420__bug14930.diff.txt uploaded by tilghman (license 14)
 Tested by: mvanbaak, tilghman

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

16 years agoMake chan_h323 respect packetization settings
Jeff Peeler [Wed, 22 Apr 2009 19:20:53 +0000 (19:20 +0000)] 
Make chan_h323 respect packetization settings

Previously, packetization settings were ignored and now they are not. A new
config option 'autoframing' has been added to mirror the way chan_sip handles
it. Turning on the autoframing option (available both as a global option or per
peer) overrides the local settings with the remote packetization settings.
Testing was performed with varying packetization levels with the following
codecs: ulaw, alaw, gsm, and g729.

(closes issue #12415)
Reported by: pj
Patches:
      2009012200_h323packetization.diff.txt uploaded by mvanbaak (license 7),
      modified by me

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

16 years agoreplace sed with tr to remove \r from downloaded file
Michiel van Baak [Wed, 22 Apr 2009 14:29:28 +0000 (14:29 +0000)] 
replace sed with tr to remove \r from downloaded file

On some systems, sed does not recognize \r in the pattern the way it
was used here.
Use tr instead because this works the same across systems.

(closes issue #14936)
Reported by: leobrown
Patches:
      2009042201_14936.diff.txt uploaded by mvanbaak (license 7)
  Tested by: leobrown, mvanbaak

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

16 years agoRemove daemon call on systems that do not support forking.
Doug Bailey [Tue, 21 Apr 2009 15:52:13 +0000 (15:52 +0000)] 
Remove daemon call on systems that do not support forking.

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

16 years agoAdd check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h
Doug Bailey [Tue, 21 Apr 2009 14:00:55 +0000 (14:00 +0000)] 
Add check in configure script to check for GLOB_NOMAGIC and GLOB_BRACE in glob.h
This allows config.c to compile when linked against uclibc that does not support these parameters

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

16 years agoAdd a workaround for func_odbc/ARRAY() for problems that occur with certain special...
Tilghman Lesher [Mon, 20 Apr 2009 22:02:16 +0000 (22:02 +0000)] 
Add a workaround for func_odbc/ARRAY() for problems that occur with certain special characters.
In certain cases, due to the way Set() works in 1.4, values may not get set
properly.  This is a workaround for 1.4 only that corrects for these issues,
without making func_odbc more difficult to use properly.
(closes issue #14614)
 Reported by: wdoekes
 Patches:
       20090309__bug14614__2.diff.txt uploaded by tilghman (license 14)
       double_set_unescape_workaround_for_func_odbc.osso-and-tilghman-1.diff uploaded by wdoekes (license 717)
 Tested by: wdoekes, tilghman

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

16 years agoUpdate CDR appropriately when AST_CAUSE_NO_ANSWER is set
Terry Wilson [Mon, 20 Apr 2009 21:10:27 +0000 (21:10 +0000)] 
Update CDR appropriately when AST_CAUSE_NO_ANSWER is set

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

16 years agoDon't treat a NOANSWER like a CHANUNAVAIL
Terry Wilson [Mon, 20 Apr 2009 21:00:52 +0000 (21:00 +0000)] 
Don't treat a NOANSWER like a CHANUNAVAIL

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

16 years agoProperly handle @s within hints in AEL.
Sean Bright [Mon, 20 Apr 2009 20:58:39 +0000 (20:58 +0000)] 
Properly handle @s within hints in AEL.

AEL was not handling the case of a device hint containing an @ symbol, which
caused parking hints (e.g. hint(park:exten@context)) to error out the parser.
This patch makes AEL treat the @ the same way it treats colon and ampersand
now, meaning the characters are included in verbatim.

(closes issue #14941)
Reported by: bpgoldsb
Patches:
      bug14941.patch uploaded by seanbright (license 71)
Tested by: bpgoldsb

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

16 years agoClean up problem with manager implementation of mmap where it was not testing against...
Doug Bailey [Mon, 20 Apr 2009 19:10:56 +0000 (19:10 +0000)] 
Clean up problem with manager implementation of mmap where it was not testing against MAP_FAILED response.
Got rid of shadowed variable used in processign the mmap results.
Change test of mmap results to compare against MAP_FAILED

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

16 years agoMove the check for chan->fdno == -1 to after the zombie/hangup check.
Mark Michelson [Mon, 20 Apr 2009 14:04:41 +0000 (14:04 +0000)] 
Move the check for chan->fdno == -1 to after the zombie/hangup check.

Many users were finding that their hung up channels were staying up and
causing 100% CPU usage.

(issue #14723)
Reported by: seadweller
Patches:
      14723_1-4-tip.patch uploaded by mmichelson (license 60)
Tested by: falves11, bamby

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

16 years agoFixed autologoff in agents.conf not working when agent logs in via AgentLogin app
David Vossel [Sat, 18 Apr 2009 01:27:19 +0000 (01:27 +0000)] 
Fixed autologoff in agents.conf not working when agent logs in via AgentLogin app

An agent logs in by calling an extension that calls the AgentLogin app.  In agents.conf ackcall=always is set, so when they get a call they have the choice to either acknowledge it or ignore it.  autologoff=10 is set as well, so if the agent ignores the call over 10sec one may assume that the agent should be logged out (and in this case hungup on as well), but this was not happening.

(closes issue #14091)
Reported by: evandro
Patches:
      autologoff.diff uploaded by dvossel (license 671)

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

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

16 years agoModifed/added some debug messages.
Richard Mudgett [Fri, 17 Apr 2009 21:27:55 +0000 (21:27 +0000)] 
Modifed/added some debug messages.

JIRA ABE-1835

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

16 years agoMake Busy() application set the CDR disposition to BUSY.
Matthew Nicholson [Fri, 17 Apr 2009 15:43:09 +0000 (15:43 +0000)] 
Make Busy() application set the CDR disposition to BUSY.

(closes issue #14306)
Reported by: cristiandimache

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

16 years agoFix a bug where a value used to create the channel name was bogus.
Joshua Colp [Fri, 17 Apr 2009 14:41:25 +0000 (14:41 +0000)] 
Fix a bug where a value used to create the channel name was bogus.

This commit fixes the scenario where an incoming call is authenticated
using a peer entry. Previously the channel name was created using either
the username setting from the sip.conf entry or the IP address that the
call came from. Now the channel name will be created using the peer name
itself. This commit will not change the way the channel name is generated
for users or friends.

(closes issue #14256)
Reported by: Nick_Lewis
Patches:
      chan_sip.c-chname.patch uploaded by Nick (license 657)
Tested by: Nick_Lewis, file

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

16 years agoFix a situation where the DAHDI channel private structure lock was not unlocked when...
Joshua Colp [Fri, 17 Apr 2009 14:25:57 +0000 (14:25 +0000)] 
Fix a situation where the DAHDI channel private structure lock was not unlocked when it should have been.

(issue AST-210)

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

16 years agoOnly update realtime, if global option rtupdate != false
Tilghman Lesher [Thu, 16 Apr 2009 21:41:13 +0000 (21:41 +0000)] 
Only update realtime, if global option rtupdate != false
(closes issue #14885)
 Reported by: deepesh
 Patches:
       20090413__bug14885.diff.txt uploaded by tilghman (license 14)
 Tested by: deepesh

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

16 years agoOnly disable mISDN DSP if Asterisk DSP is enabled. Leave jitter setting alone.
Richard Mudgett [Thu, 16 Apr 2009 21:37:58 +0000 (21:37 +0000)] 
Only disable mISDN DSP if Asterisk DSP is enabled. Leave jitter setting alone.

JIRA ABE-1835

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

16 years agoUmask should not be exported into global namespace.
Tilghman Lesher [Thu, 16 Apr 2009 21:02:29 +0000 (21:02 +0000)] 
Umask should not be exported into global namespace.
(closes issue #14912)
 Reported by: jcapp

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

16 years agoNational prefix inserted even when caller ID not available
David Vossel [Wed, 15 Apr 2009 22:08:40 +0000 (22:08 +0000)] 
National prefix inserted even when caller ID not available

When the caller ID is restricted, the expected behavior is for the caller id to be blank.  In chan_dahdi, the national prefix is placed onto the callers number even if its restricted (empty) causing the caller id to be the national prefix rather than blank.

(closes issue #13207)
Reported by: shawkris
Patches:
      national_prefix.diff uploaded by dvossel (license 671)

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

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

16 years agoUpdate ast_readvideo_callback to match ast_readaudio_callback.
Mark Michelson [Wed, 15 Apr 2009 20:04:20 +0000 (20:04 +0000)] 
Update ast_readvideo_callback to match ast_readaudio_callback.

This fixes potential refcount errors that may occur on ast_filestreams.

AST-208

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

16 years agoaudio_audiohook_write_list() does not correctly update sample size after ast_translate.
David Vossel [Tue, 14 Apr 2009 15:02:04 +0000 (15:02 +0000)] 
audio_audiohook_write_list() does not correctly update sample size after ast_translate.

audio_audiohook_write_list() does not take into account that the sample size may change after translation depending on if the original frame is is 8khz or 16khz.  While no 16kz codecs are supported in 1.4 at the moment, this will save headaches in the future if they ever are.  the sample size is now updated after translating to reflect this possibility.  Thanks to jcolp and mmichelson for helping me work this out.

(issue AST-197)

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

16 years agoIf fileconfig limit exceeds our maximum, then set the limit to the maximum.
Tilghman Lesher [Mon, 13 Apr 2009 23:04:15 +0000 (23:04 +0000)] 
If fileconfig limit exceeds our maximum, then set the limit to the maximum.
(Closes issue #14888)
Reported by: falves11

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

16 years agoFix module embedding for chan_h323.
Jeff Peeler [Fri, 10 Apr 2009 22:16:13 +0000 (22:16 +0000)] 
Fix module embedding for chan_h323.

Include libchanh323.a in the modules.link file so that all the symbols can be
resolved at link time.

(closes issue #11966)
Reported by: dome

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

16 years agoSupport "signaling" in addition to "signalling".
Russell Bryant [Fri, 10 Apr 2009 19:26:40 +0000 (19:26 +0000)] 
Support "signaling" in addition to "signalling".

The sample configuration file has references to both spellings.

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