aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-31Add support for using a jitterbuffer for RTP on bridged calls. This includesrussell1-0/+1
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: http://svn.digium.com/svn/asterisk/trunk@31052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-30when we receive an IAX2 registration request with both a plaintext secret ↵kpfleming1-10/+10
and an MD5 challenge, prefer the MD5 challenge for authentation (reported on asterisk-dev) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30847 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-26Few more expire_registry changesfile1-5/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30607 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25only display a debug message if option_debug is in userussell1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25Safely traverse the thread lists and wait until each thread is done before ↵file1-5/+16
moving on to the next. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30271 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25Only get the low 16 bits if we actually have a message countfile1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30242 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23Merged revisions 29849 via svnmerge from russell1-0/+1
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: http://svn.digium.com/svn/asterisk/trunk@29850 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-20Merged revisions 28896 via svnmerge from kpfleming1-445/+445
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: http://svn.digium.com/svn/asterisk/trunk@28903 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-19As requested by kpfleming, renaming messagecount to inboxcount and ↵tilghman1-1/+1
messagecount2 to messagecount. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28745 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-18Fix receiving message count information from a remote IAX2 peer. (issue ↵file1-6/+6
#7163 reported by and fixed by akohlsmith) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28017 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-17Merged revisions 27973 via svnmerge from file1-17/+25
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: http://svn.digium.com/svn/asterisk/trunk@27974 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10and chan_iax2 gets smaller... remove the old jitterbufferkpfleming1-373/+20
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26564 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10remove almost all of the checks of the result from ast_strdupa() or alloca().russell1-14/+10
As it turns out, all of these checks were useless, because alloca will never return NULL. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10ensure that control frames with payload can be sent to channel drivers via ↵kpfleming1-3/+3
->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: http://svn.digium.com/svn/asterisk/trunk@26417 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10Allow media to go directly between IAX endpoints while signalling still markster1-35/+101
goes through the existing path. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26314 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09minor cleanups and removal of duplicate prototypeskpfleming1-32/+23
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26092 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03Update chan_iax2 to use linkedlists.h for users and peers. Modify the way ↵file1-250/+238
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: http://svn.digium.com/svn/asterisk/trunk@24422 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30Merged revisions 23705 via svnmerge from kpfleming1-2/+2
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: http://svn.digium.com/svn/asterisk/trunk@23706 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have ↵kpfleming1-5/+6
autoconf and menuselect tools for Asterisk! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18simplify logic in iax2_bridge()rizzo1-38/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21126 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15Move a bit more stuff over to the datadir (issue #6967 reported by tzafrir ↵file1-1/+1
patch by north) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20358 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14This rather large commit changes the way modules are loaded. rizzo1-12/+8
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: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11No need to do this in here any longer since the linkedlists macro is fixedfile1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19305 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11Convert chan_iax2 to use linked lists for multithreading, and add dynamic ↵file1-77/+200
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: http://svn.digium.com/svn/asterisk/trunk@19254 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08since the module API is changing, it's a good time to const-ify the ↵kpfleming1-2/+2
description() and key() return values git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) ↵tilghman1-8/+8
rand() to threadsafe ast_random() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-04chan_iax2 cleanups and optimizations (#6858)mattf1-75/+33
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17329 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-04adds manager event when an iax2 peer loses registration.mogorman1-17/+15
also some minor code clean up. patch from 6868 with minor changes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31move a NULL check to before the first time the pointer is dereferenced ↵russell1-2/+2
(issue #6832) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16772 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31- code formatting tweaksrussell1-27/+25
- use the callno stored in a local variable - store the result of atoi() so it's only called once (issue #6833) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16759 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31Merged revisions 16744 via svnmerge from russell1-20/+13
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: http://svn.digium.com/svn/asterisk/trunk@16745 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31Do not leave a thread in limbo if an error occurs, or if testing packet loss.file1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16617 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30as discussed with Mark a few weeks ago, the 'newstack' argumentrizzo1-3/+3
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: http://svn.digium.com/svn/asterisk/trunk@16558 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30Fix IAX2 multithreaded scheduling (issue #6840)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16386 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29oops! :)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16010 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29conversion from malloc to ast_mallocrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16006 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28another batch of cli simplificationsrizzo1-5/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15857 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28Merged revisions 15703 via svnmerge from russell1-2/+3
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: http://svn.digium.com/svn/asterisk/trunk@15704 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28only display a debug message if iaxdebug is enabled as well (issue #6673)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15702 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28store f->callno in a local var (issue #6818)russell1-11/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15619 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28use proper file namekpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15436 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28improve IP TOS support for SIP and IAX2 (issue #6355, code from jcollie plus ↵kpfleming1-2/+2
modifications) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15435 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-27Janitor work converting !ast_strlen_zero(a)?a:bmogorman1-8/+8
to S_OR functions. from bug note 6805 with minor modifications. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25Add micro-http server and abstract manager interface, make snmp not die markster1-21/+63
on reload. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23compute scheduler thread timeout properlykpfleming1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14573 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23commit file's work to convert iax2 multithreading to use pthread conditions ↵kpfleming1-18/+46
instead of signals (with some modifications) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14570 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-20Don't overwrite ANI if it's already sent with IES (imported from 1.2 branch)oej1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13635 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14deprecate the mailboxdetail option and always use its behavior, instead ↵russell1-19/+9
(issue #6665) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12923 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14fix build without SCHED_MULTITHREADED defined (issue #6719)russell1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12878 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-09Make sure we clear our sched value before we actually schedule the markster1-2/+3
dereg. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12476 f38db490-d61c-443f-a65b-d21fe96a405b