Commit Graph

579 Commits (9400e87db0e18d1f9da6bcce233fe22d45fc6f15)

Author SHA1 Message Date
Mark Spencer a11c4965b7 If we don't accept a SUBSCRIBE, set needdestroy
22 years ago
Mark Spencer 9127ab071b Add option for in-band progress (bug #1879)
22 years ago
Mark Spencer fe4b2401bd Handle URL encoded stuff in pedantic checking
22 years ago
Mark Spencer 80c9620612 Add sample config file, implement verification
22 years ago
Mark Spencer 1d473f25dd Add outgoing OSP support (SIP only at this point)
22 years ago
Mark Spencer f6f67727c6 Merge Ehud's MySQL users support (bug #1815)
22 years ago
Mark Spencer 68248b91f0 Be sure to hold lock during answer
22 years ago
James Golovich 8801247d76 Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead (except in asterisk/lock.h).
22 years ago
Mark Spencer 5546e32355 Merge major BSD mutex and symbol conflict patches (bug #1816) (link patch still pending)
22 years ago
Mark Spencer ec3f9d5041 More fixes for remote_party_id
22 years ago
Mark Spencer 7b0160ee51 Sorry, 403 is "Forbidden" not "Permission Denied"
22 years ago
Mark Spencer b0991ab170 Check if subscribe is for mailbox. If so, return 200 OK or 403 Permission Denied as appropriate
22 years ago
Mark Spencer 585afa7e8e Add promiscuous redirect option
22 years ago
Mark Spencer 737e9b2458 Merge outgoing MSN support + Remote Party ID for SIP (bug #1841) with cleanups
22 years ago
James Golovich 18fef6deb1 Formatting fix
22 years ago
Mark Spencer e32c8f1ebe Debugging cleanups (bug #1633)
22 years ago
Mark Spencer 19d5ae6e8d Send 403 when authentication fails on a call
22 years ago
Mark Spencer 7538cee13b Enable support for RFC3581 (bug #1862)
22 years ago
Mark Spencer 001623fa0a Minor formatting cleanups
22 years ago
Mark Spencer 5b9cab6c13 Separate PROCEEDING and PROGRESS
22 years ago
Mark Spencer d208532e6e x86-64 compile fixes and cleanups
22 years ago
Mark Spencer 439e5eeeb4 Use 401 Unauthorized instead of 407 Proxy Authentication required for REGISTER,
22 years ago
Mark Spencer b1a658f57e Although I can't think of any scenario that it could result in a race, don't hold a private iax or sip lock while allocating a channel
22 years ago
Mark Spencer 727abcdec7 Merge FreeBSD locking fixes (bug #1411)
22 years ago
Jim Dixon 5ef2ef8a1d Fixed annoying SIP 'NOTIFY' messages printed on console every n seconds from some SIP peers. Also fixed problem where 'INFO' was not being responded to if in 'ignore' state.
22 years ago
Mark Spencer bf2ec2d6d0 Initialize secrets properly (bug #1748)
22 years ago
Mark Spencer a2cc6b01be Really don't authenticate if we're not supposed to authenticate (bug #1738)
22 years ago
Mark Spencer e446f4ca81 Merge OSS fixes for FreeBSD, implement rtptimeout and rtpholdtimeout
22 years ago
Mark Spencer 2cd1eb39b1 Don't count as outgoing until we actually send the new INVITE
22 years ago
Mark Spencer b820fd0075 Doc fix for controlplayback, get rid of 500ms wait in rtp.c (bug #1589)
22 years ago
Mark Spencer cf57ba2310 Make RTP handle codecs (first pass)
22 years ago
Mark Spencer fdb8ffe20d Cancel destroy request on new invite, merge bkw's control playback changes
22 years ago
Mark Spencer 1b5d2d4667 Cancel self destruct on provisional responses too (bug #1722)
22 years ago
Mark Spencer 67b3ab9ee5 Merge useragent patch (bug #712)
22 years ago
Mark Spencer d7ba067af6 Always authenticate when insecure is not "very" even on matching IP
22 years ago
Mark Spencer 7f1117a71f Don't send the same codec twice even if listed twice in allow section (bug #1691)
22 years ago
Mark Spencer a105455487 Stage 1 of deadlock fix (bug #1673 -- but not yet solved, just started) and fix configs ending with no newline (bug #1672)
22 years ago
Mark Spencer 34347418e3 Allow multiple codecs to be printed in debug (bug #989)
22 years ago
Mark Spencer ed443d08cf Timely packet removal and make valgrind happy
22 years ago
Mark Spencer 1081dc05c2 Improve handling of multiple CANCEL requests
22 years ago
Mark Spencer b8190d0e92 Make sure that we have the sin_family set to AF_INET for FreeBSD
22 years ago
Mark Spencer 103034acf2 Add Taiwan support (bug #1599)
22 years ago
Mark Spencer baeb134536 Better document SIP (bug #1603)
22 years ago
Mark Spencer c1b3b1d5b1 Lose all the "auth" stuff since we don't use it (bug #1627)
22 years ago
Mark Spencer dbb7b83ecc Minor memory cleanups, initialize peer/user invite status from global
22 years ago
Mark Spencer 1aba1bbca4 Minor cleanups (bug #1618 included)
22 years ago
Mark Spencer 10c25aa6d9 Put sip history stuff in (for real) and provide voicemail context (when not default) in some critical places (bug #1609)
22 years ago
Anthony Minessale II 960c01e4c6 Patch Submitted by BKW on 5/10/2004 to chan_sip.c
22 years ago
Mark Spencer 4b84c43811 More minor bkw fixes
22 years ago
Mark Spencer 22243ee9ae merge brian's cleanups
22 years ago
Mark Spencer 6ead43beb1 Add SIPUSERAGENT, SIPCALLID, and fix some formatting (bug #1593)
22 years ago
Mark Spencer 62eef7c695 Fix accidental strlen_zero mistransfer (bug #1592)
22 years ago
Mark Spencer f2e0152108 Fix minor formatting problem
22 years ago
Mark Spencer 25b07915d6 Remove "jitter"
22 years ago
Mark Spencer d2a4408930 Show peers formatting fixes, SIP strlen optimizations, and using ACL for local network matching (bugs #1587, 1586, 1585, 1584)
22 years ago
Mark Spencer 297e62b8be Copy musicclass to right field (bug #1582)
22 years ago
Mark Spencer 1d7c058f08 Add sip show peers (trivial zap fix, too) bug #1573
22 years ago
Mark Spencer 76adf66390 Add "sip show subscriptions" command (bug #1569)
22 years ago
Mark Spencer efc8c74b9a Allow global authentication realm to be set (bug #1567)
22 years ago
Mark Spencer 05a87a441c Don't autodestruct on semi-ack. We'll add it as we need it case-by-case.
22 years ago
Mark Spencer ab3c603b1c If user fails host access, search for peers too
22 years ago
Mark Spencer cc1da2eb5b Qualify that SIP INFO stuff is real (bug #1558)
22 years ago
Mark Spencer cc9ffa5ac1 Fix SIP autohangup mishap
22 years ago
Mark Spencer 9cc62f6461 Print route when doing sip show channel foo
22 years ago
Mark Spencer 19a080ddd7 strlen fixes and don't destroy SIP channels that still have pending things on them (bug #1552 et al)
22 years ago
Mark Spencer d4c439c61d Use strlen_zero function in chan_sip (bug #1545)
22 years ago
Mark Spencer ca2069a246 Don't update route once it's set (bug #1491)
22 years ago
Mark Spencer bbaf536f6a Add "insecure=very" where we don't authenticate peers who are registered
22 years ago
Mark Spencer b50ecc25b2 Merge slepp's sub-second expiration timer although hopefully it will never have to be used.
22 years ago
Mark Spencer ded7dae112 Merge slepp's REGISTER RFC compliance fixes (bug #1538)
22 years ago
Mark Spencer c3c38eeeaf Let OSS know how to deal with indication -1
22 years ago
Mark Spencer 6cdbd6903c On a reload, don't stop supporting sip if we can't find our ip.
22 years ago
Mark Spencer 503dbb3d8a Add new "authname" field so we can authenticate BYE properly on incoming calls (bug #1436)
22 years ago
Mark Spencer 35ca4404f0 On incoming call, set peername to username to properly authenticate BYE (it's not used for anything else, as far as I know)
22 years ago
Mark Spencer 44de97d496 Provide more fine grained control of sip and iax show peers (bug #1470)
22 years ago
Mark Spencer 3c134b6549 Revert earlier changes. The right answer for bug #1436 should be using username=
22 years ago
Mark Spencer 5b34d11ce9 Allow debug to be enabled on a per-peer or per-IP basis (bug #850)
22 years ago
Mark Spencer 1dbc8e3f0e Rid compiler warning, make information meaningful in sip debug for codecs
22 years ago
Mark Spencer 3d16691c9e Revert routing change
22 years ago
Mark Spencer ec6644c146 Only clear route if we have a new one
22 years ago
Mark Spencer d106797a26 Add relaxdtmf option to sip
22 years ago
Mark Spencer cd788e2ab9 Handle fromdomain properly when there is no @ sign
22 years ago
Mark Spencer 7e79c52808 Don't double receive INFO or MESSAGE elements (bug #1512)
22 years ago
Mark Spencer fd9d8ca43b Run setstate after setting all appropriate variables including callerid
22 years ago
Mark Spencer 7ca96ea7e5 Add white space condensing to pedantic mode of chan_sip.
22 years ago
Mark Spencer f4b55b802c SIP cleanups for database linkage
22 years ago
Mark Spencer 1511750650 Use proper token for authenticating BYE
22 years ago
Mark Spencer f85d0713cf Clean up SQL queries (bug #1479)
22 years ago
Mark Spencer 64c9e859e0 Also handle properly \r\n instead of just \n...
22 years ago
Mark Spencer ed360fcf57 Committed a little bit too quickly there...
22 years ago
Mark Spencer c924d1a322 First pass at handling multi-line headers
22 years ago
Mark Spencer d3f9887589 gethostbyname isn't reentrant, who knew...
22 years ago
Mark Spencer ca493a14e1 Increase buffer size (bug #1459)
22 years ago
Mark Spencer 8e0f9147b2 Fix trailing slash problem (Zap) and making sure refers get ignored the second tiem around.
22 years ago
Mark Spencer 97dd838cda Fix name properly
22 years ago
Mark Spencer 5a2c606d94 Keep random data around, we'll need it for certain bogus REGISTER and INVITE network hiccups (bug # 1236)
22 years ago
Mark Spencer 13bca43aa8 Get rid of all that old needlock garbage now that we're using recursive mutexes
22 years ago
Mark Spencer 1bbf0d2cf6 Bump branch id on INVITE with auth (bug #1313)
22 years ago
Mark Spencer 940a5deb2e Support some more SIP idiocies
22 years ago
Mark Spencer 9f726fce46 603 is a busy too
22 years ago
Mark Spencer 94279f00c1 Various video fixes (bug #688)
22 years ago
Mark Spencer 9c7ffa265e Fix small SIP issue with SER (bug #1181)
22 years ago
Mark Spencer 7ae1d61120 Provide more useful debugging on retries and scheddestroy()
22 years ago
Mark Spencer b285cd40b2 Keep REGISTER dialog open a little longer in case they don't get our 200 OK right away...
22 years ago
Mark Spencer 3415434e04 When going to in-band, be sure to allocate DSP (bug #1336)
22 years ago
Mark Spencer a925c1b306 Update security document, work on threading with pbx.c and small SIP fixes
22 years ago
Mark Spencer 1d53342b18 Expand SIP opaque buffers, prefer recursive to "error checking" mutexes...
22 years ago
Mark Spencer 71e80e5f62 Leave retry time alone, handle "opaque" stuff in message.
22 years ago
Mark Spencer 3e9c337946 Small SIP fix, voicemail fix, and some delivery fixes on new apps
22 years ago
Mark Spencer dbbf64fdd4 Attempt at incrementing branch (or changing it) at the right places (bug #1313)
22 years ago
Mark Spencer eeb2ca5b26 Make read/write mode have a lock parameter and use it properly.
22 years ago
Mark Spencer b43c1f054b Allow expiration of several messages to be non-fatal.
22 years ago
Mark Spencer 747a18f65d It's okay to send RINGING > 1 time, and don't try to send it in-band
22 years ago
Mark Spencer b5d452b1c7 Minor SIP cleanups for valgrind, finally close the coffin on IAX1 and take it ou
22 years ago
Mark Spencer c1c704c042 Fix mysql friends by type
22 years ago
Mark Spencer 3f5277d57b Don't reconstruct authentication information on retransmissions.
22 years ago
Mark Spencer a386f01a7c Favor requested codec whenever possible (pass #1)
22 years ago
Mark Spencer 8c232e1dbb Populate DNID for SIP
22 years ago
Malcolm Davenport b0d28cedf7 Bug # 1116. CallerID number not hidden when RestrictCID is on, Fixed
22 years ago
James Golovich 9223055df1 Fixup some pthread_t checking in channels
22 years ago
James Golovich 0e90480d6b Fix bug 1217. Change pthread_t initializers to AST_PTHREADT_NULL and
22 years ago
Malcolm Davenport 89c55fe46c Bug #1213. Fix for improperly specified Content-Length header
22 years ago
Mark Spencer ea92b714f2 Turn off silence suppression in SDP
22 years ago
James Golovich 6f0d8022d1 Make mess more informative if non-dynamic sip user registers (bug 1186)
22 years ago
Mark Spencer e42e998f76 Expand our definition of 3XX responses
22 years ago
Mark Spencer 806bb3c63f Add support for parking with IAX2
22 years ago
Mark Spencer b82aa22442 Process SDP on 183 session progress (bug #930)
22 years ago
Mark Spencer a9d042db2c Handle video codecs properly
22 years ago
Malcolm Davenport 6023b736d9 Bug # 1052 Got it this time..I'm sure of it ;)
22 years ago
Malcolm Davenport 23eaf5c442 Fix Bug # 935 and Bug # 1052
22 years ago
Mark Spencer 6724dd1597 Improve SIP friends support (should address bugs #1063 & #1052)
22 years ago
James Golovich 48496a930c Fix another spelling typo in chan_sip.c (bug #1059)
22 years ago
James Golovich 43e312bd62 Fix spelling typo in chan_sip.c (bug #1059)
22 years ago
James Golovich 7907a37002 Fix typo in chan_sip.c (bug #1037)
22 years ago
Mark Spencer 077975cba7 Fix memory leak with SIP friends (bug #1010)
22 years ago
Mark Spencer e1df8c9082 Properly fully URL decode the REPLACES in SIP and also watch for edge condition (bug #1015)
22 years ago
Mark Spencer ae4adad5c4 Insert blank after REFER (bug #997)
22 years ago
Mark Spencer 1a225306f8 Don't get stuck in loop
22 years ago
Mark Spencer 2c9585e9f6 Force SIP reload to happen in network thread only
22 years ago
Mark Spencer bc06fe3b51 Fix small typos
22 years ago
Mark Spencer 5bb289262e Centralize all sip registration around a single lock
22 years ago
Mark Spencer 8c339b9d63 Perform proper locking on registration on SIP
22 years ago
Mark Spencer 904027f25f Release the call when freeing a registry
22 years ago
Mark Spencer 9c2f131b66 NetBSD portability enhancements (bug #969)
22 years ago
Mark Spencer 12934e17e6 If unregistered, don't consider it valid (bug #956)
22 years ago
Mark Spencer 80f23eb97d Don't send VMWI when we're not registered
22 years ago
Mark Spencer 662e7238ef Send 481 if call leg does not exist on CANCEL, and send 487 before 200 as per rfc3261 (bug #917)
22 years ago
Mark Spencer 785da17231 Properly handle transfer of application (bug #911)
22 years ago
Mark Spencer 1499f1e480 Create individual sip reload command (bug #880)
22 years ago
Mark Spencer 8abe6ccb64 Merge SIP/MySQL friends patch
22 years ago
Jeremy McNamara a4cc03ffd9 clean up output and print that we are unregistering a channel type
22 years ago
Jeremy McNamara 4a558d611b comment out getsipuri to stop compiler warning
22 years ago
Jeremy McNamara 226ec5bd25 via z9hG4bK issue. Bug #663
22 years ago
Jeremy McNamara 3340239733 fix copy/paste error
22 years ago
Jeremy McNamara c5dcbb9901 Implement NAT trick for outbound SIP connections
22 years ago
Jeremy McNamara aa03b29d77 fix typo. Bug #813
22 years ago
Jeremy McNamara d4af3ee3b6 clean up sip debug output. Bug #674
22 years ago
Mark Spencer 7a39517c94 Add new sound, fix nit picky detail in channel registration
22 years ago
Jeremy McNamara 92f261cf3b unregister cli functions and fix monitor thread. Bug #798
22 years ago
Jeremy McNamara f102ce6f26 Fix ast-db seeding. Bug #767
22 years ago
Jeremy McNamara 1e3bd03b92 More buffer overflow checks from Corydon76.
22 years ago
Jeremy McNamara 2eaddaca67 check buffer for possible overflow. Thanks Corydon76 Bug #788
22 years ago
Mark Spencer 861ed9a339 Cleanup ACL parsing, handle properly reload on sip with ACL
22 years ago
Malcolm Davenport d9de4806b0 Bug #765: Modifying Auto-Congestion to p->maxtime * 4 instead of * 2
22 years ago
Mark Spencer d3bf33f9aa Send date with invite
22 years ago
Mark Spencer ef6973087b Fix reload race in SIP
22 years ago
Mark Spencer 1a603dd365 The SIP motto is "There's More Than One Standard for Doing It"
22 years ago
Mark Spencer 23cfe10d94 Don't retransmit INVITE on 407 retransmission
22 years ago
Mark Spencer 72e21db66a Minor sip fixes
22 years ago
Mark Spencer 1451a407ac Minor mgcp debuggin changes, sip deadlock improvement
22 years ago
Mark Spencer 9ccfcb3d24 Properly build Contact on INVITE when asking for authentication
22 years ago
Mark Spencer efc61fe709 Temporarily revert changes, prepare for proper fix (sorry for the cvs spam)
22 years ago
Mark Spencer 7d74bcd7bc Always save the extension
22 years ago
Mark Spencer 37f33c4346 Build contact, don't copy it
22 years ago
Mark Spencer d4fe6cf255 Have a contact line in responses, merge logging patches
22 years ago
Mark Spencer 6a7ddeb222 limit fixes in SIP
22 years ago
Mark Spencer e45e601c35 Use global nat settings in auto peers
22 years ago
Mark Spencer f367a8bd33 Minor 407 improvements
22 years ago
Mark Spencer 3cfe7e6e25 Apply host access rules in SIP
22 years ago
Mark Spencer 55beaa4d47 Increment session version each time we send a new SDP
22 years ago
Mark Spencer 171b29fd4c Allow SIP/peer/exten like IAX
22 years ago
Mark Spencer 669e957291 Delete on unregister (bug #527)
22 years ago
Martin Pycko e3b0a66805 Don't do reinvite if both parties talk diffrent codecs
22 years ago
Martin Pycko 6f9da41a6c Do the last thing the right way (thanks Mark)
22 years ago
Martin Pycko 2850b4962f Don't allow to run SIPDtmfMode on other channels than SIP ones.
22 years ago
Martin Pycko 265d0a060c A little oops ...
22 years ago
Mark Spencer 4195115d60 Fix typo
22 years ago
Mark Spencer d21c6b7c13 Properly decode strings in REPLACES and ignore leading whitespace
22 years ago
Martin Pycko 9d2c55e62a Fix SIP_CODEC support
22 years ago
Mark Spencer a2303e3d0f Don't reinvite if we got a refer
22 years ago
Mark Spencer 027d5bbf30 Add ${SIPDOMAIN} and "dynamic peer" mode
22 years ago
Mark Spencer 9175d0a1ee If somehow we don't have an answer, set need to destroy on CANCEL
22 years ago
Mark Spencer b0f482d9b3 Handle 401 for INVITE as well (should we add support for BYE too?)
22 years ago
Mark Spencer 1e95c3a4ac Remove really broke MP3 stuff in favor of G.726 in the near future
22 years ago
Martin Pycko 0c5ee9486b Make SIP_CODEC warn about not supported/not configured codec
22 years ago
Martin Pycko da93b54687 Add externip keyword so that it's possible to use asterisk behind a NAT through port forwarding
22 years ago
Mark Spencer 77003fea94 Fix *8# magically (bug #116)
22 years ago
Mark Spencer c6569f5177 Check that there really is a tag
22 years ago
Mark Spencer 37ff334508 Set joint capability as well when checking users
22 years ago
Mark Spencer 67d2608db9 Handle capability on inbound too
22 years ago