Commit Graph

3551 Commits

Author SHA1 Message Date
Olle Johansson
03b4e17d23 show settings doesn't produce a list
of similar objects, it should stay a "show"


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 15:56:08 +00:00
Kevin P. Fleming
ce4b0afb73 apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 14:32:08 +00:00
Kevin P. Fleming
6c17f1e07e add passthrough and file format support for G.722 16KHz audio (issue #5084, original patch by andrew, updated by mithraen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 00:26:17 +00:00
Kevin P. Fleming
05eb71c699 code zone experiment: don't offer formats in the outbound INVITE that aren't either passthrough or translatable
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-25 00:10:54 +00:00
Joshua Colp
c6b9449955 We need to initialize our scheduler pthread condition... yes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 19:29:56 +00:00
Luigi Rizzo
50fda8522d merge 45966 refer_to_domain potentially containing options
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 08:32:15 +00:00
Luigi Rizzo
d7b0db6530 merge 46026 improper checks on get_header() return values
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 08:30:26 +00:00
Luigi Rizzo
fa4d6f23a6 merge 46045 prevent NULL args to ast_strdupa() in chan_sip.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-24 07:14:17 +00:00
Christian Richter
c01e86f14e Merged revisions 45808 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r45808 | crichter | 2006-10-21 14:35:13 +0200 (Sat, 21 Oct 2006) | 1 line

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.4@45916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-22 21:44:46 +00:00
Olle Johansson
2681aea6b2 Let's understand SIP:
- REFER can create dialog, Asterisk does not support it yet
- NOTIFY can create dialog in Asterisk's implementation (voicemail) even though
  we don't support the server side of it. In this case, the standard is a side issue ;-)
- Added extened functionality for unsupported methods (PING, PUBLISH) so we don't
  create PVT's for those either.

Russellb needs to judge what to do with this in 1.2, but I think the current implementation
n 1.2 is a bug since we're sending bad replies to NOTIFY and REFER outside of dialogs


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-20 07:44:42 +00:00
Joshua Colp
67c180956c If the jitterbuffer is forced on then we can't partially bridge (reported by wangster on #asterisk-dev)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-19 16:03:09 +00:00
Olle Johansson
a37a95c0d8 Cleaning up
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-19 07:09:37 +00:00
Russell Bryant
87cb020143 Don't leak the actual thread-specific sip_pvt struct
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-19 00:59:51 +00:00
Kevin P. Fleming
2f6a555fbd don't leak memory when a chan_sip thread is destroyed that has a thread-local temp_pvt allocated
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-18 23:49:39 +00:00
Olle Johansson
9bd68dd32c remove duplicate declarations
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-18 11:54:33 +00:00
Kevin P. Fleming
227d415709 optimize the 'quick response' code a bit more... no more malloc() or memset() for each response
expand stringfields API a bit to allow reusing the stringfield pool on a structure when needed, and remove some unnecessary code when the structure was being freed


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-17 22:24:10 +00:00
Joshua Colp
0c4dfe3aed 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.4@45378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-17 20:30:34 +00:00
Olle Johansson
1e2935d447 remove the option that was not needed, really.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-17 16:22:41 +00:00
Joshua Colp
d28fd24747 Merged revisions 45265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r45265 | file | 2006-10-16 15:59:54 -0400 (Mon, 16 Oct 2006) | 2 lines

Use responses rather then replies even though they mean the same thing.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-16 20:06:18 +00:00
Joshua Colp
3f24dceeca Merged revisions 45260 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r45260 | file | 2006-10-16 15:28:18 -0400 (Mon, 16 Oct 2006) | 2 lines

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.4@45262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-16 19:37:34 +00:00
Olle Johansson
eaaddb90bf Don't destroy dialog for unexpected REFER response...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-16 13:00:07 +00:00
Christian Richter
a05d2ebb96 avoiding warning, fixing potential bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 19:19:46 +00:00
Kevin P. Fleming
7f8528f21c Merged revisions 45048 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r45048 | kpfleming | 2006-10-13 11:18:08 -0500 (Fri, 13 Oct 2006) | 2 lines

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.4@45049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 16:19:35 +00:00
Joshua Colp
1bfbc1419a Complete merging in RPID screen changes (issue #8101 reported by hristo, patch by oej in revision 44757)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 16:01:17 +00:00
Christian Richter
3a602aa1d7 Merged revisions 45020 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r45020 | crichter | 2006-10-13 15:11:13 +0200 (Fr, 13 Okt 2006) | 1 line

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.4@45026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 14:45:39 +00:00
Christian Richter
887395b103 Merged revisions 44993 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44993 | crichter | 2006-10-13 09:40:07 +0200 (Fr, 13 Okt 2006) | 1 line

fixed issue, that the hangupcause got a wrong isdn cause at RELEASE_COMPLETE
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 07:52:41 +00:00
Luigi Rizzo
0e230d79d8 merge formatting and minor code simplifications from trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-12 22:07:11 +00:00
Matt O'Gorman
0c4d8edca6 fix for bug 7764.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-12 20:34:49 +00:00
Kevin P. Fleming
ec4bf13915 we can only send one 'a=ptime' attribute per media session, not one for each format
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-12 19:14:24 +00:00
Kevin P. Fleming
09f6a6a167 Merged revisions 44955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44955 | kpfleming | 2006-10-12 13:31:26 -0500 (Thu, 12 Oct 2006) | 2 lines

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.4@44956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-12 18:38:51 +00:00
Christian Richter
8621f03cf2 removed warning because of missing prototype declaration
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-11 09:18:41 +00:00
Olle Johansson
84a6a67b15 Do not set default/global values in the variable declaration, set it in reload_config()
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 19:23:36 +00:00
Joshua Colp
e0dbc80f61 Move some stuff around so that a NOTIFY dialog won't hang around until the end of the world under certain circumstances
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 17:21:44 +00:00
Joshua Colp
e4380a1b2e Bail out if we have no refer structure and we get a refer response
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 16:30:00 +00:00
Luigi Rizzo
0681269434 more merge from trunk (comments and change a static function name)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 16:21:22 +00:00
Joshua Colp
74171605af Only set DTMF information if an RTP structure exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 15:23:14 +00:00
Christian Richter
76dd912066 Merged revisions 44785 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44785 | crichter | 2006-10-10 15:34:33 +0200 (Di, 10 Okt 2006) | 1 line

(re)added support of dynamical enabling hdlc on bchannels
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 13:50:26 +00:00
Luigi Rizzo
fde338ba2c whitespace changes related to previous commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 08:25:15 +00:00
Luigi Rizzo
e0f745b1f6 merge a few code simplifications that have gone
into trunk during last week, to reduce differences
between the two branches and make porting fixes easier.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-10 08:18:42 +00:00
Jason Parker
f3ba83ae1a Fix a problem where phones that go "missing" never got unregistered.
Issue #8067, reported by pj, patch by Anthony LaMantia (with minor whitespace modifications)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-09 16:12:35 +00:00
Joshua Colp
f11d155547 iaxs[callno] may go away if we try to avoid the deadlock
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-09 15:46:53 +00:00
Joshua Colp
8a7f8f5592 Properly avoid a collision with iax2_hangup (issue #8115 reported by vazir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-09 15:41:28 +00:00
Luigi Rizzo
9d88cfa8dc merge svn 44744: do not dereference p if we know it is NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-08 14:14:14 +00:00
Paul Cadach
e2676b1098 Propagate caller's transfer capability too
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-07 14:39:34 +00:00
Luigi Rizzo
f480d547cc merge revision 44664 - put common code in a function to avoid repetitions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-07 11:37:30 +00:00
Luigi Rizzo
169342bc0d remove hardwired usage of 5060, use DEFAULT_SIP_PORT instead
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-07 11:11:16 +00:00
Luigi Rizzo
35d8151b55 merge rev 44253 - option_debug checking before printing to debug channel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-07 11:04:30 +00:00
Luigi Rizzo
e65f2bd612 backport simplifications on sip_register,
usage of ast_set2_flag(), 
and fixes to the handling of failed module loading.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-07 10:59:27 +00:00
Luigi Rizzo
e5a838cac1 improve and document function get_in_brackets(), introducing
a helper function find_closing_quote() of more general use.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-07 09:36:00 +00:00
Christian Richter
290fe898f0 Merged revisions 44460 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r44460 | crichter | 2006-10-05 12:02:38 +0200 (Do, 05 Okt 2006) | 1 line

fixed segfault which happens during hold/transfer action
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-06 12:53:41 +00:00