dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

4786 Commits

Author SHA1 Message Date
qwell ba7dec1f6d Fix a small typo in a comment.
Closes issue #11490


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91782 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-07 16:37:36 +00:00
tilghman bb15c2571f Add a manager event for PRI events: this will help manager users detect when a D-channel goes down
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91618 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 23:47:07 +00:00
mattf e80ac8df81 Make sure we clear these flags when libpri is not installed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91472 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 16:54:08 +00:00
file db370b01e9 Merged revisions 91439 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r91439 | file | 2007-12-06 12:14:26 -0400 (Thu, 06 Dec 2007) | 4 lines

Add support for accepting and sending T.38 in the initial INVITE.
(closes issue #9402)
Reported by: thdei

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91440 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 16:18:49 +00:00
oej 05ba99e36b Update ZapShowChannels so that you can specify one channel.
Action ZapShowChannels
        Header changes
        - Channel:      -> ZapChannel
        For active channels, the Channel: and Uniqueid: headers are added
        You can now add a "ZapChannel: " argument to zapshowchannels actions
        to only get information about one channel.

From the moremanager branch


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91386 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06 14:33:14 +00:00
oej 8febb656a2 Rename "username" to "defaultuser" to match with "defaultip".
"Username" still works, but is deprecated.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91152 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 13:09:47 +00:00
oej 8694b5efff Remove the cseqs from "sip show channel" and make more place for the call ID.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91151 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 12:58:12 +00:00
kpfleming bb78883d21 revert part of my changes from earlier today since this code is no longer dependent on libpri.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91133 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-05 03:48:53 +00:00
russell 6a7486f4e3 Fix mwimonitornotify on reload ... again. This option was only read at startup
so a reload would erase it and not reset it.  (pointed out by tzafrir)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 23:57:31 +00:00
mattf d2783f534e Don't error when we don't have libpri installed with libss7 support. Also, print the debug message anyway if we can't find the right PRI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91012 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 22:44:01 +00:00
russell 55e37207a1 Fix resetting mwimonitornotify on reload. I guess I only added this line in my head.
(thanks to tzafrir for pointing it out)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91010 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 22:02:48 +00:00
tilghman bd0b3bcb4e Coding guidelines fixups
(Closes issue #11412)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90993 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 21:46:27 +00:00
qwell a2d2f69502 Add manager action 'sipshowregistry'.
Closes issue #11464, patch by eliel.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90991 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 21:23:30 +00:00
russell bdd896e7be Add support for monitoring MWI on FXO lines.
This introduces two new options for zapata.conf: mwimonitor and mwimonitornotify.
The mwimonitor option enables MWI monitoring.  When the MWI state on a line changes,
then the script specified by mwimonitornotify will be executed for custom handling
of the state change, similar to the externnotify option of voicemail.conf.

Also, when the MWI state on an FXO line changes, an internal Asterisk event is
generated to indicate the new state of the associated mailbox.  That may, any
module that cares about MWI information will get notified and can handle it
just as if app_voicemail had sent this notification.

(BE-253, original patch from markster, with some minor modifications by me to
 add comments, documentation, and internal event support)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90949 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 19:08:30 +00:00
kpfleming 9e4649bf40 fix build of this module when libpri and/or libss7 are or are not present
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90880 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:40:29 +00:00
mmichelson 4128bac7a9 Merged revisions 90735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90735 | mmichelson | 2007-12-03 17:12:17 -0600 (Mon, 03 Dec 2007) | 22 lines

A big one...

This is the merge of the forward-loop branch. The main change here is that call-forwards can no longer loop.
This is accomplished by creating a datastore on the calling channel which has a linked list of all devices
dialed. If a forward happens, then the local channel which is created inherits the datastore. If, through this
progression of forwards and datastore inheritance, a device is attempted to be dialed a second time, it will simply
be skipped and a warning message will be printed to the CLI. After the dialing has been completed, the datastore
is detached from the channel and destroyed.

This change also introduces some side effects to the code which I shall enumerate here:

1. Datastore inheritance has been backported from trunk into 1.4
2. A large chunk of code has been removed from app_dial. This chunk is the section of code
   which handles the call forward case after the channel has been requested but before it has
   been called. This was removed because call-forwarding still works fine without it, it makes the
   code less error-prone should it need changing, and it made this set of changes much less painful
   to just have the forwarding handled in one place in each module.
3. Two new files, global_datastores.h and .c have been added. These are necessary since the datastore
   which is attached to the channel may be created and attached in either app_dial or app_queue, so they
   need a common place to find the datastore info. This approach was taken in case similar datastores are
   needed in the future, there will be a common place to add them.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90873 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-04 17:08:36 +00:00
mmichelson 5ea0aff8a0 Merged revisions 90639 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90639 | mmichelson | 2007-12-03 14:59:51 -0600 (Mon, 03 Dec 2007) | 5 lines

Changing some bad logic when calculating the interdigit timeout.

(closes issue #11402, reported and patched by eferro)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90644 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-03 21:00:44 +00:00
russell 7cfa10f05b Merged revisions 90348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90348 | russell | 2007-11-30 13:26:04 -0600 (Fri, 30 Nov 2007) | 8 lines

Change the behavior of ao2_link().  Previously, in inherited a reference.
Now, it automatically increases the reference count to reflect the reference
that is now held by the container.

This was done to be more consistent with ao2_unlink(), which automatically
releases the reference held by the container.  It also makes it so it is
no longer possible for a pointer to be invalid after ao2_link() returns.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90351 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 19:34:47 +00:00
file c5a1e93068 Merged revisions 90269 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90269 | file | 2007-11-30 10:43:15 -0400 (Fri, 30 Nov 2007) | 6 lines

Fix locking issues under one legged replaces scenarios.
(closes issue #11420)
Reported by: irroot
Patches:
      chan_sip_oneleg.patch uploaded by irroot (license 52)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90270 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 14:45:36 +00:00
mmichelson 655737e186 Merged revisions 90231 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90231 | mmichelson | 2007-11-29 18:16:04 -0600 (Thu, 29 Nov 2007) | 5 lines

Clear the DTMF buffer if the call times out.

(closes issue #11418, reported and patched by eferro)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@90232 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-30 00:16:45 +00:00
russell f296356f7c Merge changes from team/russell/iax2_frame_queue
This patch is an optimization for chan_iax2.  This module is now heavily
multi-threaded.  However, there is still a good number of globally shared
resources that prevent things from happen asynchronously.  One of those things
was the global IAX frame queue.  This queue was used to hold frames that have
been deferred for transmitting by another thread, and frames that may need to
get retransmitted.

I changed the frame queue to be per-call, since almost all of the frame queue
handling only cares about frames specific to a call number.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 23:50:25 +00:00
russell b1c5810c3c Bring in a small change from team/russell/chan_refcount
This replaces tab completion code with the use of a public function that
does the same thing


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89835 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 22:42:57 +00:00
oej 0e7bb9934a More additions from the "moremanager" branch, this time for IAX2.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 20:36:59 +00:00
russell 663c870286 remove a duplicate manager event
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89710 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 20:17:36 +00:00
oej d0bcdac211 Manager events from the "moremanager" branch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:50:12 +00:00
oej 13d6371f2b Starting to merge changes from the "moremanager" branch. Documentation will
follow.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89702 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:45:39 +00:00
oej bb9210c7a9 The following patch with updates for trunk. Works much better in trunk.
Also by accident fixed a bad typo by a previous committer, which actually made video calls
not work fully...

Merged revisions 89630 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89630 | oej | 2007-11-27 16:23:17 +0100 (Tis, 27 Nov 2007) | 12 lines

If we get a codec offer using a well-known payload type, but using it for another
codec that we don't know, Asterisk did not remove that codec from the list.

With this patch, we remove the codec from audio and video rtp objects and
deny it ever existed. Thanks to lasse for testing.

(closes issue #11376)
Reported by: lasse
Patches: 
      bug11376.txt uploaded by oej (license 306)
Tested by: lasse

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89698 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:24:17 +00:00
oej 4fd45884a2 Rename "limitonpeer" to "counteronpeer" since the call-limit is deprecated.
Both still works in this version.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89613 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 21:23:48 +00:00
oej 4e62295db7 Formatting, doxygenification
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89611 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 21:12:50 +00:00
oej 812477c1c5 Formatting changes, cleaning up some code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89609 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 20:55:09 +00:00
oej a6d5c8a789 Start using Doxygen groupings to group variables and defines.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89607 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 20:19:50 +00:00
file d7b36511c0 Instead of printing out one codec in sip show channels print out all of the native ones (this is for video).
(closes issue #11366)
Reported by: ovi


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89573 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 14:50:51 +00:00
oej 18ff1ee386 Formatting changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89566 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25 21:12:25 +00:00
tilghman 1f7c33b062 Typo (someone needs to test compile before committing his changes)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89560 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25 17:44:16 +00:00
oej 88fbfcf126 More doxygen changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89557 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25 12:18:35 +00:00
oej 6ee0d13116 Housekeeping
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89556 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25 12:12:00 +00:00
oej fb88a42abe Formatting, doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89555 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25 12:06:57 +00:00
oej 003485a22b - Deprecate "call-limit" in chan_sip. No other channel driver enforces call-limits
and we now have the groupcount system to implement call-limits in the dialplan. You
  can use the "setvar" option in realtime/sip.conf to set limits per device.

- Implement "callcounter" as a new option to enable the call counting we need to
  report device status to queue, manager and SIP subscriptions.

The call counter setting is now enabled in the code by setting the device call-limit
to 999. When we remove the call limit, we can simply enable this with a boolean
setting.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89554 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25 11:46:17 +00:00
oej 14c325e930 Housekeeping...
- Fix typo in chan_sip
- Remove changes to caller ID structure, moving it to branch (russellb)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89551 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-25 11:10:52 +00:00
rizzo b0a9fdafe9 remove a DEBUG_THREADS message that accesses private lock fields.
If needed, the code to extract this information should be implemented
in some generic header or library and the function called here.

(closed bug #11362)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89543 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-24 13:57:46 +00:00
rizzo 5ccc5160d7 put in the necessary hooks for video support in the console.
This is a NOP as far as the current code is concerned,
but there is already support in ./configure and the
Makefiles for the various libraries used by console_video.c
(not yet in the tree) so addition is trivial.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89533 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-23 15:54:13 +00:00
rizzo f88d1b86f7 set rtpmap video info according to what is read from SDP;
make the format explicit in a debug message;

print the audio instead of aggregated peer capability in a debugging msg.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89532 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-23 15:49:40 +00:00
murf b6e2980dd6 closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89513 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 23:54:12 +00:00
rizzo 150b2c22ef remove another set of redundant #include "asterisk/options.h"
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89512 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 23:24:55 +00:00
mattf 805ba568c6 Remove unneccessary explicit case for BRI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89510 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 22:37:25 +00:00
mattf 84849d3f6f Take some debug code out :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89509 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 22:34:45 +00:00
mattf d3b3d6d193 Add BRI support to chan_zap
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89507 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 22:07:55 +00:00
russell ef4c533d63 fix a small gramatical error in a comment
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89488 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 18:24:23 +00:00
russell c0db75dd30 Fix some code that was supposed to ensure that a buffer was terminated, but was
writing to the wrong byte.  Also, remove some non-thread safe test code.

(closes issue #11317)
Reported by: IgorG
Patches:
      unistim-2.patch uploaded by IgorG (license 20)
	  - additional changes by me


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89484 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 16:24:17 +00:00
kpfleming 606225a568 get this to actually compile...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89481 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 15:45:56 +00:00
rizzo 19e4a6457f remove this file, it is not used anywhere.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89477 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 08:28:27 +00:00
rizzo 89d8d78652 move asterisk/paths.h outside asterisk.h and into those files
who really need it.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89466 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 23:16:15 +00:00
rizzo 03ef197f9e Fix building of modules under cygwin.
After this commit we can actually load modules under windows,
and we can start debugging more interesting problems related
to the load order and functionality of modules.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89454 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 16:12:10 +00:00
file 09688d2a03 Include the compatibility header file in ast_h323.cxx for compatibility reasons.
(closes issue #11311)
Reported by: falves11


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89447 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 14:49:32 +00:00
oej 757cdf0317 Fix sip show history.
Closes issue #11312


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89446 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 14:44:26 +00:00
oej 4d1cce0b2b Change terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.
Closes issue #11312


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 08:36:32 +00:00
mmichelson 951d8aae90 Changed the "busy-level" option in sip.conf to "busylevel" to be more parallel
with the SIPPEER() argument of the same name. The deprecation procedure is not
being used here since this is a trunk-only option.

(closes issue #11307, reported by pj, patched by me)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89441 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 23:24:35 +00:00
rizzo f21fd57280 another few errno.h removals
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89433 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 21:18:14 +00:00
tilghman 2912efc2d6 Change delimiter of SIPPEER to be comma (instead of pipe) and further deprecate the old ':' delimiter
Reported by: pj
Patch by: tilghman
Closes issue #11305


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89429 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 20:13:40 +00:00
rizzo 9cf442d7f7 include "logger.h" and errno.h from asterisk.h - usage shows that they
were included almost everywhere.
Remove some of the instances.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89424 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 18:52:04 +00:00
oej 5434749d80 Adding busy-level to the SIP_PEER() dialplan function.
With this, you can control the peer in the dialplan, so you avoid placing outbound
calls when the device has reached busy-level.
Reported by pj.

Closes bug #11180



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89406 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 09:12:27 +00:00
oej 9fc5446fcd Make some notes about a problem I found with the OPTIONs handler while working with
the bug tracker. Since we don't authenticate devices (peers/users) on OPTIONS we don't
have the proper context set for the user/peer. 

However, we might not want to process an authentication for every OPTIONS, so we could
have a config option for this, "optionsforceok" to always answer 200 OK on the request
and not check device or destination, nor add a SDP. If Asterisk sends the OPTIONs request,
it doesn't care about the reply. Some devices use OPTIONs to discover capabilities,
since we should answer like an INVITE from the device and we need to support that properly
too, which we don't today.

So much to do :-)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89404 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 08:34:26 +00:00
mattf 92145c34ba Add SS7 Generic address support (#11156)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89393 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17 21:47:48 +00:00
rizzo 3136f24f36 trim more redundant headers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89384 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17 16:18:53 +00:00
rizzo 457e19cda1 fix breakage induced by previous mistake
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89382 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17 14:45:46 +00:00
rizzo 46c59c7908 filter out modules that do not compile under windows
(this should be handled with the dependencies generated by
configure and menuselect, but will be fixed later)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89366 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17 09:48:45 +00:00
rizzo ba761e2427 more removal of duplicate #include lines
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89349 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17 00:02:33 +00:00
rizzo 18911d90cb remove a bunch of duplicate includes
Reproduce with

grep -r #include . | grep -v .svn | grep -v Binary | sort | uniq -c | sort -nr 



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89348 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 23:54:45 +00:00
rizzo 82c12f8105 remove redundant #include "asterisk/compat.h",
but make sure that asterisk/compiler.h is included everywhere



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89336 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 21:08:28 +00:00
rizzo 883346d64a Start untangling header inclusion in a way that does not affect
build times - tested, there is no measureable difference before and
after this commit.

In this change:

use asterisk/compat.h to include a small set of system headers:
inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
stdlib.h, alloca.h, stdio.h

Where available, the inclusion is conditional on HAVE_FOO_H as determined
by autoconf.

Normally, source files should not include any of the above system headers,
and instead use either "asterisk.h" or "asterisk/compat.h" which does it
better. 

For the time being I have left alone second-level directories
(main/db1-ast, etc.).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 20:04:58 +00:00
crichter db7fa2657c fixed #10631, about one way audio. thanks IgorG again.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89321 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 10:06:55 +00:00
rizzo 0cb2dd9239 move the inner part of config file parsing to a separate function,
so it can be reused in the implementation of cli commands when
they have a similar syntax.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89320 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 09:51:41 +00:00
crichter ee51e2f152 fixed compilation of chan_misdn, #11269, thanks IgorG.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89319 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 08:54:04 +00:00
tilghman 2b57b57d9a Merged revisions 89301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89301 | tilghman | 2007-11-15 12:23:14 -0600 (Thu, 15 Nov 2007) | 2 lines

Fix an uninitialized memory read found by valgrind

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89303 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 18:39:46 +00:00
tilghman 39031cce82 Merged revisions 89298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89298 | tilghman | 2007-11-15 12:05:56 -0600 (Thu, 15 Nov 2007) | 5 lines

Yet another memory corruption issue.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 18:11:36 +00:00
file 69d35970ba And file said... let trunk build again! Accomplished by some more constification, and marking a function in chan_sip as purposely unused until it is fixed up.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89290 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 15:21:04 +00:00
oej 529e51ce39 Always relying on the responses when crossing NAT's are not a good
solution, it breaks communication.
Rizzo - you need to implement a configuration option for this 
code. It's good, but maybe should be off by default.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89285 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 12:21:57 +00:00
oej 6a4d1a57fd Merged revisions 89281 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89281 | oej | 2007-11-15 12:26:22 +0100 (Tor, 15 Nov 2007) | 6 lines

Don't send re-invites during pending INVITE transactions.

Patch by one47 - thanks!

Closes issue #9305

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89283 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 11:31:27 +00:00
oej 9d192dfb80 Merged revisions 89280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89280 | oej | 2007-11-15 12:15:09 +0100 (Tor, 15 Nov 2007) | 5 lines

Improve support for multipart messages. Code by gasparz, changes
by me (mostly formatting). Thanks, gasparz!

Closes issue #10947

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89282 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 11:27:19 +00:00
oej 9801c2468b Exit early instead of deciding to exit after processing the message.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 10:26:00 +00:00
oej f4235a7e7f Add support for application/dtmf SIP INFO dtmf handling. Yep, another
way of handling DTMF in SIP. Totally undocumented, but implemented
in enough devices so we have to support it. 

Code by sergee, small changes by oej.

Closes issue #11049


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15 10:21:41 +00:00
tilghman 22206839a4 One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89270 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14 15:13:22 +00:00
rizzo ea0d4674a6 make the 'name' and 'value' fields in ast_variable const char *
This prevents modifying the strings in the stored variables, 
and catched a few instances where this was actually done.

Given the differences between trunk and 1.4 (and the fact that this
is effectively an API change) it is better to fix 1.4 independently.
These are

chan_sip.c::sip_register()
chan_skinny.c:: near line 2847
config.c:: near line 1774
logger.c::make_components()
res_adsi.c:: near line 1049

I may have missed some instances for modules that do not build here.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89268 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14 13:18:40 +00:00
russell a9730777b1 - Convert initialization of a struct to C99 style instead of GNU style
- Fix a minor spelling error in a comment


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89251 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-13 20:53:49 +00:00
tilghman 4da6eaa1ec Merged revisions 89246 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89246 | tilghman | 2007-11-13 11:34:11 -0600 (Tue, 13 Nov 2007) | 2 lines

If we set a value for qualify, we should actually pay attention to it, instead of overriding the value

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89247 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-13 17:41:02 +00:00
qwell daf95de377 Doxygen fixes.
Also fix a common typo I kept seeing (arguement) in various files.

Closes issue #11222, patch by snuffy (with arguement > argument by me).


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89202 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 23:44:20 +00:00
tilghman cbb22ba26a Merged revisions 89184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89184 | tilghman | 2007-11-12 11:29:17 -0600 (Mon, 12 Nov 2007) | 5 lines

Fix two cases of memory corruption caused by background threads.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89185 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 17:44:04 +00:00
crichter 1f7450806b Merged revisions 89173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89173 | crichter | 2007-11-12 12:26:48 +0100 (Mo, 12 Nov 2007) | 1 line

if we're NT and no number was dialed and overlapdial is set, we wait for the ISDN timeout instead of starting our own timer. added a comment for the misdn.conf.sample for the overlapdial config option.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89179 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 13:36:45 +00:00
crichter 6bc7693d58 Merged revisions 89172 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89172 | crichter | 2007-11-12 12:23:57 +0100 (Mo, 12 Nov 2007) | 1 line

added restart all interfaces Restart_Indicator, to automatically send a RESTART after the L2 of a PTP Port comes up. Also fixed some places where we have send a RELEASE without need for it.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89178 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 13:33:13 +00:00
file 4b753c1924 Fix building on FreeBSD by including/not including some headers.
(closes issue #11218)
Reported by: ys
Patches:
      trunk89169.diff uploaded by ys (license 281)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89177 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 13:26:45 +00:00
crichter f8c609617a Merged revisions 89171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89171 | crichter | 2007-11-12 12:13:13 +0100 (Mo, 12 Nov 2007) | 1 line

fixed a state/event issue with overlapdial=yes when no extension matched. removed the general sending of a RELEASE_COMPLETE when we receive a RELEASE, this is done by mISDNuser/mISDN. This makes it possible to use asterisk-1.4 with mISDN trunk, but requires users of mISDN/mISDNuser-1.1.X to upgrade to at least mISDNuser-1.1.6 (when using the NT mode at all)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89176 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 13:22:17 +00:00
crichter 4856e67e8c Merged revisions 89170 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89170 | crichter | 2007-11-12 10:57:23 +0100 (Mo, 12 Nov 2007) | 1 line

fixed the support for CW and therefore for the reject_cause option.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89175 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 13:03:00 +00:00
crichter e64cea39a5 Merged revisions 89169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89169 | crichter | 2007-11-12 10:45:36 +0100 (Mo, 12 Nov 2007) | 1 line

aded ntkeepcalls option, to avoid droÃpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89174 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-12 12:49:19 +00:00
mmichelson f7368edb07 Merged revisions 89119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89119 | mmichelson | 2007-11-08 15:00:08 -0600 (Thu, 08 Nov 2007) | 7 lines

Rework of the commit I made yesterday to use the already built-in
ast_uri_decode function as opposed to my home-rolled one. Also added
comments.

Thanks to oej for pointing me in the right direction


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89120 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 21:01:02 +00:00
kpfleming 1bb2b0ad9c convert this code to a more efficient idiom
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89118 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 20:39:41 +00:00
tilghman a384dc7afc Fix missed conversion to linkedlists macro change
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89113 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 17:28:45 +00:00
rizzo 4aead04f81 initialize a variable to silence compiler.
The type of warnings emitted depends on the optimization level,
at the lower levels the compiler doesn't always understand what the
programmer has in mind. In this case I could not understand it either.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89108 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 09:15:05 +00:00
kpfleming a45a413db3 improve linked-list macros in two ways:
- the *_CURRENT macros no longer need the list head pointer argument
  - add AST_LIST_MOVE_CURRENT to encapsulate the remove/add operation when moving entries between lists


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89106 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 05:28:47 +00:00
file ca5c15cd33 Merged revisions 89101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89101 | file | 2007-11-07 22:26:48 -0400 (Wed, 07 Nov 2007) | 4 lines

Do not add a sip: to the beginning of the To URI unless needed.
(closes issue #10756)
Reported by: goestelecom

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89102 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 02:28:15 +00:00
file 31aaf193b8 Merged revisions 89099 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89099 | file | 2007-11-07 21:28:56 -0400 (Wed, 07 Nov 2007) | 6 lines

Improve the devicestate logic for multiple devices. If any are available then the extension is considered available.
(closes issue #10164)
Reported by: nic_bellamy
Patches:
      sip-hinting-svn-branch-1.4.patch uploaded by nic (license 299)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89100 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 01:30:29 +00:00