Commit Graph

1445 Commits (0c4dfe3aedbfcdd48a9897ffc6af8faa7515f20e)

Author SHA1 Message Date
Olle Johansson cb4221c7e9 Don't count unknown media streams as media streams in the offer... (Fenlander reported this on irc)
19 years ago
Olle Johansson e04914b44a parse SDP properly even when we are debugging. (Thanks fenlander!)
19 years ago
Olle Johansson 3b910323f3 Issue #6820 - SIP channels hang in semi active state
19 years ago
Olle Johansson bce5b8a146 - Formatting
19 years ago
Olle Johansson 2813d15f52 Hoppsan!
19 years ago
Olle Johansson 83e64c7c94 - Do not require a space at the end of the m= string in a T38 re-invite
19 years ago
Olle Johansson 8fd35365f5 Add some debug logging
19 years ago
Olle Johansson 4b6d6a1a0b Formatting fixes
19 years ago
Matt O'Gorman b22e7bf558 adds support for t38 pass through patch brought up to trunk from
19 years ago
Russell Bryant 55ffe394a5 only set the QOS variables if the pvt has an owner so that they are not
19 years ago
Olle Johansson 1ec28daa30 Formatting fix and doxygen update
19 years ago
Olle Johansson 2ab4e12549 Fix typo (Thanks Vechers!)
19 years ago
Olle Johansson 5d3d87900e - Remove redundant forward declaration
19 years ago
Olle Johansson e41fcca65a - Complete addition of forward declarations and grouping of functions
19 years ago
Olle Johansson 8ef5092031 Issue #7325 - Parse string after URI decoding (casper)
19 years ago
Olle Johansson d2fa9efdad Store RTCP reports in channel variables and SIP history
19 years ago
Olle Johansson 6d4ab87321 - RTP debug message formatting
19 years ago
Olle Johansson 8bee8de932 Another try at hanging up the transferer channel after the masq
19 years ago
Olle Johansson bcf82f32d5 Don't force context for domain= setting (imported from 1.2)
19 years ago
Olle Johansson 2366793c63 Remove the return value from functions that return something that is never checked anywhere.
19 years ago
Olle Johansson ce10b34ca6 Enabling and disabling debug messages...
19 years ago
Kevin P. Fleming 09778b268e move 'struct ast_rtp' back to rtp.c where it belongs
19 years ago
Olle Johansson 36506dad2d Debug logging fixes
19 years ago
Olle Johansson fee02a9b7d At least reply if we get a fatal error in handling a packet.
19 years ago
Olle Johansson 91732256db Don't crash if chan2 does not exist (one-legged call situations, like echo)
19 years ago
Olle Johansson b796bf414b Improve SIP history
19 years ago
Olle Johansson 89081c3d06 Issue #7294 - Asterisk sends INVITE instead of BYE. Fix by Philippe Sultan. Thanks!
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Olle Johansson 479181951a Merge of the "sdpcleanup" branch. Thanks to John Martin for a lot of tests
19 years ago
Olle Johansson 8bc0599b11 Issue 7208 - Handle ; in userinfo part of URI too
19 years ago
Olle Johansson 404f8db694 Do not use ':' as a separator between arguments (kept around for 1.4 for backwards compatibility)
19 years ago
Olle Johansson 62dd0dc6f2 Only override callingpres set by rpid if user/peer preference is set. (Issue #7240)
19 years ago
Olle Johansson 02bc3637da Code simplification
19 years ago
Olle Johansson d520d238f1 - Fix more problems in transfer code (thanks Tholo!)
19 years ago
Olle Johansson 043b765bdc Respond to some of Luigis questions...
19 years ago
Olle Johansson e97507e8fb Fix potential bug. THanks luigi!
19 years ago
Olle Johansson 0d6906e107 - Doxygen fix
19 years ago
Olle Johansson c2b50fd2bd Show max bitrate in "sip show user" and "sip show channel"
19 years ago
Olle Johansson 439e4963ab - Typo in chan_sip (: missing)
19 years ago
Luigi Rizzo 531ed6f290 add a bit of comment on what build_route does,
19 years ago
Luigi Rizzo 88077a4d1f remove some duplicated code;
19 years ago
Luigi Rizzo 2724885b78 small simplification in assignments, and fix a typo in a comment.
19 years ago
Luigi Rizzo 24d1d23a93 mark XXX some places where there is a return right before
19 years ago
Luigi Rizzo 8dbdd8518b fix indentation of a block
19 years ago
Luigi Rizzo d18e363523 some code simplifications using S_OR() to remove some if blocks
19 years ago
Luigi Rizzo ec46b5a4ce use ast_skip_blanks() where appropriate, and use standard
19 years ago
Luigi Rizzo b7b716b618 mark XXX a buggy section of code and implement a probable
19 years ago
Luigi Rizzo 7483e1d2b6 simplify logic in a small block of code
19 years ago
Luigi Rizzo c7a5a96fc6 mark XXX a bug in the code. oej/kevin, any idea what you want
19 years ago
Luigi Rizzo a63b2e4c53 remove duplicate code
19 years ago
Luigi Rizzo 1a38041830 Replace '\"' with '"'.
19 years ago
Olle Johansson e0a8649273 - Formatting
19 years ago
Olle Johansson b7cfe5bd08 Minor change to DEBUG and WARNING messages
19 years ago
Olle Johansson 4d17451c55 Issue #7103 take two. Thanks Mikael!
19 years ago
Russell Bryant 4c76028de9 - add the ability to configure forced jitterbuffers on h323, jingle,
19 years ago
Russell Bryant 62b2f320a1 make a global variable static and remove an unused global variable
19 years ago
Olle Johansson 725e285bc4 Commit of the new SIP transfer support (oej/siptransfer branch)
19 years ago
Russell Bryant 414106a3a6 move the includes of abstract_jb.h to be with the rest of the asterisk includes.
19 years ago
Russell Bryant bb7dd96cfe Add support for using a jitterbuffer for RTP on bridged calls. This includes
19 years ago
Joshua Colp 503486e99d OKAY - Only replace our IP address in the outgoing SIP messages if the actual source address is within the specified local network. (issue #7051 reported by Luke-Jr with mods by me)
19 years ago
Olle Johansson c7007e1f55 Add congestion message to SIP history
19 years ago
Olle Johansson bc0f0a3226 Use ast_channel_trylock for channels
19 years ago
Kevin P. Fleming f890cab292 Merged revisions 30293 via svnmerge from
19 years ago
Kevin P. Fleming 57f6093661 don't send CANCEL for an INVITE that we haven't received a provisional response for yet... mark it pending until a response arrives (issue #7079)
19 years ago
Olle Johansson b8b1fda04c Typo
19 years ago
Kevin P. Fleming 3e99be68d1 add a new option for 'obscuring' SIP user/peer names from fishers
19 years ago
Kevin P. Fleming b31af470e7 Merged revisions 29764 via svnmerge from
19 years ago
BJ Weschke c4227714fd Sanity check code for an extended failure in trying to obtain a channel 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.
19 years ago
Olle Johansson 16a648aaf1 Breaking once will stop us... :-)
19 years ago
Olle Johansson 883e4d6a9b Code formatting
19 years ago
Mark Spencer fa9e0ed768 Handle ringing (early) state properly on SIP
19 years ago
Luigi Rizzo 76c47813fe remove code duplication generating some ast_verbose messages .
19 years ago
Luigi Rizzo 82dbf5a4c1 use the functional form of time(), and mark XXX a couple of places
19 years ago
Luigi Rizzo afe7c46924 more constifications
19 years ago
Luigi Rizzo 322aff00c6 various constification of function arguments to prevent erroneous
19 years ago
Luigi Rizzo ba195ee2d4 the msg argument of the various transmi_response*() functions is const.
19 years ago
Luigi Rizzo 75c6b453a3 mark const the 'header' argument of gettag
19 years ago
Luigi Rizzo 1a709886e3 mark const the source of copy_request
19 years ago
Luigi Rizzo c76882a94a fix indentation to make a table more readable
19 years ago
Luigi Rizzo 3ade391d1d simplify register_peer_exten() removing some duplicated code.
19 years ago
Luigi Rizzo 734535011a use strsep() to trim away ;xxx from SIP messages.
19 years ago
Luigi Rizzo 8414445108 use a more compact method to trim the trailing ;... from SIP lines.
19 years ago
Luigi Rizzo 917182e286 annotate const parameters of copy_header()
19 years ago
Luigi Rizzo 27f4fb4990 src is const in parse_copy()
19 years ago
Luigi Rizzo 564ca6394a minor logic simplification in get_sip_pvt_byid_locked()
19 years ago
Luigi Rizzo 15b7465cd2 simplify logic in function create_addr()
19 years ago
Luigi Rizzo a234f92337 simplify logic in realtime_peer(), removing an unnecessary
19 years ago
Luigi Rizzo 94d3a99089 strcmp() is the right function to use here, not strncmp().
19 years ago
Russell Bryant ed0b86c916 fix the possibility of writing one byte past the end of a buffer.
19 years ago
Kevin P. Fleming 6d92d53d41 attributes need trailing CR-LF
19 years ago
Kevin P. Fleming 42e2cf61d8 Merged revisions 28794 via svnmerge from
19 years ago
Tilghman Lesher d0c36296d2 As requested by kpfleming, renaming messagecount to inboxcount and messagecount2 to messagecount.
19 years ago
Olle Johansson cd03597f0c Formatting cleanup
19 years ago
Kevin P. Fleming 0c73d47618 Merged revisions 28380,28384 via svnmerge from
19 years ago
Kevin P. Fleming 42cf0b0a8f add another media path reinvite 'flavor', where we will only redirect our media to devices that we know are not behind a NAT (based on the evidence collected when we receive media from them)
19 years ago
Kevin P. Fleming 48c36f4b89 adding new code should require following the formatting guidelines :-)
19 years ago
Joshua Colp 6d603ec09c Allow contexts in regexten so that extensions can be added to multiple contexts when peer registers (issue #6869 reported by and created by Marquis)
19 years ago
Joshua Colp 6eb1d09ad9 Only set the RTP DTMF information of an RTP structure does indeed exist.
19 years ago
Olle Johansson 10c0ed16f0 Issue #7176 - Crash in expire_register (imported from 1.2)
19 years ago
Olle Johansson 270d5f6191 Adding a debug line
19 years ago
Olle Johansson 770a4a30c5 Use pointer instead of un-needed buffer. Thanks Kevin!
19 years ago
Kevin P. Fleming c3dce57d95 mark RTP sessions that are not carrying DTMF
19 years ago
Olle Johansson eeb2184920 Send a=recvonly when put on hold, otherwise a=sendrecv to indicate that we want two streams.
19 years ago
Olle Johansson e4c0a90649 Show all formats for an active SIP call
19 years ago
Olle Johansson c625a539be One sipfrag attachment is enough...
19 years ago
Luigi Rizzo 87e909476d simplify determine_firstline_parts
19 years ago
Luigi Rizzo f3e6fa56ab remove last instance of add_blank_header()
19 years ago
Luigi Rizzo b87aea8d60 remove almost all useless instances of add_blank_header() but one,
19 years ago
Olle Johansson 5237a0e06d - Use systemname for realm in sip, if we have no configuration for realm
19 years ago
Luigi Rizzo 945ec73b09 remove trailing space
19 years ago
Luigi Rizzo 589241e300 remove a duplicate prototype
19 years ago
Luigi Rizzo 96478ea3a2 remove duplicated code in add_header
19 years ago
Luigi Rizzo d06427978c simplify init_req()
19 years ago
Luigi Rizzo 5cd1ec4e17 cleanup init_resp with proper variable names and arguments.
19 years ago
Luigi Rizzo e08e646252 staticize a variable.
19 years ago
Luigi Rizzo 798b82e184 replace list unlinking with UNLINK macro
19 years ago
Luigi Rizzo 067c472abb simplify sip_pretend_ack also removing a bug in the existing
19 years ago
Kevin P. Fleming 70a554a264 Merged revisions 26760 via svnmerge from
19 years ago
Olle Johansson 71aabeef4f Ignore CANCEL on call that is already answered
19 years ago
Olle Johansson 2dd2865d7b Small formatting fixes
19 years ago
Olle Johansson 52cb5c87db Issue #OEJ12399.3 - Set default maxcallbitrate for users too.
19 years ago
Olle Johansson 9b2d51fb4a - Add more and organize forward declarations (preparing for splitting up this file)
19 years ago
Olle Johansson d04f0da698 Issue #7081 (kanoop) - use proper cause code for 480
19 years ago
Russell Bryant 19ca8dc7c1 remove some chekc sof the result of ast_mutex_lock (issue #7119, Mithraen)
19 years ago
Russell Bryant 04ecb29d03 remove almost all of the checks of the result from ast_strdupa() or alloca().
19 years ago
Kevin P. Fleming fdcfd6469b ensure that control frames with payload can be sent to channel drivers via ->indicate()
19 years ago
Mark Spencer 9953f4f40e Make SIP early media work more efficiently without so many reinvites
19 years ago
Mark Spencer 3135a35b92 Make sure we update parameters correctly with reinvite
19 years ago
Mark Spencer db502da870 Make menuselect be able to show what the modules are
19 years ago
Olle Johansson 5a31054599 Issue #7103 (mikma)
19 years ago
Olle Johansson 896362d30c - Issue 7101 (mikma) - Don't crash with no From: header in pedantic mode
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
Olle Johansson 9c60f78ea1 Issue #7074 - Problem with long contact lines
19 years ago
Russell Bryant d649d03170 fix sending the group numbers for a sip peer over the manager interface
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
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
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
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
Olle Johansson 4a312a044d - Fixes to ast_channel_lock functions
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
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
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
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