]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoFix a small error I made in my previous commit
Mark Michelson [Wed, 21 Nov 2007 19:27:51 +0000 (19:27 +0000)] 
Fix a small error I made in my previous commit

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

18 years agoChanging an inaccurate debug message to be less inaccurate. Under the circumstances...
Mark Michelson [Wed, 21 Nov 2007 19:24:22 +0000 (19:24 +0000)] 
Changing an inaccurate debug message to be less inaccurate. Under the circumstances, this
message would always report that there were 0 members available, even though that may not be true.

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

18 years agoIf a channel gets masqueraded in the middle of a park, don't play the
Terry Wilson [Wed, 21 Nov 2007 18:59:27 +0000 (18:59 +0000)] 
If a channel gets masqueraded in the middle of a park, don't play the
announcement to the masqueraded channel, and dial back to the original
channel on timeout.

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

18 years agore-doxygen some comments
Kevin P. Fleming [Tue, 20 Nov 2007 19:16:24 +0000 (19:16 +0000)] 
re-doxygen some comments

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

18 years agobring back compile-option checking when loading modules, only this time use a string...
Kevin P. Fleming [Tue, 20 Nov 2007 19:12:52 +0000 (19:12 +0000)] 
bring back compile-option checking when loading modules, only this time use a string-based storage and comparison mechanism because it is easier to support on other platforms

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

18 years agoAccording to comments in main/pbx.c, it is essential that if we are going to lock
Mark Michelson [Tue, 20 Nov 2007 17:50:31 +0000 (17:50 +0000)] 
According to comments in main/pbx.c, it is essential that if we are going to lock
the conlock as well as the hints lock, it must be locked in that respective order.
In order to prevent a potential deadlock, we need to lock the conlock prior to
locking the hints lock in ast_hint_state_changed (see the call stack example on
issue #11323 for how this can happen).

(closes issue #11323, reported  by eelcob, suggestion for patch by eelcob, patch by me)

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

18 years agocloses issue #11324; break statements missing in switch cases.
Steve Murphy [Tue, 20 Nov 2007 15:22:08 +0000 (15:22 +0000)] 
closes issue #11324; break statements missing in switch cases.

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

18 years agoadded RR patch from iroot #10908, thanks.
Christian Richter [Tue, 20 Nov 2007 13:40:55 +0000 (13:40 +0000)] 
added RR patch from iroot #10908, thanks.

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

18 years agoPrint out the correct filename (features.conf) in the log message when parkpos option...
Joshua Colp [Mon, 19 Nov 2007 15:53:32 +0000 (15:53 +0000)] 
Print out the correct filename (features.conf) in the log message when parkpos options are incorrect.
(closes issue #11295)
Reported by: Laureano
Patches:
      res_features.c.patch uploaded by Laureano (license 265)

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

18 years agoClarify documentation a bit, include that a frame has to pass through the core in...
Joshua Colp [Mon, 19 Nov 2007 15:24:12 +0000 (15:24 +0000)] 
Clarify documentation a bit, include that a frame has to pass through the core in order for the Local channel optimization to happen.
(closes issue #11246)
Reported by: jon

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

18 years agoTemporarily revert revision 89325, which added md5 magic for keeping track of
Russell Bryant [Fri, 16 Nov 2007 22:26:44 +0000 (22:26 +0000)] 
Temporarily revert revision 89325, which added md5 magic for keeping track of
what build options were used.  We agreed that we should remove this before
making a 1.4 release, and then we can put it back in.  Then, we can take a
month or so to play around with it to get it how we want it.

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

18 years agoTo help combat problems where people build external modules (asterisk-addons or other...
Kevin P. Fleming [Fri, 16 Nov 2007 16:47:46 +0000 (16:47 +0000)] 
To help combat problems where people build external modules (asterisk-addons or others) and then change the build options of the Asterisk build in a way that makes the incompatible without warning, this commit introduces an MD5 signature of the important build-time options and includes that signature into modules when they are built. When the loader loads one of these modules and notices the problem, it will emit a warning to console and refuse to initialize the module, as doing so could cause the system to be unstable or even crash.

If you upgrade to this version of Asterisk, you must rebuild *all* of your modules that came from other sources before trying to run this version. If you are using Digium's G.729 binary codec module, you will need v33 or newer.

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

18 years agoMake realtime queues accessible from the QUEUE_MEMBER_COUNT function.
Mark Michelson [Fri, 16 Nov 2007 15:28:22 +0000 (15:28 +0000)] 
Make realtime queues accessible from the QUEUE_MEMBER_COUNT function.

(closes issue #11271, reported and patched by atis, with small modifications from me)

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

18 years agoStart Asterisk in Debian at a more reasonable time (since zaptel is at level 20)
Tilghman Lesher [Thu, 15 Nov 2007 18:37:38 +0000 (18:37 +0000)] 
Start Asterisk in Debian at a more reasonable time (since zaptel is at level 20)

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

18 years agoFix an uninitialized memory read found by valgrind
Tilghman Lesher [Thu, 15 Nov 2007 18:23:14 +0000 (18:23 +0000)] 
Fix an uninitialized memory read found by valgrind

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

18 years agoYet another memory corruption issue.
Tilghman Lesher [Thu, 15 Nov 2007 18:05:56 +0000 (18:05 +0000)] 
Yet another memory corruption issue.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

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

18 years agoUpdate the SLAStation application to account for the case where the SLA thread
Russell Bryant [Thu, 15 Nov 2007 17:19:28 +0000 (17:19 +0000)] 
Update the SLAStation application to account for the case where the SLA thread
has a call out to the station,  but the user has pressed a line button to answer
the call instead of picking up the handset.  If they do, the phone sends out a
new INVITE.  So, the SLAStation app must check to see if it is picking up a
ringing trunk, and ensure that the other stations stop ringing.

(reported internally, patched by me, tested by mogorman)

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

18 years agoUndoing previous commit since I realize it was wrong
Mark Michelson [Thu, 15 Nov 2007 14:57:28 +0000 (14:57 +0000)] 
Undoing previous commit since I realize it was wrong

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

18 years agoAdding a missing mutex unlock.
Mark Michelson [Thu, 15 Nov 2007 14:54:10 +0000 (14:54 +0000)] 
Adding a missing mutex unlock.

(closes issue 11256, reported and patched by ys)

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

18 years agoDon't send re-invites during pending INVITE transactions.
Olle Johansson [Thu, 15 Nov 2007 11:26:22 +0000 (11:26 +0000)] 
Don't send re-invites during pending INVITE transactions.

Patch by one47 - thanks!

Closes issue #9305

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

18 years agoImprove support for multipart messages. Code by gasparz, changes
Olle Johansson [Thu, 15 Nov 2007 11:15:09 +0000 (11:15 +0000)] 
Improve support for multipart messages. Code by gasparz, changes
by me (mostly formatting). Thanks, gasparz!

Closes issue #10947

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

18 years agoWhen a recording ends with '#', we are improperly trimming an extra 200ms from the...
Tilghman Lesher [Wed, 14 Nov 2007 23:23:58 +0000 (23:23 +0000)] 
When a recording ends with '#', we are improperly trimming an extra 200ms from the recording.
Reported by: sim
Patch by: tilghman
Closes issue #11247

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

18 years agoReturn the proper value when the srv_callback function executes properly.
Joshua Colp [Wed, 14 Nov 2007 01:15:12 +0000 (01:15 +0000)] 
Return the proper value when the srv_callback function executes properly.
(closes issue #11240)
Reported by: jtodd

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

18 years agoFix building on newer systems which require a third arg to open() when using O_CREAT.
Jason Parker [Tue, 13 Nov 2007 21:07:08 +0000 (21:07 +0000)] 
Fix building on newer systems which require a third arg to open() when using O_CREAT.

Issue 11238, reported by puzzled.

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

18 years agoRevert change from revision 67064.
Jason Parker [Tue, 13 Nov 2007 19:47:45 +0000 (19:47 +0000)] 
Revert change from revision 67064.
It is documented behavior that if a parking extension already exists while using PARKINGEXTEN,
 dialplan execution will continue.  If blind transferring to a Park with PARKINGEXTEN, you
 must keep this in mind, and handle the failure yourself.

Issue 11237, reported by jon.

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

18 years agoIf we set a value for qualify, we should actually pay attention to it, instead of...
Tilghman Lesher [Tue, 13 Nov 2007 17:34:11 +0000 (17:34 +0000)] 
If we set a value for qualify, we should actually pay attention to it, instead of overriding the value

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

18 years agoReverting commit made in revision 89205 since it is unnecessary.
Mark Michelson [Tue, 13 Nov 2007 16:02:02 +0000 (16:02 +0000)] 
Reverting commit made in revision 89205 since it is unnecessary.

Thanks to Kevin for pointing this out

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

18 years agoDebugging is running into the 16-lock limit. Increase to avoid.
Tilghman Lesher [Tue, 13 Nov 2007 13:51:53 +0000 (13:51 +0000)] 
Debugging is running into the 16-lock limit.  Increase to avoid.
(This define is only effective when debugging is turned on, so there's
no effect for most installations.)

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

18 years agoSome sanity checking for MixMonitor. If only 1 argument is given, then the args.options
Mark Michelson [Tue, 13 Nov 2007 00:56:46 +0000 (00:56 +0000)] 
Some sanity checking for MixMonitor. If only 1 argument is given, then the args.options
and args.post_process strings are uninitialized and could contain garbage. This change
handles this situation properly by only using arguments that we have parsed.

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

18 years agoFix a typo pointed out by De_Mon on #asterisk-dev
Jason Parker [Mon, 12 Nov 2007 20:46:52 +0000 (20:46 +0000)] 
Fix a typo pointed out by De_Mon on #asterisk-dev

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

18 years agoIf two config writes collide, file corruption could result. Use a mkstemp() file...
Tilghman Lesher [Mon, 12 Nov 2007 20:16:18 +0000 (20:16 +0000)] 
If two config writes collide, file corruption could result.  Use a mkstemp() file, instead.
Reported by: paravoid
Patch by: tilghman
Closes issue #10781

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

18 years agoFix two cases of memory corruption caused by background threads.
Tilghman Lesher [Mon, 12 Nov 2007 17:29:17 +0000 (17:29 +0000)] 
Fix two cases of memory corruption caused by background threads.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

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

18 years agoif we're NT and no number was dialed and overlapdial is set, we wait for the ISDN...
Christian Richter [Mon, 12 Nov 2007 11:26:48 +0000 (11:26 +0000)] 
if we're NT and no number was dialed and overlapdial is set, we wait for the ISDN timeout instead of starting our own timer. added a comment for the misdn.conf.sample for the overlapdial config option.

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

18 years agoadded restart all interfaces Restart_Indicator, to automatically send a RESTART after...
Christian Richter [Mon, 12 Nov 2007 11:23:57 +0000 (11:23 +0000)] 
added restart all interfaces Restart_Indicator, to automatically send a RESTART after the L2 of a PTP Port comes up. Also fixed some places where we have send a RELEASE without need for it.

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

18 years agofixed a state/event issue with overlapdial=yes when no extension matched. removed...
Christian Richter [Mon, 12 Nov 2007 11:13:13 +0000 (11:13 +0000)] 
fixed a state/event issue with overlapdial=yes when no extension matched. removed the general sending of a RELEASE_COMPLETE when we receive a RELEASE, this is done by mISDNuser/mISDN. This makes it possible to use asterisk-1.4 with mISDN trunk, but requires users of mISDN/mISDNuser-1.1.X to upgrade to at least mISDNuser-1.1.6 (when using the NT mode at all)

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

18 years agofixed the support for CW and therefore for the reject_cause option.
Christian Richter [Mon, 12 Nov 2007 09:57:23 +0000 (09:57 +0000)] 
fixed the support for CW and therefore for the reject_cause option.

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

18 years agoaded ntkeepcalls option, to avoid droÃpping calls when the L2 goes down on a PTP...
Christian Richter [Mon, 12 Nov 2007 09:45:36 +0000 (09:45 +0000)] 
aded ntkeepcalls option, to avoid droÃpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer.

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

18 years agoProperly say the seconds here..
Jason Parker [Thu, 8 Nov 2007 23:52:35 +0000 (23:52 +0000)] 
Properly say the seconds here..

Issue 11203, fix described by vma.

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

18 years agoRework of the commit I made yesterday to use the already built-in
Mark Michelson [Thu, 8 Nov 2007 21:00:08 +0000 (21:00 +0000)] 
Rework of the commit I made yesterday to use the already built-in
ast_uri_decode function as opposed to my home-rolled one. Also added
comments.

Thanks to oej for pointing me in the right direction

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

18 years agoAvoid warnings on load when using sample configuration files.
Jason Parker [Thu, 8 Nov 2007 18:45:15 +0000 (18:45 +0000)] 
Avoid warnings on load when using sample configuration files.

Issue 11195, patch by eliel.

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

18 years agoI made this same adjustment in trunk to fix a bug, and it makes sense to do it in...
Mark Michelson [Thu, 8 Nov 2007 16:47:23 +0000 (16:47 +0000)] 
I made this same adjustment in trunk to fix a bug, and it makes sense to do it in 1.4 as
well. If an imapfolder is specified in voicemail.conf, don't ever explicitly connect to
INBOX since it may not exist.

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

18 years agofix a glaring bug in the new SRV record handling that would cause incorrect weight...
Kevin P. Fleming [Thu, 8 Nov 2007 05:26:47 +0000 (05:26 +0000)] 
fix a glaring bug in the new SRV record handling that would cause incorrect weight sorting

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

18 years agoTypo
Tilghman Lesher [Thu, 8 Nov 2007 04:55:19 +0000 (04:55 +0000)] 
Typo

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

18 years agoDo not add a sip: to the beginning of the To URI unless needed.
Joshua Colp [Thu, 8 Nov 2007 02:26:48 +0000 (02:26 +0000)] 
Do not add a sip: to the beginning of the To URI unless needed.
(closes issue #10756)
Reported by: goestelecom

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

18 years agoImprove the devicestate logic for multiple devices. If any are available then the...
Joshua Colp [Thu, 8 Nov 2007 01:28:56 +0000 (01:28 +0000)] 
Improve the devicestate logic for multiple devices. If any are available then the extension is considered available.
(closes issue #10164)
Reported by: nic_bellamy
Patches:
      sip-hinting-svn-branch-1.4.patch uploaded by nic (license 299)

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

18 years agoAdd support for allowing one outgoing transaction. This means if a response comes...
Joshua Colp [Thu, 8 Nov 2007 01:11:25 +0000 (01:11 +0000)] 
Add support for allowing one outgoing transaction. This means if a response comes back out of order chan_sip will still handle it. I dream of a chan_sip with real transaction support.
(closes issue #10946)
Reported by: flefoll
(closes issue #10915)
Reported by: ramonpeek
(closes issue #9567)
Reported by: atca_pres

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

18 years agoIf callerid is configured in sip.conf use that for checking the presence of an extens...
Joshua Colp [Wed, 7 Nov 2007 23:53:25 +0000 (23:53 +0000)] 
If callerid is configured in sip.conf use that for checking the presence of an extension in the dialplan.
(closes issue #11185)
Reported by: spditner

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

18 years agoThe member refcount must be incremented, to avoid using it after deallocation.
Tilghman Lesher [Wed, 7 Nov 2007 23:39:37 +0000 (23:39 +0000)] 
The member refcount must be incremented, to avoid using it after deallocation.
A huge thanks go to lvl- for patiently providing the necessary valgrind output
that was necessary to finding this problem of memory corruption.
Reported by: lvl-
Patch by: tilghman
Closes issue #11174

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

18 years agoThis patch makes it possible for SIP phones to dial extensions defined with '#' chara...
Mark Michelson [Wed, 7 Nov 2007 22:40:35 +0000 (22:40 +0000)] 
This patch makes it possible for SIP phones to dial extensions defined with '#' characters
in extensions.conf AND maintain their escaped characters when forming URI's

(closes issue #10681, reported by cahen, patched by me, code review by file)

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

18 years agoIn response to 10578, I just ran 1.4 thru valgrind; some of the config leakage I...
Steve Murphy [Wed, 7 Nov 2007 21:40:28 +0000 (21:40 +0000)] 
In response to 10578, I just ran 1.4 thru valgrind; some of the config leakage I've already fixed, but it doesn't hurt to double check. I found and fixed leaks in res_jabber, cdr_tds, pbx_ael. Nothing major, tho.

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

18 years agoFixing a segfault in the manager "core show channels concise" command.
Mark Michelson [Wed, 7 Nov 2007 15:56:49 +0000 (15:56 +0000)] 
Fixing a segfault in the manager "core show channels concise" command.

(closes issue #11183, reported by arnd and patched by ys)

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

18 years agoSuppress AEL warnings on load.
Tilghman Lesher [Wed, 7 Nov 2007 04:07:49 +0000 (04:07 +0000)] 
Suppress AEL warnings on load.
Reported by: eliel
Patch by: eliel
Closes issue #11178

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

18 years agoFix init_classes() so that classes that actually do have files loaded aren't
Russell Bryant [Tue, 6 Nov 2007 20:18:49 +0000 (20:18 +0000)] 
Fix init_classes() so that classes that actually do have files loaded aren't
treated as empty, and immediately destroyed ...

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

18 years agoCorrectly set the total number of channels from a zaptel transcoder board.
Jason Parker [Tue, 6 Nov 2007 19:09:30 +0000 (19:09 +0000)] 
Correctly set the total number of channels from a zaptel transcoder board.

SPD-49, patch by Matthew Nicholson.

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

18 years agoWe went to the trouble of creating a method of tracking failed trylocks, then never...
Tilghman Lesher [Tue, 6 Nov 2007 19:09:06 +0000 (19:09 +0000)] 
We went to the trouble of creating a method of tracking failed trylocks, then never turned it on (oops).

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

18 years agoBug fixes to tdd support in zaptel.
Olle Johansson [Tue, 6 Nov 2007 18:53:37 +0000 (18:53 +0000)] 
Bug fixes to tdd support in zaptel.

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

18 years agoIf someone were to delete the files used by an existing MOH class, and then
Russell Bryant [Tue, 6 Nov 2007 18:20:07 +0000 (18:20 +0000)] 
If someone were to delete the files used by an existing MOH class, and then
issue a reload, further use of that class could result in a crash due to
dividing by zero.  This set of changes fixes up some places to prevent this
from happening.

(closes issue #10948)
Reported by: jcomellas
Patches:
      res_musiconhold_division_by_zero.patch uploaded by jcomellas (license 282)
  Additional changes added by me.

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

18 years agocloses issue #8786 - where the [catname](!) and [catname](othercat1,othercat2,.....
Steve Murphy [Tue, 6 Nov 2007 17:52:50 +0000 (17:52 +0000)] 
closes issue #8786 - where the [catname](!) and [catname](othercat1,othercat2,...) notation gets dropped across a ConfigUpdate (or any other thing that would cause a config file to be written). While I was at it, I also cleaned up some of the destroy routines to free up comments, which was not being done. Made sure the new struct I introduced is also cleaned up properly at destruction time. My code handles multiple template inclusions. Many thanks to ssokol for his patch, which, while not literally used in the final merge, served as a foundation for the fix.

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

18 years agoMake it so that if a peer is determined to be unreachable using qualify their devices...
Joshua Colp [Tue, 6 Nov 2007 17:08:05 +0000 (17:08 +0000)] 
Make it so that if a peer is determined to be unreachable using qualify their devicestate will report back unavailable.
(closes issue #11006)
Reported by: pj

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

18 years agoFix improbable but possible memory leaks in chan_zap.
Joshua Colp [Tue, 6 Nov 2007 16:24:56 +0000 (16:24 +0000)] 
Fix improbable but possible memory leaks in chan_zap.
(closes issue #11166)
Reported by: eliel
Patches:
      chan_zap.c.patch uploaded by eliel (license 64)

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

18 years agoRemove some checks to see if locks are initialized from the non-DEBUG_THREADS
Russell Bryant [Tue, 6 Nov 2007 13:50:15 +0000 (13:50 +0000)] 
Remove some checks to see if locks are initialized from the non-DEBUG_THREADS
versions of the lock routines.  These are incorrect for a number of reasons:
 - It breaks the build on mac.
 - If there is a problem with locks not getting initialized, then the proper
   fix is to find that place and fix the code so that it does get initialized.
 - If additional debug code is needed to help find the problem areas, then this
   type of things should _only_ be put in the DEBUG_THREADS wrappers.

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

18 years agoupdate comment to match the state of the code
Kevin P. Fleming [Tue, 6 Nov 2007 02:52:05 +0000 (02:52 +0000)] 
update comment to match the state of the code

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

18 years agoReworked deadlock avoidance in __ast_read. Restored audio to
Mark Michelson [Mon, 5 Nov 2007 23:29:29 +0000 (23:29 +0000)] 
Reworked deadlock avoidance in __ast_read. Restored audio to
callback agents.

(closes issue #11071, reported by callguy, patched by me, tested by callguy and Ted Brown)

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

18 years agoAfter seeing crashes related to channel variables, I went looking around at the
Russell Bryant [Mon, 5 Nov 2007 22:07:54 +0000 (22:07 +0000)] 
After seeing crashes related to channel variables, I went looking around at the
ways that channel variables are handled.  In general, they were not handled in
a thread-safe way.  The channel _must_ be locked when reading or writing from/to
the channel variable list.

What I have done to improve this situation is to make pbx_builtin_setvar_helper()
and friends lock the channel when doing their thing.  Asterisk API calls almost
all lock the channel for you as necessary, but this family of functions did not.

(closes issue #10923, reported by atis)
(closes issue #11159, reported by 850t)

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

18 years agoWhen traversing the list of channel variables here in transmit_invite(), the
Russell Bryant [Mon, 5 Nov 2007 21:33:56 +0000 (21:33 +0000)] 
When traversing the list of channel variables here in transmit_invite(), the
asterisk channel must be locked, as this data may change at any time.

(I have seen numerous reports of crashes related to the handling of channel
variables.  There are a couple of issues on the bug tracker related to it,
but it has also been noted on IRC and mailing lists.  So, I am finding and
fixing some places where channel variables are handled improperly.)

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

18 years agoFix up some indentation.
Russell Bryant [Mon, 5 Nov 2007 21:21:39 +0000 (21:21 +0000)] 
Fix up some indentation.

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

18 years agoMerge changes from asterisk/team/kpfleming/SRV-priority-handling
Russell Bryant [Mon, 5 Nov 2007 20:40:01 +0000 (20:40 +0000)] 
Merge changes from asterisk/team/kpfleming/SRV-priority-handling

Previously, the SRV record support in Asterisk was broken.  There was no
guarantee on what record Asterisk would choose to actually use.  This set of
changes improves the situation by ensuring that Asterisk will choose the
highest priority record.

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

18 years agoMerge the last bit of changes from asterisk/team/russell/readq-1.4
Russell Bryant [Mon, 5 Nov 2007 20:11:04 +0000 (20:11 +0000)] 
Merge the last bit of changes from asterisk/team/russell/readq-1.4

The issue here is that the channel frame readq handling got broken when the
code was converted to use the linked list macros.  It caused corruption of the
list head and tail pointers.  So, I fixed up the usage of the linked list
macros and in passing, simplified the code.  I also documented what the code
is doing, as it was a bit difficult to figure out at first.

This bug showed itself with crashes showing messed up head/tail pointers for
the readq.  However, there are a couple of crashes that aren't quite as obvious,
but I think may be related.  So, if your bug gets closed by this commit, but
you still have a problem, please reopen or create a new bug report.

(closes issue #10936)
(closes issue #10595)
(closes issue #10368)
(closes issue #11084)
(closes issue #10040)
(closes issue #10840)

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

18 years agoIf a SIP channel is put on hold multiple times do not keep incrementing the onHold...
Joshua Colp [Mon, 5 Nov 2007 18:47:13 +0000 (18:47 +0000)] 
If a SIP channel is put on hold multiple times do not keep incrementing the onHold value.
(closes issue #11085)
Reported by: francesco_r
Tested by: blitzrage
(closes issue #10474)
Reported by: acennami

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

18 years agoFix up datastore handling in ast_do_masquerade(). The code is intended to move
Russell Bryant [Mon, 5 Nov 2007 17:46:02 +0000 (17:46 +0000)] 
Fix up datastore handling in ast_do_masquerade().  The code is intended to move
any channel datastores from the old channel to the new one.  However, it did
not use the linked list macros properly to accomplish the task.  The existing
code would only work if there was only a single datastore on the old channel.

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

18 years agoMake sure we destroy the config structure on configuration failure.
Jason Parker [Mon, 5 Nov 2007 17:19:41 +0000 (17:19 +0000)] 
Make sure we destroy the config structure on configuration failure.

Issue 11163, patch by eliel.

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

18 years agoDon't check used pooled connections for connection status, as it will cause issues...
Tilghman Lesher [Mon, 5 Nov 2007 16:20:13 +0000 (16:20 +0000)] 
Don't check used pooled connections for connection status, as it will cause issues for prepared queries.
Reported by: Nick Gorham (via -dev list)
Patch by: tilghman

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

18 years agoRename ast_string_field_free_pool to ast_string_field_free_memory,
Luigi Rizzo [Sun, 4 Nov 2007 22:38:13 +0000 (22:38 +0000)] 
Rename ast_string_field_free_pool to ast_string_field_free_memory,
and ast_string_field_free_all to ast_string_field_reset_all
to avoid misuse (due to too similar names and an error in
documentation). Fix two related memory leaks in app_meetme.

No need to merge to trunk, different fix already applied there.
Not applicable to 1.2

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

18 years agoMake subscribecontext behave as advertised. It will now look for the presence of...
Joshua Colp [Fri, 2 Nov 2007 20:49:45 +0000 (20:49 +0000)] 
Make subscribecontext behave as advertised. It will now look for the presence of a hint in the given context (be it subscribecontext or context).
(closes issue #10702)
Reported by: slavon

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

18 years agoIf an INFO request within a dialog is received with a content length of 0 simply...
Joshua Colp [Fri, 2 Nov 2007 20:20:21 +0000 (20:20 +0000)] 
If an INFO request within a dialog is received with a content length of 0 simply send back a 200 OK. It is valid to do this and the remote side is probably using it to make sure the signalling is still alive.
(closes issue #5747)
Reported by: chandi
Patches:
      infofix-81430-1.patch uploaded by IgorG (license 20)

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

18 years agoWe need to make sure to specify a language to ast_fileexists, otherwise it may fail...
Jason Parker [Fri, 2 Nov 2007 16:51:08 +0000 (16:51 +0000)] 
We need to make sure to specify a language to ast_fileexists, otherwise it may fail for anything besides en

Issue 11147, fix discovered by both citats and myself (independently), with input from Corydon76

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

18 years agoFix build on Solaris
Tilghman Lesher [Fri, 2 Nov 2007 13:03:03 +0000 (13:03 +0000)] 
Fix build on Solaris
Reported by: snuffy
Patch by: ys
Closes issue #11143

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

18 years agoAdd some notes on using valgrind
Tilghman Lesher [Thu, 1 Nov 2007 17:17:56 +0000 (17:17 +0000)] 
Add some notes on using valgrind

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

18 years agoMake sure we set the poll fds to NULL after free()ing it.
Jason Parker [Thu, 1 Nov 2007 16:21:22 +0000 (16:21 +0000)] 
Make sure we set the poll fds to NULL after free()ing it.

Part of issue 11017, patch by tzafrir.

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

18 years agoFix up commit for my Zap channel with spies in Meetme fix. (thanks Tony Mountifield!)
Joshua Colp [Thu, 1 Nov 2007 13:27:37 +0000 (13:27 +0000)] 
Fix up commit for my Zap channel with spies in Meetme fix. (thanks Tony Mountifield!)

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

18 years agoIf a Zap channel contains a spy or a spy is added take it out of the conference in...
Joshua Colp [Thu, 1 Nov 2007 01:53:55 +0000 (01:53 +0000)] 
If a Zap channel contains a spy or a spy is added take it out of the conference in kernel space and make it go through Asterisk so the spy gets audio from both sides.
(closes issue #10060)
Reported by: mparker

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

18 years agoMake sure we free some allocated memory before returning.
Jason Parker [Wed, 31 Oct 2007 21:23:11 +0000 (21:23 +0000)] 
Make sure we free some allocated memory before returning.

Issue 11131, patch by eliel.

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

18 years agoDon't try to allocate memory that we're just going to re-allocate later anyways.
Jason Parker [Wed, 31 Oct 2007 21:16:20 +0000 (21:16 +0000)] 
Don't try to allocate memory that we're just going to re-allocate later anyways.

Issue 11130, patch by eliel.

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

18 years agoCreate samples for ALL of the available options in asterisk.conf
Tilghman Lesher [Wed, 31 Oct 2007 18:03:53 +0000 (18:03 +0000)] 
Create samples for ALL of the available options in asterisk.conf

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

18 years agocloses issue #11108 -- where the 'dialplan save' cli command saves a file where the...
Steve Murphy [Wed, 31 Oct 2007 17:49:39 +0000 (17:49 +0000)] 
closes issue #11108 -- where the 'dialplan save' cli command saves a file where the semicolon is not escaped. Fixed this; User also wanted comments to be preserved across dialplan save, but this is impossible at this point in time, because comments are not stored in the dialplan. They are 'compiled' out of extensions.conf. The only way to preserve those comments is to use the config file reader/writer that the GUI uses to allow online user edits. extensions.conf is first and foremost, a config file, and is read in by the normal config-file reading routines. Then, it is processed into a dialplan (context/exten structs).

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

18 years agoIncluded some verbage in the check_includes func, to inform the user that included...
Steve Murphy [Wed, 31 Oct 2007 03:51:52 +0000 (03:51 +0000)] 
Included some verbage in the check_includes func, to inform the user that included contexts that have no match in the AEL, might be OK, as AEL cannot check in the extensions.conf or the in-memory contexts, as they may not be there at the time of the check.

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

18 years agoFix for uninitialized mutexes on *BSD
Tilghman Lesher [Tue, 30 Oct 2007 23:02:22 +0000 (23:02 +0000)] 
Fix for uninitialized mutexes on *BSD
Reported by: ys
Fixed by: ys
Closes issue #11116

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

18 years agoMerge the changes from team/russell/iax2_poke_fix and iax2-poke-fix-trunk
Russell Bryant [Tue, 30 Oct 2007 21:19:09 +0000 (21:19 +0000)] 
Merge the changes from team/russell/iax2_poke_fix and iax2-poke-fix-trunk

There was a race condition related to the handling of POKEing peers.  Essentially,
a reference to a peer is held by the scheduler when there are pending callbacks,
but the reference count didn't reflect it.  So, it was possible for a peer to hit
a reference count of zero and have its destructor begin to be called at the same
time that the scheduler thread ran a POKE related callback.  If that happened,
a crash would likely occur.

(closes issue #11082, closes issue #11094)

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

18 years agoOnly try to clean out h323/ if the h323/Makefile exists.
Jason Parker [Tue, 30 Oct 2007 20:29:41 +0000 (20:29 +0000)] 
Only try to clean out h323/ if the h323/Makefile exists.

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

18 years agoAdd two more checks before printing out a warning message about bridging. If either...
Joshua Colp [Tue, 30 Oct 2007 16:13:39 +0000 (16:13 +0000)] 
Add two more checks before printing out a warning message about bridging. If either channel has hungup of course the bridge will have failed.
(closes issue #10009)
Reported by: dimas

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

18 years agoFix build of editline on Solaris.
Jason Parker [Tue, 30 Oct 2007 15:45:35 +0000 (15:45 +0000)] 
Fix build of editline on Solaris.

Issue 11113, patch by snuffy.

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

18 years agoReturn 1.4 to a state where it builds. Changing the arguments to a function and not...
Joshua Colp [Tue, 30 Oct 2007 15:10:13 +0000 (15:10 +0000)] 
Return 1.4 to a state where it builds. Changing the arguments to a function and not changing where they are used is bad, mmmk?

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

18 years ago Fix issue where the recorded name wasn't getting removed correctly.
BJ Weschke [Tue, 30 Oct 2007 14:31:45 +0000 (14:31 +0000)] 
 Fix issue where the recorded name wasn't getting removed correctly.
 (closes issue #11115)
 Reported by: davevg
 Patches:
    followme-v3.diff

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

18 years agomissed one directory
Kevin P. Fleming [Mon, 29 Oct 2007 22:13:51 +0000 (22:13 +0000)] 
missed one directory

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

18 years agoclean up (and ignore) assembler and preprocessor intermediate files if any are create...
Kevin P. Fleming [Mon, 29 Oct 2007 22:12:16 +0000 (22:12 +0000)] 
clean up (and ignore) assembler and preprocessor intermediate files if any are created during the build

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

18 years agodon't put '-pipe' into ASTCFLAGS if '-save-temps' is already there (used when debuggi...
Kevin P. Fleming [Mon, 29 Oct 2007 22:04:29 +0000 (22:04 +0000)] 
don't put '-pipe' into ASTCFLAGS if '-save-temps' is already there (used when debugging preprocessor issues) because the compiler will whine about each compile command

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

18 years agoRemoving a completely unnecessary quota check from IMAP code.
Mark Michelson [Mon, 29 Oct 2007 21:06:31 +0000 (21:06 +0000)] 
Removing a completely unnecessary quota check from IMAP code.

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

18 years agoAdd some more details to the output of "core show locks". When a thread
Russell Bryant [Mon, 29 Oct 2007 20:22:07 +0000 (20:22 +0000)] 
Add some more details to the output of "core show locks".  When a thread
is waiting for a lock, this will now show the details about who currently
has it locked.
(inspired by issue #11100)

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

18 years agoRemove a lock that doesn't make any sense. The regions lock needs to be held
Russell Bryant [Mon, 29 Oct 2007 19:21:06 +0000 (19:21 +0000)] 
Remove a lock that doesn't make any sense.  The regions lock needs to be held
when traversing the list of allocated chunks so that they can be printed out
to the CLI.
(Thanks to eliel on #asterisk-dev for pointing this out!)

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

18 years agoFix issue where if both sides of the dialog cancelled the dialog at the same time...
Joshua Colp [Mon, 29 Oct 2007 17:20:28 +0000 (17:20 +0000)] 
Fix issue where if both sides of the dialog cancelled the dialog at the same time chan_sip could kepe retransmitting a response for no reason.
(closes issue #9566)
Reported by: atca_pres
Patches:
      bug9566.patch uploaded by oej

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