aboutsummaryrefslogtreecommitdiffstats
path: root/channels
AgeCommit message (Collapse)AuthorFilesLines
2006-04-16- Fixes to ast_channel_lock functionsoej1-5/+34
- New get_sip_pvt_byid function (not really used correctly yet...) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20424 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-15add the ability to turn off the feature that allows agents to end callsrussell1-1/+5
by pressing '*'. This is still on by default. (issue #6897) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20328 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15Big oops. I did this from my trunk directory instead of ↵russell1-1/+1
autoconf_and_menuselect ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20297 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15include autoconfig.h (casper)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20296 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15More ast_channel_lock fixesoej1-44/+44
- Update lock.h with definitions of ast_channel_lock, ast_channel_unlock and ast_channel_trylock - Convert some functions (but not all) in channel.c - Fix some bugs in chan_sip.c - Convert rest of chan_sip.c git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20295 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15New functions for locking a channel - these simplify debuggingoej1-2/+2
when you have channel locking issues. (Part of the SIP transfer patch, where I had a *lot* of channel locking problems) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20264 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14This rather large commit changes the way modules are loaded. rizzo10-156/+86
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-13Issue #6951 - Show last successful registration time in "sip show registry" ↵oej1-4/+16
(ivanfm) with mods for svn trunk git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19736 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-12- Adding some refer state definitions from the siptransfer branchoej1-4/+54
- A bit more URI conversions - Changes to sip_dual and the SIP invite structure - Add Supported: headers to more requests git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19578 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-12Fix for Polycom bug...oej1-2/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19549 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-12Implement a setting for denying/allowing transfer requests. At this stage,oej1-2/+67
we only have open/closed. Well, at least you can deny transfers from unknown callers or at least incoming calls. (Part of the SIPtransfer branch) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19546 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-12Doxygen docsoej1-9/+49
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19542 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-12reindent block properlyrizzo1-35/+35
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19466 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-12localize some variables, remove useless parenthesesrizzo1-13/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11remove useless \0, and fix formatting.rizzo1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19437 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11fix logic error; don't test for rtcache flag unless asked to (issue #6923)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19393 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-11staticize a function, and normalize code in preparation to module changes.rizzo1-5/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19188 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11mISDN Messages must be freed with free_msg \!\!crichter1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19160 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11- First stab at removing debug and ignore variables thatoej1-82/+93
we pass along function calls, instead implementing them as flags on the incoming packet. - Adding forward declarations of handle_request functions git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19128 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10Fixup fixup - add some debugging and error handlingoej1-1/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18940 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10Resolve conflicts, prepare for next batch of conflicts oej1-24/+26
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18909 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10fixed some issues, that appear at higher loadcrichter2-4/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18835 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10we send nearly everytime a RELEASE, only if we for sure know, that it's a TE ↵crichter1-2/+1
and we did create the call we don't to hear the Inband Info git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10Making sure that cancel destroy is only executed once...oej1-11/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18799 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10Small fixoej1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18797 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10- staticize gettag() complete_sip_peer() get_calleridname() arguments;rizzo1-34/+21
- use strsep() instead of strchr() where appropriate - constify some args and add comments. - remove a conditional near line 1940 - we already know what to use. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18793 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10- constification of some functions (args and return values): rizzo1-38/+39
transmit_response_reliable() hangup_cause2sip() - remove useless braces; - add comments on some slightly cryptic code segments - mark XXX possible critical pieces of code. - remove an unneeded string termination after ast_copy_string - mark usage of some rarely used functions; - use strsep() instead of emulating it inline; - replace magic constants with sizeof(array) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18792 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10- localize 'struct cfalias' into the only function using it; rizzo1-65/+52
- remove duplicate code to walk through sdp packets, replacing sdpLineNum_iterator_init(&foo); with "foo = 0"; - remove duplicate code to test ast_test_flag(&p->flags[0], SIP_NAT_ROUTE); git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18791 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10constify get_sdp*() and friends.rizzo1-14/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18790 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10constify get_header(), which let me find out and fix one bug (overwritingrizzo1-52/+54
a string in the buffer) and finding out another one (not fixed yet, just marked XXX). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18789 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10- describe how sip packets are stored internally;rizzo1-22/+43
- remove useless braces or local variables; - simplify some code sequences; - mark with XXX a possible locking issue. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18788 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10struct sip_request cleanup:rizzo1-5/+2
- remove a debug field that was read but never set, so it was basically unused as well as the code testing it (also removed); - make scalar fields contiguous so any array overflow will be less harmful; git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18787 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10more cleanup: remove useless braces, replace "if" with "?",rizzo1-29/+15
localize a couple of variables, remove trailing whitespace. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18786 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10Re-instate removed commentoej1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18785 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10another batch of minor code simplificationsrizzo1-28/+42
(moving repeated expressions into a function, const on some arguments) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18784 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-09a bunch of trivial code normalizations (removal of unnecessaryrizzo1-115/+76
casts and parentheses, formatting fixes, pointing out replicated code and so on). No functional changes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18666 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08since the module API is changing, it's a good time to const-ify the ↵kpfleming15-30/+30
description() and key() return values git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07-Fixing some debugging messages in history and consoleoej1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07Add history events for re-invitesoej1-1/+6
(need to nail this issue...) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18373 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07make history easier to readoej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18371 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07Add some more information to SIP historyoej1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18370 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07Issue #6899 - remove OSP support code from chan_sip.c and app_dial.c oej1-155/+6
- implement all functions through internal APIs in res_osp.c and app_osplookup.c (homesick) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18369 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07Hmm. What is that keyword?? Let me see... Wait... Maybe... Ahh! OOPS!oej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18342 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07change a couple uses of !strlen() to ast_strlen_zero(). Oddly enough, one ofrussell1-2/+2
these used to be this way and got changed ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18309 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07- sip_alloc failures are also caused by too few available file descriptors, ↵oej1-10/+8
so we can not open socket for RTP (audio/video/rtcp). Error message change to clarify. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18307 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07- Add cause code for format erroroej1-2/+3
- Change to SWITCH_CONGESTION instead of CONGESTION (imported from 1.2) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18262 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07Import of revistion 18250 from 1.2oej1-4/+10
- Fix minor memory leak - Add proper cause codes on memory allocation failures git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18261 f38db490-d61c-443f-a65b-d21fe96a405b