summaryrefslogtreecommitdiff
path: root/channels
AgeCommit message (Collapse)Author
2006-04-11staticize a function, and normalize code in preparation to module changes.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11mISDN Messages must be freed with free_msg \!\!Christian Richter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11- First stab at removing debug and ignore variables thatOlle Johansson
we pass along function calls, instead implementing them as flags on the incoming packet. - Adding forward declarations of handle_request functions git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10Fixup fixup - add some debugging and error handlingOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10Resolve conflicts, prepare for next batch of conflicts Olle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10fixed some issues, that appear at higher loadChristian Richter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10we send nearly everytime a RELEASE, only if we for sure know, that it's a TE ↵Christian Richter
and we did create the call we don't to hear the Inband Info git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10Making sure that cancel destroy is only executed once...Olle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10Small fixOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10- staticize gettag() complete_sip_peer() get_calleridname() arguments;Luigi Rizzo
- 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: https://origsvn.digium.com/svn/asterisk/trunk@18793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10- constification of some functions (args and return values): Luigi Rizzo
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: https://origsvn.digium.com/svn/asterisk/trunk@18792 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10- localize 'struct cfalias' into the only function using it; Luigi Rizzo
- 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: https://origsvn.digium.com/svn/asterisk/trunk@18791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10constify get_sdp*() and friends.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10constify get_header(), which let me find out and fix one bug (overwritingLuigi Rizzo
a string in the buffer) and finding out another one (not fixed yet, just marked XXX). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10- describe how sip packets are stored internally;Luigi Rizzo
- remove useless braces or local variables; - simplify some code sequences; - mark with XXX a possible locking issue. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10struct sip_request cleanup:Luigi Rizzo
- 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: https://origsvn.digium.com/svn/asterisk/trunk@18787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10more cleanup: remove useless braces, replace "if" with "?",Luigi Rizzo
localize a couple of variables, remove trailing whitespace. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10Re-instate removed commentOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10another batch of minor code simplificationsLuigi Rizzo
(moving repeated expressions into a function, const on some arguments) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-09a bunch of trivial code normalizations (removal of unnecessaryLuigi Rizzo
casts and parentheses, formatting fixes, pointing out replicated code and so on). No functional changes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08since the module API is changing, it's a good time to const-ify the ↵Kevin P. Fleming
description() and key() return values git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07-Fixing some debugging messages in history and consoleOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07Add history events for re-invitesOlle Johansson
(need to nail this issue...) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07make history easier to readOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07Add some more information to SIP historyOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07Issue #6899 - remove OSP support code from chan_sip.c and app_dial.c Olle Johansson
- implement all functions through internal APIs in res_osp.c and app_osplookup.c (homesick) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07Hmm. What is that keyword?? Let me see... Wait... Maybe... Ahh! OOPS!Olle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07change a couple uses of !strlen() to ast_strlen_zero(). Oddly enough, one ofRussell Bryant
these used to be this way and got changed ... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07- sip_alloc failures are also caused by too few available file descriptors, ↵Olle Johansson
so we can not open socket for RTP (audio/video/rtcp). Error message change to clarify. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07- Add cause code for format errorOlle Johansson
- Change to SWITCH_CONGESTION instead of CONGESTION (imported from 1.2) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07Import of revistion 18250 from 1.2Olle Johansson
- Fix minor memory leak - Add proper cause codes on memory allocation failures git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07sorry litle mistakeChristian Richter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18192 ↵Christian Richter
65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07fixed a bridging-endless-loop also fixed the rdnis is not exported issueChristian Richter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07Issue #6674: Set the URI correctly on BYEs when we have an incoming callOlle Johansson
Reported by aubergine, fix by oej git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06Cosmetic update for outbound REFERsOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06Add "NewChan" event to history to track the birth of a new ast_chan from aOlle Johansson
SIP invite git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06Improved handling of 491 responsesOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06Small changes to parse_sip_optionsOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06Small fixes to handle_request_inviteOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06- Don't change channel direction on re-invitesOlle Johansson
- Don't re-initialize initreq on re-invites git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06- Implement handle_request_notify to handle incoming NOTIFY requestsOlle Johansson
and respond properly to them. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06Implement a handle_response_refer function to take care of responsesOlle Johansson
to outbound REFERS. Not that common, but still needed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06Change transmit_notify_sipfrag to handle other messages than 200 OK, needed forOlle Johansson
SIPtransfer improvement git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06- doxygenOlle Johansson
- debug message control git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06structures can be copied with the '=' operators, no need toLuigi Rizzo
use memcpy. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06normalize some for() loops.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06skinny debug/verbose cleanup.North Antara
Thanks casper! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) ↵Tilghman Lesher
rand() to threadsafe ast_random() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05some final fixes for cpnChristian Richter
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17594 65c4cc65-6c06-0410-ace0-fbb531ad65f3