Joshua Colp
b640d51d40
Initialize global pointers for connection and result to NULL. (issue #8356 reported by james)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 21:26:36 +00:00
Tilghman Lesher
442781850b
Having more than 255 old messages caused corruption in the new/old count
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 20:18:30 +00:00
Olle Johansson
ff0ce011a0
Don't send 487 if we've already sent 200 OK on invite at time of receiving a BYE in the same transaction.
...
(SIPP testing)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 19:04:39 +00:00
Joshua Colp
0d9602565f
When sending an SMS with a user data header properly set the UDH flag in the first byte. (issue #8347 reported by hoffmeis)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 17:05:32 +00:00
Tilghman Lesher
a99b6a1c97
If the execute fails a second time, make sure that we don't pass back a stale handle
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 05:45:11 +00:00
Tilghman Lesher
ec623148c0
Don't play dialtone if the seizing the channel fails (Bug 7754)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 00:34:44 +00:00
Russell Bryant
18f4324baf
Only do the check to determine whether the channel calling this function is an
...
IAX2 channel when getting the IP address using the special argument,
CURRENTCHANNEL. (issue #8341 , jcovert)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-12 06:09:03 +00:00
Olle Johansson
474abf4656
Clear dialog on loop (backport from 1.4 by mistake)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 20:46:25 +00:00
Olle Johansson
55867f295a
- Don't check for ignore in blocks that isn't reached if ignore is on...
...
- return properly after sending reply in handle_request_invite
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 19:37:41 +00:00
Olle Johansson
a7e9e0893b
Fix multipart/mixed SDP support (issue 8010, alphaque)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 18:50:08 +00:00
Joshua Colp
06f51cc52f
Don't include compiler.h on kernels 2.6.18 and higher as, well, it's apparently going to be removed. This should make all you FC6 fans happy as your Asterisk will now build without any mods.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 16:48:05 +00:00
Christian Richter
a173aeca9d
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
2006-11-09 13:09:10 +00:00
Olle Johansson
e37d7b6682
Destroy the proper dialog...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-08 07:40:38 +00:00
Olle Johansson
735b4cf688
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
2006-11-08 07:31:34 +00:00
Steve Murphy
e301bc352f
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
2006-11-07 18:22:01 +00:00
Olle Johansson
b4392d33ed
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
2006-11-07 13:02:30 +00:00
Russell Bryant
7c651a64a7
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
2006-11-07 01:22:58 +00:00
Russell Bryant
f18766c30a
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
2006-11-02 17:47:56 +00:00
Matt O'Gorman
769113c53f
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
2006-11-02 17:12:56 +00:00
Joshua Colp
1961bac13d
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
2006-11-02 16:02:27 +00:00
Olle Johansson
7908be0c2f
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
2006-11-02 15:15:06 +00:00
Russell Bryant
e6465e0e69
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
2006-11-02 13:55:39 +00:00
Matt O'Gorman
3ac718e5f4
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
2006-11-01 21:20:35 +00:00
Steve Murphy
d4b36ffde5
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
2006-11-01 19:52:43 +00:00
Russell Bryant
78ccdbc123
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
2006-11-01 18:24:17 +00:00
Tilghman Lesher
38ba4c204e
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
2006-10-31 15:46:04 +00:00
Olle Johansson
6a662fe33e
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
2006-10-31 09:49:46 +00:00
Olle Johansson
e807fbcec5
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
2006-10-31 09:13:34 +00:00
Olle Johansson
2405e775b1
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
2006-10-31 09:03:37 +00:00
Olle Johansson
093d6d9554
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
2006-10-31 08:52:35 +00:00
Russell Bryant
f8da54e092
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
2006-10-31 06:18:36 +00:00
Russell Bryant
234408e7c1
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
2006-10-31 06:13:09 +00:00
Olle Johansson
0449e24db1
Bind rtcp to proper IP address
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 16:00:57 +00:00
Olle Johansson
154c4e9504
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
2006-10-29 19:28:18 +00:00
Olle Johansson
2bec3b7627
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
2006-10-29 19:00:27 +00:00
Russell Bryant
bf20deeba1
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
2006-10-27 17:36:07 +00:00
Christian Richter
dc0cb27752
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
2006-10-27 09:24:01 +00:00
Olle Johansson
7a5dd9d78b
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
2006-10-26 20:06:55 +00:00
Jason Parker
3ecf516f8f
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
2006-10-26 17:47:52 +00:00
Jason Parker
34934b48fe
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
2006-10-26 17:08:40 +00:00
Olle Johansson
67f0e37177
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
2006-10-25 19:28:48 +00:00
Olle Johansson
4dc847a0f4
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
2006-10-25 15:49:29 +00:00
Christian Richter
78d7b2641a
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
2006-10-25 08:41:59 +00:00
Joshua Colp
8b75024fdf
Don't leak memory mmmk?
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-23 00:25:28 +00:00
Christian Richter
f7ccb0e458
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
2006-10-21 12:35:13 +00:00
Joshua Colp
0d26753de2
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
2006-10-19 17:16:37 +00:00
Joshua Colp
e0cbd7f2d9
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
2006-10-17 20:37:17 +00:00
Jason Parker
c1666e921d
Fix an integer signedness problem.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@45332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-17 17:50:36 +00:00
Kevin P. Fleming
16ce7edf1f
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
2006-10-17 17:22:01 +00:00
Olle Johansson
2b0634ab95
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
2006-10-17 15:50:32 +00:00