summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
AgeCommit message (Collapse)Author
2006-05-24add a new option for 'obscuring' SIP user/peer names from fishersKevin P. Fleming
use an enum for authentication results and clean up code fix a bug where SUBSCRIBE for an unknown user/peer would not generate a response git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23Merged revisions 29764 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r29764 | kpfleming | 2006-05-23 13:16:40 -0500 (Tue, 23 May 2006) | 2 lines simplify/fix lock retry, and fix comment ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23 Sanity check code for an extended failure in trying to obtain a channel ↵BJ Weschke
lock that may have been obtained elsewhere. Prevents the monitor thread of the SIP module from going into an infinite loop, effectively, breaking SIP until you restart Asterisk or the mutex is unlocked, whichever comes first. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23Breaking once will stop us... :-)Olle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23Code formattingOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23Handle ringing (early) state properly on SIPMark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22remove code duplication generating some ast_verbose messages .Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22use the functional form of time(), and mark XXX a couple of placesLuigi Rizzo
with dubious assignments. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22more constificationsLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22various constification of function arguments to prevent erroneousLuigi Rizzo
usage and to ease understanding of the function themselves. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22the msg argument of the various transmi_response*() functions is const.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22mark const the 'header' argument of gettagLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22mark const the source of copy_requestLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22fix indentation to make a table more readableLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22simplify register_peer_exten() removing some duplicated code.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22use strsep() to trim away ;xxx from SIP messages.Luigi Rizzo
Note that in a couple of places the code overwrites the string in the buffer - mark the two places with XXX but do not fix the bug yet. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22use a more compact method to trim the trailing ;... from SIP lines.Luigi Rizzo
These are just the first two instances, there are many more to replace. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22annotate const parameters of copy_header()Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22src is const in parse_copy()Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22minor logic simplification in get_sip_pvt_byid_locked()Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22simplify logic in function create_addr()Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22simplify logic in realtime_peer(), removing an unnecessaryLuigi Rizzo
initialization, an extra variable (newpeername) and a variable newpeername, and an 'else' branch. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-21strcmp() is the right function to use here, not strncmp().Luigi Rizzo
On passing simplify an ast_cli message nearby. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-20fix the possibility of writing one byte past the end of a buffer.Russell Bryant
(issue #7189, Mithraen) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19attributes need trailing CR-LFKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19Merged revisions 28794 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r28794 | kpfleming | 2006-05-19 14:39:55 -0500 (Fri, 19 May 2006) | 2 lines use the specified 'subscribecontext' for a peer rather than the context found via the target domain (domain contexts are for calls, not for subscriptions) (issue #7122, reported by raarts) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19As requested by kpfleming, renaming messagecount to inboxcount and ↵Tilghman Lesher
messagecount2 to messagecount. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19Formatting cleanupOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18Merged revisions 28380,28384 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r28380 | kpfleming | 2006-05-18 15:24:07 -0500 (Thu, 18 May 2006) | 2 lines handle incoming multipart/mixed message bodies in SIP and find the SDP, if presnet (issue #7124 reported and patched by eborgstrom, but very different fix) ........ r28384 | kpfleming | 2006-05-18 15:43:42 -0500 (Thu, 18 May 2006) | 2 lines fix up a few more places to find the SDP properly (fallout from fix for #7124) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18add another media path reinvite 'flavor', where we will only redirect our ↵Kevin P. Fleming
media to devices that we know are not behind a NAT (based on the evidence collected when we receive media from them) also, documented the 'canreinvite=update' option in the sample config file git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18adding new code should require following the formatting guidelines :-)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-18Allow contexts in regexten so that extensions can be added to multiple ↵Joshua Colp
contexts when peer registers (issue #6869 reported by and created by Marquis) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17Only set the RTP DTMF information of an RTP structure does indeed exist.Joshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17Issue #7176 - Crash in expire_register (imported from 1.2)Olle Johansson
This is a bad fix, since peer should never be 0. Why is it zero on Royk's system? git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17Adding a debug lineOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17Use pointer instead of un-needed buffer. Thanks Kevin!Olle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16mark RTP sessions that are not carrying DTMFKevin P. Fleming
allow native bridging of RTP sessions that are not carrying DTMF even when the bridge needs to listen to DTMF (when SIP INFO is used for DTMF, for example) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16Send a=recvonly when put on hold, otherwise a=sendrecv to indicate that we ↵Olle Johansson
want two streams. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16Show all formats for an active SIP callOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16One sipfrag attachment is enough...Olle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11simplify determine_firstline_partsLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11remove last instance of add_blank_header()Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11remove almost all useless instances of add_blank_header() but one,Luigi Rizzo
for which i need to investigate a bit more (but i am almost 100% sure that one is also useless). I do the commit in two steps so it is easier to track the problem. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11- Use systemname for realm in sip, if we have no configuration for realmOlle Johansson
- Optionally send systemname in manager (cool when you have a manager proxy) - Use systemname in CLI prompt git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11remove trailing spaceLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11remove a duplicate prototypeLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11remove duplicated code in add_headerLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11simplify init_req()Luigi Rizzo
As the rest of the chan_sip.c changes i am committing, this is Approved by: oej git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11cleanup init_resp with proper variable names and arguments.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11staticize a variable.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26801 65c4cc65-6c06-0410-ace0-fbb531ad65f3