Changes since asterisk Version 1.2.18/channels/chan_sip.c - svn revision 61790------------------------------------------------------------------------r62126 | oej | 2007-04-27 09:57:45 -0400 (Fri, 27 Apr 2007) | 4 linesIssue #7351 - SIP Cancel fails due to the wrong contact uri. Reported by PPYY, failed to fix by OEJfinal fix by wojtekka - THANKS!!!! THis was a hard one to catch.------------------------------------------------------------------------r62987 | file | 2007-05-03 12:42:19 -0400 (Thu, 03 May 2007) | 2 linesWhen a peer is seeded or built tell the devicestate core to update it's status. This is easier then having chan_sip load before pbx_config. (issue #9658 reported by dlynes)------------------------------------------------------------------------r63610 | file | 2007-05-09 12:51:03 -0400 (Wed, 09 May 2007) | 2 linesProperly handle hints that point to multiple devices in chan_sip. Why chan_sip is even doing this I have no idea but I would rather not go into a rant. (issue #9536 reported by rlister)------------------------------------------------------------------------r63748 | oej | 2007-05-10 16:38:54 -0400 (Thu, 10 May 2007) | 4 linesDo not allocate SIP pvt's for PEERs we can not reach. This was seen as a lot of dialogs being created then immediately destroyed at reload/restart of the SIP channel.------------------------------------------------------------------------r64514 | oej | 2007-05-16 04:25:56 -0400 (Wed, 16 May 2007) | 6 linesIssue #9726 - rlister - Better logging for ACL denialsWhile at it, also added better logging and handling of peers that are not supposed to register.My patch, stole the issue report from Russell. My apologies, Russell :-)------------------------------------------------------------------------r64535 | oej | 2007-05-16 05:08:22 -0400 (Wed, 16 May 2007) | 2 linesSupport SIP uri's starting with SIP: and sip: (reported by Tony Mountfield on the mailing list. Thanks!)------------------------------------------------------------------------r64603 | oej | 2007-05-16 06:55:16 -0400 (Wed, 16 May 2007) | 2 linesFixing possible bug in auth of BYE------------------------------------------------------------------------r65075 | oej | 2007-05-18 11:12:09 -0400 (Fri, 18 May 2007) | 5 linesIssue 9235 - part of the problem, maybe not all. Please retry with this patch (and noother patch) if you have problems with hanging SIP channels. Thank you.A special Thank You to WeBRainstorm that gave me access to his system.------------------------------------------------------------------------r65122 | oej | 2007-05-18 14:10:46 -0400 (Fri, 18 May 2007) | 2 linesNot getting an ACK to a 200 OK in the initial invite is critical to the call.------------------------------------------------------------------------r65682 | kpfleming | 2007-05-23 16:46:22 -0400 (Wed, 23 May 2007) | 2 linesensure that variables are set on a newly created channel before we start a PBX on it------------------------------------------------------------------------r65837 | file | 2007-05-24 10:40:38 -0400 (Thu, 24 May 2007) | 2 linesAllow RFC2833 to be negotiated when an INVITE comes in without SDP and is not matched to a user or peer. (issue #9546 reported by mcrawford)------------------------------------------------------------------------r66349 | oej | 2007-05-29 03:53:14 -0400 (Tue, 29 May 2007) | 2 linesIssue #9802 - Change inuse counter on CANCEL------------------------------------------------------------------------r66764 | file | 2007-05-31 12:12:39 -0400 (Thu, 31 May 2007) | 2 linesIt is now possible for this path of execution to have the frame pointer be NULL, therefore we need to check for it before trying to access it. (issue #9836 reported by barthpbx)------------------------------------------------------------------------r67938 | file | 2007-06-06 20:09:13 -0400 (Wed, 06 Jun 2007) | 2 linesOnly notify the devicestate system of a peer state change when the peer is built from the config file. (issue #9900 reported by arkadia)------------------------------------------------------------------------r69765 | file | 2007-06-18 14:13:03 -0400 (Mon, 18 Jun 2007) | 2 linesSet the peer name on the dialog to the one configured in sip.conf and NOT the username to be used for authentication attempts. (issue #9967 reported by achauvin)------------------------------------------------------------------------r69990 | russell | 2007-06-19 12:45:37 -0400 (Tue, 19 Jun 2007) | 12 linesBackport fix for crashes related to subscriptions from 1.4 ...Fix a crash that could occur when handing device state changes.When the state of a device changes, the device state thread tells the extensionstate handling code that it changed. Then, the extension state code calls thecallback in chan_sip so that it can update subscriptions to that extension.A pointer to a sip_pvt structure is passed to this function as the call whichneeds a NOTIFY sent. However, there was no locking done to ensure that the pvtstruct didn't disappear during this process.(issue #9946, reported by tdonahue, patch by me, patch updated to trunk to use the sip_pvt lock wrappers by eliel)------------------------------------------------------------------------r70551 | file | 2007-06-20 18:20:16 -0400 (Wed, 20 Jun 2007) | 2 linesDon't overwrite the configured username setting upon a REGISTER. (issue #8565 reported by jsmith)------------------------------------------------------------------------r71414 | file | 2007-06-24 21:02:49 -0400 (Sun, 24 Jun 2007) | 2 linesIgnore other URIs after the first in a 300 Multiple Choice response. (issue #10041 reported by homesick)------------------------------------------------------------------------r73466 | file | 2007-07-05 15:15:18 -0400 (Thu, 05 Jul 2007) | 2 linesCopy language information to the dialog structure when calling a peer for situations where a PBX may be started on the dialed channel. (issue #10121 reported by clegall_proformatique)------------------------------------------------------------------------r73547 | kpfleming | 2007-07-05 18:11:51 -0400 (Thu, 05 Jul 2007) | 2 lineswe shouldn't allow G.723.1 endpoints to use VAD, just like we don't support it for G.729------------------------------------------------------------------------r73678 | russell | 2007-07-06 11:55:41 -0400 (Fri, 06 Jul 2007) | 7 lines(closes issue #10125)Reported by: makotoPatches submitted by: makotoThis fixes a crash in chan_sip that happens when the bindaddr setting is notvalid on Asterisk startup, gets fixed, and then a reload gets issued.------------------------------------------------------------------------r73768 | russell | 2007-07-06 19:01:22 -0400 (Fri, 06 Jul 2007) | 4 linesIf a sip_pvt struct has already registered an extension state callback,remove the old one before adding a new one. If this isn't done, Asteriskwill crash. (issue #10120)------------------------------------------------------------------------r76080 | file | 2007-07-20 13:16:48 -0400 (Fri, 20 Jul 2007) | 6 lines(closes issue #10247)Reported by: fkasumovicPatches: chan_sip.patch uploaded by fkasumovic (license #101)Drop any peer realm authentication entries when reloading so multiple entries do not get added to the peer.------------------------------------------------------------------------r76226 | russell | 2007-07-20 22:01:46 -0400 (Fri, 20 Jul 2007) | 4 linesBackport a fix for a memory leak that was fixed in trunk in reivision 76221by rizzo. The memory used for the localaddr list was not freed during aconfiguration reload.------------------------------------------------------------------------r76560 | file | 2007-07-23 10:32:07 -0400 (Mon, 23 Jul 2007) | 6 lines(closes issue #10236)Reported by: homesickPatches: rpid_1.4_75840.patch uploaded by homesick (license 91)Accept Remote Party ID on guest calls.------------------------------------------------------------------------r93667 | tilghman | 2007-12-18 13:23:06 -0500 (Tue, 18 Dec 2007) | 2 linesFixing AST-2007-027 (Closes issue #11119)------------------------------------------------------------------------r94661 | tilghman | 2007-12-22 20:30:42 -0500 (Sat, 22 Dec 2007) | 2 linesFix for fix for security fix (third time's the charm?)------------------------------------------------------------------------r109391 | qwell | 2008-03-18 11:08:41 -0400 (Tue, 18 Mar 2008) | 3 linesDo not return with a successful authentication if the From header ends up empty.(AST-2008-003)------------------------------------------------------------------------r110335 | russell | 2008-03-20 17:53:27 -0400 (Thu, 20 Mar 2008) | 6 linesFix some very broken code that was introduced in 1.2.26 as a part of the securityfix. The dnsmgr is not appropriate here. The dnsmgr takes a pointer to an addressstructure that a background thread continuously updates. However, in these cases,a stack variable was passed. That means that the dnsmgr thread would be continuouslywriting to bogus memory.------------------------------------------------------------------------r120109 | file | 2008-06-03 15:30:02 -0400 (Tue, 03 Jun 2008) | 4 linesCopy the From header into a variable so that pedantic SIP handling does not try to mess with a NULL pointer. (AST-2008-008)(closes issue #12607)Reported by: hooi------------------------------------------------------------------------