Commit Graph

3123 Commits (723e900bf36386bf6a1fc78b93c09121f6d1f6b0)

Author SHA1 Message Date
Olle Johansson 896362d30c - Issue 7101 (mikma) - Don't crash with no From: header in pedantic mode
19 years ago
BJ Weschke ff82a8046d Merged revisions 25563 via svnmerge from
19 years ago
Matt O'Gorman 05ea5482d0 woohoo asterdevcon first commit, adds feature to
19 years ago
Christian Richter 019f39f614 in PTMP TE we should set the free state for the B-Channel if we ignore an incoming call
19 years ago
Russell Bryant 3b43ddac78 Merged revisions 25123 via svnmerge from
19 years ago
Russell Bryant b6ac5b36c6 document the return value of gettag()
19 years ago
Russell Bryant e91afbaef1 fix the return value of gettag() to only return the pointer to the provided
19 years ago
Christian Richter efccf89eae Added option far_alerting. This option makes it possible to generate a Ringing on other channels if they feel that they should have inband ringing, but there is non in reality. I need this due to the fact that asterisk has not the possibility to transmit progress indicators thus chan_sip and others do not know wether they should generate a Rining tone themselves if they receive AST_CONTROL_RINGING..
19 years ago
BJ Weschke a7b1476058 Provide the ability to adjust txgain/rxgain on a channel level via the CHANNEL() function
19 years ago
Joshua Colp b82b277790 Update chan_iax2 to use linkedlists.h for users and peers. Modify the way get_from_jb and expire_registry works to get rid of certain crash scenarios. Finally - change the way expire_registry works when realtime autoclear is enabled to be a bit more efficient.
19 years ago
Olle Johansson 9c60f78ea1 Issue #7074 - Problem with long contact lines
19 years ago
Christian Richter 7f58902bf3 use set_callerid to update callerid with prefix
19 years ago
Christian Richter 63b0baa757 returning 128 emtpy Frames instead of null frame.
19 years ago
Tilghman Lesher dfdf6e1f76 Don't return stack pointers from functions (especially since the code will attempt to free() them later)
19 years ago
Luigi Rizzo 072e1b8a83 move some code used only --with-pri in the proper
19 years ago
Kevin P. Fleming 0adfa8c635 use proper method of detecting OSS support on Linux and FreeBSD
19 years ago
Kevin P. Fleming 51382b3712 Merged revisions 23705 via svnmerge from
19 years ago
Kevin P. Fleming d7aead737d Merged revisions 23673 via svnmerge from
19 years ago
Kevin P. Fleming 26753f77b0 remove unusable MFC/R2 support
19 years ago
Christian Richter 835dfe67b3 added an up-queue message mechanism to avoid buffer fillups in the kernel, also changed some strdups to ast_strdupa
19 years ago
Luigi Rizzo 96e015a239 partial adaptation to the new module loading
19 years ago
Russell Bryant d649d03170 fix sending the group numbers for a sip peer over the manager interface
19 years ago
Matt O'Gorman d830dbabf8 allows for chan_zap to have all channels reloaded
19 years ago
Matthew Fredrickson 173e8b14cd Make sure we use the correct event type when we're moving channels around :-)
19 years ago
Christian Richter 0b6bd0073b put the default misdn.trace to /var/log/asterisk/misdn.log for better integration of existing log structure
19 years ago
Christian Richter 2bde492ea9 Facility decoding doesn't work proper yet
19 years ago
Kevin P. Fleming 574e14cbea Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
19 years ago
Olle Johansson 5873462c2e - Add doxygen documentation for sipsock_read locking
19 years ago
Jim Dixon a83297d85f Added "Operator Services" connection mode for Zap channels, and the 'O' option
19 years ago
Luigi Rizzo 5fa0dc4316 more stncpy/ast_copy_string replacement.
19 years ago
Luigi Rizzo 8a63187145 replace some strncpy with ast_copy string,
19 years ago
Luigi Rizzo 5928df2a48 replace strncpy with ast_copy_string.
19 years ago
Luigi Rizzo ef619f6dd8 ast_strdup can handle NULL args well, so use it.
19 years ago
Olle Johansson 6149e82b6c Clarify result of sipsock_read
19 years ago
Olle Johansson 4403905c2d Add reference to RFC for mailbox notification
19 years ago
Olle Johansson d0f254ef61 Cosmetic fixes to code...
19 years ago
Olle Johansson fc2d28805b - call parking improvements (part of the siptransfer branch)
19 years ago
Olle Johansson 2af3d42e9b Implement somewhat improved support for 481 Call leg does not exist responses...
19 years ago
Olle Johansson 910c44b1b6 Clean up handle_response_peerpoke
19 years ago
Olle Johansson 60d91caa23 Change sip show channels to include refer status
19 years ago
Olle Johansson 1fec0e47e7 - Deallocate refer structure at sip_destroy time
19 years ago
Luigi Rizzo 52ac09f78f simplify logic in iax2_bridge()
19 years ago
Olle Johansson 177b8e9143 It's critical that we get an ACK on a 200 OK to an INVITE. If we do not get the ACK,
19 years ago
Olle Johansson 2c73c08f5a use XMIT_RELIABLE ...
19 years ago
Olle Johansson 40161ae947 - Move subscribeuri away from refer-to, since refer-to is moving away from sip_pvt
19 years ago
Kevin P. Fleming 2229586d71 more module loader related fixes
19 years ago
Olle Johansson 080298dad4 Set timeout timers to Timer A and F in rfc 3261, section 17
19 years ago
Olle Johansson ea7f924b30 Change transmit_invite(). SIP Transfers are now broken officially, while
19 years ago
Olle Johansson 5320c6b76a - Add supported header
19 years ago
Olle Johansson 42918c225a Add more history on masqs
19 years ago
Olle Johansson b124cf4c80 - Implementing the new SIP transfer data structure
19 years ago
Olle Johansson bdb2332621 - Documentation update
19 years ago
Olle Johansson bedd0c2ed3 Documentation update
19 years ago
Olle Johansson 382fd7260c Remove ignore from handle_respons_refer
19 years ago
Olle Johansson a5e5fb18e2 Clean up handle_response_invite
19 years ago
Olle Johansson 92ac73fe3b - Drop too bad SIP requests in order to avoid some UDP misuse (hello Edwin)
19 years ago
North Antara 659cb5ea5a whitespace and spelling (recieve instead of receive) fixes
19 years ago
Olle Johansson 4a312a044d - Fixes to ast_channel_lock functions
19 years ago
Joshua Colp 5c05128777 Move a bit more stuff over to the datadir (issue #6967 reported by tzafrir patch by north)
19 years ago
Russell Bryant 717445c1d8 add the ability to turn off the feature that allows agents to end calls
19 years ago
Russell Bryant 825d6d7c99 Big oops. I did this from my trunk directory instead of autoconf_and_menuselect ...
19 years ago
Russell Bryant aade174330 include autoconfig.h (casper)
19 years ago
Olle Johansson e75fa47099 More ast_channel_lock fixes
19 years ago
Olle Johansson 6b3367bf5c New functions for locking a channel - these simplify debugging
19 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
19 years ago
Olle Johansson 5af687b83b Issue #6951 - Show last successful registration time in "sip show registry" (ivanfm) with mods for svn trunk
19 years ago
Olle Johansson d4b5393eeb - Adding some refer state definitions from the siptransfer branch
19 years ago
Olle Johansson 9468e5cd06 Fix for Polycom bug...
19 years ago
Olle Johansson ea4235c56c Implement a setting for denying/allowing transfer requests. At this stage,
19 years ago
Olle Johansson 975ddb8552 Doxygen docs
19 years ago
Luigi Rizzo b24bc86fc2 reindent block properly
19 years ago
Luigi Rizzo 86e8094c3c localize some variables, remove useless parentheses
19 years ago
Luigi Rizzo 3579d11dc1 remove useless \0, and fix formatting.
19 years ago
Kevin P. Fleming fb4d5fb6a6 fix logic error; don't test for rtcache flag unless asked to (issue #6923)
19 years ago
Joshua Colp d7f01e051b No need to do this in here any longer since the linkedlists macro is fixed
19 years ago
Joshua Colp afcefc4a68 Convert chan_iax2 to use linked lists for multithreading, and add dynamic threads. These are used when all pool threads are in use, and will stick around until load dies down. The theory is that during high load you'll have more threads available, and during low load you'll only have the normal pool threads sticking around.
19 years ago
Luigi Rizzo 6b2d947b62 staticize a function, and normalize code in preparation to module changes.
19 years ago
Christian Richter baab6e1c27 mISDN Messages must be freed with free_msg \!\!
19 years ago
Olle Johansson 8318cddd8e - First stab at removing debug and ignore variables that
19 years ago
Olle Johansson 26198e8826 Fixup fixup - add some debugging and error handling
19 years ago
Olle Johansson 8b1543974f Resolve conflicts, prepare for next batch of conflicts
19 years ago
Christian Richter 52cf26255a fixed some issues, that appear at higher load
19 years ago
Christian Richter cb6f278393 we send nearly everytime a RELEASE, only if we for sure know, that it's a TE and we did create the call we don't to hear the Inband Info
19 years ago
Olle Johansson fed57c1eb2 Making sure that cancel destroy is only executed once...
19 years ago
Olle Johansson f74538df11 Small fix
19 years ago
Luigi Rizzo c3b3feab76 - staticize gettag() complete_sip_peer() get_calleridname() arguments;
19 years ago
Luigi Rizzo 8731b6386d - constification of some functions (args and return values):
19 years ago
Luigi Rizzo 7e5e2ffb5f - localize 'struct cfalias' into the only function using it;
19 years ago
Luigi Rizzo 25e9168fea constify get_sdp*() and friends.
19 years ago
Luigi Rizzo 87890e75ba constify get_header(), which let me find out and fix one bug (overwriting
19 years ago
Luigi Rizzo 47df1e2020 - describe how sip packets are stored internally;
19 years ago
Luigi Rizzo 20d1876617 struct sip_request cleanup:
19 years ago
Luigi Rizzo 104c2b0a3a more cleanup: remove useless braces, replace "if" with "?",
19 years ago
Olle Johansson 9b4e335439 Re-instate removed comment
19 years ago
Luigi Rizzo e081b42cd6 another batch of minor code simplifications
19 years ago
Luigi Rizzo e468d9011d a bunch of trivial code normalizations (removal of unnecessary
19 years ago
Kevin P. Fleming f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
19 years ago
Olle Johansson 8159124572 -Fixing some debugging messages in history and console
19 years ago
Olle Johansson aefba4ad7d Add history events for re-invites
19 years ago
Olle Johansson f235bbe5a5 make history easier to read
19 years ago
Olle Johansson 8cd506cdfd Add some more information to SIP history
19 years ago
Olle Johansson 7089dc1341 Issue #6899 - remove OSP support code from chan_sip.c and app_dial.c
19 years ago
Olle Johansson fd54f36509 Hmm. What is that keyword?? Let me see... Wait... Maybe... Ahh! OOPS!
19 years ago
Russell Bryant 3808318cff change a couple uses of !strlen() to ast_strlen_zero(). Oddly enough, one of
19 years ago
Olle Johansson 839ebd8e03 - sip_alloc failures are also caused by too few available file descriptors, so we can not
19 years ago
Olle Johansson b479a91e97 - Add cause code for format error
19 years ago
Olle Johansson 48ca2c82bf Import of revistion 18250 from 1.2
19 years ago
Christian Richter ece21c3019 sorry litle mistake
19 years ago
Christian Richter 47b8610f70 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter 7788d5061c fixed a bridging-endless-loop also fixed the rdnis is not exported issue
19 years ago
Olle Johansson b7d32b9e0b Issue #6674: Set the URI correctly on BYEs when we have an incoming call
19 years ago
Olle Johansson 4ded41daa5 Cosmetic update for outbound REFERs
19 years ago
Olle Johansson 965394e4c2 Add "NewChan" event to history to track the birth of a new ast_chan from a
19 years ago
Olle Johansson 009e081199 Improved handling of 491 responses
19 years ago
Olle Johansson 518c4b295d Small changes to parse_sip_options
19 years ago
Olle Johansson be4ac5e57a Small fixes to handle_request_invite
19 years ago
Olle Johansson 62128ba7b7 - Don't change channel direction on re-invites
19 years ago
Olle Johansson 5483288048 - Implement handle_request_notify to handle incoming NOTIFY requests
19 years ago
Olle Johansson 9bd9bceef7 Implement a handle_response_refer function to take care of responses
19 years ago
Olle Johansson 1e8d1dda7d Change transmit_notify_sipfrag to handle other messages than 200 OK, needed for
19 years ago
Olle Johansson ddcd16e519 - doxygen
19 years ago
Luigi Rizzo 4408c0e6b5 structures can be copied with the '=' operators, no need to
19 years ago
Luigi Rizzo 6f09a652dd normalize some for() loops.
19 years ago
North Antara 0a24923596 skinny debug/verbose cleanup.
19 years ago
Tilghman Lesher 756c7cbb12 Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
19 years ago
Christian Richter 7028946605 some final fixes for cpn
19 years ago
Christian Richter ce8fc47ffc * advanced the error Handling routine for wrong frames from mISDN
19 years ago
Christian Richter d7a839a299 fixed some essential segfaults happening under heavy load. Added a bit more error handling if we receive wrong data form mISDN (e.g. if we crashed before => handle_err() ). Added first steps to implement the parseing of the connected party number.
19 years ago
Olle Johansson 42fddfa075 Formatting cleanup
19 years ago
Olle Johansson 0a1898d8d6 Issue #6878 - Manager event DNDstate hidden under verbose option (casper)
19 years ago
Olle Johansson 37ff50a890 - Don't return AST_DEVICE_UNKNOWN to devicestate engine, since this will
19 years ago
Matthew Fredrickson a868675e2f chan_iax2 cleanups and optimizations (#6858)
19 years ago
Matt O'Gorman b9e7287ce6 adds manager event when an iax2 peer loses registration.
19 years ago
Olle Johansson 878c88f899 Add tag to NOTIFY headers (imported from 1.2)
19 years ago
Christian Richter a096fbd87d * removed unneeded bc->state field
19 years ago
Matt O'Gorman 319945c922 bug updates chan_h323 to some api changes it
19 years ago
Olle Johansson 5fbe9f80e8 Don't add hangup cause on non-final responses. (Imported from 1.2)
19 years ago
Olle Johansson 67b460d43c Issue #6848 - Accept MWI subscriptions with no Accept: header
19 years ago
Olle Johansson 46a1b7c73b Don't add ast_extension_state on re-subscribes
19 years ago
Olle Johansson 2240245389 Reverse revision 16804 that disables authentication
19 years ago
BJ Weschke 225d8d5270 Don't process re-subscribes as new subscriptions.
19 years ago
Russell Bryant e536a9c6df move a NULL check to before the first time the pointer is dereferenced (issue #6832)
19 years ago
Russell Bryant a13ab2f377 - code formatting tweaks
19 years ago
Russell Bryant 813c445686 Merged revisions 16744 via svnmerge from
19 years ago
Olle Johansson 83b7de9463 Doxygen fix
19 years ago
Olle Johansson 2994fa390c Make REG_STATE_* enum
19 years ago
Olle Johansson 40b71d4b39 Don't accept new INVITE if we already have one pending.
19 years ago
Luigi Rizzo 0b655c3ce9 minor cleanup: localize a variable and replace i++; i++ with i +=2;
19 years ago
Luigi Rizzo 0ff1c42675 useless 'extern' and trailing whitespace removal
19 years ago
Joshua Colp 5880a7f513 Do not leave a thread in limbo if an error occurs, or if testing packet loss.
19 years ago
Tilghman Lesher 9a9ab4e7cf Merged revisions 16581 via svnmerge from
19 years ago
Luigi Rizzo c163911efe don't use 8000, use DEFAULT_SAMPLE_RATE
19 years ago
Luigi Rizzo 6c232811c0 as discussed with Mark a few weeks ago, the 'newstack' argument
19 years ago
Kevin P. Fleming 4e5ea82b7e deprecate insecure=very and insecure=yes, since we have more explicit versions available now
19 years ago
Olle Johansson 50f0b12880 Issue #5374 - Enable internal timing of generators (cmantunes)
19 years ago
Olle Johansson 2c4ebe356e Issue #6450 - Don't remove characters from SIP uri's when not needed
19 years ago
Joshua Colp 0c134c5cba Fix IAX2 multithreaded scheduling (issue #6840)
19 years ago
Olle Johansson 3d1f9b747e Formatting fix.
19 years ago
Christian Richter acacae4e68 fixed no dtmf detect on 64 bit
19 years ago
Russell Bryant 1caeee1c61 oops! :)
19 years ago
Russell Bryant 6601f4deba conversion from malloc to ast_malloc
19 years ago
Olle Johansson b366c4062e Issue #6823 - Registration and port numbers. (from 1.2)
19 years ago
Luigi Rizzo 096bf1511f another batch of cli simplifications
19 years ago
Luigi Rizzo b94f6a6df4 normalize/simplify a bit of the command completion code.
19 years ago
Kevin P. Fleming bb87cd151b make 'sip show subscriptions' include context for subscribed hints
19 years ago
Luigi Rizzo e9b7424737 The condition to check the zaptel version was too strict.
19 years ago
Luigi Rizzo f84e5cfd43 fix a bug introduced in 15187 that scrambled the flags and
19 years ago
Russell Bryant 3de0204481 Merged revisions 15703 via svnmerge from
19 years ago
Russell Bryant 1ddae90e53 only display a debug message if iaxdebug is enabled as well (issue #6673)
19 years ago
Olle Johansson 147ae336d2 Fix NAT support breakage for peers with qualify=yes (imported from 1.2)
19 years ago
Kevin P. Fleming f7c2eed26a ensure that 'zap show channel' will indicate that the echo canceler has been disabled when CED has been detected on the channel
19 years ago
Russell Bryant 78f7235d04 store f->callno in a local var (issue #6818)
19 years ago
Kevin P. Fleming 584ab24577 oops :-(
19 years ago
Russell Bryant dea8078eef conversions to S_OR (issue #6817)
19 years ago
Luigi Rizzo 45edaa4c3a optimize a bit name completion by avoiding repeated calls to
19 years ago
Luigi Rizzo bf2ae44338 fix documentation
19 years ago
Kevin P. Fleming 8410e0d681 support subscription-based MWI, and use proper Call-ID on NOTIFY messages (issue #6390)
19 years ago
Kevin P. Fleming 0b5f2a5d3f use proper file name
19 years ago
Kevin P. Fleming 278b8e8fc7 improve IP TOS support for SIP and IAX2 (issue #6355, code from jcollie plus modifications)
19 years ago
Olle Johansson ddaeaae214 Issue #6736 - use flags for OPTIONs messages
19 years ago
Olle Johansson 2c9ecd7baa Reverting previous patch. Ok, let's take this from 1.2 instead... :-)
19 years ago
Olle Johansson e4c8021b7d Issue #6736 - Enable NAT flags for OPTIONs requests (Thanks casper!)
19 years ago
Olle Johansson 0b39c35161 Issue #6597 - Show correct port in "sip show registry" - import from 1.2 branch
19 years ago
Olle Johansson 450bc8dad6 Issue #6409 - Make calls to URI without username go to "s" extension (imported from 1.2)
19 years ago
North Antara e9cf7dbfff Changed some "register" methods to the proper "unregister" method. This is in a #if 0 block, but it may still be useful someday.
19 years ago
Matt O'Gorman a5ece3388a Janitor work converting !ast_strlen_zero(a)?a:b
19 years ago
Christian Richter f274b642aa fixed bug that we don't allocate the bchan in setup_acknowledge already .. wonder why this wasn't fixed eearlier ..
19 years ago
Christian Richter bd4715f3bc fixed hicom busy bug, we now see if the systemphone is busy, also fixed the immediate=yes does not work anymore issue
19 years ago
Kevin P. Fleming 15873eb39c simplify flags/page2_flags stuff by using arrays instead
19 years ago
Olle Johansson 83d9331261 Issue #5427
19 years ago
Olle Johansson 18de2b7787 Issue #6705 (oej)
19 years ago
Russell Bryant d0b003a427 conversions to S_OR (issue #6803)
19 years ago
Mark Spencer 9164eac21a Add micro-http server and abstract manager interface, make snmp not die
19 years ago
Kevin P. Fleming c26786fd81 compute scheduler thread timeout properly
19 years ago
Kevin P. Fleming 39464dfe09 commit file's work to convert iax2 multithreading to use pthread conditions instead of signals (with some modifications)
19 years ago
Matthew Fredrickson ba8f7b8819 Allow channels to be moved if channel change is requested in SETUP_ACK, also add a WAY cool new field to the nsf option
19 years ago
Olle Johansson f554c03652 - In response to asterisk-users discussion - show which peers in "sip show peers" and "sip show peer" that are cached realtime peers.
19 years ago
North Antara 2ccaab2ad1 More whitespace and typo fixes for chan_skinny - yay!
19 years ago
Olle Johansson 19af878bac Issue #6766 - Make ;user=phone work again - imported from 1.2
19 years ago
Olle Johansson 9e1e47450a Issue #6759, generate warning when refusing connection requiring unsupported SIP extensions
19 years ago