Joshua Colp
2a71835d41
Convert chan_iax2 to use dnsmgr in order to deal with hostnames that can change their resolved IP (aka dynamic dns setups) (issue #6305 reported and fixed by ivanfm)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-05 15:44:37 +00:00
Olle Johansson
404f8db694
Do not use ':' as a separator between arguments (kept around for 1.4 for backwards compatibility)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-05 06:36:18 +00:00
Russell Bryant
bb7dd96cfe
Add support for using a jitterbuffer for RTP on bridged calls. This includes
...
a new implementation of a fixed size jitterbuffer, as well as support for the
existing adaptive jitterbuffer implementation. (issue #3854 , Slav Klenov)
Thank you very much to Slav Klenov of Securax and all of the people involved
in the testing of this feature for all of your hard work!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-31 16:56:50 +00:00
Kevin P. Fleming
4790dd5d9e
when we receive an IAX2 registration request with both a plaintext secret and an MD5 challenge, prefer the MD5 challenge for authentation (reported on asterisk-dev)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-30 18:01:52 +00:00
Joshua Colp
79161454a3
Few more expire_registry changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-26 20:00:48 +00:00
Russell Bryant
730f75cc78
only display a debug message if option_debug is in use
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-25 22:39:57 +00:00
Joshua Colp
e0612c9835
Safely traverse the thread lists and wait until each thread is done before moving on to the next.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-25 16:14:17 +00:00
Joshua Colp
336fd1a2de
Only get the low 16 bits if we actually have a message count
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-25 15:42:11 +00:00
Russell Bryant
7370cb3221
Merged revisions 29849 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r29849 | russell | 2006-05-23 17:44:52 -0400 (Tue, 23 May 2006) | 2 lines
fix the sourceaddress option (issue #7213 , alphaque)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23 21:46:26 +00:00
Kevin P. Fleming
df6767fa52
Merged revisions 28896 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r28896 | kpfleming | 2006-05-19 19:55:31 -0500 (Fri, 19 May 2006) | 2 lines
don't try to predict where the compiler will place things on the stack... put them in the right place explicitly (issues #7029 and #7100 , maybe others)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-20 01:01:20 +00:00
Tilghman Lesher
d0c36296d2
As requested by kpfleming, renaming messagecount to inboxcount and messagecount2 to messagecount.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 18:21:31 +00:00
Joshua Colp
5769ed6ea2
Fix receiving message count information from a remote IAX2 peer. (issue #7163 reported by and fixed by akohlsmith)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18 00:12:54 +00:00
Joshua Colp
a6480b61b0
Merged revisions 27973 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r27973 | file | 2006-05-17 19:34:08 -0300 (Wed, 17 May 2006) | 2 lines
Fix codec priority stuff during authentication (issue #6194 reported by jkoopmann)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 22:35:53 +00:00
Kevin P. Fleming
5fb4e7019f
and chan_iax2 gets smaller... remove the old jitterbuffer
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 16:14:26 +00:00
Russell Bryant
04ecb29d03
remove almost all of the checks of the result from ast_strdupa() or alloca().
...
As it turns out, all of these checks were useless, because alloca will never
return NULL.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 13:22:15 +00:00
Kevin P. Fleming
fdcfd6469b
ensure that control frames with payload can be sent to channel drivers via ->indicate()
...
update iax2_indicate to pass control frame payload to the connected channel
add an API call for sending an indication with payload, and use it for control frames with payload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 12:24:11 +00:00
Mark Spencer
66ed134473
Allow media to go directly between IAX endpoints while signalling still
...
goes through the existing path.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 09:09:16 +00:00
Kevin P. Fleming
c22eb692a1
minor cleanups and removal of duplicate prototypes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-09 14:25:31 +00:00
Joshua Colp
b82b277790
Update chan_iax2 to use linkedlists.h for users and peers. Modify the way get_from_jb and expire_registry works to get rid of certain crash scenarios. Finally - change the way expire_registry works when realtime autoclear is enabled to be a bit more efficient.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-03 16:07:03 +00:00
Kevin P. Fleming
51382b3712
Merged revisions 23705 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r23705 | kpfleming | 2006-04-30 10:46:22 -0500 (Sun, 30 Apr 2006) | 2 lines
remove a pointless comparison, since the buffer is smaller than the length being checked for
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-30 15:48:56 +00:00
Kevin P. Fleming
574e14cbea
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-24 17:11:45 +00:00
Luigi Rizzo
52ac09f78f
simplify logic in iax2_bridge()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-18 14:23:14 +00:00
Joshua Colp
5c05128777
Move a bit more stuff over to the datadir (issue #6967 reported by tzafrir patch by north)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-15 23:37:29 +00:00
Luigi Rizzo
e43bc6634d
This rather large commit changes the way modules are loaded.
...
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely. Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.
Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.
I am just sorry that this change missed SVN version number 20000!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 14:08:19 +00:00
Joshua Colp
d7f01e051b
No need to do this in here any longer since the linkedlists macro is fixed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 20:51:45 +00:00
Joshua Colp
afcefc4a68
Convert chan_iax2 to use linked lists for multithreading, and add dynamic threads. These are used when all pool threads are in use, and will stick around until load dies down. The theory is that during high load you'll have more threads available, and during low load you'll only have the normal pool threads sticking around.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 16:44:10 +00:00
Kevin P. Fleming
f10f427d49
since the module API is changing, it's a good time to const-ify the description() and key() return values
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08 22:01:19 +00:00
Tilghman Lesher
756c7cbb12
Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 17:44:44 +00:00
Matthew Fredrickson
a868675e2f
chan_iax2 cleanups and optimizations ( #6858 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 17:05:01 +00:00
Matt O'Gorman
b9e7287ce6
adds manager event when an iax2 peer loses registration.
...
also some minor code clean up. patch from 6868 with minor
changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 16:15:40 +00:00
Russell Bryant
e536a9c6df
move a NULL check to before the first time the pointer is dereferenced (issue #6832 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 19:14:28 +00:00
Russell Bryant
a13ab2f377
- code formatting tweaks
...
- use the callno stored in a local variable
- store the result of atoi() so it's only called once
(issue #6833 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 19:02:27 +00:00
Russell Bryant
813c445686
Merged revisions 16744 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r16744 | russell | 2006-03-31 13:42:09 -0500 (Fri, 31 Mar 2006) | 2 lines
fix the situation where bindport is specified but bindaddr is not (issue #6616 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 18:43:45 +00:00
Joshua Colp
5880a7f513
Do not leave a thread in limbo if an error occurs, or if testing packet loss.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 00:53:32 +00:00
Luigi Rizzo
6c232811c0
as discussed with Mark a few weeks ago, the 'newstack' argument
...
in pbx_exec is always 1 so it can be removed.
This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 21:29:39 +00:00
Joshua Colp
0c134c5cba
Fix IAX2 multithreaded scheduling (issue #6840 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 03:16:09 +00:00
Russell Bryant
1caeee1c61
oops! :)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 04:19:23 +00:00
Russell Bryant
6601f4deba
conversion from malloc to ast_malloc
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 04:09:31 +00:00
Luigi Rizzo
096bf1511f
another batch of cli simplifications
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 23:33:02 +00:00
Russell Bryant
3de0204481
Merged revisions 15703 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r15703 | russell | 2006-03-28 14:47:03 -0500 (Tue, 28 Mar 2006) | 2 lines
fix Bus Error on sparc (issue #6354 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 19:49:30 +00:00
Russell Bryant
1ddae90e53
only display a debug message if iaxdebug is enabled as well (issue #6673 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 19:31:41 +00:00
Russell Bryant
78f7235d04
store f->callno in a local var (issue #6818 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 18:00:05 +00:00
Kevin P. Fleming
0b5f2a5d3f
use proper file name
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 03:36:17 +00:00
Kevin P. Fleming
278b8e8fc7
improve IP TOS support for SIP and IAX2 (issue #6355 , code from jcollie plus modifications)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 03:28:52 +00:00
Matt O'Gorman
a5ece3388a
Janitor work converting !ast_strlen_zero(a)?a:b
...
to S_OR functions. from bug note 6805 with minor
modifications.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 19:31:54 +00:00
Mark Spencer
9164eac21a
Add micro-http server and abstract manager interface, make snmp not die
...
on reload.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-25 23:50:09 +00:00
Kevin P. Fleming
c26786fd81
compute scheduler thread timeout properly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 23:57:18 +00:00
Kevin P. Fleming
39464dfe09
commit file's work to convert iax2 multithreading to use pthread conditions instead of signals (with some modifications)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 23:11:09 +00:00
Olle Johansson
3cb5768016
Don't overwrite ANI if it's already sent with IES (imported from 1.2 branch)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-20 17:39:14 +00:00
Russell Bryant
9df72acbe9
deprecate the mailboxdetail option and always use its behavior, instead (issue #6665 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 18:05:22 +00:00
Russell Bryant
48c85e83bd
fix build without SCHED_MULTITHREADED defined (issue #6719 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 16:00:06 +00:00
Mark Spencer
0752f8e41e
Make sure we clear our sched value before we actually schedule the
...
dereg.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-09 12:28:07 +00:00
Mark Spencer
2639b0a397
Handle disappearing calls for registers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 20:58:21 +00:00
Russell Bryant
6cff0b11f0
Merged revisions 11410 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r11410 | russell | 2006-02-28 14:46:04 -0500 (Tue, 28 Feb 2006) | 2 lines
fix the output that indicates whether qualify smoothing is on or not (issue #6608 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 19:51:23 +00:00
Russell Bryant
f3b1b80b93
fix some build issues on FreeBSD (issue #6614 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 19:22:25 +00:00
Mark Spencer
ce263dfb94
Oops
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:55:37 +00:00
Mark Spencer
6e9d6fdd0f
Fix for GCC 3.2.2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:32:04 +00:00
Mark Spencer
a26b7f3400
Make sure we clear up schedule numbers before we process schedule
...
entries.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:27:56 +00:00
Mark Spencer
8913eac229
Keep track of the function we're in the middle of doing
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-28 04:20:14 +00:00
Mark Spencer
16109b9d2c
Make IAX2 multithreaded
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-26 20:27:14 +00:00
Kevin P. Fleming
302c943001
add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
...
update pbx_dundi to use ast_get_time_t
eliminate some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-23 17:13:57 +00:00
Mark Spencer
72465ade16
Remove several uses of freed memory
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-20 05:58:50 +00:00
Matt O'Gorman
d442f57537
add 'blindtransfer' variable to chan iax2 like chan_sip and res_features bug note 6407
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-16 23:44:09 +00:00
Kevin P. Fleming
4662d58b01
add API function for parsing strings to time_t (issue #6320 , with mods)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 00:24:24 +00:00
Kevin P. Fleming
96bf384e7d
major dialplan functions update
...
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-12 04:28:58 +00:00
Russell Bryant
452f87a465
Merged revisions 9609 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9609 | russell | 2006-02-11 14:23:20 -0500 (Sat, 11 Feb 2006) | 2 lines
fix memory leak from not destroying the scheduler context on module unload
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 19:31:11 +00:00
Mark Spencer
c74856b173
Make IAX2 not try to authenticate when registration info is not changing
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 07:06:23 +00:00
Russell Bryant
14906b3cfc
Merged revisions 9246 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9246 | russell | 2006-02-08 20:24:55 -0500 (Wed, 08 Feb 2006) | 2 lines
reload peercontext on iax2 reload (issue #6442 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 01:33:50 +00:00
Kevin P. Fleming
a16ae226b6
use string fields for some stuff in ast_channel
...
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01 23:05:28 +00:00
Russell Bryant
a228af1dd9
remove some more local declarations of null frames
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 17:57:12 +00:00
Matthew Fredrickson
0296f45bff
Add rdnis rx/tx support to chan_iax2 ( #6348 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-27 23:55:37 +00:00
Kevin P. Fleming
c767a66da5
don't queue a congestion frame on a channel that will be immediately hung up anyway
...
clean up/organize code block
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 14:52:43 +00:00
Russell Bryant
4414f45393
on this pass, only remove duplicate log messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 20:57:06 +00:00
Russell Bryant
9fa6eb5e07
revert my pass through the tree to remove checks of the result of ast_strdupa
...
(revisions 8378 through 8381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 17:50:04 +00:00
Russell Bryant
847260bb77
remove some useless checks of the result of ast_strdupa
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 08:01:24 +00:00
Matt O'Gorman
bc133ed475
Merged revisions 8320 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8320 | mogorman | 2006-01-19 19:00:46 -0600 (Thu, 19 Jan 2006) | 3 lines
solved problem with delayreject and iax trunking
bug 4291
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 01:07:46 +00:00
Olle Johansson
0fd8b4cb3b
Doxygen updates
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 00:08:36 +00:00
Russell Bryant
6f71e1178e
constify arguments in more places where strings should not be modified (issue #6286 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-18 22:17:31 +00:00
Russell Bryant
466a062b09
convert some channels to use the memory allocation wrappers.
...
(This is being added to the janitor projects list.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 01:20:29 +00:00
Kevin P. Fleming
8d17df65ce
Merged revisions 7917 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7917 | kpfleming | 2006-01-09 16:48:48 -0600 (Mon, 09 Jan 2006) | 2 lines
re-initialize _all_ sequence numbers when transfer completes
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7918 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-09 23:06:28 +00:00
Kevin P. Fleming
a4f8d466e8
update copyright headers for files changed this year
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-03 22:16:23 +00:00
BJ Weschke
7aad650606
Fix compiler warnings.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-02 01:53:26 +00:00
Russell Bryant
a725468381
update doxygen docs to specify authors
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-30 21:18:06 +00:00
Russell Bryant
37e21fc61c
avoid unneeded calls to strlen in iax2 completion functions
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-27 19:48:44 +00:00
Russell Bryant
ef1ce7aec9
Merged revisions 7634 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7634 | russell | 2005-12-26 13:19:12 -0500 (Mon, 26 Dec 2005) | 2 lines
cast time_t to an int in printf/scanf (issue #5635 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-26 18:35:28 +00:00
Mark Spencer
6322aaad68
Fix reload of peer contexts (bug #6007 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-20 09:39:31 +00:00
Tilghman Lesher
870f98f02d
Bug 5858 - Make the chanvars.c functions return a 'const char *'
...
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-03 19:25:33 +00:00
Kevin P. Fleming
2c65582b66
remove extraneous svn:executable properties
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:24:39 +00:00
Kevin P. Fleming
e9cde1fbdb
fix port number handling in peer building functions
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-21 19:27:26 +00:00
Kevin P. Fleming
354b7f1a81
fix a bug found during a recent upgrade
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-21 19:20:26 +00:00
Russell Bryant
f367620dd9
issue #5815
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-21 13:04:36 +00:00
Russell Bryant
913232e82e
issue #5794
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-21 00:57:35 +00:00
Josh Roberson
85d60cf7ab
issue #5792
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-20 05:19:04 +00:00
Mark Spencer
2b547e1f9e
Fix build on FreeBSD 4.11
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-12 20:04:57 +00:00
Kevin P. Fleming
38c665bd67
fix typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-12 00:53:47 +00:00
Kevin P. Fleming
36315b865b
issue #5713
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-11 16:02:56 +00:00
Kevin P. Fleming
1740d40182
issue #5693
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-10 23:42:45 +00:00
Kevin P. Fleming
8c9a32bd4b
issue #5685
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-10 23:34:30 +00:00
Kevin P. Fleming
6dabdbc7cd
eliminate useless warnings generated by IAXy registrations
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-09 19:05:52 +00:00
Kevin P. Fleming
cdf4031963
issue #3360 plus related fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-09 00:48:38 +00:00
Russell Bryant
31a804b97c
issue #5605
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 15:09:47 +00:00
Russell Bryant
1781e73435
use enum's for iax user/peer flags, and for pvt state
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 05:52:26 +00:00
Russell Bryant
5039ee0965
allow the IAXPEER function to check a peer's status
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-04 18:40:35 +00:00
Kevin P. Fleming
e86e9a9fe3
allow netsock objects to be unref'd so they can disappear when needed (issue #5454 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-31 23:16:27 +00:00
Kevin P. Fleming
0a314b2454
add some additional log output and comment cleanup in the registration process (issue #5534 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-31 22:01:13 +00:00
Mark Spencer
6b26826bab
Remove ancient copy/paste error (bug #5541 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-29 17:45:07 +00:00
Mark Spencer
6be92affa2
Fix minor iax2 device state issue (bug #5540 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-29 16:23:32 +00:00
Russell Bryant
9ddf0e4dce
Remove unnecessary checks before calls to ast_strlen_zero. Also, change
...
some places where strlen is used instead of ast_strlen_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-27 02:19:37 +00:00
Russell Bryant
d57fb0b655
doxygenify the comments for data structures and defines in chan_iax2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-26 17:07:51 +00:00
Russell Bryant
f1b14773dd
use an enum instead of #define'd integers in a couple of places
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-26 16:18:25 +00:00
Russell Bryant
3453e3efa5
Doxygen documentation update from oej (issue #5505 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-24 20:12:06 +00:00
Mark Spencer
c3226a226a
Fix segfault when building peer based on IP
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-23 18:11:54 +00:00
Jim Dixon
e726a13036
Allow for obtaining IAX2 call peer (endpoint) IP address with IAXPEER(CURRENTCHAN) function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-19 18:19:22 +00:00
Mark Spencer
4e919f337c
Fix queue, iax and sip formatting issues (bug #5449 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-17 22:26:33 +00:00
Mark Spencer
141d9f7156
Make sure when the timeout occurs that we actually break the bridge (bug #5252 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 17:02:20 +00:00
Kevin P. Fleming
9b69c79a36
fix compile error (%d changed to %n)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 05:29:41 +00:00
Jeremy McNamara
69bc7e0900
add missing new line
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 05:19:34 +00:00
Mark Spencer
03eb870f3e
Fix naming on realtime peers (bug #5421 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 22:48:11 +00:00
Mark Spencer
dd11afca42
Fix call timeouts with rtp bridge etc (bug #5252 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 18:27:54 +00:00
Mark Spencer
4d9210f705
Don't override calling presentation if *name* is present (bug #5405 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-12 05:12:43 +00:00
Mark Spencer
ea215f5b7d
Remove possibility of manager deadlocks from manager actions
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 23:10:14 +00:00
Mark Spencer
da7c542e29
Handle authenticating *to* realtime peers (bug #5269 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 19:13:54 +00:00
Kevin P. Fleming
4fb8ce1fd9
allow minimum/maximum registration intervals to be set on server side (issue #51111 )
...
respect server-provided registration interval on client side
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 02:25:06 +00:00
Kevin P. Fleming
fadae17355
don't leave a buffer not filled in when getting a REGACK (issue #5226 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 22:51:19 +00:00
Kevin P. Fleming
5da915dcfd
update MANY more files with proper copyright/license info (thanks Ian!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 20:46:50 +00:00
Kevin P. Fleming
16cd2019b1
ensure that Manager hold/unhold events are generated even for non-bridged channels (issue #4594 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 02:18:45 +00:00
Russell Bryant
943e527d0a
don't use a signed buffer for data that the protocol specifies as unsigned.
...
This fixes an issues with RSA authentication (issue #5148 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-09 01:07:25 +00:00
Kevin P. Fleming
a51556ff3e
don't reject REGREL requests (issue #5152 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 23:18:39 +00:00
Kevin P. Fleming
1e854ea773
remove useless buffer initializations (issue #5134 )
...
convert pbx_dundi to use ast_copy_string) (issue #5134 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 21:01:31 +00:00
Kevin P. Fleming
c70e1d1674
handle no-peer-specified-in-dial-string gracefully (issue #5132 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 20:52:03 +00:00
Kevin P. Fleming
5fdc070109
add new channel option (via ast_channel_setoption()) to let channel drivers adjust txgain/rxgain if they are able (only Zap channels at this time)
...
modify app_chanspy to use new gain option
reformat app_chanspy to match coding guidelines
add user-controlled volume adjustment to app_meetme (issue #4170 , heavily modified to actually work on Zap channels)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 01:30:01 +00:00
Kevin P. Fleming
6a260b78fe
use unsigned char for data elements and native-signed char for strings (issue #5104 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 19:17:19 +00:00
Kevin P. Fleming
a2be145193
make chan_iax2 rtupdate behave the same as chan_sip
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 14:19:36 +00:00
Kevin P. Fleming
d3a76999d0
various devicestate fixes (issue #5081 , take two)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 22:28:33 +00:00
Kevin P. Fleming
e86bb70642
stop adding 'username@' to incoming IAX2 channel names, so that they can be properly matched in the device-state system (issue #5081 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 22:13:40 +00:00
Kevin P. Fleming
6d19c704b7
make chan_sip and chan_iax2 less chatty when not in debug mode (issue #5067 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 21:20:59 +00:00
Russell Bryant
14fa6770e4
fix build when NEWJB is not defined (issue #5046 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 16:19:07 +00:00
Kevin P. Fleming
d86ce557ef
allow more adjustability in peer qualification system (issue #4192 with mods)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 17:11:44 +00:00
Mark Spencer
f76171a643
Fix IAX2 Provisioning
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 20:04:58 +00:00
Russell Bryant
f3c9715947
fix a little oopsie
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 19:31:54 +00:00
Mark Spencer
97e1ede292
Centralize and fix tos for IAX (bug #4850 inspired)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 16:41:28 +00:00
Kevin P. Fleming
ce7a1e4768
bridging code cleanups:
...
code style, formatting
use enum/symbolic constants for return codes
efficiency improvements
(zaptel) only disable DTMF detection once per bridge, not every frame
(zaptel) ensure VPM DTMF detector is turned off during native bridge
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 01:59:59 +00:00
Russell Bryant
149168f4a5
remove some sillyness
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 17:09:18 +00:00
Mark Spencer
51c390db61
Fix timestamp + trunking (bug #4891 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 14:53:14 +00:00
Russell Bryant
7564500552
formatting fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-06 06:40:05 +00:00
Russell Bryant
d0cec3dd99
fix seg fault
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 07:03:35 +00:00
Russell Bryant
c3c496512f
'outgress' should be 'egress'
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-04 17:33:21 +00:00
Russell Bryant
6f312133ac
make sure that iaxs gets initialized (bug #4856 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 14:46:14 +00:00
Kevin P. Fleming
8703628608
add explanatory comment about timestamp compensation (bug #4763 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 23:13:20 +00:00
Kevin P. Fleming
3f5035dce4
_really_ fix IAX2 crazy timestamp problem (bug #4747 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 22:46:58 +00:00
Kevin P. Fleming
4dd4428204
split acl and netsock code into separate files, in preparation for new netsock implementation
...
various minor cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:17:02 +00:00
Kevin P. Fleming
22b0f5d306
add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:00:47 +00:00
Mark Spencer
3916b7e41b
Fix IAX2 encryption (really, bug #4500 for reference)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 14:46:20 +00:00
Kevin P. Fleming
d7e09f233f
allow explicit source address/port selection for peers (bug #4257 , with minor mods)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:19:41 +00:00
Russell Bryant
4c531ca8c0
define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:49:57 +00:00
Kevin P. Fleming
c13d601fb4
queue device state changes and handle them serially in a background thread
...
optimize device state related functions
add ast_get_channel_by_name_prefix to allow searching for matching channels in O(1) operation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 21:14:34 +00:00
Kevin P. Fleming
f268ea2b3c
make CLI output use singular/plural when appropriate (bug #4654 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 22:32:20 +00:00
Russell Bryant
f3e538205b
no need to call srand() when it is already called in asterisk.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 04:38:59 +00:00
Kevin P. Fleming
4803ab0bb2
don't use locks when reading usecounts (reading only, not writing)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:15:04 +00:00
Kevin P. Fleming
8db7830293
fix outgoing format selection breakage
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 01:37:15 +00:00
Kevin P. Fleming
b68ffcd38d
fix debug output (bug #4562 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 15:33:25 +00:00
Kevin P. Fleming
54e74ff81b
control maximum number of interpolation frames generated during silence by jitterbuffer (bug #4295 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:20:14 +00:00
Kevin P. Fleming
5285af5631
separate IAX2 protocol debugging and jitterbuffer debugging (bug #4523 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:02:07 +00:00
Mark Spencer
fb12b92a43
Various IAX2 fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-13 08:48:17 +00:00
Kevin P. Fleming
5736270107
add 'rtignoreexpire' option to allow Realtime addresses to be used regardless of expiration time (bug #4362 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 21:11:30 +00:00
Kevin P. Fleming
ddaa0cc0dd
don't call alloca() or alloca()-using functions in parameter lists (bug #4487 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 20:55:07 +00:00
Kevin P. Fleming
706bf6d427
ensure CLI commands produce proper terminating output when used with manager interface (bug #4497 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 19:34:12 +00:00
Kevin P. Fleming
2b8338cb52
more file version tags
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:12:19 +00:00
Kevin P. Fleming
005e436b57
another round of version tag updates, along with 'show version files' pattern filtering
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 21:09:59 +00:00
Kevin P. Fleming
4f299de252
major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 03:04:58 +00:00
Kevin P. Fleming
8a0ade1fd8
don't call reg_source_db() until after the peer has been added to the peer list
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 20:05:55 +00:00
Kevin P. Fleming
68668b602d
use ast_cli_register_multiple() for CLI commands
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 22:04:54 +00:00
Kevin P. Fleming
a198e5af5a
use ast_strip_quoted to strip brackets from key secrets
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 21:02:51 +00:00
Kevin P. Fleming
860d7948ba
clean up create_addr, and use a structure instead of a large parameter list
...
make create_addr return the peer's outkey, so dynamic realtime peers can use keys for calls (bug #4431 )
add key support for switch connection strings
use a common dial/switch string parser instead of three copies (none of them identical)
make doxygen docs cover the entire source base
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 18:46:58 +00:00
Mark Spencer
c01873574a
Blindly merge jitter buffer patch of bug #4342 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 17:45:38 +00:00
Mark Spencer
04be319867
Fix small sizeof bug ( #4407 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-30 13:57:51 +00:00
Mark Spencer
41e7cc8154
Use defined AST_MAX_ACCOUNT_CODE (bug #4350 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 17:18:05 +00:00
Kevin P. Fleming
c8889e6563
add IAXPEER function (bug #4310 , with minor formatting and doc changes)
...
add note to CODING-GUIDELINES about minimizing indentation in function bodies
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 04:31:02 +00:00
Mark Spencer
53d655cf0a
Yet another set of jitter buffer changes (this time some scheduling improvements) (bug #4319 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 01:24:09 +00:00
Mark Spencer
9272e1f68a
More jitter buffer fixes for large resync (bug #4311 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 00:34:28 +00:00
Mark Spencer
503be4c93a
Merge skew reduction (bug #4222 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 00:01:11 +00:00
Mark Spencer
ee8cbfa872
Add IAX2 testing code (bug #4242 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 23:43:13 +00:00
Mark Spencer
28e5165284
Actually apply timestamp bug (bug #3961 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 23:33:06 +00:00
Russell Bryant
9f9fcca6c0
print out the IAX DATETIME IE in 'iax2 debug' in human readable form
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-17 19:41:09 +00:00
Kevin P. Fleming
9bf21dbf58
more strncpy -> ast_copy_string conversions, fixing some buglets along the way
...
add recommendation to CODING-GUIDELINES to use ast_copy_string instead of strncpy in new code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 23:26:45 +00:00
Kevin P. Fleming
fb59e4a857
combine two lines of code to make the logic clearer (bug #4273 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 22:05:16 +00:00
Kevin P. Fleming
ea4c054123
fix segfaults in realtime_peer/realtime_user when wrong-type realtime entry is loaded (bug #4266 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 20:00:08 +00:00
Kevin P. Fleming
3fbdf210ce
fix up help text and output for 'iax2 trunk debug' CLI command (bug #4191 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 04:51:13 +00:00
Kevin P. Fleming
6cd4f9a8d3
correct some signed/unsigned issues found by GCC 4 (bug #4237 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:21:51 +00:00
Mark Spencer
e37adfa243
Add netstats option (bug #4175 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 00:15:14 +00:00
Mark Spencer
01424f1f05
Fix one way audio problem with iax trunking (bug #4221 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 00:07:42 +00:00
Mark Spencer
c936fc827c
Add remainder of rtp fixes, iax2 patch (bug #3961 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 23:57:44 +00:00
Russell Bryant
65a7d2ac76
fixes for the new jitter buffer (bug #4249 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-12 19:01:03 +00:00
Kevin P. Fleming
7d6ba573e5
move some debugging output to a higher debug level (bug #4119 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 04:49:32 +00:00
Kevin P. Fleming
fe6517959e
change (iax2,sip) show (peers,users) to use 'like <pattern>' for pattern-matching to be consistent with other CLI commands
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-02 01:34:21 +00:00
Kevin P. Fleming
8634ef9e4a
don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 17:00:33 +00:00
Kevin P. Fleming
b2c3f0464f
unregister reload command (bug #4102 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-28 16:21:00 +00:00
Kevin P. Fleming
0fe9884e0b
report IP of peer who sent failing registration (bug #4089 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5511 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 02:52:14 +00:00
Kevin P. Fleming
5a6d5c1751
ensure cause code supplied by IAX2 peer is passed up to caller properly (bug #4064 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 02:30:36 +00:00
Kevin P. Fleming
1f9ab2380a
use double-quotes instead of angle-brackets for non-system include files (bug #4058 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21 06:02:45 +00:00
Russell Bryant
7bffc0459c
add missing newlines, fix misspelling of nonexistent (bug #4027 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 23:33:47 +00:00
Kevin P. Fleming
b052fe894b
ensure that the random number generator(s) are always seeded with a different value during Asterisk startup
...
don't reinitialize random number generators in other modules
(bug #4017 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 04:47:39 +00:00
Kevin P. Fleming
d254db31c8
*** empty log message ***
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-06 21:12:32 +00:00
Kevin P. Fleming
8b2b938b7e
correct IAX loading/binding message (bug #3953 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 23:41:34 +00:00
Kevin P. Fleming
f9f59ae89d
move start_network_thread to _before_ testing its result :-) (bug #3952 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-04 23:32:11 +00:00
Kevin P. Fleming
b96ae79baa
handle AST_FORMAT_SLINEAR endianness properly on big-endian systems (bug #3865 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 22:57:18 +00:00
Kevin P. Fleming
7438526620
fix various compiler warnings (bug #3938 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 21:16:01 +00:00
Kevin P. Fleming
661770497b
Allow chan_iax2 to build on systems that don't define SO_NO_CHECK (bug #3908 , round 2)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 15:52:26 +00:00
Kevin P. Fleming
2097977b7d
Add 'iax2 reload' CLI command and fix peer counting with regex matches (bug #3876 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 04:50:21 +00:00
Mark Spencer
6ea8bf36f8
Fix IAX2 out of memory failure (bug #3907 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-31 19:29:54 +00:00
Mark Spencer
f3b51061e4
Add option to disable checksums on IAX
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 23:20:31 +00:00
Mark Spencer
dc9faa21e4
Fix a bunch of const stuff, merge queue changes, add experimental "hybrid" DTMF mode
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 20:48:24 +00:00
Mark Spencer
e7b18536c4
Fix SIP/IAX caching (bug #3671 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 05:02:49 +00:00
Mark Spencer
730194d609
Merge Russell's formatting patch (bug #3838 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 05:56:32 +00:00
Anthony Minessale II
a8e79d3830
fix typo per stevek's req
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-18 00:32:49 +00:00
Mark Spencer
7082d0584e
Add PLC and jitter buffer and iax2 meta trunk with timestamps (bug #2532 , #3400 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 21:30:19 +00:00
Mark Spencer
f0449777db
Fix missing newline to notice (bug #3775 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-16 18:33:56 +00:00
Mark Spencer
18d9b26cf9
Rework channel structure to eliminate "pvt" portion of channel (bug #3573 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 06:47:24 +00:00
Mark Spencer
3def26a0e4
Add iax2 device state notification (bug #3640 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 06:40:20 +00:00
Mark Spencer
d10878282b
Provide more info when native bridge cannot occur (bug #3627 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-19 20:46:34 +00:00
Mark Spencer
9529e3ebb0
Make IAX2 channel names use "-" instead of "/" for call number (bug 3594)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-18 06:14:54 +00:00
Mark Spencer
ddcfe8d3af
Fix apparent logic error that causes unregistered non-realtime peers to be destroyed (bug #3569 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-12 20:15:15 +00:00
Mark Spencer
2b914b7ebf
Add support for receiver reports (bug #3236 , with mods)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-12 18:52:14 +00:00
Mark Spencer
5611ff040e
Fix native bridge not to intercept DTMF if it's needed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-11 20:07:45 +00:00
Mark Spencer
c52f076bca
Separate IAX and SIP tables for users/peers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 21:14:11 +00:00
Mark Spencer
5d9bbe64c8
Merge tony's IAX/SIP realtime cache (bug #3509 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 20:04:42 +00:00
Mark Spencer
ca0a0a0daa
Merge IAX2 peer completion patch (bug #3462 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 21:32:26 +00:00
Mark Spencer
2491d3b75d
Improve logging and add summaries (bug #3459 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 06:50:46 +00:00
Mark Spencer
ccd7a7ac54
Reduce complexity of check for f->samples / 8 not being 0
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-28 22:08:24 +00:00
Mark Spencer
5f726ad8c7
Merge config updates (bug #3406 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-25 06:10:20 +00:00
Russell Bryant
0c30452423
update copyright headers for 2005
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 07:06:25 +00:00
Mark Spencer
b27daee8b0
IAX codec fixes (bug #3387 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 23:42:06 +00:00
Mark Spencer
e3da507a44
Make sure we check for owner even after a queue frame
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 22:53:57 +00:00
Mark Spencer
e2c9887aeb
Simplify find_peer usage (bug #3341 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-15 07:33:17 +00:00
Mark Spencer
3519110944
Give us more wiggle room on incoming registrations
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-14 21:10:16 +00:00
Mark Spencer
5a69a332e5
Fix to be sure we have a valid fd on a peer
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 17:28:26 +00:00
Mark Spencer
186e36c403
Allow multiple bindaddrs so asterisk uses the same interface for tx as rx
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-11 17:08:52 +00:00
Mark Spencer
18ff12ba8b
Merge regex for iax2 show peers (bug #3223 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4733 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 18:35:31 +00:00
Mark Spencer
4038178ccb
Merge experimental codec preferences for IAX2 (bug #2971 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 10:32:53 +00:00
Mark Spencer
e163642ed1
Don't native bridge when needing digits
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 18:52:18 +00:00
Mark Spencer
8e3722ceee
More flagification (bug #3254 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 23:05:49 +00:00
Mark Spencer
90197dbbdc
Minor IAX2 fixes, add incomplete-but-very-basically-functional IAX2 encryption
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 23:02:21 +00:00
Mark Spencer
83728dbd79
Merge Tilghman's cause codes patch (bug #3032 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-26 22:33:25 +00:00
Jim Dixon
8e1a2d57a6
Fix Divide by zero possibility (ouch!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 07:04:16 +00:00
Mark Spencer
49eb667a95
Move iax2 to flags, too (thanks drumkilla!) (bug #3124 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 01:42:14 +00:00
Mark Spencer
ad3c50f656
Merge Steve's timestamp patch (bug #3119 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-22 00:16:42 +00:00
Mark Spencer
d87c4f7008
iax2 typename fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-20 00:10:05 +00:00
Mark Spencer
d6471bec31
Merge Olle's comment patch (bug #3097 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 21:13:41 +00:00
Mark Spencer
f81cf74784
Make sure read/write format are setup properly.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 18:26:12 +00:00
Mark Spencer
bc92c225fb
Add iax2 provisioning application for dialplan
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 19:25:10 +00:00
Mark Spencer
46927aa38b
Don't print silly unregistered messages on realtime
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-29 03:24:35 +00:00
Mark Spencer
ebda286578
Don't seed on temponly peers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-29 03:19:55 +00:00
Mark Spencer
893b238eff
Don't hold the iaxsl[x] lock while finding the peer, do it ahead of time.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4322 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 13:44:08 +00:00
Mark Spencer
4562f0632a
Fix typo (missing braces) (bug #2919 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 19:01:11 +00:00
Mark Spencer
23c2d6b12c
Release call lock while we look for the peer to avoid a deadlock
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 18:25:27 +00:00
Mark Spencer
ee47520f28
Merge Tony's uservars (bug #2882 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 03:10:38 +00:00
Mark Spencer
dd43338425
Updates from char * to const char * + german syntax + enumeration (bug #2780 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-13 16:13:07 +00:00
Mark Spencer
a5075fe0f8
Make timezone configurable within IAX (bug #2814 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-09 05:05:07 +00:00
Mark Spencer
8a13712e45
Pass concept of status back, permit "leaveempty" to work with static agents who are not loggedon (bug #2719 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-26 22:25:43 +00:00
James Golovich
8009d53690
Pass format string
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 06:44:37 +00:00
Mark Spencer
e21ed1865b
First pass at making transfer work within agent (not tested, shouldn't break anything that currently worked)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 12:19:47 +00:00
James Golovich
73831ac046
More memory checks
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-23 07:03:01 +00:00
James Golovich
487dc0897a
Small verbosity fix in chan_iax2.c from bkw_
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 15:02:13 +00:00
Mark Spencer
787822b4c8
Minor improvements to debug output (bug #2644 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 15:36:16 +00:00
Mark Spencer
bb10f5af9f
Fix trasnfer issue (bug #2632 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 03:58:35 +00:00
Mark Spencer
e0ff16cf78
Be careful!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-12 19:54:54 +00:00
Mark Spencer
fd514b89f9
Keep back delivery times on trunk (bug #2587 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 20:27:54 +00:00
Mark Spencer
b950439080
Add autokill to IAX2, too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-10 01:42:46 +00:00
Mark Spencer
0e76390736
Remove silly printf
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-09 16:34:12 +00:00
Mark Spencer
6390872a5d
IAX2 authentication improvements
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 23:20:02 +00:00
Mark Spencer
9209bc5e13
Don't save dynamic peers in registery (bug #2610 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 15:21:20 +00:00
Mark Spencer
f869646706
Provide more useful iax2 debugging (bug #2603 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 05:37:19 +00:00
Mark Spencer
eb2cd99a14
Default for overriden should be passed screen
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 21:06:32 +00:00
Mark Spencer
3ec18090b9
Fix callerid on IAX2 (received)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 21:04:10 +00:00
Mark Spencer
ed62f449a9
Oops, we have to be able to pass multiple restrictions for when we go to voicemail...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-07 19:57:50 +00:00
Mark Spencer
ebb18daf22
Major changes to res_config to support centralized config, eliminate configuration of res_config_odbc, update config examples, integrate with iax2, remove mysql friends from iax2, put on flame retardant vest...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-05 06:46:11 +00:00
Mark Spencer
0ddbbd1785
Add ability to check voicemail from multiple folders (bug #2561 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 21:18:27 +00:00
Mark Spencer
864d84e1a7
Fix potential callerid snafu's in iax and sip (based on 2562)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 14:57:01 +00:00
Mark Spencer
fce17976e9
Major PBX revamps (including labels, update examples)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 04:19:59 +00:00
Mark Spencer
666dd0f75c
More IAX2 TNS/TOS/PRES fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 02:13:04 +00:00
Mark Spencer
15c6bf0860
Add iax2 parsing for TNS/TON/PRES
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 01:56:08 +00:00
Mark Spencer
04fc29c8b2
Huge callerid rework (might break H.323, others)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 00:58:31 +00:00
Mark Spencer
678c1d90c0
Fix potential seg (Bug #2550 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-30 15:30:05 +00:00
Mark Spencer
a638a19ea2
Don't register auth against something that isn't a register (bug #2468 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-19 17:21:26 +00:00
James Golovich
a9f5393bfe
Make chan_iax2.c compile again on older gcc. Remember definitions must come first
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 13:58:38 +00:00
Mark Spencer
038cd054ae
Merge steven davie's IAX2 jitterbuffer fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-17 12:45:03 +00:00
Mark Spencer
610d52b054
Add IAX2/SIP register events to system (bug #2117 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-16 16:18:53 +00:00
Mark Spencer
9a387e5a7a
Queue congestion on REJECT (bug #2448 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-15 17:31:37 +00:00
Mark Spencer
2f82498995
Don't forget to return something other than -1 on the first pass if appropriate!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-12 15:29:56 +00:00
Mark Spencer
71df4d92da
Automatically send proper signal on iax switch following dial (bug #2420 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-12 15:05:37 +00:00
Mark Spencer
879c401544
Add option to register extensions on IAX or SIP registration
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 23:45:34 +00:00
Mark Spencer
cfb711bf57
Make app_festival change more portable, allow '*' for context in iax2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-31 14:59:58 +00:00
Mark Spencer
1587fd6b84
Fix port numbers in IAX2 and iax2prov (bug #2261 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-17 23:57:36 +00:00
Mark Spencer
02ffc0eec8
Fix trivial typo (bug #2253 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-16 01:57:10 +00:00
Mark Spencer
7acee329e1
Merge BSD stack size work (bug #2067 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-08 17:15:02 +00:00
Mark Spencer
6193bc31b8
Merge Steven Davie's bridging patches
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 19:16:53 +00:00
Mark Spencer
3329f8154e
Add default username patch (bug #2178 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 14:59:56 +00:00
Mark Spencer
35ffb12ae8
Work on copy of firmware so that it doesn't get corrupted on a "make install" (bug #2106 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 02:50:11 +00:00
Mark Spencer
569b95352a
rename "parking" to "features" in preparation for some more (possibly post 1.0) feature additions
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 20:58:01 +00:00
Mark Spencer
68070c82d0
Change IAX2 naming convention
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 04:13:12 +00:00
Mark Spencer
bba1faf910
Last set of strncpy/snprintf updates (bug #2049 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-16 04:40:54 +00:00
Mark Spencer
a40e6c115f
Fix provisioning for unload/reload
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 07:37:44 +00:00
Mark Spencer
155d84a979
Add IAX provisioning support to Asterisk
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-07 09:34:01 +00:00
Mark Spencer
d2f22c57fe
Merge Steven Davies latest jitter buffer patch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 21:55:06 +00:00
James Golovich
201849fb42
Fix IAX2 registration time. We want to set reg->refresh to the new value only if its lower not if its higher. (bug 1955)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 04:04:30 +00:00
Mark Spencer
2f911dfba6
Use INET_ADDRLEN (bug #1956 ) (from airport!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 16:56:51 +00:00
Malcolm Davenport
b94f5ca495
Bug #1952 : iaxbuf now declared in chan_iax2.c and chan_sip.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 13:57:49 +00:00
Mark Spencer
1f1c915fea
Merge Steven Davie's timestamp improvements
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-30 06:03:57 +00:00
Mark Spencer
f97df161f4
Create reentrant ast_inet_ntoa and replace all inet_ntoa's with ast_inet_ntoa's (but #1944 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 12:56:46 +00:00
Mark Spencer
05110e85d3
Add ability to send detailed mailbox info (bug #1690 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 20:55:35 +00:00
Mark Spencer
d9ed36059c
Add peercontext parameter for default outbound context (bug #1929 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 15:48:30 +00:00
Mark Spencer
b76935b95c
Minor alsa fixes, add "delayreject" option to IAX to implement request of bug #1846 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 14:19:38 +00:00
Mark Spencer
3db853b428
Merge source cleanups (bug #1911 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-26 03:50:14 +00:00
James Golovich
8801247d76
Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead (except in asterisk/lock.h).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 18:49:00 +00:00
Mark Spencer
f5de717d6e
Merge Steven Davie's IAX2 jitter buffer enhancements
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 17:50:39 +00:00
Mark Spencer
5546e32355
Merge major BSD mutex and symbol conflict patches (bug #1816 ) (link patch still pending)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 17:42:14 +00:00
Mark Spencer
be9d4b4333
Remove ancient requirement that ts > 0
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-16 13:52:50 +00:00
Mark Spencer
6c9b510d5d
When dialing outbound, if we match a peer name, use it (who really cares?) (bug #1850 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-15 15:16:16 +00:00
Mark Spencer
3cf5ea7383
Make meetme operate in linear so as to keep alaw folk happy, minor iax2
...
authentication cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-14 03:12:46 +00:00
Mark Spencer
d208532e6e
x86-64 compile fixes and cleanups
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-13 21:25:10 +00:00
Mark Spencer
b1a658f57e
Although I can't think of any scenario that it could result in a race, don't hold a private iax or sip lock while allocating a channel
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 23:07:55 +00:00
Mark Spencer
727abcdec7
Merge FreeBSD locking fixes (bug #1411 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 01:45:08 +00:00
Mark Spencer
ad49896f6b
Simplify trunk transmission path and remove potential race (bug #1802 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-07 19:48:53 +00:00
Mark Spencer
0062fe9588
IAX2 fixup, fix res_monitor sillyseg
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-04 18:30:35 +00:00
Mark Spencer
103bb4a334
Enhancements for zaptel+bsd (bug #1781 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-04 15:44:14 +00:00
Mark Spencer
514acf8dfc
Fix lag in diverging clocks (bug #1696 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-30 22:22:49 +00:00
Mark Spencer
0f966565af
Handle debugging of unknown IE's properly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 15:16:45 +00:00
Mark Spencer
2cc7d3e8db
Make sure transmitted timestamps are solid on trunks (bug #1713 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 13:57:57 +00:00
Mark Spencer
e3ad88c784
Eliminate useless pass checking
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-25 00:23:02 +00:00
Mark Spencer
3189e70baa
Allow notransfer to be a global option
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-08 14:38:48 +00:00
Mark Spencer
6d280193d6
Fix silly typo in iax2 where strlen was used instead of sizeof
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:39:31 +00:00
James Golovich
be1efdbf89
include utils.h in chan_iax2.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 22:13:27 +00:00
James Golovich
960f681dec
Use ast_strlen_zero in chan_iax2.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-05 21:14:36 +00:00
Mark Spencer
9c683b7423
Fix compiler warning
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 21:00:20 +00:00
Mark Spencer
ee0532702a
Merge Matteo's language setting code for iax2 (bug #1476 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 06:36:31 +00:00
Mark Spencer
44de97d496
Provide more fine grained control of sip and iax show peers (bug #1470 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-02 05:38:20 +00:00
Malcolm Davenport
6f9df58afe
Bug # 1503: Add Peter's fix to include "accountcode" support to MySQL based IAX-Friends
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 20:09:05 +00:00
Mark Spencer
314877e155
Fix potential seg in iax2 from reload when registrations are going
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 22:07:59 +00:00
Mark Spencer
0fe6d16e89
Fix deadlock in IAX2 trunking, small MGCP fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-28 04:23:14 +00:00
Mark Spencer
7596de9ac8
Extreme IAX2 trunking performance improvements
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-27 15:18:55 +00:00
Mark Spencer
cce37f8d32
Hold call structure longer iwth find_callno
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 11:38:21 +00:00
Mark Spencer
f85d0713cf
Clean up SQL queries (bug #1479 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 05:08:30 +00:00
Mark Spencer
8a411edf9f
Make sure call is valid when handling mini-frame.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-24 15:16:48 +00:00
Mark Spencer
90778ada6d
Fix timestamps on IAX2 trunk mode transmit direction
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-23 05:35:12 +00:00
Mark Spencer
f9aef7098f
Oops that wasn't quite right. Partially revert changes until real data is collected.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 19:16:52 +00:00
Mark Spencer
ba078042ba
Make trunking and timestamps palce nicely
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 18:51:42 +00:00
Mark Spencer
d3f9887589
gethostbyname isn't reentrant, who knew...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2734 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 00:20:34 +00:00
Mark Spencer
0134d2cc85
Select user by more logical grounds when no user is specified (bug #1458 , sorta)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-21 00:33:09 +00:00
Mark Spencer
ef89a2709a
Fix pingtime calculation in bridge optimized mode
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-20 15:14:06 +00:00
Mark Spencer
7a8ec5bea4
Always give real timestamps on IAX ping/pong messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 15:24:51 +00:00
James Golovich
36a13f931a
Make 'iax2 show users' print key if a key is used (bug 1253)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-18 21:53:13 +00:00
Mark Spencer
083d9c8039
Clean up timestamps on IAX2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-14 18:15:16 +00:00
Mark Spencer
13bca43aa8
Get rid of all that old needlock garbage now that we're using recursive mutexes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 22:17:32 +00:00
Mark Spencer
d3bcf405c2
Small IAX fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 15:55:40 +00:00
Mark Spencer
eeb2ca5b26
Make read/write mode have a lock parameter and use it properly.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-27 06:50:12 +00:00
James Golovich
82bf2663e3
Tiny optimization in chan_iax2.c that the compiler would
...
probably take care of, but better that we do it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-25 18:10:52 +00:00
Mark Spencer
638684636c
Make sure calculation of time is always > 0...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-25 07:17:33 +00:00
James Golovich
359430871f
Check to make sure opendir works in chan_iax2.c (bug 1283)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 21:42:35 +00:00
Mark Spencer
b46d67e301
Unlock the owner when we're done (duh!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 03:26:23 +00:00
Mark Spencer
3107d6d03b
Hold owner lock when changing codecs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-23 00:56:36 +00:00
James Golovich
a8bbe997d2
Fix some small typos in comments
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-21 11:23:10 +00:00
Mark Spencer
7192fbfae7
Round offset timestamps to nearest 20ms to clean up numbers.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-20 05:19:45 +00:00
Mark Spencer
785ac43c84
Just to be on the safe side, don't update timestamps against anything but voice packets.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 08:16:19 +00:00
Mark Spencer
7075b58ee1
Don't use hard timestamps for non-voice frames.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 08:12:04 +00:00
Mark Spencer
b690dc13aa
Fix timestamp delivery calculation in IAX... Still might be some mess left...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-16 22:55:05 +00:00
James Golovich
0e90480d6b
Fix bug 1217. Change pthread_t initializers to AST_PTHREADT_NULL and
...
AST_PTHREADT_STOP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-15 07:51:22 +00:00
Mark Spencer
0852f5a930
Preserve IAX timestamps
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 23:01:12 +00:00
James Golovich
f2b52d46d0
Make sure chan_iax.c and chan_iax2.c know the size of G726 frames
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-07 22:57:00 +00:00
Mark Spencer
a1d8701369
Formatting fixup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 00:31:55 +00:00
Mark Spencer
b4ea3725da
Set the context properly for a given peer
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 23:43:58 +00:00
Mark Spencer
806bb3c63f
Add support for parking with IAX2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 01:11:25 +00:00
Mark Spencer
6a73e70663
Make iax2 compile on *BSD
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-27 16:35:32 +00:00
James Golovich
96abbad91d
Add missing include to chan_iax2.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-25 03:49:25 +00:00
Mark Spencer
066212158e
Add IAX2 firmware upgrade support
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-24 21:27:16 +00:00
Mark Spencer
f285c61830
Cleanups to recent changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-18 04:52:56 +00:00
Mark Spencer
cc894e6100
Use call numbers instead of pointers in IAX2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-17 22:16:14 +00:00
Mark Spencer
98391c1324
Free mysql results
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 06:29:35 +00:00
Mark Spencer
bac2215fb6
Fix several memory leaks
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 03:54:28 +00:00
Mark Spencer
7cdb6d36f4
Fix a couple of memory leaks
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 00:17:48 +00:00
Mark Spencer
cf4825233d
Don't free private structure until iax2_hangup is actually called
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-06 18:11:13 +00:00
Mark Spencer
694058ccb1
Implement REGREL in IAX2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-03 15:16:04 +00:00
Mark Spencer
9c2f131b66
NetBSD portability enhancements (bug #969 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 06:38:08 +00:00
Mark Spencer
87f28fa6dd
Add "iaxcompat" option to allow nested switch statements, still might fail if you have an IAX call going to something with a switch...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-01 20:08:36 +00:00
Jeremy McNamara
c060d39cca
clean up our mess on unload. Bug #799
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-12 18:08:34 +00:00
Mark Spencer
ed72e0e169
Show who sends us bad packets
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-11 16:31:04 +00:00
Mark Spencer
389d089ecc
Implement missing function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-11 16:15:30 +00:00
Mark Spencer
459d19823e
Locking changes for IAX2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-11 15:57:42 +00:00
Mark Spencer
5a0ef67644
When poking a peer after registration, release lock temporarily
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-10 19:53:14 +00:00
Mark Spencer
8b557dfd30
Minor cleanup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-15 15:14:23 +00:00
Mark Spencer
6fb9ea4ea5
Fix qualify + register
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-14 21:13:02 +00:00
Mark Spencer
2f69b332d8
Cleanup unload calls
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-09 23:55:17 +00:00
Mark Spencer
0f2bdc6d0a
Remove gratuitous race
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-08 23:42:07 +00:00
Mark Spencer
37f1885152
Quiet more authentication info if not enabled
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-05 16:13:43 +00:00
Mark Spencer
fac7eaffa9
Fix PGSQL voicemail issues (bug #625 ) and fix reload races in iax2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-04 23:19:26 +00:00
Mark Spencer
da34cf8fd6
Add auth debug option
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-04 03:41:22 +00:00
Mark Spencer
1740f71793
Don't don't show verbose 3 message when verbose not set
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-03 15:06:41 +00:00
Martin Pycko
e30e685ee1
We have to hangup the bridge not continue on AbsoluteTimeout
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-17 23:46:54 +00:00
Martin Pycko
bb2bb1d083
Fix the AbsoluteTimeout issue with IAX/IAX2 when in native mode
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-17 23:37:56 +00:00
Mark Spencer
e406f72564
Add date/time to IAX2 register
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-15 23:27:47 +00:00
Mark Spencer
6f6ff1a673
Don't try to expire if there is no expirey
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-14 04:11:03 +00:00