Commit Graph

2186 Commits (2494fa613ba4fd1eb0cdbea7b8c05e43f84f890f)

Author SHA1 Message Date
Olle Johansson d8795b4542 Make more timers settable in SIP so that we can force timeout earlier on non-responsive SIP servers.
18 years ago
Joshua Colp 8765a9d73a Merged revisions 92937 via svnmerge from
18 years ago
Jason Parker a19a3f493c Remove remnants of a poorly merged commit. (92697)
18 years ago
Jason Parker 78465ad2a3 Merged revisions 92696 via svnmerge from
18 years ago
Jason Parker b0968803b9 We need to set the address we want to match against before we actually do the match..
18 years ago
Olle Johansson 36270ad02b Removing some LOG_DEBUG items
18 years ago
Olle Johansson 2e286ba797 Merged revisions 92158 via svnmerge from
18 years ago
Jason Parker a214f02b32 Fix a small typo in a comment.
18 years ago
Joshua Colp 45dfc612de Merged revisions 91439 via svnmerge from
18 years ago
Olle Johansson 0cc002a48a Rename "username" to "defaultuser" to match with "defaultip".
18 years ago
Olle Johansson 10d047737f Remove the cseqs from "sip show channel" and make more place for the call ID.
18 years ago
Jason Parker 3f677a718a Add manager action 'sipshowregistry'.
18 years ago
Joshua Colp 4a5b8ad6b3 Merged revisions 90269 via svnmerge from
18 years ago
Russell Bryant 062327c960 remove a duplicate manager event
18 years ago
Olle Johansson 09e1c572d8 Starting to merge changes from the "moremanager" branch. Documentation will
18 years ago
Olle Johansson df7ba90b20 The following patch with updates for trunk. Works much better in trunk.
18 years ago
Olle Johansson 11df6a9119 Rename "limitonpeer" to "counteronpeer" since the call-limit is deprecated.
18 years ago
Olle Johansson 5070d10864 Formatting, doxygenification
18 years ago
Olle Johansson 96ad455115 Formatting changes, cleaning up some code
18 years ago
Olle Johansson d4863bb0f0 Start using Doxygen groupings to group variables and defines.
18 years ago
Joshua Colp 71c602a2d1 Instead of printing out one codec in sip show channels print out all of the native ones (this is for video).
18 years ago
Tilghman Lesher c8edf66bb4 Typo (someone needs to test compile before committing his changes)
18 years ago
Olle Johansson debdfd958c More doxygen changes
18 years ago
Olle Johansson b380467388 Housekeeping
18 years ago
Olle Johansson a2c95022ac Formatting, doxygen updates
18 years ago
Olle Johansson 07cb09ad86 - Deprecate "call-limit" in chan_sip. No other channel driver enforces call-limits
18 years ago
Olle Johansson 77e15c9b2f Housekeeping...
18 years ago
Luigi Rizzo 87b633b71e set rtpmap video info according to what is read from SDP;
18 years ago
Steve Murphy 86476c607f closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly.
18 years ago
Luigi Rizzo 7e8835e0d7 remove another set of redundant #include "asterisk/options.h"
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Olle Johansson 28531cde08 Fix sip show history.
18 years ago
Olle Johansson 308646f8ef Change terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.
18 years ago
Mark Michelson fb3b4f4937 Changed the "busy-level" option in sip.conf to "busylevel" to be more parallel
18 years ago
Tilghman Lesher 0aa40f1366 Change delimiter of SIPPEER to be comma (instead of pipe) and further deprecate the old ':' delimiter
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Olle Johansson 743d3774d7 Adding busy-level to the SIP_PEER() dialplan function.
18 years ago
Olle Johansson 1dc6524449 Make some notes about a problem I found with the OPTIONs handler while working with
18 years ago
Luigi Rizzo 5663ff6518 fix breakage induced by previous mistake
18 years ago
Luigi Rizzo 4afe3b5ba9 remove redundant #include "asterisk/compat.h",
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Joshua Colp e7e208009f And file said... let trunk build again! Accomplished by some more constification, and marking a function in chan_sip as purposely unused until it is fixed up.
18 years ago
Olle Johansson 8740176dc3 Always relying on the responses when crossing NAT's are not a good
18 years ago
Olle Johansson a4ce44bda4 Merged revisions 89281 via svnmerge from
18 years ago
Olle Johansson c698e39245 Merged revisions 89280 via svnmerge from
18 years ago
Olle Johansson 257b4fb41e Exit early instead of deciding to exit after processing the message.
18 years ago
Olle Johansson eab6b00904 Add support for application/dtmf SIP INFO dtmf handling. Yep, another
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Russell Bryant 50426062b7 - Convert initialization of a struct to C99 style instead of GNU style
18 years ago
Tilghman Lesher f821071748 Merged revisions 89246 via svnmerge from
18 years ago
Tilghman Lesher 061e5a1674 Merged revisions 89184 via svnmerge from
18 years ago
Mark Michelson beef61b718 Merged revisions 89119 via svnmerge from
18 years ago
Joshua Colp 6878c9962a Merged revisions 89101 via svnmerge from
18 years ago
Joshua Colp 5a63438787 Merged revisions 89099 via svnmerge from
18 years ago
Joshua Colp f34bb18940 Merged revisions 89097 via svnmerge from
18 years ago
Joshua Colp 7c6127ceef Merged revisions 89095 via svnmerge from
18 years ago
Mark Michelson 9aca31f0fc Merged revisions 89090 via svnmerge from
18 years ago
Tilghman Lesher 7c56918262 Commit some cleanups to the format type code.
18 years ago
Mark Michelson 5a4867543d "show application <foo>" changes for clarity.
18 years ago
Joshua Colp b4031d6294 Merged revisions 89032 via svnmerge from
18 years ago
Russell Bryant 44bf973865 Merged revisions 88768 via svnmerge from
18 years ago
Russell Bryant a33b10fe00 Merged revisions 88765 via svnmerge from
18 years ago
Joshua Colp dbd26a0a19 Merged revisions 88671 via svnmerge from
18 years ago
Jason Parker 135810daf9 Merged revisions 88585 via svnmerge from
18 years ago
Luigi Rizzo 08b10da53b Simplify the implementation and the API for stringfields;
18 years ago
Joshua Colp 17f0f4c3fa Merged revisions 88366 via svnmerge from
18 years ago
Joshua Colp a7c6c47e61 Merged revisions 88328 via svnmerge from
18 years ago
Russell Bryant 1c7eb1d82b Change some uses of free() to ast_free(). (No functional differences.)
18 years ago
Joshua Colp 230e7f0ee0 Merged revisions 87342 via svnmerge from
18 years ago
Jason Parker ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
18 years ago
Joshua Colp d167f88947 Merged revisions 86756 via svnmerge from
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago
Joshua Colp eafb395b09 Merged revisions 86471 via svnmerge from
18 years ago
Joshua Colp 2d9034d87e Merged revisions 86469 via svnmerge from
18 years ago
Russell Bryant ba2768f4df Merged revisions 86149 via svnmerge from
18 years ago
Joshua Colp 1a4171ae6b Merged revisions 86117 via svnmerge from
18 years ago
Joshua Colp e24eee1797 Merged revisions 86063 via svnmerge from
18 years ago
Russell Bryant 8fae310e81 This fixes SIP subscriptions in trunk.
18 years ago
Jason Parker ed690fc348 Switch dundi to new tos config format.
18 years ago
Russell Bryant d79fe9b662 Merged revisions 85604 via svnmerge from
18 years ago
Joshua Colp 15f3f5408c Merged revisions 85280 via svnmerge from
18 years ago
Joshua Colp 96f7f62acb Merged revisions 85277 via svnmerge from
18 years ago
Joshua Colp d9909a0151 Merged revisions 85093 via svnmerge from
18 years ago
Russell Bryant f58f7170d4 Merged revisions 84370 via svnmerge from
18 years ago
Joshua Colp 5ae00a58b3 Check to make sure a structure pointer is non-NULL before touching it... crashing is bad, mmmk?
18 years ago
Russell Bryant d78463be1e Corydon posted this janitor project to the bug tracker and mvanbaak provided
18 years ago
Joshua Colp acb9d6bf2b Add MP4 to part of the SDP code.
18 years ago
Russell Bryant 958954426e Merged revisions 83943 via svnmerge from
18 years ago
Russell Bryant cf452dc6f5 Merged revisions 83941 via svnmerge from
18 years ago
Dwayne M. Hubbard 0f53904918 merged jcmoore's patch for configurable SDP origin-field username and session field, closes issue# 10795
18 years ago
Russell Bryant 9f64905d4e Merged revisions 83432 via svnmerge from
18 years ago
Russell Bryant 79088ae5bc fix spelling in a comment
18 years ago
Joshua Colp b24f4a86bb Merged revisions 83232 via svnmerge from
18 years ago
Joshua Colp 2d5aaf250a Merged revisions 83230 via svnmerge from
18 years ago
Joshua Colp fd1cde1a16 Merged revisions 83070 via svnmerge from
18 years ago
Jason Parker c7a9ec1691 (issue #10724)
18 years ago
Russell Bryant 9388173f85 Make the MALLOC_DEBUG output for free() useful again. After changing calls to
18 years ago
Joshua Colp 9642d93117 (closes issue #9433)
18 years ago
Joshua Colp 5fd0dfb923 (closes issue #10688)
18 years ago
Russell Bryant bc8ac382b8 fix the build ... oops
18 years ago
Russell Bryant 7c1b18f8ec Merged revisions 81832 via svnmerge from
18 years ago
Jason Parker d72ea80a00 Doxygen cleanups/fixes.
18 years ago
Kevin P. Fleming 96206c9289 Merged revisions 81442 via svnmerge from
18 years ago
Joshua Colp fe8ffda841 Merged revisions 81395 via svnmerge from
18 years ago
Joshua Colp 1e12db06da (closes issue #10565)
18 years ago
Steve Murphy b5cd67adc3 This code was in team/murf/bug8684-trunk; it should fix bug 8684 in trunk. I didn't add it to 1.4 yet, because it's not entirely clear to me if this is a bug fix or an enhancement. A lot of files were affected by small changes like ast_variable_new getting an added arg, for the file name the var was defined in; ast_category_new gets added args of filename and lineno; ast_category and ast_variable structures now record file and lineno for each entry; a list of all #include and #execs in a config file (or any of its inclusions are now kept in the ast_config struct; at save time, each entry is put back into its proper file of origin, in order. #include and #exec directives are folded in properly. Headers indicating that the file was generated, are generated also for each included file. Some changes to main/manager.c to take care of file renaming, via the UpdateConfig command. Multiple inclusions of the same file are handled by exploding these into multiple include files, uniquely named. There's probably more, but I can't remember it right now.
18 years ago
Joshua Colp ee6f91968c Merged revisions 81331 via svnmerge from
18 years ago
Joshua Colp 263b77634a Merged revisions 81012 via svnmerge from
18 years ago
Joshua Colp 12894ee728 Remove places that say if no language is specified it will default to english... since on some setups this is untrue.
18 years ago
Joshua Colp ed9306ba42 If no default language has been specified print out that it will default to english when using sip show peer or sip show user.
18 years ago
Russell Bryant eb6813cce3 Merged revisions 80390 via svnmerge from
18 years ago
Russell Bryant 8a2dd1d145 Merged revisions 80183 via svnmerge from
18 years ago
Tilghman Lesher 749b67bd1d We weren't properly encapsulating the mtime ignores of config files (closes issue #10488)
18 years ago
Jason Parker 100e2387db Merged revisions 79904 via svnmerge from
18 years ago
Russell Bryant f5bf66bcd7 This commit adds a scheduler API call, ast_sched_replace that can be used
18 years ago
Russell Bryant 9d54c14278 Merged revisions 79857 via svnmerge from
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Joshua Colp 3512cefb10 Merged revisions 79523 via svnmerge from
18 years ago
Joshua Colp d5eda8709c Merged revisions 79174 via svnmerge from
18 years ago
Russell Bryant 0034e3f49d When looking up a mailbox, use the default context if not specified as something else
18 years ago
Russell Bryant 348ff8c3e9 Restore the ability to have multiple mailboxes listed for the mailbox option
18 years ago
Russell Bryant 9d1acad76b Fix a problem that I had introduced into MWI handling. I had ignored
18 years ago
Joshua Colp 22114b509d Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
18 years ago
Mark Michelson 8f17952065 Fixing a compiler warning which warns that a variable may be used unitialized. Thanks to mvanbaak for pointing this out.
18 years ago
Mark Michelson c4c0e45c8b Merged revisions 78103 via svnmerge from
18 years ago
Joshua Colp 54a2d42e2f Merged revisions 78182 via svnmerge from
18 years ago
Tilghman Lesher 05d60c7860 Merged revisions 78139 via svnmerge from
18 years ago
Steve Murphy 35499c7f40 thanks to Russel, for pointing out that the dialoglist_lock/unlock routines also need to be macros if DETECT_DEADLOCKS is set
18 years ago
Mark Michelson 768724f5e6 Merged revisions 77824 via svnmerge from
18 years ago
Kevin P. Fleming f35541734a there is no use in having functions that have no code in them, and hide the locking info when DEBUG_THREADS is enabled... i could have fixed this to be dependent on DEBUG_THREADS, but it would be just as easy for someone to add their test/debugging code to the macros as it would have been to the functions
18 years ago
Kevin P. Fleming b2eb99bb47 use a different method for overriding the send_digit_begin pointer, as the old one fails to compile on my 64-bit system with gcc-4.1 and --enable-dev-mode turned on
18 years ago
Steve Murphy 2cad4fea1a Discovered in experiments on core files: if you wrap the lock and unlock calls with sip_pvt_lock and sip_pvt_unlock, you lose the tracing info you would normally get via DETECT_DEADLOCKS; so I turn these two functions into macros when DETECT_DEADLOCKS is called. This way, you get meaningful stuff in the file and func slots in the lock_info struct.
18 years ago
Luigi Rizzo b20ab775d5 minor code rearrangements:
18 years ago
Luigi Rizzo adc28d1e1c rename handle_request() to handle_incoming(), as the former
18 years ago
Luigi Rizzo 6fe18e2403 move some dialog-only flags to proper variables, namely
18 years ago
Luigi Rizzo 597421be86 use a function, cli_yesno(), to produce the output Yes or No for
18 years ago
Luigi Rizzo 89f44c573e move the two remaining peer flags to proper variables.
18 years ago
Luigi Rizzo db10bcc41a move RT_FROMCONTACT to a proper sip_peer field.
18 years ago
Luigi Rizzo fd2f3a20bc Move some global 'flags' to individual variables.
18 years ago
Luigi Rizzo 5e35eab5a2 minor simplification of a conditional statement
18 years ago
Luigi Rizzo c19549820e build the version of sip_tech with no send_digit_begin
18 years ago
Luigi Rizzo e5f3a6ccdb remove bit position from description of SIP_* flags.
18 years ago
Luigi Rizzo 692e1fe0c4 back on cleaning up the usage of flags.
18 years ago
Luigi Rizzo b5c5227804 more documentation on internal representation of incoming SIP messages.
18 years ago
Luigi Rizzo 5ca87effb7 make register_unref() return NULL so it is easy to cleanup
18 years ago
Luigi Rizzo 9f165b444a add some documentation to auto_congest(), and some
18 years ago
Luigi Rizzo a6e169c09a more dialog_ref()/dialog_unref() calls
18 years ago
Luigi Rizzo 5dcfd811d7 more dialog_ref()/dialog_unref() calls
18 years ago
Luigi Rizzo d480266797 start introducing hooks for reference counts on dialog descriptors.
18 years ago
Luigi Rizzo df75ae2285 remove an unused string
18 years ago
Luigi Rizzo 800e1a6a03 simplify a conditional expression using S_OR
18 years ago
Luigi Rizzo 6d8c6a9961 make use of received= and rport= fields in sip replies.
18 years ago
Joshua Colp 111250f2ae Turn 4 lines of code into 1 line that does the same thing.
18 years ago
Joshua Colp f6498f16bb Merged revisions 77536 via svnmerge from
18 years ago
Mark Michelson d17d9c542b Merged revisions 77490 via svnmerge from
18 years ago
Russell Bryant f8483a0d04 Do a massive conversion for using the ast_verb() macro
18 years ago
Russell Bryant 70f140c1d2 Revert some changes to call abs() on the result of ast_random().
18 years ago
Tilghman Lesher 7a97d49914 Things expecting a positive result from ast_random() should not be surprised (closes #10308)
18 years ago
Luigi Rizzo 961165519e two small fixes when using stun (reported by Marta Carbone):
18 years ago
Luigi Rizzo 6a9270d879 add two missing entries in the replica of the sip_tech that
18 years ago
Joshua Colp 90dc0cfa85 Merged revisions 76561 via svnmerge from
18 years ago
Russell Bryant 7a2772c151 Mark str2dtmfmode() as currently unused to resolve a compiler warning and
18 years ago
Russell Bryant eaebbdab61 (closes issue #10271)
18 years ago
Luigi Rizzo b1791d9349 introduce two functions, map_x_s() and map_s_x(), to map
18 years ago
Russell Bryant 83609770c1 Remove an unused function to resolve a compiler warning
18 years ago
Luigi Rizzo ed1775bd10 move "sip prunte realtime ..." and "sip set debug ... " to NEW_CLI style.
18 years ago
Luigi Rizzo 1ee5480549 Add some documentation on the sipregistry states and the
18 years ago
Luigi Rizzo 28cde9fee3 add a bit of comments on internal functions.
18 years ago
Luigi Rizzo 719dcef90d rewrite "sip show {channels|subscriptions}" CLI handler
18 years ago
Luigi Rizzo 930bf0402d Make sip_destroy() return NULL so the caller can do things like
18 years ago
Luigi Rizzo 97512a856f add two comment blocks, one on reusing nonces, and one on the handling
18 years ago
Luigi Rizzo db12b404fc comment and slightly restructure handle_request() in the part that handles
18 years ago
Luigi Rizzo 88f18dc9d7 remove unused argument from handle_invite_replaces(), and also leftover
18 years ago
Luigi Rizzo b7945cd78e Cleanup of flags used in struct sip_request, moving them to
18 years ago
Luigi Rizzo aa110ad3fd move two per-packet flags to proper variables.
18 years ago
Luigi Rizzo e603d729a9 minor clarification on the usage of SIP_* flags.
18 years ago
Luigi Rizzo 0d5e33f2c3 document the way sipdebug works, and implement it through
18 years ago
Luigi Rizzo 063edd1953 move the SIP_REALTIME flag to a field in the user/peer structure.
18 years ago
Luigi Rizzo 1daf32e474 Add a note to document how the temporary 'pvt' should be initialized
18 years ago
Luigi Rizzo ed604a6df8 whoops... was setting needdestroy on the wrong dialog.
18 years ago
Luigi Rizzo b11d587ab6 more two more flags to proper variables: ALREADYGONE and NEEDDESTROY.
18 years ago
Luigi Rizzo 4ce3ee94c3 use explicit variables for things that don't need to
18 years ago
Luigi Rizzo 10d1b9347c Use ast_str_append() instead of ast_build_string() to construct
18 years ago
Luigi Rizzo 06a3436375 We have two 'technology' descriptors for a SIP channel, so
18 years ago
Luigi Rizzo 2286afa3af Enhance NAT support as discussed on the -dev list, i.e.:
18 years ago
Joshua Colp 989b93143a Merged revisions 76087 via svnmerge from
18 years ago
Joshua Colp 66cae9269b It is impossible for the externhost variable to not exist, it is however possible for it to be empty.
18 years ago
Luigi Rizzo bfc782f4e9 Don't use a field size for the last argument of printf format,
18 years ago
Luigi Rizzo b2fec9ad16 Extend the 'network settings' section with indication on the
18 years ago
Steve Murphy 0e969271ae After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort.
18 years ago
Luigi Rizzo d60c5ee296 print more of the network settings (externip, externhost etc.)
18 years ago
Luigi Rizzo 192ac53c3f document the use of externip, externhost and other nat-related options,
18 years ago
Luigi Rizzo fddd5b557c ast_sip_ouraddrfor() never fails, so make it void
18 years ago
Luigi Rizzo 00d9a3e7a0 portability fix: use %f instead of %lf when printing double.
18 years ago
Tilghman Lesher 81bc1d7af5 Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
18 years ago
Joshua Colp a23feea9d2 Merged revisions 75623 via svnmerge from
18 years ago
Joshua Colp d90bddfa6c Merged revisions 75621 via svnmerge from
18 years ago
Steve Murphy 5ac24b25d3 This corrects the problem with flags and %lld formats on 64-bit machines, where uint64_t is NOT acceptable for %lld, and also works on 32-bit machines. At least, with gcc.
18 years ago
Joshua Colp 4003b31fc5 Minor code tweaks. Variables were being checked wrong in some situations and didn't need to be checked in others.
18 years ago
Steve Murphy 8a7732f067 via 10206, I have added an option (e) to Dial to allow the h exten to get run on peer. Had to upgrade ast_flag stuff to 64 bits to do this.
18 years ago