aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-05-26Merged revisions 196945 via svnmerge from seanbright1-6/+7
https://origsvn.digium.com/svn/asterisk/trunk ........ r196945 | seanbright | 2009-05-26 18:38:05 -0400 (Tue, 26 May 2009) | 13 lines Add ActionID to CoreShowChannel event. There is inconsistency in how we handle manager responses that are lists of items and, unfortunately, third parties have come to rely on ActionID being on every event within those lists instead of just keeping track of the ActionID for the current response. This change makes CoreShowChannels include the ActionID with each CoreShowChannel event generated as a result of it being called. (closes issue #15001) Reported by: sum Patches: patchactionid2.patch uploaded by sum (license 766) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196950 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Merged revisions 196946 via svnmerge from russell4-121/+234
https://origsvn.digium.com/svn/asterisk/trunk ........ r196946 | russell | 2009-05-26 17:40:34 -0500 (Tue, 26 May 2009) | 8 lines Update configure script to check for OSP toolkit 3.5.0. (closes issue #14988) Reported by: tzafrir Patches: configure.ac.diff uploaded by homesick (license 91) new_ast_check_osptk.m4 uploaded by homesick (license 91) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196949 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Blocked revisions 196907 via svnmergeseanbright0-0/+0
........ r196907 | seanbright | 2009-05-26 16:20:08 -0400 (Tue, 26 May 2009) | 10 lines Include startup and reload date in the CoreStatus manager message. The CoreStartupTime and CoreReloadTime name/value pairs in the CoreStatus response message only included the time and not the date. This patch, inspired by the reporter's patch, adds 2 new fields - CoreStartupDate and CoreReloadDate - which contain the date portion of these values. (closes issue #15000) Reported by: sum ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196911 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Blocked revisions 196893 via svnmergemmichelson0-0/+0
........ r196893 | mmichelson | 2009-05-26 14:50:07 -0500 (Tue, 26 May 2009) | 3 lines Remove some redundant or unnecessary connected line-related function calls. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196894 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Merged revisions 196843 via svnmerge from russell1-0/+2
https://origsvn.digium.com/svn/asterisk/trunk ................ r196843 | russell | 2009-05-26 13:20:57 -0500 (Tue, 26 May 2009) | 16 lines Merged revisions 196826 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r196826 | russell | 2009-05-26 13:14:36 -0500 (Tue, 26 May 2009) | 9 lines Resolve a file handle leak. The frames here should have always been freed. However, out of luck, there was never any memory leaked. However, after file streams became reference counted, this code would leak the file stream for the file being read. (closes issue #15181) Reported by: jkroon ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196870 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Merged revisions 196792 via svnmerge from seanbright1-0/+1
https://origsvn.digium.com/svn/asterisk/trunk ........ r196792 | seanbright | 2009-05-26 12:38:54 -0400 (Tue, 26 May 2009) | 2 lines Add a missing unref for queues in handle_statechange. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196793 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Blocked revisions 196758 via svnmergeseanbright0-0/+0
........ r196758 | seanbright | 2009-05-26 10:36:11 -0400 (Tue, 26 May 2009) | 6 lines Add new ast_complete_applications function so that we can use it with the 'channel originate ... application <app>' CLI command. (And yeah, I cleaned up some whitespace in res_clioriginate.c... big whoop, wanna fight about it!?) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196759 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Blocked revisions 196725 via svnmergeseanbright0-0/+0
........ r196725 | seanbright | 2009-05-26 09:56:30 -0400 (Tue, 26 May 2009) | 2 lines Use a properly allocated channel for substitution in cdr_sqlite3_custom. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196726 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Merged revisions 196721 via svnmerge from file1-0/+2
https://origsvn.digium.com/svn/asterisk/trunk ........ r196721 | file | 2009-05-26 10:43:13 -0300 (Tue, 26 May 2009) | 7 lines Fix a bug where the sip unregister CLI command did not completely unregister the peer. (closes issue #15118) Reported by: alecdavis Patches: chan_sip_unregister.diff2.txt uploaded by alecdavis (license 585) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196724 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Merged revisions 196658 via svnmerge from file1-4/+4
https://origsvn.digium.com/svn/asterisk/trunk ................ r196658 | file | 2009-05-26 10:06:50 -0300 (Tue, 26 May 2009) | 14 lines Merged revisions 196657 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r196657 | file | 2009-05-26 10:06:09 -0300 (Tue, 26 May 2009) | 7 lines Remove some bash specific stuff from safe_asterisk. (closes issue #10812) Reported by: paravoid Patches: safe_asterisk_bashism.diff uploaded by tzafrir (license 46) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196661 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-26Blocked revisions 196622 via svnmergeseanbright0-0/+0
........ r196622 | seanbright | 2009-05-26 08:14:14 -0400 (Tue, 26 May 2009) | 2 lines Use a properly allocated channel for substitution in cdr_manager. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196623 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-23Blocked revisions 196520 via svnmergeseanbright0-0/+0
........ r196520 | seanbright | 2009-05-23 11:16:59 -0400 (Sat, 23 May 2009) | 11 lines Fix errors in cdr_custom that cause reference errors when non-CDR variable substitution is done. cdr_custom was creating a ast_channel struct directly and passing it into the core for variable substition. This was fine as long as the format string contained only calls to the CDR() function. Doing something like ${EPOCH} on the other hand tried to lock the channel, which would fail and throw an error because the passed channel hadn't been allocated as an ao2 object. So now we create the dummy channel with ast_channel_alloc, and everything works as expected. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196523 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-23Blocked revisions 196488 via svnmergekpfleming0-0/+0
........ r196488 | kpfleming | 2009-05-23 08:31:56 -0500 (Sat, 23 May 2009) | 5 lines Correct example for CLI autocompletion (generation) Reported by Atis on #asterisk-dev ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196489 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-23Merged revisions 196456 via svnmerge from moy1-4/+5
https://origsvn.digium.com/svn/asterisk/trunk ........ r196456 | moy | 2009-05-22 23:27:47 -0500 (Fri, 22 May 2009) | 1 line set MFCR2_CATEGORY just when starting the pbx ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196487 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Merged revisions 196416 via svnmerge from dvossel2-45/+127
https://origsvn.digium.com/svn/asterisk/trunk ........ r196416 | dvossel | 2009-05-22 16:09:45 -0500 (Fri, 22 May 2009) | 19 lines SIP set outbound transport type from Registration In sip.conf the transport option allows for the configuration of what transport types (udp, tcp, and tls) a peer will accept, but only the first type listed was used for outbound connections. This patch changes this. Now the default transport type is only used until the peer registers. When registration takes place the transport type is parsed out of the Contact header. If the Contact header's transport type is equal to one that the peer supports, the peer's default transport type for outbound connections is set to match the Contact header's type. If the Contact header's transport type is not present, then the peer's default transport type is set to match the one the peer registered with. When a peer unregisters or the registration expires, the default transport type for that peer is reset. (closes issue #12282) Reported by: rjain Patches: reg_patch_1.diff uploaded by dvossel (license 671) Tested by: dvossel (closes issue #14727) Reported by: pj Patches: reg_patch_3.diff uploaded by dvossel (license 671) Tested by: pj, dvossel Review: https://reviewboard.asterisk.org/r/249/ ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196452 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196417 via svnmergeseanbright0-0/+0
........ r196417 | seanbright | 2009-05-22 17:11:03 -0400 (Fri, 22 May 2009) | 3 lines Call ast_stun_init() when we're initializing to get the 'stun debug set' commands. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196418 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196381 via svnmergeseanbright0-0/+0
........ r196381 | seanbright | 2009-05-22 16:01:11 -0400 (Fri, 22 May 2009) | 3 lines Don't crash if an RTP instance can't be created. This could occur when an invalid bindaddr was specified in gtalk.conf. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196382 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Merged revisions 196377 via svnmerge from eliel1-0/+2
https://origsvn.digium.com/svn/asterisk/trunk ........ r196377 | eliel | 2009-05-22 15:38:33 -0400 (Fri, 22 May 2009) | 11 lines Unregister every registered application by MiniVM. The MinivmMWI application was not being unregistered on unload and we were not able to load again the module or reload it. (closes issue #15174) Reported by: junky Patches: unregister_minivm_mwi.diff uploaded by junky (license 177) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196378 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196344 via svnmergeeliel0-0/+0
........ r196344 | eliel | 2009-05-22 15:11:44 -0400 (Fri, 22 May 2009) | 6 lines Moved static documentation to the AstXML form. Moved AGI commands static documentation to XML docs ('say alpha', 'say digits', 'say number', 'say phonetic', 'say date' and 'say time'). ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196345 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196308 via svnmergeeliel0-0/+0
........ r196308 | eliel | 2009-05-22 13:52:35 -0400 (Fri, 22 May 2009) | 30 lines Implement a new element in AstXML for AMI actions documentation. A new xml element was created to manage the AMI actions documentation, using AstXML. To register a manager action using XML documentation it is now possible using ast_manager_register_xml(). The CLI command 'manager show command' can be used to show the parsed documentation. Example manager xml documentation: <manager name="ami action name" language="en_US"> <synopsis> AMI action synopsis. </synopsis> <syntax> <xi:include xpointer="xpointer(...)" /> <-- for ActionID <parameter name="header1" required="true"> <para>Description</para> </parameter> ... </syntax> <description> <para>AMI action description</para> </description> <see-also> ... </see-also> </manager> ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196309 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196272 via svnmergetilghman0-0/+0
........ r196272 | tilghman | 2009-05-22 11:53:41 -0500 (Fri, 22 May 2009) | 2 lines Two more minor fixes due to constification ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196274 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196270 via svnmergeseanbright0-0/+0
........ r196270 | seanbright | 2009-05-22 12:51:22 -0400 (Fri, 22 May 2009) | 9 lines Fix res_agi compilation after the const-ify the world merge. Since we are dealing with a 'const char * const' now, we have to create a temporary copy of the string to work on rather than the original. Fix inspired by reporter. Reviewed by everyone-and-their-mother in #asterisk-dev. (closes issue #15184) Reported by: andrew ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196271 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196268 via svnmergemmichelson0-0/+0
........ r196268 | mmichelson | 2009-05-22 11:50:31 -0500 (Fri, 22 May 2009) | 3 lines s/it's/its/ ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196269 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196227 via svnmergeseanbright0-0/+0
........ r196227 | seanbright | 2009-05-22 12:10:33 -0400 (Fri, 22 May 2009) | 3 lines Fix build under dev mode and remove some casts that are no longer necessary as a result of the const-ify the world patch. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196228 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Merged revisions 196117 via svnmerge from file1-1/+2
https://origsvn.digium.com/svn/asterisk/trunk ................ r196117 | file | 2009-05-22 10:56:47 -0300 (Fri, 22 May 2009) | 12 lines Merged revisions 196116 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r196116 | file | 2009-05-22 10:54:17 -0300 (Fri, 22 May 2009) | 5 lines Fix a bug where using immediate with mISDN caused a cause code of 16 to get sent back instead of 1 if the 's' extension did not exist. (closes issue #12286) Reported by: lmamane ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196120 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-22Blocked revisions 196114 via svnmergeeliel0-0/+0
........ r196114 | eliel | 2009-05-22 09:34:01 -0400 (Fri, 22 May 2009) | 5 lines Avoid using prototypes when not necessary (it is already defined in the header file). Make log_match_char_tree() static to main/pbx.c (only used there). ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196115 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-21Blocked revisions 196072 via svnmergekpfleming0-0/+0
........ r196072 | kpfleming | 2009-05-21 16:13:09 -0500 (Thu, 21 May 2009) | 16 lines Const-ify the world (or at least a good part of it) This patch adds 'const' tags to a number of Asterisk APIs where they are appropriate (where the API already demanded that the function argument not be modified, but the compiler was not informed of that fact). The list includes: - CLI command handlers - CLI command handler arguments - AGI command handlers - AGI command handler arguments - Dialplan application handler arguments - Speech engine API function arguments In addition, various file-scope and function-scope constant arrays got 'const' and/or 'static' qualifiers where they were missing. Review: https://reviewboard.asterisk.org/r/251/ ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196074 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-21Merged revisions 195995 via svnmerge from dvossel1-0/+3
https://origsvn.digium.com/svn/asterisk/trunk ................ r195995 | dvossel | 2009-05-21 14:11:49 -0500 (Thu, 21 May 2009) | 20 lines Merged revisions 195991 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195991 | dvossel | 2009-05-21 14:04:56 -0500 (Thu, 21 May 2009) | 14 lines Sign problem calculating timestamp for iax frame leads to no audio on the receiving peer. There are rare cases in which a frame's delivery timestamp is slightly less than the iax2_pvt's offset. This causes the pvt's timestamp to be a small negative number, but since the timestamp value is unsigned it looks like a huge positive number. This patch checks for this negative case and sets the ms to zero. A similar check is already done right below this one in the 'else' statement. (closes issue #15032) Reported by: guillecabeza Patches: chan_iax2.c.patch_timestamp uploaded by guillecabeza (license 380) Tested by: guillecabeza (closes issue #14216) Reported by: Andrey Sofronov ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@196000 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-21Blocked revisions 195992 via svnmergemmichelson0-0/+0
........ r195992 | mmichelson | 2009-05-21 14:06:08 -0500 (Thu, 21 May 2009) | 3 lines Pass connected line updates along during a bridge. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195993 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-21Blocked revisions 195949 via svnmergeseanbright0-0/+0
........ r195949 | seanbright | 2009-05-21 13:15:23 -0400 (Thu, 21 May 2009) | 3 lines Rework the cdr_custom.conf.sample header a bit to reflect the changes in functionality (allowing multiple mappings). ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195963 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-21Merged revisions 195882 via svnmerge from mnicholson2-0/+42
https://origsvn.digium.com/svn/asterisk/trunk ................ r195882 | mnicholson | 2009-05-21 10:33:55 -0500 (Thu, 21 May 2009) | 20 lines Merged revisions 195881 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195881 | mnicholson | 2009-05-21 10:25:50 -0500 (Thu, 21 May 2009) | 13 lines This commit prevents cdr records with AST_CDR_FLAG_ANSLOCKED and AST_CDR_FLAG_LOCKED from being updated in certain cases. This is accomplished by adding two functions to update the answer time and disposition of calls that checks for the proper lock flags. These functions are used in the ast_bridge_call() function so that ForkCDR(A) calls are respected. This patch also modifies the way ast_bridge_call() chooses the cdr record to base the bridged_cdr on. Previously the first unlocked cdr record would be chosen, now instead the first cdr record is chosen and forked cdr records are moved to the bridge_cdr. This allows the original cdr record and any forked cdr records to be properly updated with answer and end times. (closes issue #13797) Reported by: sh0t Tested by: sh0t (closes issue #14744) Reported by: deepesh ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195883 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-20Merged revisions 195839 via svnmerge from tilghman1-14/+13
https://origsvn.digium.com/svn/asterisk/trunk ........ r195839 | tilghman | 2009-05-20 18:30:05 -0500 (Wed, 20 May 2009) | 3 lines If a variable had a blank value upon the initial setting, then it would do nothing. Identified by Dmitry Andrianov via private email, fixed by me. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195842 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-20Blocked revisions 195798 via svnmergemmichelson0-0/+0
........ r195798 | mmichelson | 2009-05-20 15:45:05 -0500 (Wed, 20 May 2009) | 10 lines Get rid of some duplicated code and correct a connected line error. When receiving a 200 OK response to an INVITE, it was possible to transmit two connected line updates instead of a single one. Furthermore, the second did not have the proper information present. Now the two have been combined into a single update and the correct information is presented. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195800 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-20Blocked revisions 195763 via svnmergemmichelson0-0/+0
........ r195763 | mmichelson | 2009-05-20 15:14:28 -0500 (Wed, 20 May 2009) | 7 lines Plug a memory leak in app_dial. Since we may have copied connected line info into the chanlist struct prior to placing an outbound call, we need to be sure to free the allocated data when we hang the call up. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195799 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-20Merged revisions 195698 via svnmerge from file1-5/+11
https://origsvn.digium.com/svn/asterisk/trunk ................ r195698 | file | 2009-05-20 14:33:02 -0300 (Wed, 20 May 2009) | 12 lines Merged revisions 195688 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195688 | file | 2009-05-20 14:30:25 -0300 (Wed, 20 May 2009) | 5 lines Fix some code that wrongly assumed a pointer would always be non-NULL when dealing with CDRs after a bridge. (closes issue #15079) Reported by: barryf ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195707 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-20Merged revisions 195636 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ................ r195636 | file | 2009-05-20 14:14:42 -0300 (Wed, 20 May 2009) | 12 lines Merged revisions 195635 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195635 | file | 2009-05-20 14:14:00 -0300 (Wed, 20 May 2009) | 5 lines Fix a bug where the MeetMe option 'D' did not actually prompt for the pin. (closes issue #15050) Reported by: pmhaddad ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195639 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-19Blocked revisions 195589 via svnmergemmichelson0-0/+0
........ r195589 | mmichelson | 2009-05-19 15:59:38 -0500 (Tue, 19 May 2009) | 61 lines Add basic support for handling connected line-related UPDATE requests. SIP purists may want to look the other way... When COLP/CONP support for SIP was committed, there was a condition under which Asterisk may transmit a SIP UPDATE in order to communicate the change in connected line information. The issue here is that while we could send a SIP UPDATE message, we were not prepared to receive such an UPDATE and would always responde with a 501 when we received an UPDATE. The situation was a bit rough. We really want to be able to receive UPDATEs having to do with connected line changes, but the amount of effort involved in properly supporting RFC 3311 was staggering. This commit represents a compromise. First, it was decided that it is important to only send a SIP UPDATE to an endpoint that is able to handle one. So, now we have added parsing of the Allow header into SIP. We store the allowed methods on SIP peers so that when we communicate with them, we already will know what we can and cannot send to them. We will parse the peer's allowed methods when he registers with us. If the peer is not the type to register with us, but the qualify option is enabled, then we will use the response to the OPTIONS request we send the peer to determine the peer's allowed methods. When the peer's registration expires, or when qualify deems the peer to be unreachable, we clear the allowed methods from the peer. For an actual call, we will copy the peer's allowed methods to the sip_pvt representing the call leg. If we are communicating with an endpoint which is not a peer, then we will just parse the Allow header from the first message we receive during the call and store the information in the sip_pvt. If, during communication with a peer, we receive a 501 response, then we will make sure to save the fact that we cannot use that method when communicating with that peer. Now, with all that infrastructure in place, the only actual place we use this information currently is when attempting to send a connected line change using an UPDATE request. If we cannot send the change immediately using an UPDATE, we will set the SIP_NEEDREINVITE flag so that we can send a REINVITE as soon as it is allowed. The second part of the changes here is for Asterisk to accept UPDATE requests that have connected line changes. Since we are not fully supporting RFC 3311, Asterisk will NOT place the UPDATE method in Allow headers it sends. Instead, if you are communicating with what you know to be another Asterisk box, you may set the rpid_update parameter in sip.conf so that we will send UPDATEs to that Asterisk box. When we send a connected line update, we set a custom header called "X-Asterisk-rpid-update." On the receiving end, if Asterisk receives an UPDATE that does not have the "X-Asterisk-rpid-update" header present, then Asterisk will respond with a 501 since media-changing UPDATEs are not supported. We should never get such UPDATEs, since as was stated earlier, Asterisk does not put UPDATE in its Allow header. If the custom header is present in the received UPDATE, though, then we will check the incoming request for connected line updates and queue the update on the channel where the change occurred. ABE-1840 ABE-1822 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195590 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-19Merged revisions 195521 via svnmerge from tilghman1-0/+3
https://origsvn.digium.com/svn/asterisk/trunk ................ r195521 | tilghman | 2009-05-19 15:16:01 -0500 (Tue, 19 May 2009) | 14 lines Merged revisions 195520 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195520 | tilghman | 2009-05-19 15:12:20 -0500 (Tue, 19 May 2009) | 7 lines Ensure thread keys are initialized before attempting to access them. (closes issue #14889) Reported by: jaroth Patches: app_voicemail.c.patch uploaded by msirota (license 758) Tested by: msirota, BlargMaN ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195531 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-19Merged revisions 195449 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ................ r195449 | file | 2009-05-19 11:43:54 -0300 (Tue, 19 May 2009) | 14 lines Merged revisions 195448 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195448 | file | 2009-05-19 11:41:45 -0300 (Tue, 19 May 2009) | 7 lines Fix a bug where direct RTP setup would partially occur even when disabled if the calling channel was answered. (issue #13545) Reported by: davidw (issue #14244) Reported by: mbnwa ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195452 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Blocked revisions 195365 via svnmergeeliel0-0/+0
........ r195365 | eliel | 2009-05-18 16:18:43 -0400 (Mon, 18 May 2009) | 6 lines Move AGI documentation from static to the XML form. Move the AGI commands 'receive text', 'receive char' and 'record' static documentation to XML docs. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195447 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Merged revisions 195369 via svnmerge from eliel1-2/+3
https://origsvn.digium.com/svn/asterisk/trunk ........ r195369 | eliel | 2009-05-18 16:49:20 -0400 (Mon, 18 May 2009) | 8 lines Fix the CLI command 'manager show command' documentation and functionality. The CLI command 'manager show command' supports passing multiple action names in the same line, but it was not allowing that because of a incorrect check in the argumentes counter. Also the documentation was updated to show that this usage of the command is possible. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195405 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Merged revisions 195370 via svnmerge from tilghman6-33/+61
https://origsvn.digium.com/svn/asterisk/trunk ................ r195370 | tilghman | 2009-05-18 15:52:33 -0500 (Mon, 18 May 2009) | 15 lines Recorded merge of revisions 195366 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195366 | tilghman | 2009-05-18 15:24:13 -0500 (Mon, 18 May 2009) | 8 lines Add a similar dependency on SMDI for voicemail as already exists for ADSI. (closes issue #14846) Reported by: pj Patches: 20090413__bug14846__1.4.diff.txt uploaded by tilghman (license 14) 20090507__issue14846__1.6.0.diff.txt uploaded by tilghman (license 14) 20090507__issue14846__1.6.1.diff.txt uploaded by tilghman (license 14) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195373 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Merged revisions 195320 via svnmerge from tilghman1-51/+50
https://origsvn.digium.com/svn/asterisk/trunk ........ r195320 | tilghman | 2009-05-18 14:17:15 -0500 (Mon, 18 May 2009) | 9 lines Move the spawn of astcanary down, until after the call to daemon(3). This avoids possible conflicts with the internal implementation of daemon(3). (closes issue #15093) Reported by: tzafrir Patches: 20090513__issue15093__2.diff.txt uploaded by tilghman (license 14) Tested by: tzafrir ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195359 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Merged revisions 195316 via svnmerge from mmichelson1-17/+8
https://origsvn.digium.com/svn/asterisk/trunk ........ r195316 | mmichelson | 2009-05-18 13:58:26 -0500 (Mon, 18 May 2009) | 18 lines Fix externalivr's setvariable command so that it properly sets multiple variables. The command had a for loop that was guaranteed to only execute once since the continuation operation of the loop would set the input buffer NULL. I rewrote the loop so that its operation was more obvious, and it would set multiple variables correctly. I also reduced stack space required for the function, constified the input string, and modified the function so that it would not modify the input string while I was at it. (closes issue #15114) Reported by: chris-mac Patches: 15114.patch uploaded by mmichelson (license 60) Tested by: chris-mac ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195319 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Blocked revisions 195279 via svnmergeseanbright0-0/+0
........ r195279 | seanbright | 2009-05-18 13:08:25 -0400 (Mon, 18 May 2009) | 1 line Remove some unused code. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195280 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Merged revisions 195207 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ................ r195207 | file | 2009-05-18 12:53:26 -0300 (Mon, 18 May 2009) | 14 lines Merged revisions 195206 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195206 | file | 2009-05-18 12:51:22 -0300 (Mon, 18 May 2009) | 7 lines Fix a typo which caused loss of audio when using G729 in some scenarios with a smoother present. (closes issue #15105) Reported by: bamby Patches: process-vad-correctly.diff uploaded by bamby (license 430) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195212 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Blocked revisions 195210 via svnmergeseanbright0-0/+0
........ r195210 | seanbright | 2009-05-18 11:55:53 -0400 (Mon, 18 May 2009) | 3 lines Const-ify a string, fix a log message, and use the correct signature for the load_module function. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195211 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Blocked revisions 195165 via svnmergeseanbright0-0/+0
........ r195165 | seanbright | 2009-05-18 10:54:43 -0400 (Mon, 18 May 2009) | 6 lines Allow cdr_custom to write to multiple files instead of just one. Up to now, cdr_custom would only accept a single filename/format from cdr_custom.conf. This change allows you to specify multiple filename & format directives. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195166 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Merged revisions 195162 via svnmerge from eliel3-0/+9
https://origsvn.digium.com/svn/asterisk/trunk ........ r195162 | eliel | 2009-05-18 10:45:23 -0400 (Mon, 18 May 2009) | 9 lines Warn about the use of the application WaitExten() within a Macro(). Update applications documentation to warn the user about the use of the WaitExten() application within a Macro(). Recommend the use of Read() instead. (closes issue #14444) Reported by: ewieling ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195164 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-18Merged revisions 195096 via svnmerge from file1-1/+2
https://origsvn.digium.com/svn/asterisk/trunk ................ r195096 | file | 2009-05-18 10:56:16 -0300 (Mon, 18 May 2009) | 12 lines Merged revisions 195095 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195095 | file | 2009-05-18 10:53:39 -0300 (Mon, 18 May 2009) | 5 lines Fix a bug where the codecs of the called party leg were not properly sent back to the caller call leg when reinvited. (closes issue #13569) Reported by: bkw918 ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195099 f38db490-d61c-443f-a65b-d21fe96a405b