Commit Graph

7408 Commits

Author SHA1 Message Date
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
Joshua Colp
01a7955445 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
2006-10-16 19:59:54 +00:00
Joshua Colp
e64fa8614d 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
2006-10-16 19:28:18 +00:00
Steve Murphy
5e3d5c55b4 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
2006-10-14 00:16:58 +00:00
Kevin P. Fleming
ce069b0c77 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
2006-10-13 22:57:42 +00:00
Christian Richter
1775cae084 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
2006-10-13 19:27:22 +00:00
Joshua Colp
d0649af76d 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
2006-10-13 17:01:22 +00:00
Kevin P. Fleming
170abc16b0 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
2006-10-13 16:18:08 +00:00
Joshua Colp
58477e2410 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
2006-10-13 15:49:53 +00:00
Christian Richter
0bd76b00b2 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
2006-10-13 13:11:13 +00:00
Christian Richter
4981d1c5dd 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
2006-10-13 07:40:07 +00:00
Kevin P. Fleming
ffb75188e1 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
2006-10-12 18:31:26 +00:00
Christian Richter
722d56e081 (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
2006-10-10 13:34:33 +00:00
Olle Johansson
cd79e99638 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
2006-10-09 14:36:24 +00:00
Joshua Colp
bfbbc4de78 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
2006-10-06 16:52:14 +00:00
Joshua Colp
4e717c8ea6 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
2006-10-05 19:55:41 +00:00
Christian Richter
8684599f6c 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
2006-10-05 10:02:38 +00:00
Kevin P. Fleming
a8c86fb9b2 fix Polycom presence notification again
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-05 01:27:57 +00:00
Kevin P. Fleming
87706f538e 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
2006-10-04 21:15:29 +00:00
Steve Murphy
4f0d22fde1 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
2006-10-04 16:02:22 +00:00
Christian Richter
eae488f164 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
2006-10-04 15:26:59 +00:00
Christian Richter
0b4f47c3c3 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
2006-10-04 15:13:58 +00:00
Kevin P. Fleming
9c405de30d 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
2006-10-03 20:14:13 +00:00
Joshua Colp
e0408416d3 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
2006-10-02 20:07:59 +00:00
Joshua Colp
7e7a5bfc73 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
2006-10-02 19:39:59 +00:00
Joshua Colp
d1f421a9f6 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
2006-10-02 17:22:27 +00:00
Christian Richter
77a645d0c6 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
2006-10-02 13:28:14 +00:00
Russell Bryant
73138db44a 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
2006-10-01 15:19:23 +00:00