dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

3645 Commits

Author SHA1 Message Date
oej 32ead2c17d Documentation correction
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-29 08:22:22 +00:00
oej 065643a937 maxtime is not needed any more now that we actually set the T1 timer
based on the qualify result.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46392 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-29 08:15:26 +00:00
oej 2218aba4f5 Only accept message once
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46390 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-28 20:27:21 +00:00
oej 5b4a352dfa Adding documentation inspired by a virtual drink with an anonymous man in New Jersey
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46387 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-28 20:05:19 +00:00
oej 9248dadabe Don't duplicate function if not needed...
- removing transmit_reinvite_with_t38_sdp in favour of adding an argument to 
  transmit_reinvite_with_sdp


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46385 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-28 19:30:31 +00:00
oej 9b62a699fd Merge from 1.4 : Don't send 183 reliably...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46383 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-28 19:16:23 +00:00
oej c4636813b9 - Don't lock the dialoglist during the whole destruction of a single SIP dialog. Only
lock when needed - when we remove the dialog from the dialog list
  If this doesn't lead to severe problems, it might help with some locking issues
  in 1.4/1.2.
- Remove the term "interface" as a synonym for a SIP dialog. Sorry, Mark, but no
  one understands it... ;-)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-28 17:25:23 +00:00
russell d20666b485 Merged revisions 46370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46370 | russell | 2006-10-27 14:03:32 -0500 (Fri, 27 Oct 2006) | 4 lines

move the copy of the default settings to the global settings back out of
process_zap, so that they aren't overwritten when process_zap is called
multiple times

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46371 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27 19:04:34 +00:00
mattf 427ad5897c First pass at implementation to be able to block and unblock zap channels for
use.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46366 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27 17:46:04 +00:00
oej 6cc54c38c8 Put this patch on hold pending further testing...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46365 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27 17:45:43 +00:00
russell 1b492790bf Merged revisions 46358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46358 | russell | 2006-10-27 10:32:40 -0500 (Fri, 27 Oct 2006) | 5 lines

Instead of iterating all of the options once to look for jitterbuffer options,
and then again for everything else, move the processing of jitterbuffer
options into the main loop so that there are no erroneous messages about
ignoring unknown options.  (issue #8226)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46359 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27 15:44:34 +00:00
crichter 0131a92301 Merged revisions 46351-46353 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r46351 | crichter | 2006-10-27 11:49:20 +0200 (Fr, 27 Okt 2006) | 9 lines

Merged revisions 46176 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r46176 | crichter | 2006-10-25 10:41:59 +0200 (Mi, 25 Okt 2006) | 1 line

added nttimeout option to configure wether we disconnect calls on NT timeouts or not during an overlapdial session
........

................
r46352 | crichter | 2006-10-27 11:58:44 +0200 (Fr, 27 Okt 2006) | 1 line

fixed not compile issue, which was just introduced
................
r46353 | crichter | 2006-10-27 12:03:23 +0200 (Fr, 27 Okt 2006) | 9 lines

Merged revisions 46350 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r46350 | crichter | 2006-10-27 11:24:01 +0200 (Fr, 27 Okt 2006) | 1 line

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: http://svn.digium.com/svn/asterisk/trunk@46354 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27 11:18:32 +00:00
oej d21c2e17b6 Show if the channel is ready for video or T.38 udptl
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46346 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-26 20:22:14 +00:00
oej 57e57570c4 Old todo: Don't add Contact headers on BYE and CANCEL.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46277 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 20:21:05 +00:00
oej 97acb8526e First stab at transaction direction fix, this for trunk for testing
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46275 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 20:12:06 +00:00
oej f014525e00 Ugly code to try to remove issue discovered by Luigi as well as attack bug #7608
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46259 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 19:30:04 +00:00
mattf 4f3a6ce4fa Send CPG when we get a CONTROL_PROGRESS frame and make sure that it sends ACM (not CPG) when
we get CONTROL_PROCEEDING.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46256 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 19:24:40 +00:00
mattf e380827fda Update changes to do US style point code parsing/formatting (xxx.xxx.xxx)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46251 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 19:14:23 +00:00
oej df00f5943f Merge from 1.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46224 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 16:01:22 +00:00
kpfleming 6d73a5efa0 Merged revisions 46082-46083,46152-46153 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46082 | kpfleming | 2006-10-23 22:45:42 -0500 (Mon, 23 Oct 2006) | 2 lines

add an API call to allow channel drivers to determine which media formats are compatible (passthrough or transcode) with the format an existing channel is already using

........
r46083 | kpfleming | 2006-10-23 22:53:32 -0500 (Mon, 23 Oct 2006) | 2 lines

ensure that the translation matrix is properly lock-protected every place it is used

........
r46152 | kpfleming | 2006-10-24 18:45:19 -0500 (Tue, 24 Oct 2006) | 2 lines

if multiple translators are registered for the same source/dest combination, ensure that the lowest-cost one is always inserted earlier in the list

........
r46153 | kpfleming | 2006-10-24 19:10:54 -0500 (Tue, 24 Oct 2006) | 2 lines

code zone experiment: don't offer formats in the outbound INVITE that aren't either passthrough or translatable

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:55:11 +00:00
kpfleming fb76c79434 restore bugfix that was reverted by trunk_mtu patch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46202 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:47:01 +00:00
kpfleming 470f688a28 Merged revisions 46200 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46200 | kpfleming | 2006-10-25 09:32:08 -0500 (Wed, 25 Oct 2006) | 2 lines

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: http://svn.digium.com/svn/asterisk/trunk@46201 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:44:50 +00:00
oej 6b11ab9b13 Ok, second attempt...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46199 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:26:22 +00:00
oej 568e38af17 On the other hand, don't use 1.4 patches for trunk... Sorry.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46197 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:14:53 +00:00
oej 691cd5a180 Add ability to adapt the IAX trunk packets to the MTU size, to avoid bad audio
when the number of channels fill the MTU on a given link.

In the future, this needs to be configurable per peer with trunking enabled.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46195 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 14:06:13 +00:00
oej 82f7dd93c4 Adding comments in the source is more persistent than just adding them
to the commit message :-)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46184 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 11:41:49 +00:00
oej b260a2fbf0 Always add doxygen comments to new functions, more lines than one are
appreciated really. (Read the coding guidelines).

I've worked hard to make chan_sip a better place to code in, let's
keep it that way and don't add more stuff without comments.

Thank you.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46183 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 11:39:40 +00:00
kpfleming cfed87ed3a Merged revisions 46154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46154 | kpfleming | 2006-10-24 19:26:17 -0500 (Tue, 24 Oct 2006) | 2 lines

add passthrough and file format support for G.722 16KHz audio (issue #5084, original patch by andrew, updated by mithraen)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46155 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25 00:32:23 +00:00
file 84191d1d03 Merged revisions 46130 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46130 | file | 2006-10-24 15:29:56 -0400 (Tue, 24 Oct 2006) | 2 lines

We need to initialize our scheduler pthread condition... yes.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46131 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-24 19:33:02 +00:00
rizzo 3f89f8a1d6 correct fix for the bug i previously introduced - the strings
are meant to be always initialized, independently from their content.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46104 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-24 06:52:15 +00:00
russell 3ce68916ea Fix a seg fault on a registration. Line 7706, in parse_register_contact,
explicitly passes NULL as the "pass" argument to this function.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46055 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-24 00:52:06 +00:00
rizzo ebf91ac473 Unlike ast_strdup(), ast_strdupa() does not take a NULL pointer as argument,
so fix the places where this might happen.

This is also a fix that ought to go into 1.4

[The difference between the two functions is a bit confusing,
and in asterisk i believe all string handling functions
should be able to handl a NULL string as argument,
but changing the API in trunk and not in 1.4 would make
backporting harder.]



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46045 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 21:46:15 +00:00
rizzo ccd427b13e remove a useless check for ocseq = 0.
As discussed on the mailing lists, 0 is a legal value
for Cseq, so there is no point to treat it specially.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46035 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 20:01:14 +00:00
rizzo e1e633c276 get_header() always returns a non-NULL value, so checking
for NULL is certainly wrong and usually disables the
checks that we want to make instead.

This commit fixes a number of the above bugs where the result
of get_header() is immediately checked for NULL.

This is certainly a candidate for merging into 1.4




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46026 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 19:52:43 +00:00
rizzo 65c844ece0 put another duplicated block of code in a function.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46025 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 19:28:23 +00:00
rizzo 9e2cc5b5bb reformat a statement and comment a potentially wrong
assignement (altering state on an unvalidated message).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46015 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 18:38:42 +00:00
rizzo d89fe69ec7 Remove unnecessary casts from const char * to char *,
if necessary by slightly rearranging the code.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46004 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 17:49:09 +00:00
rizzo 5ab69e8d8e another use for parse_uri().
On passing, remove a wrong comment (that probably I wrote
myself!) and introduce a temporary variable to avoid a     
misleading cast.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 17:41:03 +00:00
rizzo 3aec4109a4 + make sure parse_uri never returns NULL pointers - this
simplifies its usage.

+ add another client for parse_uri, in handling Contact: strings
  (on passing, document the content of the "fullcontact" field);

+ in register_verify(), mark with XXX what i believe is another
  misinterpretation on the URI format when '@' is missing.
  No code changed here, so no fixes applied.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45977 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 15:45:36 +00:00
rizzo aa8d8a3187 After reading better the SIP RFC on sip URI (19.1.1)
fix parse_uri() to interpret a missing userinfo
section as a domain-only URI, and comment a wrong
interpretation of the above in check_user_full().

The function has been patched to preserve the existing
behaviour (in what admittedly is a corner case, but
could be received under attacks).
Hopefully the From: based matching will go away soon!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45976 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 15:08:40 +00:00
rizzo 169ef7b12c in function get_also_info(), move argument stripping
before splitting around the @, otherwise the refer_to_domain
might contain arguments as well, causing failures.
 
I think this is a true bug that ought to be fixed in 1.4 as well.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45966 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 14:35:37 +00:00
rizzo d3a1bc3716 start putting the URI parsing code in one place,
introducing the function parse_uri() that splits
a URI in its components.

Right now use it only in one place, because the custom
parsing that is done here and there sometimes has
bugs that i want to figure out first.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45965 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 14:30:33 +00:00
rizzo 8a1a81d37d put common code in function terminate_uri() so we need to
fix it only in one place.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45955 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 13:19:13 +00:00
rizzo fc28cd5633 More cleanup of check_user_full with no functional change
apart from a small (but disabled by default) new option.
In detail:

+ introduce a new value for enum check_auth_result, AUTH_DONT_KNOW,
  used (read below) when a function does not have a conclusive response.
  Possibly this is the same as AUTH_NOT_FOUND, but need to check further.

+ move the large blocks (checking in the users list and in the peers
  list, respectively) from check_user_full() to separate functions.
  They return AUTH_DONT_KNOW in case they don't find a match, so
  the caller know that it has to try the next method.
     There is still some duplication of code here, but i
  have not tried yet to remove it.

+ [new option] a new option in sip.conf, match_auth_username,
  has been introduced, and disabled by default.
  If set, and the incoming request carries authentication info,
  the username to match in the users list is taken from there
  rather than from the From: field.
        This change is easy to identify, being made of
  - one line to declare the variable match_auth_username
  - a block of 15 lines in check_user_full()
  - one line in sip list settings
  - two lines for parsing the config file.

check_user_full() is now a lot cleaner - basically a sequence of
checks that are applied to the request. This will help future
work with new matching schemes.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45945 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-23 11:08:47 +00:00
crichter 68e0ea9919 Merged revisions 45916 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r45916 | crichter | 2006-10-22 23:44:46 +0200 (Sun, 22 Oct 2006) | 9 lines

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: http://svn.digium.com/svn/asterisk/trunk@45917 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 21:57:11 +00:00
rizzo 0b93998d82 more streamlining of check_user_full
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45915 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 21:08:07 +00:00
rizzo 185c6b40e8 simplify the flow of function check_user_full()
A large block needs reindentation now, but we don't do that because
it can be moved to a separate function.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45905 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 20:59:38 +00:00
rizzo 5ee415413f put duplicated code in functions.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45904 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-22 20:51:05 +00:00
rizzo 900765d4b0 introduce sip_pvt_lock() and sip_pvt_unlock() wrappers to
lock these data structures.

This improve readability, and also hides the underlying
locking mechanism so it is a lot easier to add diagnostic
code, or move the object locks somewhere else, etc.

On passing, rename the lock field in sip_pvt to pvt_lock,
also for ease of readability.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45786 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-20 20:59:06 +00:00
russell dbd3fe7af3 put the constants for whether methods can create a dialog or not in an enum
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45764 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-20 15:54:14 +00:00