Russell Bryant
ec9fb9a970
Fix the use of the "sourceaddress" option when "bindaddr" is set to 0.0.0.0
...
instead of having each interface explicitly listed.
(issue #7874 , patch by stevens)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Christian Richter
4a5d66f867
fixed #9355
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Nadi Sarrar
681c63cd92
mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, make chan_misdn use it.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Joshua Colp
9593ae4269
Only try to handle a response if it has a response code. (ASA-2007-011)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Christian Richter
74b331c4d0
modified a loglevel
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Christian Richter
79c08e3a46
avoid sending a disconnect when we already received one.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Christian Richter
0939887739
fixed the crypt_keys stuff
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Christian Richter
3b2e8feab4
added method standard_dec for dialing out on groups, to avoid conflicts, which caused issues with some ISDN providers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Olle Johansson
7158b80498
Issue #9229 - No port in request URI on register to non default SIP ports (neelakantan)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Joshua Colp
5941cc916c
If we are unable to lookup the host in a c line we have to abort, otherwise the previous data is gone and we will (potentially) have no data when all is said and done.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Christian Richter
c0cf86d6c8
we can free channel 31 as well, since we can occupy it
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
c072213569
Fix a problem where the Asterisk channel name could be that of the wrong IAX2
...
user for a call. This is because the first step of choosing this name is to
look for an IAX2 peer that happens to have the same IP/port number that this
call is coming from and assuming that is it. However, this is not always
correct. So, I have made it change this name after authentication happens
since at that point, we have an exact match.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Steve Murphy
c7c8b06817
Fix for 9220: Eyebeam cannot renew subscriptions for presence info. Reason: re-SUBSCRIBE requests don't include Accept headers, which the rfc says are optional (to put it tersely), (it uses MAY), and luckily, the sip_pvt struct has the format info stored, so we simply leave it if the format is set, and the accept header null.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
7d74199c6f
Change error message to proper message
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
75ce9f86b8
Cleanup the Makefile so that we only attempt to include a file when we're building and not 'clean'ing so 'make clean' completes successfully. chan_h323 maintainer: please check to make sure I haven't broken your build target. From: jsmith in #asterisk-dev
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
58818031b1
subdirs like misdn and h323 should be cleaned by the clean target from channels/Makefile as well
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
dfcff16e09
fixed another place where the out_cause was hardcoded to 16
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
a9252f4549
fixed typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
6bf891f353
If a SIP message comes in and goes to a method handler that requires additional values that may not be present then send back an error.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
4d5bf84ce1
Don't even attempt to optimize things when a proxy channel is involved. It will just explode in weird and unexplaineable ways. (issue #9175 reported by clegall_proformatique)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
c8a883fd2f
Fix a few more issues with the agent logoff CLI command. (issue #9123 reported by arbrandes)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
93c0385bc0
fixed bugs.digium.com bugs: #9157 and bugs.beronet.com bugs: #302 , #303 , #304
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
4fb7eb1b7b
Don't destroy mutexes before unregistering all of the entry points from the core.
...
Also, fix a potential memory leak from not destroying the locks for all of the
possible call numbers (about 32k of them).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
ca7fbd749e
Always defer Agent logoff if any channels are up until they hang up. (issue #9123 reported by arbrandes)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
c966ea6e2d
Only change the original or clone channel if it's the channel behind the proxy channel, not if it's just a regular bridged channel.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
c9d26b5a89
If we receive a frame that is not in any of the negotiated formats, then drop
...
it. (potentially issue #8781 and SPD-12)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
960d22deb4
Defer clearing callback information if channels are up until they are hung up. This ensures the hangup process goes smoothly and no channels get hung in limbo. (issue #8088 reported by kebl0155)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
9736c57aab
Issue #9020 - SIP message retransmission time too short.
...
Backporting fix implemented in 1.4, where we have a minimum level
for the T1 timer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
ff04058bff
Allow chan_sip to handle attended transfers from a SIP phone that is sitting behind chan_agent. Yes folks, all it took was one line of code. (issue #8784 reported by pzieba)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
28c428929e
Do not send indications through ast_indicate in chan_agent but instead go directly to the technology. This way when indications are emulated they happen on the Agent channel and do not screw up formats on the channels. (issue #8439 reported by punkgode)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
a17395f9f3
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matthew Fredrickson
3b38b3f632
When handling glare on a PRI, move the requested channel rather than hang up the old one. Fix for 8957 and 9011.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
5f3b33f0f5
Make sure that outbound calls are applied to the peer.
...
This fixes some issues with "hints not working", but only in 1.2.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
d2261a98af
Fix a few potential memory leaks with realtime users and peers. (issue #8999 reported by bsmithurst)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
ade14f36ea
Copy noncodeccapability over to the joint variable so that telephone-event will get transmitted in the sent INVITE.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
d7dd6ed0a7
Don't negotiate RFC2833 when not configured to do so. (issue #8799 reported by mdu113)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
8754f03658
- Make sure we release call from call counter before we destroy call (maybe #7744 and more)
...
- Backported by accident from 1.4
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
f9db7779f0
Fix a bunch of places where pthread_attr_init() was called, but
...
pthread_attr_destroy() was not.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
ec4c828386
fixed some possible segfaults. also fixed an very important bug which occurs on high load (when calls are very fast generated)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52843 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
3d12e45f06
Fix the extraction of the timestamp from video frames. It was using the
...
mapping for a mini-frame instead of a video-frame, which caused it to
get invalid data.
(issue #8795 , mihai)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
5e9fdf2aa7
Make the last context entry read in the dominant one. (issue #8918 reported by pj)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@52360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
34b5cd1de5
fixed the busy problem (dialstatus was not busy when we called a busy extension)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
d46636d6fa
Explicitly declare what codecs are supported by default globally since using a bitmask for all may include ones we don't need. (issue #8357 reported by gknispel_proformatique)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Dwayne M. Hubbard
91d1c70906
issue 7877: chan_zap module reload does not use default/initialized values on subsequent loads. Reset configuration variables to default values prior to parsing configuration file.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
6926dd0fbe
support echo cancellers that can handle 64ms or 128ms of echo cancellation
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
cbfeb816e1
Move the check for a failure of ast_channel_alloc() to before locking the
...
pvt structure again. Otherwise, on a failure, this will cause a deadlock.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
ed7bdda7b0
Add none as a valid callgroup/pickupgroup option. I consider it a bug that it would inherit it all the way down and not have any way to reset it to nothing - so that's why it is in 1.2. (issue #8296 reported by gkloepfer)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@51085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
2e738d5a7c
Issue #8793 bad response for Unsupported Extension (different fix).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
5704d29ffa
when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
ec695243af
* more additions to make the RESTART message work
...
* added fix for misdn_call to allow SETUPs with empty
extensions, replaced the strtok_r functions with strsep for that
(inspired by Sandro Cappellazzo, thanks)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
f5507d2431
more fixes regarding warnings for gcc-4 and first additions for the restart Information element, in the first step we initiate a restart with a CLI command
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
9713819c85
make gcc 4 happy, remove some warnings
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
8ca9fedc42
Ensure we use the default refresh value of 60 if the remote server does not send one. (issue #8746 reported by maethor)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
2194a0b079
ensure that threads which are supposed to be detached (because we aren't going to wait on them) are created properly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
9c8bcc3c1c
* Added check for bridging in misdn_call to avoid setting echocancellation
...
when 2 mISDN channels are involved and when bridging is set. That lead
to a kernel panic before under different situations, because we switched
about 2 times between hardware bridging and echocancelation
* readded MISDN_URATE variable which got lost before, this should make app_v110
work again
* fixed typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
6e6fa1c71f
added check for channel ranges in the set/empty channel functions. set pmp_l1_check default to no. added misdn restart pid cli command. added cleaning of channel when we send a RELEASE_COMPLETE.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@49135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
59ae6dac08
Issue 8596: Set CAN_BYE flag for 100 trying too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
847ddc1e2c
Check for the proper return value on an error in a call to mmap().
...
This was reported by Andy Wang on the asterisk-dev list. Thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
798116918e
Remove a couple of misplaced dots in log messages. This was reported by
...
Andrea Spadaccini on the asterisk-dev mailing list.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
526b32f5e6
when we reject a channel, because it's in use already, we shouldn't process the setup anymore. made the channel allocation a bit easier and more understandable, removed a few unused lines
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
7716c778e4
when our PTP Partner sends us a SETUP with a preselected channel we just accept it, even when we're NT. added some checks for segfaults.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
c3b8d9f510
Issue #8592 - handle 504 as 503 - congestion
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
b9bddd3063
removed FIXUP state. added check for channel allocation conflict when we create a setup while the other site creates a setup on the same channel, besides the check we resolve this conflict.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
611a9778bb
This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
f2df4138cb
Use locking when accessing the registrations list. This list is not actually
...
used very often, so the likelihood of there being a problem is pretty small,
but still possible. For example, if the CLI command to list the registrations
was called at the same time that a reload was occurring and the registrations
list was getting destroyed and rebuilt, a crash could occur.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
6d3c784a84
added the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
d37fee2b0f
Issue #8528 - make sure we don't delete the dialog too quickly after receiving
...
a 487. Move 487 handling into handle_response_invite where it really
belongs and don't add an ALREADYGONE flag to the dialog.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
95a18631a4
changed a few debugs to higher debug levels
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
8eb9c059e5
Don't add Contact header on BYE, CANCEL, MESSAGE requests
...
(Bye, Cancel backported from 1.4, MESSAGE bug reported to me by Gunnar at Omnitor)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
c70018c590
Only set the ALREADYGONE flag once in handle_response()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
e76ee063e6
Issue 8319 - noriyuki - nonce-count updated *after* use
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
1b287f7406
Only print out debug message if bridged channel is not NULL. (issue #8412 reported by jubilex)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
faee7ae5f1
Do proper test and don't leave dialogs hanging...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
b6c058c6c4
According to the research I have done we never needed to include compiler.h in the first place so let's not! (issue #8430 reported by edguy3)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
96a36252b6
Change some logging levels. Not having hints is not an ERROR, but still should be reported.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
f4137d1609
fixed a litle bug regarding HOLD/RETRIEVE. beatufied some logs, changed some loglevels. changed the default value of block_on_alarm
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
279ebd00c5
Remove unused variable (rizzo)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
fea6c62d61
Free history items at the end of use of the temporary SIP pvt structure. (issue #8383 reported by benh)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
0b9a8ee148
Just to be safe, disable all the scheduled items after deleting a scheduler entry (rizzo)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
e51a0e25f2
Because of the way chan_local is written we should be extra careful and make sure our callback functions have a tech_pvt. (issue #8275 reported by mflorell)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
08570a5080
Don't fixup if we haven't got PVT. Suggestion from Martin Vit on -dev mailing list inspired
...
by file's commit to chan_local.
"This shouldn't happen" ;-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
e3de4d3653
Make sure that the pvt structure exists before trying to do fixup on Local channels. (issue #7937 reported by mada123, fix by alamantia with mods by me)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
f41333b1c4
CANCEL requests are never authenticated (according to RFC 3261)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
618dd887f1
Send error message if we fail to allocate sip socket, possibly caused by too few
...
file handles (wasn't possible before, but with the new way of sending temp messages, it is).
Found this bug under heavy load testing with SIPP.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
e49736b059
Sending 200 OK and not getting ACK is considered critical for the call.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
62cb689e89
Avoid collissions between the peerpoke system and the retransmits. Issue #8272 .
...
In some cases, changed timers caused the retransmit system to destroy the dialog before peerpoke_expire
got a chance.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
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
19 years ago
Joshua Colp
87803a8ac6
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
19 years ago
Christian Richter
630930dd7f
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
19 years ago
Joshua Colp
12afd66083
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
19 years ago
Russell Bryant
00ca92aeee
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
19 years ago
Kevin P. Fleming
377dac8495
make some more functions static
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@43314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matt O'Gorman
942768c022
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
19 years ago
Olle Johansson
eb4bd38c92
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
19 years ago
Tilghman Lesher
a729fb97e4
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
19 years ago
Tilghman Lesher
1df9da9fef
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
19 years ago
Olle Johansson
ed09034360
- Reset proper flag
...
- Don't delete SIP dialog prematurely
Strangely enough imported from svn trunk... It's confusing here in Greenland.
(Committing from 36.000 feet above Greenland, on the way to asterisk@von
http://www.pulver.com/asterisk )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
a4e28347fe
Use ast_best_codec to set the read/write format
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
ff9fce4bb8
Look ma! No more deadlocks! <sic>
...
As posted from #7458 and others similar to it in Mantis:
p->app_lock was a mutex really designed for use with agents not in callback mode. That being the case, I've tried to code it so that when callback mode is used, the app_lock mutex will not be locked/unlocked at all. Please let me know how you make out - and if you continue to deadlock now, please reproduce the deadlock logging information and post to Mantis.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
8be5b66038
fixed pipe consuming bug when using chanIsAvail ( #7878 ), also moved a debug log to the very begining of misdn_hangup.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
e627ecb8a7
Make realtime regseconds work as people expected (0 on registration expiration or release, and actual on normal state) (issue #7684 reported by kshumard)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
9eb92ed083
Don't kill the pvt before we have sent ACK on CANCEL (needs more testing before making a release)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
1e21d7a537
Only wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
abb4e3a3a4
put in proper fix for issue #7294 instead of the broken partial fix that was committed, and thereby also fix issue #7438
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
abfcb8d31e
Issue #7572 - Hangup when receiving a buggy 487 response to an INVITE
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@41423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago