aboutsummaryrefslogtreecommitdiffstats
path: root/channels
AgeCommit message (Collapse)AuthorFilesLines
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
2006-04-07sorry litle mistakecrichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18221 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18192 ↵crichter1-1/+1
f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07fixed a bridging-endless-loop also fixed the rdnis is not exported issuecrichter1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18190 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-07Issue #6674: Set the URI correctly on BYEs when we have an incoming calloej1-38/+65
Reported by aubergine, fix by oej git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18161 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06Cosmetic update for outbound REFERsoej1-1/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06Add "NewChan" event to history to track the birth of a new ast_chan from aoej1-0/+2
SIP invite git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18059 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06Improved handling of 491 responsesoej1-6/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18058 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06Small changes to parse_sip_optionsoej1-8/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18057 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06Small fixes to handle_request_inviteoej1-7/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06- Don't change channel direction on re-invitesoej1-8/+11
- Don't re-initialize initreq on re-invites git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18033 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06- Implement handle_request_notify to handle incoming NOTIFY requestsoej1-5/+140
and respond properly to them. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18024 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06Implement a handle_response_refer function to take care of responsesoej1-5/+100
to outbound REFERS. Not that common, but still needed. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18022 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06Change transmit_notify_sipfrag to handle other messages than 200 OK, needed foroej1-8/+7
SIPtransfer improvement git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17993 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06- doxygenoej1-25/+27
- debug message control git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17991 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06structures can be copied with the '=' operators, no need torizzo1-35/+25
use memcpy. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06normalize some for() loops.rizzo1-103/+55
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17943 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06skinny debug/verbose cleanup.north1-40/+40
Thanks casper! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17903 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) ↵tilghman6-51/+31
rand() to threadsafe ast_random() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05some final fixes for cpncrichter1-0/+21
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17594 f38db490-d61c-443f-a65b-d21fe96a405b