Commit Graph

1623 Commits (a01ae565e968ac2ec02a08fc74b62fdb112069ce)

Author SHA1 Message Date
Olle Johansson 336a4602ba Don't duplicate function if not needed...
19 years ago
Olle Johansson 29e489e000 Merge from 1.4 : Don't send 183 reliably...
19 years ago
Olle Johansson 0f9a1b19f1 - Don't lock the dialoglist during the whole destruction of a single SIP dialog. Only
19 years ago
Olle Johansson 12a966cb0e Put this patch on hold pending further testing...
19 years ago
Olle Johansson 7ca6b79569 Show if the channel is ready for video or T.38 udptl
19 years ago
Olle Johansson 1b3411f2ff Old todo: Don't add Contact headers on BYE and CANCEL.
19 years ago
Olle Johansson d448620715 First stab at transaction direction fix, this for trunk for testing
19 years ago
Olle Johansson cef98c1e87 Ugly code to try to remove issue discovered by Luigi as well as attack bug #7608
19 years ago
Olle Johansson 26a00dfaf0 Merge from 1.4
19 years ago
Kevin P. Fleming 5f5faa310a Merged revisions 46082-46083,46152-46153 via svnmerge from
19 years ago
Kevin P. Fleming 749029de38 Merged revisions 46200 via svnmerge from
19 years ago
Olle Johansson 0fed2f78b9 Adding comments in the source is more persistent than just adding them
19 years ago
Olle Johansson 2560ff9c33 Always add doxygen comments to new functions, more lines than one are
19 years ago
Luigi Rizzo 0d59b76dd2 correct fix for the bug i previously introduced - the strings
19 years ago
Russell Bryant 6e65bea242 Fix a seg fault on a registration. Line 7706, in parse_register_contact,
19 years ago
Luigi Rizzo a989f7cd47 Unlike ast_strdup(), ast_strdupa() does not take a NULL pointer as argument,
19 years ago
Luigi Rizzo 6345c91eb3 remove a useless check for ocseq = 0.
19 years ago
Luigi Rizzo a31aa6f320 get_header() always returns a non-NULL value, so checking
19 years ago
Luigi Rizzo f1c2342c96 put another duplicated block of code in a function.
19 years ago
Luigi Rizzo eb44903b08 reformat a statement and comment a potentially wrong
19 years ago
Luigi Rizzo 85fe7cac03 Remove unnecessary casts from const char * to char *,
19 years ago
Luigi Rizzo 8a7ba881e2 another use for parse_uri().
19 years ago
Luigi Rizzo 0cb5e93383 + make sure parse_uri never returns NULL pointers - this
19 years ago
Luigi Rizzo 7dd92fd181 After reading better the SIP RFC on sip URI (19.1.1)
19 years ago
Luigi Rizzo ee60094592 in function get_also_info(), move argument stripping
19 years ago
Luigi Rizzo 00b88f30b4 start putting the URI parsing code in one place,
19 years ago
Luigi Rizzo 32f82c2ca1 put common code in function terminate_uri() so we need to
19 years ago
Luigi Rizzo c761bea8e2 More cleanup of check_user_full with no functional change
19 years ago
Luigi Rizzo dc83868813 more streamlining of check_user_full
19 years ago
Luigi Rizzo e7c0a0524a simplify the flow of function check_user_full()
19 years ago
Luigi Rizzo 36d7b8f488 put duplicated code in functions.
19 years ago
Luigi Rizzo 70ee76d64b introduce sip_pvt_lock() and sip_pvt_unlock() wrappers to
19 years ago
Russell Bryant 02ec7acf6a put the constants for whether methods can create a dialog or not in an enum
19 years ago
Olle Johansson d6602b1b5e Let's repair the SIP attack shield :-)
19 years ago
Joshua Colp ceb2c7bc48 Merged revisions 45678 via svnmerge from
19 years ago
Luigi Rizzo 293330e7a9 move a large block out of do_monitor() and into a function,
19 years ago
Luigi Rizzo d553659017 + move the definition of netlock as it was not related to the
19 years ago
Olle Johansson f2d11e403c Cleaning up... Removing duplicate (again)
19 years ago
Kevin P. Fleming 4b8e41c529 restore freeing of threadstorage objects without custom cleanup functions
19 years ago
Russell Bryant 777d03bd17 Merge fix to not leak the stringfields of a thread speicif sip_pvt. This also
19 years ago
Russell Bryant bd53e7ee4c Extend the thread storage API such that a custom initialization function can
19 years ago
Olle Johansson 7db2dfaf4e Remove duplicate declarations...
19 years ago
Kevin P. Fleming 696f9ed677 Merged revisions 45408 via svnmerge from
19 years ago
Joshua Colp 15c473908b Merged revisions 45378 via svnmerge from
19 years ago
Olle Johansson 0b0d72579e Issue #5484 (branch sipdiversion) - Support for Diversion header in redirects of calls
19 years ago
Olle Johansson 3376c8e976 Issue #7254 - Add support of "423 Interval too brief" to outbound SIP registrations.
19 years ago
Olle Johansson 748de51a84 - Remove unneeded code that won't be reached now that we kill responses
19 years ago
Olle Johansson 9f837a0baa Get rid of the ignore variable that was only partially replaced
19 years ago
Joshua Colp c62784c10d In the course of a data this has been turned into an option to ignore replies, then ignore responses and finally I'm just getting rid of the option altogether and making it the default no matter what. C'est la vie!
19 years ago
Joshua Colp da330feb60 Merged revisions 45280 via svnmerge from
19 years ago
Joshua Colp b58cc9e1bd Merged revisions 45262 via svnmerge from
19 years ago
Olle Johansson 5b52f69201 When adding new functions, please add a forward declaration.
19 years ago
Olle Johansson 43505df9f4 Importing rev 45196 from 1.4 - don't kill dialog for a bad response
19 years ago
Olle Johansson 09b8583937 A B2BUA should *not* issue proxy auth.
19 years ago
Joshua Colp e1bb0dab37 Merged revisions 45040 via svnmerge from
19 years ago
Luigi Rizzo e1378c470f Try to avoid the use of 'z' modifier in cases where it is not
19 years ago
Luigi Rizzo 1fe21371a3 arguments to auth_headers() needed to be swapped here.
19 years ago
Kevin P. Fleming 49b0cc8c94 eliminate compiler warning
19 years ago
Kevin P. Fleming 0ecfae3dbd Merged revisions 44971 via svnmerge from
19 years ago
Kevin P. Fleming 035aeb82e4 Merged revisions 44956 via svnmerge from
19 years ago
Luigi Rizzo 97ac6793c7 + move [almost] all instances of WWW-Authenticate/Proxy-Authenticate
19 years ago
Luigi Rizzo 59e61ae4a0 reduce indentation of two large blocks
19 years ago
Luigi Rizzo 6d6e60be79 operator != also works between booleans...
19 years ago
Russell Bryant 9e2abab8fa Revert Luigi's accidental commit of his local changes when debugging some SIP
19 years ago
Luigi Rizzo 328e1c9d1c remove duplicate prototypes. Have not checked if there are more.
19 years ago
Luigi Rizzo ed683ccc2a simplify and comment handle_response_peerpoke()
19 years ago
Luigi Rizzo 312fd57758 fix indentation of a function after previous commit
19 years ago
Luigi Rizzo 2eeaeaa7a7 handle_response_peerpoke() does not need to return anything.
19 years ago
Luigi Rizzo 510b9f04c0 small formatting cleanup
19 years ago
Joshua Colp 832014a91b Merged revisions 44819 via svnmerge from
19 years ago
Joshua Colp 1eedc8af43 Merged revisions 44806 via svnmerge from
19 years ago
Joshua Colp fadc6c4ed7 Merged revisions 44788 via svnmerge from
19 years ago
Luigi Rizzo 06fab1382b clarify the use of the standard SIP port number, 5060,
19 years ago
Luigi Rizzo 15fcc45c4e improve formatting of SIP packets when dumped to the verbose
19 years ago
Olle Johansson d766095219 Being pedantic... "media" is easier to understand than "data" in the function name... :-)
19 years ago
Luigi Rizzo 853f7ed660 slightly restructure sipsock_read() removing a "goto"
19 years ago
Luigi Rizzo 69af2cea2f use S_OR in one place
19 years ago
Luigi Rizzo ad63b4c7c1 update_call_counter(): indentation fixes and small simplifications
19 years ago
Luigi Rizzo 06ef2c1907 localize some variables and reduce nesting depth
19 years ago
Luigi Rizzo dd2121b075 small simplification to initreqprep()
19 years ago
Luigi Rizzo 36e4f62e7c Simplify function parse_request() using a single loop instead
19 years ago
Luigi Rizzo b90f91c3b4 do not dereference p if we know it is NULL.
19 years ago
Olle Johansson 1b64c41369 Fix some debug output for setsockopt for TOS
19 years ago
Olle Johansson 259f0d76b6 - move definition of global_autoframing to the same place as other globals
19 years ago
Olle Johansson 12ef70f0c0 Add/change doxygen and comments
19 years ago
Olle Johansson 9cc9c38250 Explain usage of DEFAULT_SIP_PORT
19 years ago
Olle Johansson 64aae4a887 Do *NOT* use DEFAULT_SIP_PORT in these comparisions, since users may change
19 years ago
Luigi Rizzo 901a66c401 slightly restructure the code that computes the channel's name
19 years ago
Luigi Rizzo a1a5824869 put repeated code to set nat mode in a function.
19 years ago
Luigi Rizzo bc1e5f77af put common code in a function to avoid repetitions.
19 years ago
Luigi Rizzo b37dc86c74 remove hardwired usage of 5060, use DEFAULT_SIP_PORT instead
19 years ago
Luigi Rizzo e691246b6e improve and document function get_in_brackets(), introducing
19 years ago
Luigi Rizzo 6466c2ebf9 when possible, use ast_set2_flags instead of ast_set/ast_clr .
19 years ago
Luigi Rizzo ccca5843fd Two things:
19 years ago
Olle Johansson cb127f4baa Remove deprecated "incominglimit" config option
19 years ago
Joshua Colp 0b26b56316 Merged revisions 44486 via svnmerge from
19 years ago
Joshua Colp 9924c3e2e9 Merged revisions 44450 via svnmerge from
19 years ago
Kevin P. Fleming 975ef9de9d Merged revisions 44433 via svnmerge from
19 years ago
Kevin P. Fleming 50bcacbdbd Merged revisions 44393 via svnmerge from
19 years ago
Kevin P. Fleming 3c876af5cf Merged revisions 44378 via svnmerge from
19 years ago
Joshua Colp 6727e8f599 Merged revisions 44284 via svnmerge from
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Joshua Colp fadd9e7831 Merged revisions 44215 via svnmerge from
19 years ago
Mark Spencer 847fe77eb9 Don't use channel when you don't mean a channel
19 years ago
Paul Cadach d2087e6a09 Merged revisions 44078 via svnmerge from
19 years ago
Paul Cadach 031cd452d9 Merged revisions 44068 via svnmerge from
19 years ago
Joshua Colp 29d27bfe0d Merged revisions 43933 via svnmerge from
19 years ago
Joshua Colp 8785d7229f Add jitterbuffer information to sip list settings (issue #7945 reported by sergee)
19 years ago
Joshua Colp fcad797dfd Merged revisions 43774 via svnmerge from
19 years ago
Joshua Colp 98873d34bd Merged revisions 43707 via svnmerge from
19 years ago
Luigi Rizzo 4d188126d9 style fix:
19 years ago
Joshua Colp 323527b4f3 Oh look more changes, but these are my own! (Clean up module load functions)
19 years ago
Tilghman Lesher f14dc5fab4 And some deprecated APIs and modifications to documentation
19 years ago
Tilghman Lesher 6ae8741518 Lots more removal of deprecated things
19 years ago
Joshua Colp 1c764935f2 SS7 marked the start of an open season for trunk again but here's something minor - abstract early bridging into the technology so that we don't always assume they use RTP and try it.
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Matt O'Gorman d0a1a0033d similar patch for verbose vs debug with minor changes
19 years ago
Joshua Colp 3c732537bc Improve output of sip show peers (issue #6624 reported by mavetju with minor code changes by myself)
19 years ago
Matt O'Gorman 465adf2bf1 allow for packetization on rtp channel drivers, need to add
19 years ago
Olle Johansson 42a56b7a5a Merging patch from 1.2 - Issue #7682
19 years ago
Olle Johansson b93280947a Issue #7351 - sending CANCEL when the call at some point has been in UP state is wrong.
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Kevin P. Fleming c2c4f86c72 merge markster's usersconf branch with some slight changes
19 years ago
Olle Johansson 948533a791 Issue #7924 - cmaj - Turn off silence suppression if no channel owner
19 years ago
Olle Johansson 50b6a222ef Issue #7928 - Don't send both 404 and 503. Fix by phsultan with a small fix by me, myself or I.
19 years ago
Olle Johansson d970a07b1c If we've found a T38 SDP line, stop looking for more on the very same line
19 years ago
Olle Johansson da55c166dc More formatting fixes and doxygen stuff
19 years ago
Olle Johansson d37002287b Add comment
19 years ago
Olle Johansson 8868c4e1ca - Use enum for send-request reliability flags
19 years ago
Olle Johansson 31fa147b76 More formatting
19 years ago
Olle Johansson 4c081033b6 More formatting/doxygen updates to keep me occupied
19 years ago
Olle Johansson 421f2b076d Ignore this. Only whitespace fixes while being bored.
19 years ago
Olle Johansson 2984fbc068 Change from "r" as a variable name to "dialog". "r" is commonly used for registrations,
19 years ago
Olle Johansson e7b882961e Use Timer T1 for dialog timeouts/destruction
19 years ago
Tilghman Lesher 237fbf35fc If the leading underscore is not stripped before comparison,
19 years ago
Olle Johansson 5a622d032e Don't destruct sessions prematurely. Especially not when we want reliable retransmissions...
19 years ago
Olle Johansson 01714e962b importing rev 42535 from 1.2 (which by mistake was actually imported from svn trunk)
19 years ago
Olle Johansson d0cbbaf8d7 Don't destroy pvt prematurely. Wait for answer or timeout.
19 years ago
Olle Johansson 562b491a85 Clear proper flag
19 years ago
Joshua Colp 53cf63c33a Convert some warnings into debug messages since they can exist under perfectly normal circumstances that the user shouldn't care about (issue #7894 reported by stephen_dredge)
19 years ago
Olle Johansson bd4e57a873 Make sure we handle CANCEL/ACK properly (imported with mods from 1.2)
19 years ago
Joshua Colp e43b830a9d Merged revisions 41768 via svnmerge from
19 years ago
Joshua Colp 0be2884d80 If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
19 years ago
Joshua Colp 8ee7419d26 If no number is specified in the SIP_HEADER dialplan function, then just use the first one. (issue #7854 reported by sxpert and issue #7863 reported by hristo)
19 years ago
Matt O'Gorman 05a695af72 everything that loads a config that needs a config file to run
19 years ago
Joshua Colp c6977b9983 Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
19 years ago
Olle Johansson 6ca927457d Why check bridgepeer twice?
19 years ago
Olle Johansson 18164dec14 Don't add headers to an uninitialized eq (from issue 7694 garyhai, but not
19 years ago
Olle Johansson 13eb698ce7 Note to myself: Remember Russell's note: Always compile first...
19 years ago
Olle Johansson 2c98238fbe Mark ALERT_INFO as deprecated. This can now be done with the sipaddheader() application and
19 years ago