]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoFixed segfault when no misdn.conf exists, reported by Igor Neves, thanks.
Christian Richter [Thu, 9 Nov 2006 13:09:10 +0000 (13:09 +0000)] 
Fixed segfault when no misdn.conf exists, reported by Igor Neves, thanks.

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

18 years agoDestroy the proper dialog...
Olle Johansson [Wed, 8 Nov 2006 07:40:38 +0000 (07:40 +0000)] 
Destroy the proper dialog...

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

18 years agoRemove dialog properly at unload of module (rizzo)
Olle Johansson [Wed, 8 Nov 2006 07:31:34 +0000 (07:31 +0000)] 
Remove dialog properly at unload of module (rizzo)

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

18 years agoThis mod for bug_7506, to make the manager code output the proper event
Steve Murphy [Tue, 7 Nov 2006 18:22:01 +0000 (18:22 +0000)] 
This mod for bug_7506, to make the manager code output the proper event

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

18 years agoDon't ever reply to an ACK. (Issue 8265)
Olle Johansson [Tue, 7 Nov 2006 13:02:30 +0000 (13:02 +0000)] 
Don't ever reply to an ACK. (Issue 8265)

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

18 years agoIf random order is enabled for files mode music on hold, set a random initial
Russell Bryant [Tue, 7 Nov 2006 01:22:58 +0000 (01:22 +0000)] 
If random order is enabled for files mode music on hold, set a random initial
position, instead of always starting at the first file, and doing the random
operation only when switching to the next file.
(bug reported by John Lange on the asterisk-dev mailing list)

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

18 years agoignore files in a music on hold directory that begin with '.'
Russell Bryant [Thu, 2 Nov 2006 17:47:56 +0000 (17:47 +0000)] 
ignore files in a music on hold directory that begin with '.'
(issue #8249, cboie)

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

18 years agoread then commit.... better fix for bug 8083 as
Matt O'Gorman [Thu, 2 Nov 2006 17:12:56 +0000 (17:12 +0000)] 
read then commit.... better fix for bug 8083 as
suggested by my peers

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

18 years agoRepeat after me oej: I will at least make sure my code compiles before I commit it.
Joshua Colp [Thu, 2 Nov 2006 16:02:27 +0000 (16:02 +0000)] 
Repeat after me oej: I will at least make sure my code compiles before I commit it.

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

18 years agoDon't overwrite flags in the packet
Olle Johansson [Thu, 2 Nov 2006 15:15:06 +0000 (15:15 +0000)] 
Don't overwrite flags in the packet

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

18 years agoAdd a missing call to free before returning in an error condition
Russell Bryant [Thu, 2 Nov 2006 13:55:39 +0000 (13:55 +0000)] 
Add a missing call to free before returning in an error condition
(issue #8268, mrness)

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

18 years agofix for bug #8083 crash caused by double free on m->msg
Matt O'Gorman [Wed, 1 Nov 2006 21:20:35 +0000 (21:20 +0000)] 
fix for bug #8083 crash caused by double free on m->msg

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

18 years agoa fix for bug 8251; the var_val needs to accept longer strings or mass confusion...
Steve Murphy [Wed, 1 Nov 2006 19:52:43 +0000 (19:52 +0000)] 
a fix for bug 8251; the var_val needs to accept longer strings or mass confusion and a lot of lost time is the result

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

18 years agosoxmix and Asterisk expect different file extensions for certain formats. This
Russell Bryant [Wed, 1 Nov 2006 18:24:17 +0000 (18:24 +0000)] 
soxmix and Asterisk expect different file extensions for certain formats.  This
was already handled for the wav49 format.  However, it was not handled for
ulaw and alaw.  I fixed this in such a way that using the alternate extensions
for ulaw and alaw will only happen if we know we're calling soxmix, and not a
custom script defined using the MONITOR_EXEC variable.  The wav49 processing
was left alone so that external scripts will see no behavior change.
(issue #7550, reported by mnicholson, proposed patch by junky, committed fix
is a bit different)

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

18 years agoMove thread-unsafe initializer to the module loading code; add the
Tilghman Lesher [Tue, 31 Oct 2006 15:46:04 +0000 (15:46 +0000)] 
Move thread-unsafe initializer to the module loading code; add the
corresponding function to the module unload to fix a memory leak.

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

18 years agoAnother try to fix ;rport NAT traversal support (issue #7473)
Olle Johansson [Tue, 31 Oct 2006 09:49:46 +0000 (09:49 +0000)] 
Another try to fix ;rport NAT traversal support (issue #7473)

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

18 years agoIf peer fails ACL check, fail the REGISTER attempt
Olle Johansson [Tue, 31 Oct 2006 09:13:34 +0000 (09:13 +0000)] 
If peer fails ACL check, fail the REGISTER attempt

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

18 years agoOn the other hand, we already copy the NAT flags... Reverting.
Olle Johansson [Tue, 31 Oct 2006 09:03:37 +0000 (09:03 +0000)] 
On the other hand, we already copy the NAT flags... Reverting.

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

18 years agoIssue 7473 - support ;rport on REGISTER requests too.
Olle Johansson [Tue, 31 Oct 2006 08:52:35 +0000 (08:52 +0000)] 
Issue 7473 - support ;rport on REGISTER requests too.

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

18 years agoWhen handling the case where the hostname is just an IPV4 numeric address,
Russell Bryant [Tue, 31 Oct 2006 06:18:36 +0000 (06:18 +0000)] 
When handling the case where the hostname is just an IPV4 numeric address,
be sure to set the address type.  (issue #8247, alexr)

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

18 years agofix some copy/paste bugs in the checking of arguments for the
Russell Bryant [Tue, 31 Oct 2006 06:13:09 +0000 (06:13 +0000)] 
fix some copy/paste bugs in the checking of arguments for the
"control stream file" AGI command (issue #8255, mnicholson)

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

18 years agoBind rtcp to proper IP address
Olle Johansson [Mon, 30 Oct 2006 16:00:57 +0000 (16:00 +0000)] 
Bind rtcp to proper IP address

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

18 years agoIssue #7869 - Stop sending 302 redirect when not getting an answer...
Olle Johansson [Sun, 29 Oct 2006 19:28:18 +0000 (19:28 +0000)] 
Issue #7869 - Stop sending 302 redirect when not getting an answer...

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

18 years agoissue #7608: Notifications with wrong content-type. Reported by jsiddall.
Olle Johansson [Sun, 29 Oct 2006 19:00:27 +0000 (19:00 +0000)] 
issue #7608: Notifications with wrong content-type. Reported by jsiddall.

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

18 years agoWe should always be using _exit() after a fork() or vfork() instead of exit().
Russell Bryant [Fri, 27 Oct 2006 17:36:07 +0000 (17:36 +0000)] 
We should always be using _exit() after a fork() or vfork() instead of exit().
This is because exit() does some extra cleanup which in some implementations
of vfork(), for example, can actually modify the state of the parent process,
causing very weird bugs or crashes.  (issue #7971, Nick Gavrikov)

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

18 years agofixed a bug which caused chan_misdn to try to allocate 2 times the same channel on...
Christian Richter [Fri, 27 Oct 2006 09:24:01 +0000 (09:24 +0000)] 
fixed a bug which caused chan_misdn to try to allocate 2 times the same channel on high load, which then caused instability of mISDN. removed a useless function from isdn_lib.c

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

18 years agoIssue #7240, by mistake only committed to trunk (now 1.4), reported by
Olle Johansson [Thu, 26 Oct 2006 20:06:55 +0000 (20:06 +0000)] 
Issue #7240, by mistake only committed to trunk (now 1.4), reported by
edgreenberg in Issue #7966. Thanks Ed!

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

18 years agooops - somebody forgot to change this - long ago, probably.
Jason Parker [Thu, 26 Oct 2006 17:47:52 +0000 (17:47 +0000)] 
oops - somebody forgot to change this - long ago, probably.

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

18 years agoRemove a useless ast_mutex_unlock.
Jason Parker [Thu, 26 Oct 2006 17:08:40 +0000 (17:08 +0000)] 
Remove a useless ast_mutex_unlock.
Issue #8186, patch by anthonyl (fix suggested by benh).

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

18 years agoWorking to resolve #7608 - adding debug output
Olle Johansson [Wed, 25 Oct 2006 19:28:48 +0000 (19:28 +0000)] 
Working to resolve #7608 - adding debug output

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

18 years agoFix the attack shield for 1.2 too. REFER and NOTIFY can create dialogs
Olle Johansson [Wed, 25 Oct 2006 15:49:29 +0000 (15:49 +0000)] 
Fix the attack shield for 1.2 too. REFER and NOTIFY can create dialogs
in the world of Asterisk.

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

18 years agoadded nttimeout option to configure wether we disconnect calls on NT timeouts or...
Christian Richter [Wed, 25 Oct 2006 08:41:59 +0000 (08:41 +0000)] 
added nttimeout option to configure wether we disconnect calls on NT timeouts or not during an overlapdial session

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

18 years agoDon't leak memory mmmk?
Joshua Colp [Mon, 23 Oct 2006 00:25:28 +0000 (00:25 +0000)] 
Don't leak memory mmmk?

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

18 years agofixed issue, that if chan_misdn is loaded and couldn't be initialized it would cause...
Christian Richter [Sat, 21 Oct 2006 12:35:13 +0000 (12:35 +0000)] 
fixed issue, that if chan_misdn is loaded and couldn't be initialized it would cause a segfault after 'reload'. Reported by Drew/Matt thx.

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

18 years agoRespect language selection when seeing if the file exists (issue #8178 reported by...
Joshua Colp [Thu, 19 Oct 2006 17:16:37 +0000 (17:16 +0000)] 
Respect language selection when seeing if the file exists (issue #8178 reported by mnicholson)

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

18 years agoDon't create a "real" pvt structure for requests that shouldn't be able to create...
Joshua Colp [Tue, 17 Oct 2006 20:37:17 +0000 (20:37 +0000)] 
Don't create a "real" pvt structure for requests that shouldn't be able to create one. Instead use a temporary pvt and fill it with enough information so we can send a reply.

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

18 years agoFix an integer signedness problem.
Jason Parker [Tue, 17 Oct 2006 17:50:36 +0000 (17:50 +0000)] 
Fix an integer signedness problem.

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

18 years agoprovide licensing language for IAXy firmware file
Kevin P. Fleming [Tue, 17 Oct 2006 17:22:01 +0000 (17:22 +0000)] 
provide licensing language for IAXy firmware file

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

18 years agoAfter some research, we realized that the default behaviour since a long
Olle Johansson [Tue, 17 Oct 2006 15:50:32 +0000 (15:50 +0000)] 
After some research, we realized that the default behaviour since a long
time was doing the right thing, even though the change optimized a bit
and removed a lot of potential risks.

Conclusion: No need for a configuration option at all.

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

18 years agoUse responses rather then replies even though they mean the same thing.
Joshua Colp [Mon, 16 Oct 2006 19:59:54 +0000 (19:59 +0000)] 
Use responses rather then replies even though they mean the same thing.

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

18 years agoAdd 'ignoreoodreplies' option which will not create a pvt structure on a SIP response...
Joshua Colp [Mon, 16 Oct 2006 19:28:18 +0000 (19:28 +0000)] 
Add 'ignoreoodreplies' option which will not create a pvt structure on a SIP response but instead basically drop it.

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

18 years agoMade a small update to solve bug 8128; The switch-case fallthru goto to a pattern...
Steve Murphy [Sat, 14 Oct 2006 00:16:58 +0000 (00:16 +0000)] 
Made a small update to solve bug 8128; The switch-case fallthru goto to a pattern extension needed to resolved the wildcards to an appropriate digit for extension matching to work

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

18 years agodon't drop the entire permit/deny list when an attempt is made to add an invalid...
Kevin P. Fleming [Fri, 13 Oct 2006 22:57:42 +0000 (22:57 +0000)] 
don't drop the entire permit/deny list when an attempt is made to add an invalid entry (BE-92)

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

18 years agoavoiding warning, fixing potential bug (backported from 1.2)
Christian Richter [Fri, 13 Oct 2006 19:27:22 +0000 (19:27 +0000)] 
avoiding warning, fixing potential bug (backported from 1.2)

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

18 years agoTurn on volume adjustment if it needs to be on (issue #8136 reported by mnicholson)
Joshua Colp [Fri, 13 Oct 2006 17:01:22 +0000 (17:01 +0000)] 
Turn on volume adjustment if it needs to be on (issue #8136 reported by mnicholson)

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

18 years agowhen sending a call to a peer, use the proper socket if we have multiple bindings...
Kevin P. Fleming [Fri, 13 Oct 2006 16:18:08 +0000 (16:18 +0000)] 
when sending a call to a peer, use the proper socket if we have multiple bindings (reported on asterisk-dev)

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

18 years agoPass the right value to usleep for sleeping, and always add the background refresh...
Joshua Colp [Fri, 13 Oct 2006 15:49:53 +0000 (15:49 +0000)] 
Pass the right value to usleep for sleeping, and always add the background refresh item back into the scheduler if enabled since it is deleted during reload. (issue #8142 reported by p_lindheimer)

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

18 years agofixed some echocandisable issues when bridged. this caused a kernel panic sometimes...
Christian Richter [Fri, 13 Oct 2006 13:11:13 +0000 (13:11 +0000)] 
fixed some echocandisable issues when bridged. this caused a kernel panic sometimes..also some minor formatting fixes

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

18 years agofixed issue, that the hangupcause got a wrong isdn cause at RELEASE_COMPLETE
Christian Richter [Fri, 13 Oct 2006 07:40:07 +0000 (07:40 +0000)] 
fixed issue, that the hangupcause got a wrong isdn cause at RELEASE_COMPLETE

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

18 years agoensure that IAX2 and SIP sockets allow UDP fragmentation when running on Linux (thank...
Kevin P. Fleming [Thu, 12 Oct 2006 18:31:26 +0000 (18:31 +0000)] 
ensure that IAX2 and SIP sockets allow UDP fragmentation when running on Linux (thanks to Brian Candler on the asterisk-dev list for the tip)

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

18 years ago(re)added support of dynamical enabling hdlc on bchannels
Christian Richter [Tue, 10 Oct 2006 13:34:33 +0000 (13:34 +0000)] 
(re)added support of dynamical enabling hdlc on bchannels

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

18 years agoIssue #8101 - wrong parameter for screening in remote-party-id
Olle Johansson [Mon, 9 Oct 2006 14:36:24 +0000 (14:36 +0000)] 
Issue #8101 - wrong parameter for screening in remote-party-id

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

18 years agoEven more frames to treat as though the remote side disappeared (issue #8097 reported...
Joshua Colp [Fri, 6 Oct 2006 16:52:14 +0000 (16:52 +0000)] 
Even more frames to treat as though the remote side disappeared (issue #8097 reported by eldadran)

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

18 years agoTreat busy control frames as hangup in the file streaming core (issue #8097 reported...
Joshua Colp [Thu, 5 Oct 2006 19:55:41 +0000 (19:55 +0000)] 
Treat busy control frames as hangup in the file streaming core (issue #8097 reported by eldadran)

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

18 years agofixed segfault which happens during hold/transfer action
Christian Richter [Thu, 5 Oct 2006 10:02:38 +0000 (10:02 +0000)] 
fixed segfault which happens during hold/transfer action

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

18 years agofix Polycom presence notification again
Kevin P. Fleming [Thu, 5 Oct 2006 01:27:57 +0000 (01:27 +0000)] 
fix Polycom presence notification again

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

18 years agoremove workaround for old Polycom firmware SUBSCRIBE requests
Kevin P. Fleming [Wed, 4 Oct 2006 21:15:29 +0000 (21:15 +0000)] 
remove workaround for old Polycom firmware SUBSCRIBE requests
add workaround for new Polycom firmware SUBSCRIBE requests (bug is known to exist in 2.0.1 firmware)

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

18 years agoFor bug 7776, I have inserted a warning about Macro nesting vs. stack limitations
Steve Murphy [Wed, 4 Oct 2006 16:02:22 +0000 (16:02 +0000)] 
For bug 7776, I have inserted a warning about Macro nesting vs. stack limitations

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

18 years agoif INFORMATION Message come with keypad instead of called party number, we just use...
Christian Richter [Wed, 4 Oct 2006 15:26:59 +0000 (15:26 +0000)] 
if INFORMATION Message come with keypad instead of called party number, we just use the keypad as called party number.

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

18 years agoadded the option 'reject_cause' to make it possible to set the RELEASE_COMPLETE ...
Christian Richter [Wed, 4 Oct 2006 15:13:58 +0000 (15:13 +0000)] 
added the option 'reject_cause' to make it possible to set the RELEASE_COMPLETE - cause on the 3. incoming PMP channel, which is automatically rejected because chan_misdn does not support that kind of callwaiting. Therefore chan_misdn supports now 3 incoming channels on a PMP BRI Port. misdn_lib_get_free_bc now gets the info if the requested channel is incoming or outgoing to make the 3. channel possible

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

18 years agofix a logic error in my previous fix to the queue reload code
Kevin P. Fleming [Tue, 3 Oct 2006 20:14:13 +0000 (20:14 +0000)] 
fix a logic error in my previous fix to the queue reload code

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

18 years agoChange the fd on the I/O context in case it changed during the reload, which is indee...
Joshua Colp [Mon, 2 Oct 2006 20:07:59 +0000 (20:07 +0000)] 
Change the fd on the I/O context in case it changed during the reload, which is indeed possible. (issue #7943 reported by eclubb)

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

18 years agoWe should be using $AST_SBIN instead of hardcoding the path for the error message...
Joshua Colp [Mon, 2 Oct 2006 19:39:59 +0000 (19:39 +0000)] 
We should be using $AST_SBIN instead of hardcoding the path for the error message (issue #7942 reported by eclubb)

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

18 years agoShrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941...
Joshua Colp [Mon, 2 Oct 2006 17:22:27 +0000 (17:22 +0000)] 
Shrink when current_ioc is unused. It is set to -1 when unused, not 0. (issue #7941 reported by eclubb)

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

18 years agofixed the hold/retrieve/transfer issues, removed a useless bc field, added setting...
Christian Richter [Mon, 2 Oct 2006 13:28:14 +0000 (13:28 +0000)] 
fixed the hold/retrieve/transfer issues, removed a useless bc field, added setting of frame.delivery fields, some minor code cleanups

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

18 years agoFix the name of the "eventmemberstatus" option in the sample queues.conf
Russell Bryant [Sun, 1 Oct 2006 15:19:23 +0000 (15:19 +0000)] 
Fix the name of the "eventmemberstatus" option in the sample queues.conf
(issue #8065, adamg)

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

18 years agoproper fix for ast_group_t change
Kevin P. Fleming [Fri, 29 Sep 2006 13:44:12 +0000 (13:44 +0000)] 
proper fix for ast_group_t change

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

18 years agoPut in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
Joshua Colp [Thu, 28 Sep 2006 18:00:30 +0000 (18:00 +0000)] 
Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)

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

18 years agofix buggy (and overly complex) loop used during reload of app_queue for static member...
Kevin P. Fleming [Thu, 28 Sep 2006 17:31:57 +0000 (17:31 +0000)] 
fix buggy (and overly complex) loop used during reload of app_queue for static member list updating

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

18 years ago app_queue is comparing the device names incorrectly while checking their statuses...
BJ Weschke [Thu, 28 Sep 2006 16:37:15 +0000 (16:37 +0000)] 
 app_queue is comparing the device names incorrectly while checking their statuses. It's internal list of interfaces includes the dial string, while the argument passed to this function does not have the dial string (/n for a local channel). This causes it to ignore the device state changes because it thinks it belongs to none of its members. (#8040 reported and patch by tim_ringenbach)

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

18 years agoeliminate compiler warning introduced by recent changes
Kevin P. Fleming [Thu, 28 Sep 2006 16:32:44 +0000 (16:32 +0000)] 
eliminate compiler warning introduced by recent changes

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

18 years agoStop the stream after waitstream returns so that our formats get restored. (issue...
Joshua Colp [Thu, 28 Sep 2006 16:13:55 +0000 (16:13 +0000)] 
Stop the stream after waitstream returns so that our formats get restored. (issue #7370 reported by kryptolus)

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

18 years ago Fix race condion crash with get_member_status (#7864 - tim_ringenbach reported and...
BJ Weschke [Thu, 28 Sep 2006 15:18:05 +0000 (15:18 +0000)] 
 Fix race condion crash with get_member_status (#7864 - tim_ringenbach reported and patched)

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

18 years agoAvoid inability to lock directory log message by creating the directory ahead of...
Tilghman Lesher [Wed, 27 Sep 2006 20:20:35 +0000 (20:20 +0000)] 
Avoid inability to lock directory log message by creating the directory ahead of time. (Issue 7631)

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

18 years agoPlayback() wasn't setting PLAYBACKSTATUS under several circumstances.
Jason Parker [Wed, 27 Sep 2006 19:35:09 +0000 (19:35 +0000)] 
Playback() wasn't setting PLAYBACKSTATUS under several circumstances.
Playback() returns -1 on missing args - so should Background()

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

18 years agoFix a problem that occurred if a user entered a digit that matched a bridge
Russell Bryant [Wed, 27 Sep 2006 16:54:30 +0000 (16:54 +0000)] 
Fix a problem that occurred if a user entered a digit that matched a bridge
feature that was configured using multiple digits, and the digit that was
pressed timed out in the feature digit timeout period.  For example, if blind
transfer is configured as '##', and a user presses just '#'.  In this situation,
the call would lock up and no longer pass any frames.
(issue #7977 reported by festr, and issue #7982 reported by michaels and
 valuable input provided by mneuhauser and kuj.  Fixed by me, with testing help
 and peer review from Joshua Colp).

There are a couple of issues involved in this fix:

1) When ast_generic_bridge determines that there has been a timeout, it returned
   AST_BRIDGE_RETRY.  Then, when ast_channel_bridge gets this result, it calls
   ast_generic_bridge over again with the same timestamp for the next event.
   This results in an endless loop of nothing until the call is terminated.
   This is resolved by simply changing ast_generic_bridge to return
   AST_BRIDGE_COMPLETE when it sees a timeout.

2) I also changed ast_channel_bridge such that if in the process of calculating
   the time until the next event, it knows a timeout has already occured, to
   immediately return AST_BRIDGE_COMPLETE instead of attempting to bridge the
   channels anyway.

3) In the process of testing the previous two changes, I ran into a problem in
   res_features where ast_channel_bridge would return because it determined
   that there was a timeout.  However, ast_bridge_call in res_features would
   then determine by its own calculation that there was still 1 ms before the
   timeout really occurs.  It would then proceed, and since the bridge broke
   out and did *not* return a frame, it interpreted this as the call was over
   and hung up the channels.

   The reason for this was because ast_bridge_call in res_features and
   ast_channel_bridge in channel.c were using different times for their
   calculations.  channel.c uses the start_time on the bridge config, which
   is the time that the feature digit was recieved.  However, res_features
   had another time, 'start', which was set right before calling
   ast_channel_bridge.  'start' will always be slightly after start_time in the
   bridge config, and sometimes enough to round up to one ms.

   This is fixed by making ast_bridge_call use the same time as
   ast_channel_bridge for the timeout calculation.

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

18 years agofixed a bug which led to chan_list zombies, when the call could not be properly estab...
Christian Richter [Wed, 27 Sep 2006 12:51:03 +0000 (12:51 +0000)] 
fixed a bug which led to chan_list zombies, when the call could not be properly established in misdn_call. also removed the ACK_HDLC stuff which is not really needed.

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

18 years agoBack in revision 4798, this message was changed from using ast_cli() to directly
Russell Bryant [Tue, 26 Sep 2006 20:49:21 +0000 (20:49 +0000)] 
Back in revision 4798, this message was changed from using ast_cli() to directly
calling write().  During this change, checking if this was a remote console was
removed.  This caused this message about using "exit" or "quit" to exit an
Asterisk console to come up in times where it did not make sense.  This change
restores the check to see if this is a remote console before printing the
message.  (fixes BE-4)

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

18 years agoI changed the channel structure... let's be sure this gets updated!
Joshua Colp [Tue, 26 Sep 2006 20:38:42 +0000 (20:38 +0000)] 
I changed the channel structure... let's be sure this gets updated!

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

18 years agoUse proper type to represent the group variable (issue #8025 reported by makoto)
Joshua Colp [Tue, 26 Sep 2006 20:38:06 +0000 (20:38 +0000)] 
Use proper type to represent the group variable (issue #8025 reported by makoto)

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

18 years agoWhen parsing the sections of voicemail.conf that contain mailbox definitions,
Russell Bryant [Tue, 26 Sep 2006 20:23:15 +0000 (20:23 +0000)] 
When parsing the sections of voicemail.conf that contain mailbox definitions,
don't introduce a length limit on the definition by using a 256 byte temporary
storage buffer.  Instead, make the temporary buffer just as big as it needs
to be to hold the entire mailbox definition.
(fixes BE-68)

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

18 years agoTwo bugs when forwarding voicemail (Issue 7824):
Tilghman Lesher [Mon, 25 Sep 2006 21:14:41 +0000 (21:14 +0000)] 
Two bugs when forwarding voicemail (Issue 7824):
1) delete=yes was ignored
2) maxmessages was ignored

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

18 years agoCheck to see if the channel that is activating the IAXPEER function is actually
Russell Bryant [Sun, 24 Sep 2006 13:50:30 +0000 (13:50 +0000)] 
Check to see if the channel that is activating the IAXPEER function is actually
an IAX2 channel before proceeding to process it to avoid crashing.
(issue #8017, reported by admott, fixed by myself)

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

18 years agoYay another 'round of spy fixes! This fixes a small logic flaw with the cleanup funct...
Joshua Colp [Fri, 22 Sep 2006 21:53:51 +0000 (21:53 +0000)] 
Yay another 'round of spy fixes! This fixes a small logic flaw with the cleanup function and a memory allocation issue. (issue #7960 reported by jojo & issue #7999 reported by aster1) Special thanks to csum77 for letting me into a box where this issue was happening.

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

18 years agoWhitespace change... really just an excuse to test repotools
Tilghman Lesher [Thu, 21 Sep 2006 17:01:48 +0000 (17:01 +0000)] 
Whitespace change... really just an excuse to test repotools

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

18 years agoTDS 0.64 updates
Tilghman Lesher [Thu, 21 Sep 2006 16:18:19 +0000 (16:18 +0000)] 
TDS 0.64 updates

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

18 years agomake some more functions static
Kevin P. Fleming [Wed, 20 Sep 2006 05:08:05 +0000 (05:08 +0000)] 
make some more functions static

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

18 years agofixes some verbose vs debug issues. patch from bug 2617
Matt O'Gorman [Tue, 19 Sep 2006 16:21:08 +0000 (16:21 +0000)] 
fixes some verbose vs debug issues. patch from bug 2617

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

18 years agocid is passed to a destructive function; thus a copy is needed (issue 7961)
Tilghman Lesher [Tue, 19 Sep 2006 12:28:55 +0000 (12:28 +0000)] 
cid is passed to a destructive function; thus a copy is needed (issue 7961)

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

18 years agoIssue #7682 - don't add contacts to 4xx responses.
Olle Johansson [Mon, 18 Sep 2006 20:08:22 +0000 (20:08 +0000)] 
Issue #7682 - don't add contacts to 4xx responses.
(Ugly fix, not proud at all)

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

18 years agoAdd deprecation notice about app_math (issue #7957 reported by k-egg)
Joshua Colp [Mon, 18 Sep 2006 15:30:26 +0000 (15:30 +0000)] 
Add deprecation notice about app_math (issue #7957 reported by k-egg)

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

18 years agoClarified what "callwaiting" does in zapata.conf.
Steve Murphy [Mon, 18 Sep 2006 15:05:56 +0000 (15:05 +0000)] 
Clarified what "callwaiting" does in zapata.conf.

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

18 years agoAdd number unobtainable tone for New Zealand (issue #7969 reported by nic_bellamy)
Joshua Colp [Mon, 18 Sep 2006 15:05:39 +0000 (15:05 +0000)] 
Add number unobtainable tone for New Zealand (issue #7969 reported by nic_bellamy)

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

18 years agoDirectory used the wrong context for delivery of 0- and *- keypresses
Tilghman Lesher [Sun, 17 Sep 2006 13:54:34 +0000 (13:54 +0000)] 
Directory used the wrong context for delivery of 0- and *- keypresses
(according to Directory's own documentation) - Issue 7965

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

18 years agoWhen a realtime peer expires, reset the ipaddress in the realtime database back to...
Tilghman Lesher [Sat, 16 Sep 2006 07:57:04 +0000 (07:57 +0000)] 
When a realtime peer expires, reset the ipaddress in the realtime database back to 0 (Issue 6656)

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

18 years agoWhen the marked user enters the conference, we should no longer timeout
Tilghman Lesher [Sat, 16 Sep 2006 04:44:02 +0000 (04:44 +0000)] 
When the marked user enters the conference, we should no longer timeout

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

18 years agoError message references wrong argument (Issue 7951)
Tilghman Lesher [Thu, 14 Sep 2006 22:16:31 +0000 (22:16 +0000)] 
Error message references wrong argument (Issue 7951)

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

18 years agoBackport bugfix patch from 7918 to 1.2 - msg_cfg destroyed before used
Tilghman Lesher [Wed, 13 Sep 2006 19:51:24 +0000 (19:51 +0000)] 
Backport bugfix patch from 7918 to 1.2 - msg_cfg destroyed before used

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

18 years agoWhen paging, only wait 5 seconds for the marked user to enter the conference.
Tilghman Lesher [Mon, 11 Sep 2006 21:47:23 +0000 (21:47 +0000)] 
When paging, only wait 5 seconds for the marked user to enter the conference.
After that, assume the paging already completed by the time the channel entered
the conference and drop back out.  (Issue 7275)

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

18 years agoSpelling/grammar fixes (Issue 7929)
Tilghman Lesher [Mon, 11 Sep 2006 16:39:06 +0000 (16:39 +0000)] 
Spelling/grammar fixes (Issue 7929)

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