Commit Graph

455 Commits

Author SHA1 Message Date
Olle Johansson a1b9cbcd31 Implementation of a feature that will disable "missed calls" counters on SIP phones.
If the call is answered by another phone, other phones won't display the call as "missed".
You can also add an option to the dial command so that you can have a "followme"
scenario and not count the calls as "missed" when you cancel the call.

Thanks to Ramon and Frank for feedback on this feature.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-09 08:27:37 +00:00
Tilghman Lesher 8b93f50dfc Merged revisions 73053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r73053 | tilghman | 2007-07-03 07:38:53 -0500 (Tue, 03 Jul 2007) | 10 lines

Merged revisions 73052 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r73052 | tilghman | 2007-07-03 07:34:14 -0500 (Tue, 03 Jul 2007) | 2 lines

RetryDial should accept a 0 argument, but it does not, because atoi does not distinguish between 0 and error (closes issue #10106)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-03 12:40:26 +00:00
Tilghman Lesher a1bc823136 Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@71040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 04:35:12 +00:00
Steve Murphy 2462d5ab4f Cleaning up a small disaster I created earlier
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 23:26:07 +00:00
Steve Murphy 57526b35cc As per 9228, now app_queue should have the proper machinery to do gosubs.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 21:38:49 +00:00
Tilghman Lesher ce2c52d519 Merged revisions 70445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r70445 | tilghman | 2007-06-20 14:29:23 -0500 (Wed, 20 Jun 2007) | 10 lines

Merged revisions 70444 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r70444 | tilghman | 2007-06-20 14:25:54 -0500 (Wed, 20 Jun 2007) | 2 lines

Issue 9997 - Timelimit times out the wrong channel

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 19:30:31 +00:00
Tilghman Lesher 704c756c4a Merge work to make U(...) option work for Dial
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-20 17:35:08 +00:00
Steve Murphy 866bbaa515 Via bug9228, no way to create macros via AEL, and some of the apps allow you to call macros..., I modded the apps that allow macro calls to allow gosubs calls also, to make them AEL compliant.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-19 23:36:34 +00:00
Russell Bryant 055d82cbce Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-14 19:39:12 +00:00
Russell Bryant 9e0458e9f1 Completely remove all of the code related to jumping to priority n + 101. yay!
(issue #9926, caio1982)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-12 15:58:28 +00:00
Joshua Colp 2492bf26fb Merged revisions 68071 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r68071 | file | 2007-06-07 10:21:59 -0400 (Thu, 07 Jun 2007) | 10 lines

Merged revisions 68070 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68070 | file | 2007-06-07 10:19:40 -0400 (Thu, 07 Jun 2007) | 2 lines

Allow the 'g' option to work if used with the 'S' option. (issue #9888 reported by gasparz)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-07 14:23:21 +00:00
Tilghman Lesher 9d05ff8ed5 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06 21:20:11 +00:00
Joshua Colp bae04fd90e Merged revisions 67066 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67066 | file | 2007-06-04 13:59:14 -0400 (Mon, 04 Jun 2007) | 2 lines

Initialize cidname variable to nothing since it may be used without having been touched. (issue #9661 reported by dimas)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-04 18:00:24 +00:00
Steve Murphy 4572edae31 Merged revisions 65200 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r65200 | murf | 2007-05-18 16:06:27 -0600 (Fri, 18 May 2007) | 9 lines

Merged revisions 65172 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r65172 | murf | 2007-05-18 14:56:20 -0600 (Fri, 18 May 2007) | 1 line

This update will fix the situation that occurs as described by 9717, where when several targets are specified for a dial, if any one them reports FAIL, the whole call gets FAIL, even though others were ringing OK. I rearranged the priorities, so that a new disposition, NULL, is at the lowest level, and the disposition get init'd to NULL. Then, next up is FAIL, and next up is BUSY, then NOANSWER, then ANSWERED. All the related set routines will only do so if the disposition value to be set to is greater than what's already there. This gives the intended effect. So, if all the targets are busy, you'd get BUSY for the call disposition. If all get BUSY, but one, and that one rings is not answered, you get NOANSWER. If by some freak of nature, the NULL value doesn't get overridden, then the disp2str routine will report NOANSWER as before.
........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-18 22:33:51 +00:00
Russell Bryant 83d0b0417c Merged revisions 64756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r64756 | russell | 2007-05-17 11:47:29 -0500 (Thu, 17 May 2007) | 3 lines

Increase the size of a buffer to support longer dial strings for channels.
(issue #9291, reported and fix suggested by meni)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-17 16:49:50 +00:00
Joshua Colp e2871220e2 Merged revisions 61656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r61656 | file | 2007-04-13 15:17:08 -0400 (Fri, 13 Apr 2007) | 10 lines

Merged revisions 61655 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61655 | file | 2007-04-13 15:15:12 -0400 (Fri, 13 Apr 2007) | 2 lines

Add OUTBOUND_GROUP_ONCE variable to app_dial. This behaves the same as OUTBOUND_GROUP except it will get unset after use so it won't get accidentally inherited. (issue #BE-140)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61657 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 19:18:46 +00:00
Russell Bryant be874b92d3 Remove unused instances of unnamed enums.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 22:49:32 +00:00
Joshua Colp 840f1e61e0 Merged revisions 60798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r60798 | file | 2007-04-08 21:03:14 -0400 (Sun, 08 Apr 2007) | 10 lines

Merged revisions 60797 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r60797 | file | 2007-04-08 20:59:29 -0400 (Sun, 08 Apr 2007) | 2 lines

When calling a device that then forwards us elsewhere... we have to make our channels compatible if it is the only channel being dialed. (issue #9445 reported by marcelbarbulescu)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 01:06:56 +00:00
Joshua Colp 726928cb60 Properly hangup the original dialed channel, not the new channel that appeared from the forwarding. (issue #9161 reported by PhilSmith)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-27 22:17:42 +00:00
Joshua Colp fb9e48ca9e Merged revisions 55154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r55154 | file | 2007-02-16 22:55:30 -0500 (Fri, 16 Feb 2007) | 10 lines

Merged revisions 55153 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r55153 | file | 2007-02-16 22:53:45 -0500 (Fri, 16 Feb 2007) | 2 lines

Answer the channel before recording privacy information. (issue #8926 reported by lmamane)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-17 03:57:23 +00:00
Joshua Colp 8e92c73a1d Merged revisions 54924 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r54924 | file | 2007-02-16 13:51:15 -0500 (Fri, 16 Feb 2007) | 2 lines

Need to check macro extension as well as macro context for directed pickup.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-16 18:53:17 +00:00
Joshua Colp 821c941976 Merged revisions 54884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r54884 | file | 2007-02-16 12:02:35 -0500 (Fri, 16 Feb 2007) | 2 lines

Allow directed pickup to pick up the real context instead of the macro context if a Macro is used. (issue #8984 reported by jamesb63)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-16 17:07:10 +00:00
Joshua Colp a11b56a8e5 Merged revisions 54623 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r54623 | file | 2007-02-15 11:19:39 -0500 (Thu, 15 Feb 2007) | 10 lines

Merged revisions 54622 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r54622 | file | 2007-02-15 11:14:40 -0500 (Thu, 15 Feb 2007) | 2 lines

Use a separate variable to indicate execution should continue instead of the return value. (issue #8842 reported by pluto70)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-15 16:24:13 +00:00
Joshua Colp 68a66656e6 Merged revisions 54481 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r54481 | file | 2007-02-14 16:07:23 -0500 (Wed, 14 Feb 2007) | 2 lines

Forward begin DTMF frames as well as end. (issue #9068 reported by mhardeman)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-14 21:10:53 +00:00
Joshua Colp 32cd307d6f Merged revisions 53749 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r53749 | file | 2007-02-09 14:33:31 -0500 (Fri, 09 Feb 2007) | 2 lines

Temporarily change musicclass on channel to one specified in Dial so that the 'm' option functions properly. (issue #8969 reported by christianbee)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-09 19:39:26 +00:00
Russell Bryant ce321f87e9 Merged revisions 53136 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r53136 | russell | 2007-02-03 14:44:20 -0600 (Sat, 03 Feb 2007) | 12 lines

Merged revisions 53133 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r53133 | russell | 2007-02-03 14:38:13 -0600 (Sat, 03 Feb 2007) | 4 lines

set the DIALSTATUS variable to contain "INVALIDARGS" when the dial application
exits early because of invalid arguments instead of just leaving it empty.
(issue #8975)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-03 20:46:36 +00:00
Joshua Colp a378353ecc Merged revisions 50298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r50298 | file | 2007-01-09 23:55:13 -0500 (Tue, 09 Jan 2007) | 10 lines

Merged revisions 50295 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r50295 | file | 2007-01-09 23:51:06 -0500 (Tue, 09 Jan 2007) | 2 lines

Add another return value to dial_exec_full that indicates execution is going to continuing at a new extension/context/priority and to just let it slide. (issue #8598 reported by jon)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 04:56:48 +00:00
Luigi Rizzo 83f52ed5e2 better name for struct dial_localuser.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 16:36:45 +00:00
Luigi Rizzo a755ec928a introduce a temporary variable for tmp->chan to shorten expressions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 09:58:40 +00:00
Luigi Rizzo 9c81431c93 stop what i think is a memory leak in case Dial fails to
connect to a channel.

Before committing to 1.4 i would like some other people to
review and test this fix - thanks.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 09:33:57 +00:00
Luigi Rizzo 9d4531d636 move a large block related to privacy handling to a separate function.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 09:15:23 +00:00
Kevin P. Fleming 359a553961 Merged revisions 48193 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48193 | kpfleming | 2006-12-01 17:37:28 -0600 (Fri, 01 Dec 2006) | 10 lines

Merged revisions 48192 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48192 | kpfleming | 2006-12-01 17:30:59 -0600 (Fri, 01 Dec 2006) | 2 lines

if Dial() is going to send music-on-hold to the calling party, it has to send PROGRESS first to ensure that the reverse audio path has been setup first (BE-106)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 23:39:59 +00:00
Luigi Rizzo bbba4e5a20 better fix for the previous bug.
In general this code needs a deep revision, because the body of
do_forward() deletes/overwrites the output channel without freeing
the resouce in some cases, and without notifying the caller.

Also, on FreeBSD with MALLOC_OPTIONS set i am seeing various panics
(duplicate freee etc.)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-21 11:53:06 +00:00
Luigi Rizzo 64a9c28c3b do not ast_hangup() on a NULL channel.
In the original code this would happen in the case of
	o->forwards >=  AST_MAX_FORWARDS

Likely an 1.2/1.4 isse as well - please someone have a look,
while I am hunting a few more similar panics now.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-21 11:07:30 +00:00
Joshua Colp af51be05a6 Merged revisions 47850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47850 | file | 2006-11-20 10:51:37 -0500 (Mon, 20 Nov 2006) | 2 lines

Use a separate variable in the channel structure to store the context that the channel was dialed from. (issue #8382 reported by jiddings)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-20 15:55:58 +00:00
Jason Parker 938c4bdc29 Merged revisions 47782 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47782 | qwell | 2006-11-16 17:19:46 -0600 (Thu, 16 Nov 2006) | 2 lines

Fix a couple of typos.  Initially pointed out by mrobinson.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 23:20:52 +00:00
Joshua Colp a8ef79fa6f Make local copy of arguments to parse. (issue #8362 reported by homesick)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-14 20:09:10 +00:00
Luigi Rizzo 8b3fe4556c move out another large block to a large function, and document
some possibly missing parts in the privacy screening code.
Now that it is more streamlined it is easier to see differences
in handling the various cases.

Have not tested the code in depth.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 11:00:49 +00:00
Luigi Rizzo a55ca0d6ec fix indentation of a block, and do minor simplifications at the end of
another one.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 01:16:20 +00:00
Luigi Rizzo 0f58d97707 complete previous commit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 00:56:02 +00:00
Luigi Rizzo 01ec7d63d9 move another block into a function.
On passing, avoid two null-pointer string dereference
while printing messages (which are
sometimes not fatal in some platforms, but still wrong).
These two lines at least should be merged to 1.4 once i am
done with all the changes here.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 00:50:18 +00:00
Luigi Rizzo 1385b6f047 move a large block into a separate function.
Mark with XXX a possible bug in previous code which used
the wrong source in case of a forwarded call.

the function do_forward() needs to be split further, as the initial
part is replicated in another places (with some minor differences, most likely
forgotten when updating after the copy).



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-04 00:01:40 +00:00
Luigi Rizzo ab4f699065 another small set of simplifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-03 23:24:21 +00:00
Luigi Rizzo acf5e87b0f change HANDLE_CAUSE into a function.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-03 22:36:17 +00:00
Luigi Rizzo c3a6bbddb8 remove redundant checks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-03 22:01:34 +00:00
Luigi Rizzo 534da0ecfd start integrating the simplifications proposed in bug 0005860,
as usual a bit at a time to ease locating new bugs or fixes
worth merging into other branches.

In this commit, introduce a macro, S_REPLACE, that replaces
a string possibly freeing the previous value.
In one of these places (see the comment marked XXX) the previous
code might leak memory - if so, this ought to be merged in 1.4

The macro might be worth putting in one of the global headers
(e.g. include/asterisk/strings.h) as the construct is used
in a million places in the asterisk code.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-03 21:51:16 +00:00
Steve Murphy 6d81c47801 These changes submitted by moy via bug 6992, to add a Dial 'End' event to asterisk. I include some changes to astman to cover other events that have been added.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-30 23:11:55 +00:00
Joshua Colp 1e3c5bc5ba Inherit the context and extension until the channel is answered
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-13 21:20:18 +00:00
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
patch provided in bugnote, with minor changes.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-03 15:53:07 +00:00
Joshua Colp 3e4a081e1c Make callerid fields in Manager events more consistent. CallerIDNum for number and CallerIDName for name. (issue #7976 reported by suhler)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-10-02 20:35:16 +00:00
Joshua Colp 1c764935f2 SS7 marked the start of an open season for trunk again but here's something minor - abstract early bridging into the technology so that we don't always assume they use RTP and try it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-21 19:27:26 +00:00
Matt O'Gorman d0a1a0033d similar patch for verbose vs debug with minor changes
bug 2617


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 16:23:45 +00:00
Steve Murphy 7c9b6e1d29 These small app documentation changes to app_dial and app_read will hopefully avert any more 7544 type bug reports\!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-06 17:14:50 +00:00
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
- restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:11:39 +00:00
Russell Bryant 774bba093b Merged revisions 38928 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r38928 | russell | 2006-08-05 02:37:59 -0400 (Sat, 05 Aug 2006) | 3 lines

make sure the priv-callerintros directory exists before trying to create a file
there (issue #7659, patch by hads, with some modifications by me)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 06:39:43 +00:00
Kevin P. Fleming 6d0742fc16 merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19 20:44:39 +00:00
Mark Spencer 4c90cf59b7 Support hold/unhold in Zap, update IAX2 parser to know about modern commands, forward hold/unhold in dial, add hold device state
and implement holding in the SLA.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-08 02:24:07 +00:00
BJ Weschke 2e8a142c85 Don't ast_request a channel structure twice when a call is being forwarded. (#7362 - twlison / vechers confirming fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-16 12:18:18 +00:00
Joshua Colp a23af6559c Merged revisions 33294 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r33294 | file | 2006-06-09 15:08:00 -0300 (Fri, 09 Jun 2006) | 2 lines

Handle hangup during recording of screened name (issue #7304 reported by kulldominique)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-09 18:12:46 +00:00
Olle Johansson 9f5aa13142 Rename ast_rtp_early_media to ast_rtp_early_bridge to avoid confusion.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-09 09:47:44 +00:00
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-07 18:54:56 +00:00
Kevin P. Fleming 7f3cc8b886 cleanups for commit from issue #5657... set a cause code for a rejected forward request, and actually set tmp->chan to NULL when we reject the forward request
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-31 16:11:55 +00:00
BJ Weschke 871f08ec07 Add an option to app_dial, 'i', to instruct the application ignore any requests from peers to forward calls elsewhere. #5657 (johnlange w/some minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-31 15:52:32 +00:00
Joshua Colp 91f9966be3 Merge branch for bug 6264 (Privacy option 2 returns dial-status ANSWER / option_priority_jumping not respected) (reported by jkoopmann and branch by murf)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30040 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 20:00:10 +00:00
BJ Weschke 5235890be4 This is part 2/2 of the patches for #7090. Adds one-step call parking to /trunk via builtin functions and 'k' 'K' application options added to app_dial. This also resolves #6340.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-22 16:43:43 +00:00
Joshua Colp d2da48b156 Inherit channel variables when call forwarding through chan_local (issue #7095 reported by raarts)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16 23:39:29 +00:00
Russell Bryant 04ecb29d03 remove almost all of the checks of the result from ast_strdupa() or alloca().
As it turns out, all of these checks were useless, because alloca will never
return NULL.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 13:22:15 +00:00
Mark Spencer 9953f4f40e Make SIP early media work more efficiently without so many reinvites
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-09 11:44:50 +00:00
BJ Weschke bdf2a05aa5 Merged revisions 24567 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r24567 | bweschke | 2006-05-03 15:58:10 -0500 (Wed, 03 May 2006) | 3 lines

 Correct application documentation to make users aware that certain options cannot be used in conjunction with others. #6666 (chotaire) 


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-03 21:11:23 +00:00
Jim Dixon a83297d85f Added "Operator Services" connection mode for Zap channels, and the 'O' option
in app_dial to support the use of this mode.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-22 11:30:06 +00:00
Luigi Rizzo 965ff42bed more NULL "" equivalence in CID fields.
Mark a potentially missing item in managerevent



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21 10:41:13 +00:00
Luigi Rizzo b9f3e4e0f3 move a replicated block of code in the one place where it belongs.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 18:15:20 +00:00
Luigi Rizzo bd01d66909 merge two nested 'if' which are really a single block.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 18:07:19 +00:00
Luigi Rizzo 9476cb356e fix indentation of a large block
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 18:00:32 +00:00
Luigi Rizzo 501c9e181c start sorting out the duplicated code in the privacy handler
for future removal



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 17:58:07 +00:00
Luigi Rizzo b3343aecdf merge two nested 'if' which are really a single block.
(indentation still to be fixed)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 17:29:15 +00:00
Luigi Rizzo 73f2d344fb more localization and variable removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:54:04 +00:00
Luigi Rizzo c9f669e56d more localization of variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21537 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:36:15 +00:00
Luigi Rizzo c6a8784e95 localize one more variable;
use ast_strdup as it can handle the NULL argument well.
mark a dubious piece of code with XXX



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:19:52 +00:00
Luigi Rizzo 0f4a1bc9ac localize some variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 16:10:11 +00:00
Luigi Rizzo 2bdcaa4849 extract a common condition.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 15:15:03 +00:00
Luigi Rizzo 25eb0525d9 fix indentation of some large blocks after previous changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:53:18 +00:00
Luigi Rizzo 25c6ab22f9 more simplifications - use a local variable c instead of o->chan,
use S_OR as appropriate.

Still need to fix the indentation of some blocks.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:50:17 +00:00
Luigi Rizzo acf0f038dc more simplifications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:14:40 +00:00
Luigi Rizzo 3aaaa41609 start cleaning up this code so we can split the 900 lines function
into manageable chunks.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-19 14:02:49 +00:00
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely.  Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
 
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.

Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.

I am just sorry that this change missed SVN version number 20000!



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 14:08:19 +00:00
Tilghman Lesher 020305fb58 Merged revisions 19397 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19397 | tilghman | 2006-04-11 17:39:59 -0500 (Tue, 11 Apr 2006) | 2 lines

Bug 6490 - telco intercept should report NOANSWER instead of CHANUNAVAIL

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 22:51:10 +00:00
Kevin P. Fleming 77e998a20d Merged revisions 19301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19301 | kpfleming | 2006-04-11 15:11:01 -0500 (Tue, 11 Apr 2006) | 2 lines

handle call time limit properly when warning is requested _after_ call would hae already ended (issue #6356)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 20:11:36 +00:00
BJ Weschke 0b438958df Minor cleanups and error handling for app_dial #6935 (casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 16:15:11 +00:00
Luigi Rizzo 7ba1b92a04 normalize code preparing for loader changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-11 15:19:34 +00:00
Kevin P. Fleming cf15740eaf remove support for BYEXTENSION (which nobody even knows about anymore)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 23:01:22 +00:00
Kevin P. Fleming f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08 22:01:19 +00:00
Olle Johansson 7089dc1341 Issue #6899 - remove OSP support code from chan_sip.c and app_dial.c
- implement all functions through internal APIs in res_osp.c and app_osplookup.c
(homesick)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-07 19:11:22 +00:00
Luigi Rizzo 1fd898bd84 convert a couple of applications to the new module style
(STATIC_MODULE) to show what needs to be changed.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06 09:24:02 +00:00
Luigi Rizzo 6c232811c0 as discussed with Mark a few weeks ago, the 'newstack' argument
in pbx_exec is always 1 so it can be removed.

This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 21:29:39 +00:00
Matt O'Gorman a5ece3388a Janitor work converting !ast_strlen_zero(a)?a:b
to S_OR functions. from bug note 6805 with minor
modifications.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 19:31:54 +00:00
Russell Bryant fc9d3ba21b Merged revisions 13550 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r13550 | russell | 2006-03-19 04:59:55 -0500 (Sun, 19 Mar 2006) | 4 lines

revert the change made in revision 12927 in favor of keeping the original
behavior of the option.  The documentation has now been updated to reflect
the actual behavior.  (issue #6523)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 10:11:29 +00:00
Russell Bryant 686b512e23 Merged revisions 12927 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r12927 | russell | 2006-03-14 13:41:05 -0500 (Tue, 14 Mar 2006) | 3 lines

when using the G() option to Dial, fix sending the called channel to 1 priority
beyond what was specified (issue #6523)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 18:42:56 +00:00
Russell Bryant a0d438fb6c remove the uses of the deprecated STANDARD_LOCAL_USER
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15 20:11:56 +00:00
Kevin P. Fleming a16ae226b6 use string fields for some stuff in ast_channel
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01 23:05:28 +00:00
Russell Bryant 32026d6f49 don't redefine the localuser struct for additional use specific to the module (issue #6216)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 20:28:52 +00:00
Kevin P. Fleming 210d4679ee Merged revisions 8608 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8608 | kpfleming | 2006-01-24 19:50:52 -0600 (Tue, 24 Jan 2006) | 2 lines

ensure hangup cause code is handled properly when channel does not return a frame (issue #6346)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25 01:52:58 +00:00
Russell Bryant 4414f45393 on this pass, only remove duplicate log messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 20:57:06 +00:00
Russell Bryant 9fa6eb5e07 revert my pass through the tree to remove checks of the result of ast_strdupa
(revisions 8378 through 8381)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 17:50:04 +00:00
Russell Bryant 7ad681adc8 remove lots of useless checks of the result of ast_strdupa
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 08:13:12 +00:00
Kevin P. Fleming 5af944427f suppress compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 20:49:39 +00:00
Olle Johansson 95144f75a5 - Logging clean up
- Whitespace removed and added, formatting fixed


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 18:54:56 +00:00
Matt O'Gorman 169eeb8599 Added forward context option from 5497
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13 19:09:05 +00:00
Russell Bryant 2eb7eecdd0 conversions to memory allocation wrappers (issue #6210)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 22:41:34 +00:00
Russell Bryant 384aefa772 Merged revisions 7957 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7957 | russell | 2006-01-10 22:12:44 -0500 (Tue, 10 Jan 2006) | 2 lines

fix a little typo

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 03:13:45 +00:00
Russell Bryant a725468381 update doxygen docs to specify authors
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-30 21:18:06 +00:00
Mark Spencer 0d32a85be1 Major RTP fixes for using inbound SDP on outbound connection, get rid of
old local rtp stuff...


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-20 17:52:31 +00:00
Kevin P. Fleming b7b2317d81 Merged revisions 7448-7449,7451,7453 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7448 | kpfleming | 2005-12-12 22:25:14 -0600 (Mon, 12 Dec 2005) | 2 lines

use the stream's current point when pausing/unpausing, instead of elapsed time (which doesn't work when the stream has been skipped forward or backward) (issue #5897)

........
r7449 | kpfleming | 2005-12-12 22:43:38 -0600 (Mon, 12 Dec 2005) | 2 lines

only report AGENT_IDLE for callback mode agents when they are actually idle (issue #5902)

........
r7451 | kpfleming | 2005-12-12 23:14:27 -0600 (Mon, 12 Dec 2005) | 2 lines

ensure that hangups while incoming calls are in early state are handled properly (issue #5919)

........
r7453 | kpfleming | 2005-12-12 23:53:00 -0600 (Mon, 12 Dec 2005) | 2 lines

restore ability of caller to hangup calls that are still ringing (issue #5839)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-13 06:00:17 +00:00
Russell Bryant ec05153ac4 convert most of the option_*'s to a single ast_flags structure. Also, fix some
formatting, remove some unnecessary casts, and other little code cleanups.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-04 20:40:46 +00:00
Kevin P. Fleming 2c65582b66 remove extraneous svn:executable properties
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:24:39 +00:00
Mark Spencer aab82dc3d2 Record DIALEDTIME on incomplete calls, update description (bug #5862)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-25 19:59:46 +00:00
Russell Bryant 6801852c65 issue #5850
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-25 14:13:54 +00:00
Russell Bryant 0702130ed1 fix a typo in the RetryDial description
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-14 10:24:59 +00:00
Kevin P. Fleming 50ab28bd94 issue #5720
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-12 01:33:10 +00:00
Russell Bryant 45c7589284 update the descriptions of a couple more apps
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-11 15:52:55 +00:00
Russell Bryant 78d740290a more cleanups to application descriptions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-11 13:34:38 +00:00
Kevin P. Fleming 0ac4bbfdd9 issue #5602
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-08 01:05:52 +00:00
Kevin P. Fleming f09c6bc78e application doc update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-07 22:01:22 +00:00
Russell Bryant 7d4a5abb1d Convert some built-in applications to use new args parsing macros.
Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 21:00:35 +00:00
Russell Bryant 31a804b97c issue #5605
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 15:09:47 +00:00
Mark Spencer 535ed63c6f Dial janitor patch (bug #5613)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 05:00:42 +00:00
Kevin P. Fleming 2bebbca579 flags usage simplification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-03 21:40:36 +00:00
Kevin P. Fleming 426360e389 major update to arg/option parsing APIs and documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-03 21:19:11 +00:00
Kevin P. Fleming 8f0a6a7d4f uhh... oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-02 21:50:03 +00:00
Kevin P. Fleming ce50837d70 upgrade Dial() app to use API-based argument/option parsing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-02 21:46:52 +00:00
Russell Bryant 5187de9ab6 remove unnecessary checks before calls to ast_strlen_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-26 19:48:14 +00:00
Russell Bryant 3453e3efa5 Doxygen documentation update from oej (issue #5505)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-24 20:12:06 +00:00
Russell Bryant b4e0cedf94 fix up help text (issue #5479)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-20 16:42:53 +00:00
Russell Bryant 4aa7912057 Massive cleanups to applications for LOCAL_USER handling and some other things.
In general, LOCAL_USER_ADD/REMOVE should be the first/last thing called in an
application.  An exception is if there is some *fast* setup code that might
halt the execution of the application, such as checking to see if an argument
exists.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-19 18:19:02 +00:00
Russell Bryant 29829640bf it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 22:52:21 +00:00
Kevin P. Fleming 57a8f5d82c ensure Dial() options are sorted in help output (issue #5386)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 00:11:50 +00:00
Kevin P. Fleming 7215e4179d add auto-monitor support (issue #5411)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 23:14:19 +00:00
Kevin P. Fleming 350aaac04b properly report hangupcause when ast_request() fails for the last (or only) target of a dial operation (issue #5394, different fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 21:18:28 +00:00
Kevin P. Fleming 5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 20:46:50 +00:00
Kevin P. Fleming 1e854ea773 remove useless buffer initializations (issue #5134)
convert pbx_dundi to use ast_copy_string) (issue #5134)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 21:01:31 +00:00
Kevin P. Fleming e0f02b46f1 convert a bunch of apps to use ast_goto_if_exists() (issue #5138)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 19:13:00 +00:00
Mark Spencer 5d4d2fdfd4 Add SIP video fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 02:12:09 +00:00
Mark Spencer 3c6e6c9c96 Be sure not to leak frames in certain cases
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 20:17:53 +00:00
Kevin P. Fleming 5cc0413c54 add a global option to disable priority jumping in applications (when they get updated), settable in extensions.conf
change app_dial to use 'j' to _ENABLE_ priority jumping if it has been globally disabled


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 16:29:56 +00:00
Kevin P. Fleming 0313d0b9c5 add privacy/screening functionality to app_dial (bug #752)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 03:23:31 +00:00
Mark Spencer 80f67ad1fa Pass along proceeding and progress even when overlap mode is not on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 16:05:59 +00:00
Matthew Fredrickson f6f9cac028 Change level of message in case of write on hung up channel (Bug #4651)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 19:10:39 +00:00
Russell Bryant 91ee5d5ddd more fun with ast_copy_string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 23:32:37 +00:00
Russell Bryant 52ef5c7d30 add function to convert a cause code to a string
create MAX_MUSICCLASS instead of using MAX_LANGUAGE


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 17:16:17 +00:00
Kevin P. Fleming c0b1e88e8a the last round of file version tags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:39:32 +00:00
Mark Spencer df349078da Fix dial to not seg when closing ')' is missing (bug #4410)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 17:12:04 +00:00
Russell Bryant 367fd1d3cf fix the one digit exit extension for RetryDial
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-01 18:02:46 +00:00
Kevin P. Fleming 0858dad2ad return CHANUNAVAIL for unregistered peers, not CONGESTION (bug #4276)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-16 00:09:09 +00:00
Kevin P. Fleming 8634ef9e4a don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 17:00:33 +00:00
Kevin P. Fleming bced63033d make 'goto' APIs aware of auto-processing loops, so they know exactly when to set the requested priority or one priority lower
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 15:04:26 +00:00
Kevin P. Fleming a1d24f740f help text cleanups (bug #4072, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5508 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:50:53 +00:00
Kevin P. Fleming 1f9ab2380a use double-quotes instead of angle-brackets for non-system include files (bug #4058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21 06:02:45 +00:00
Mark Spencer b5c7781d9f Add 'n' option to dial for "nojump" (bug #4034)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 05:30:27 +00:00
Russell Bryant 42da18ec5f just formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 16:43:26 +00:00
Mark Spencer 922d62c39d Add calling party DTMF (bug #3994)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 02:46:25 +00:00
Mark Spencer e87a53037e Forward text frames before answer (bug #3717)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5440 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-09 18:54:58 +00:00
Matthew Fredrickson b81f233e68 Merging in xylome's beaerer capabilty patch (bug 3547)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 17:00:50 +00:00
Mark Spencer 1719cd39d3 Add 'G' option to dial (bug #3786)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 22:39:04 +00:00
Mark Spencer 34e8ed636d Fix queue URL passing (bug #3543)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-28 06:06:42 +00:00
Mark Spencer 233e26b112 Fix SetVar (bug #3668) and g + transfer (#3650)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 03:57:10 +00:00
Mark Spencer 41453ebf74 Copy/paste errors (bug #3559, #3560)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-11 06:53:18 +00:00
Mark Spencer fa48657020 Fix typos in app_dial (bug #3536)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 22:59:46 +00:00
Mark Spencer 73b299843e Add "Dial" event to link callerid, src and destination channel (bug #3494)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-07 15:19:34 +00:00
Mark Spencer e95da4b9f7 Oops (first one of these in a while)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-03 04:21:07 +00:00
Mark Spencer a43b8ec753 REname 'p' option to 'o' (bug #3490)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-03 03:30:41 +00:00
Mark Spencer 026c03b527 Add new 'p' flag to Dial for preserve callerid (bug #3490)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 20:35:25 +00:00
Mark Spencer 6ed8f15260 Allow hints to have names (bug #3471)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 01:53:25 +00:00
Mark Spencer 87cf6b3ec2 Fix 'g' flag (bug #3465)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-30 17:57:44 +00:00
Mark Spencer 1f7c871993 Set dialed peer number properly when ringing multiple channels (bug #3437)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-27 16:33:12 +00:00
Russell Bryant 0c30452423 update copyright headers for 2005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 07:06:25 +00:00
Mark Spencer 8a1906619f Fix typos (bug #3381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-20 22:59:50 +00:00
Mark Spencer e983edd221 Fix small app_dial issue (bug #3368)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 16:47:33 +00:00
Mark Spencer cd2ef5b548 Merge anthm's RetryDial with changes (bug #3313)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-18 03:12:53 +00:00
Mark Spencer 840f035827 Merge hold patch (bug #1840)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-17 12:37:55 +00:00
Mark Spencer b6b393c1b9 Give outbound channels callerid of their extension *after* calling (bug #2489)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-16 07:58:51 +00:00
Anthony Minessale II b730f9435c fix bug 3329 (monitor flags)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 18:14:47 +00:00
Mark Spencer 92eb0c2018 More flagification, courtesy drumkilla (bug #3280)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-10 14:46:59 +00:00
Mark Spencer 51cab9e7cc Make queue support channel variable inheritance (bug #3274)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 17:23:29 +00:00
Mark Spencer 51880b7ddc Fix typo for blind transfer (bug #3259)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 17:19:54 +00:00
Mark Spencer 95e75f4354 More flag on dial tweaks (bug #3254, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 02:59:20 +00:00
Mark Spencer 8e3722ceee More flagification (bug #3254)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 23:05:49 +00:00
Mark Spencer 526622d6e0 Merge Tony's attended # transfer with changes (bug #3241)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 19:56:47 +00:00
Mark Spencer 7568d9a4ef Merge OSP updates from matt nicholson (with changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-05 15:15:12 +00:00
Mark Spencer e7d4ae8efa Make features configurable and easier to implement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-04 04:01:40 +00:00
Mark Spencer d021bc7327 Allow moh class to be specified (bug #3199)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-30 01:17:07 +00:00
Mark Spencer 526fc0afe9 Set normal clearing for answered calls (bug #3165)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 23:18:31 +00:00
Mark Spencer d6471bec31 Merge Olle's comment patch (bug #3097)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 21:13:41 +00:00
Mark Spencer cadb8d010b Merge russell's flag macro patch (with slight mods) (bug #3046)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-16 03:15:20 +00:00
Mark Spencer 0e5cec5e09 fix DIALSTATUS issue (bug #2989)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-12 04:58:07 +00:00
Mark Spencer 4429bce838 Add missing free's in rare circumstances (bug #2985)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-06 17:12:21 +00:00
Mark Spencer 3050320746 Implement max # of forwards (bug #2942, different strategy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-28 22:08:44 +00:00
Mark Spencer d456e6ba54 Little dial typo fix and make WaitExten continue if nothing entered and there is a step n+1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 22:40:06 +00:00
Mark Spencer d7da317979 Add improved macro functionality (bug #2905)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 22:11:10 +00:00
Mark Spencer 0e35816160 Little fixups for busy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 20:38:32 +00:00
Mark Spencer 7f445141f2 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 20:27:21 +00:00