dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

10716 Commits

Author SHA1 Message Date
qwell 8c088cc975 ctrl-w != w (nano search) (surprisingly, the fix was ever so slightly different in 1.4)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48563 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 16:57:24 +00:00
qwell 53c9fc3e20 Blocked revisions 48561 via svnmerge
........
r48561 | qwell | 2006-12-18 10:55:46 -0600 (Mon, 18 Dec 2006) | 2 lines

ctrl-w != w  (nano search)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48562 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 16:56:44 +00:00
rizzo 8c2d401961 apply the proposed fix for bug 8602
http://bugs.digium.com/view.php?id=8602
(i am not sure if there is still missing cast in
front of the alloca() call - being a macro this is
probably triggered only when actually used).

Add function ast_str_reset() to reinitialize the
string to an empty string instead of playing with
the internal fields.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48560 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 16:24:44 +00:00
rizzo d78959e745 convert the final clients of ast_build_string to use ast_str_*()
Now the only module left using it is chan_sip.c



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48559 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 15:38:50 +00:00
rizzo 0c344600b1 debugging shows that we always need more than 128 bytes
for the verbose and logging messages so start with a
larger buffer from the beginning.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48558 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 15:36:31 +00:00
kpfleming 02448f47eb Merged revisions 48554 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48554 | kpfleming | 2006-12-18 05:59:24 -0600 (Mon, 18 Dec 2006) | 3 lines

remove some now-unnecessary explicit includes of autoconfig.h
clean up per-file dependencies during 'make clean'

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48555 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 11:59:48 +00:00
rizzo ff385b4aa1 Replace ast_build_string with ast_str_*().
On passing remove presumably duplicate code to generate
the message for the manager_hooks:

in the previous version, the message was almost the same as the one sent
to regular sessions, with the exception of the empty line at the end, and
a few (presumably unintentional) differences e.g.  timestamps,
debugging, and lowercase headers for "event" and "privilege".

now we reuse the same message as before.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48553 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 11:28:37 +00:00
rizzo be65ff79d9 replace ast_build_string() with ast_str_*().
Unless i am very mistaken, function_realtime_read() was
broken in that it would always return an empty string
(because ast_build_string() advanced the pointer to the
end of the string, and there was no reference to the
initial value.

This commit should fix this problem.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48551 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-17 22:57:46 +00:00
rizzo 6224d80577 replace ast_build_string() with ast_str_*();
simplify __queues_show()



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48550 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-17 22:47:30 +00:00
kpfleming c901654989 Merged revisions 48548 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48548 | kpfleming | 2006-12-17 12:33:24 -0600 (Sun, 17 Dec 2006) | 2 lines

need an additional argument here to make the downloads actually occur

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48549 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-17 18:33:53 +00:00
rizzo a358ba3ecc define a mask SIP_INSECURE sam as for other sets of flags.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48543 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-17 12:47:08 +00:00
kpfleming 0edbe0f64f Merged revisions 48528 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48528 | kpfleming | 2006-12-16 15:34:41 -0600 (Sat, 16 Dec 2006) | 2 lines

use m4 quoting for AC_MSG_NOTICE calls, to keep these calls from thinking they have multiple arguments

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48529 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 21:38:10 +00:00
kpfleming 7fdeb17c60 Merged revisions 48525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48525 | kpfleming | 2006-12-16 15:14:34 -0600 (Sat, 16 Dec 2006) | 2 lines

simplify dependency tracking system, using the compiler's built-in method for generating them, and only doing dependency tracking if developer mode is enabled via the configure script

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48527 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 21:24:52 +00:00
kpfleming ad0e0a29d4 update to use trunk's version of the threadstorage API
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48526 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 21:24:08 +00:00
kpfleming ca962eb0c0 Merged revisions 48521 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48521 | kpfleming | 2006-12-16 14:12:41 -0600 (Sat, 16 Dec 2006) | 2 lines

since we really, really have to have autoconfig.h included before all other headers (especially system headers), the Makefile will now force it to happen (this will fix build problems with files like ast_expr2f.c, where we can't control the inclusion order in the file itself)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48522 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 20:19:19 +00:00
rizzo 91101a1b97 forgot this part...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48520 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 11:23:07 +00:00
rizzo ee5146aeb7 another conversion from ast_build_str to ast_str
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48517 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 09:56:31 +00:00
rizzo c811946a9e convert ast_build_str to ast_str_*
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48516 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 09:46:20 +00:00
rizzo 9ad774382a replace ast_build_string() with ast_str_*() functions.
This makes the code easier to follow and saves some
copies to intermediate buffers.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48515 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 09:33:31 +00:00
kpfleming 79a60fb124 Merged revisions 48513 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48513 | kpfleming | 2006-12-15 22:25:09 -0600 (Fri, 15 Dec 2006) | 2 lines

instead of initializing the curl library every time the CURL() function is invoked, do it only once per thread (this allows multiple calls to CURL() in the dialplan for a channel to run much more quickly, and also to re-use connections to the server) (thanks to JerJer for frequently complaining about this performance problem)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48514 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 04:25:46 +00:00
rizzo 22ccdcccce prevent a compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48512 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 02:42:53 +00:00
rizzo b68b240ef8 simplify the ast_dynamic_str_*.... routines by
renaming them to ast_str ... and putting the
struct ast_threadstorage pointer into the struct ast_str.

This makes the code a lot more readable.

At this point we can use these routines also to
replace ast_build_string().



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48510 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 23:10:42 +00:00
rizzo 5343b4f73d move the dynamic string support in a better place i.e. string.h
While doing this, add a bit of documentation, and slightly
extend the functionality as follows:
 + a max_len of -1 means that we take whatever the current size
   is, and never try to extend the buffer;
 + add support for alloca()-ted dynamic strings, which is very
   useful for all cases where we do an ast_build_string() now.

Next step is to simplify the interface by using shorter names
(e.g. ast_str as a prefix) and removing the _thread variant
of the functions by saving the threadstorage reference into
the struct ast_str. This can be done by overloading the
'type' field.

Finally, I will do my best to remove the convoluted interface
that results from trying to support platforms without va_copy().



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48509 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 22:08:46 +00:00
rizzo ec2fcf6ae9 remove a duplicate include
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 22:00:48 +00:00
file 1996acb9c2 Merged revisions 48506 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48506 | file | 2006-12-15 14:55:28 -0500 (Fri, 15 Dec 2006) | 2 lines

Turn payload_lock into bridge_lock and make it encompass all RTP structure contents that may relate to bridge information, including who we are bridged to.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 19:57:04 +00:00
file e5cfad953d Merged revisions 48504 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48504 | file | 2006-12-15 14:38:51 -0500 (Fri, 15 Dec 2006) | 2 lines

Hold call structure lock in places where a qualify or peer action can destroy it.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48505 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 19:40:29 +00:00
file a9d5207d8f Merged revisions 48502 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48502 | file | 2006-12-15 14:24:15 -0500 (Fri, 15 Dec 2006) | 2 lines

Lock network retransmission queue in all places that it is used.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48503 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 19:26:45 +00:00
rizzo 8388c27928 unbreak the output for http session.
Not long ago i replaced lseek() with fseek() but
forgot that filr FILE's you need ftell to
give you the current position.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48501 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 18:37:29 +00:00
rizzo 1302caa9a0 remove ast_safe_string_alloc() - it is completely
equivalent to asprintf().



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48499 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 15:44:59 +00:00
rizzo b6f53a1173 replace ast_safe_string_alloc() with asprintf()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48498 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 15:40:57 +00:00
rizzo 202f0f52b5 replace ast_safe_string_alloc() with asprintf()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48497 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 15:39:29 +00:00
rizzo 5e8716ec8d small documentation improvements.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48495 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 14:33:59 +00:00
oej 3a4ba3f4b6 Doxygen changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48491 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 13:36:34 +00:00
oej cb3a26307c Issue #8592 - treat 504 as congestion (imported from 1.2/1.4)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48488 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 10:58:36 +00:00
oej ca785a8d54 Update to latest IANA specs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48485 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 10:54:06 +00:00
file ff7a44174e Add support to see what holds the lock when doing trylock.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48480 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 06:34:29 +00:00
file c830210dc8 Merged revisions 48478 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48478 | file | 2006-12-15 01:28:05 -0500 (Fri, 15 Dec 2006) | 2 lines

Use a wakeup variable so that we don't wait on IO indefinitely if packets need to be retransmitted.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48479 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 06:31:26 +00:00
rizzo 80d6954430 constify ast_state2str() and note it is not reentrant.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48477 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 04:03:42 +00:00
rizzo 889d8eecec remove the macro LOAD_OH and expand it inline in the only
place where it was used.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48476 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-15 03:59:31 +00:00
file 9767c79f32 Merged revisions 48472 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48472 | file | 2006-12-14 12:36:12 -0500 (Thu, 14 Dec 2006) | 2 lines

Payload values on the RTP structure can change AFTER a bridge has started. This comes from the packet handling of the SIP response when indication that it was answered has been sent. Therefore we need to protect this data with a lock when we read/write. (issue #8232 reported by tgrman)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48473 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-14 17:39:16 +00:00
file eb51e82a51 Merged revisions 48461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48461 | file | 2006-12-13 22:33:30 -0500 (Wed, 13 Dec 2006) | 2 lines

Remove direct RTCP bridging. I've come to the conclusion that we should handle this through the core and not just forward it on. Should solve a few bugs.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48462 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-14 03:39:39 +00:00
rizzo bf09fdc230 make sure that showdialplan sends only one
'Response: Success ' message even in case of
a recursive call.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48459 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-13 23:08:02 +00:00
rizzo 24d16af409 clean up function manager_show_dialplan_helper()
reducing indentation and normalizing loops.

While doing this, remove some unused variables,
fix an uninitialized string (idaction), and mark
some places where the behaviour is not what we would expect
(e.g. an empty context is reported as an error same as
a non-existent one). Given that this function is
not in 1.4, the above can be changed without too many
backward compatibility concerns.

Not applicable to 1.4 or below.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48458 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-13 22:54:41 +00:00
mogorman f6653b4a10 support for deactivating translation paths that are no longer available
and more descriptive show transcoder cli command.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48455 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-13 21:23:54 +00:00
russell 8d605a7617 revert check for a zaptel transcoder related definition that was done in the
wrong module.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48433 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-13 00:56:30 +00:00
kpfleming 0a8ad75e7e Merged revisions 48427 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48427 | kpfleming | 2006-12-12 17:18:14 -0600 (Tue, 12 Dec 2006) | 2 lines

when making a release, we can always use wget and we can't run the configure script to find that out...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48432 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 23:28:15 +00:00
russell 13a8a1bbe3 Fix various spelling mistakes in comments.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48417 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 22:32:20 +00:00
russell 8b74d85e18 Make chan_zap inform you that your version of zaptel is too old instead of
just failing to compile.

It seems like the proper way to do this would be in the configure script.
However, that wouldn't help existing checkouts unless we forced the configure
script to be executed after any code was changed.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48416 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 22:27:22 +00:00
mogorman 3a091c1b1e fixed nubb error on my part, transcoder now unlocks and locks correctly, as well as counts in the correct direction.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48415 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 19:55:39 +00:00
rizzo bf611f9cef properly initialize a malloc'ed buffer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48410 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 10:36:15 +00:00