dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

4786 Commits

Author SHA1 Message Date
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
file 0d08d6054a Merged revisions 89097 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89097 | file | 2007-11-07 21:11:25 -0400 (Wed, 07 Nov 2007) | 8 lines

Add support for allowing one outgoing transaction. This means if a response comes back out of order chan_sip will still handle it. I dream of a chan_sip with real transaction support.
(closes issue #10946)
Reported by: flefoll
(closes issue #10915)
Reported by: ramonpeek
(closes issue #9567)
Reported by: atca_pres

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89098 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 01:14:31 +00:00
file 1101f70bd7 Merged revisions 89095 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89095 | file | 2007-11-07 19:53:25 -0400 (Wed, 07 Nov 2007) | 4 lines

If callerid is configured in sip.conf use that for checking the presence of an extension in the dialplan.
(closes issue #11185)
Reported by: spditner

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89096 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-07 23:55:08 +00:00
mmichelson fba187de25 Merged revisions 89090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89090 | mmichelson | 2007-11-07 16:40:35 -0600 (Wed, 07 Nov 2007) | 6 lines

This patch makes it possible for SIP phones to dial extensions defined with '#' characters
in extensions.conf AND maintain their escaped characters when forming URI's

(closes issue #10681, reported by cahen, patched by me, code review by file)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89091 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-07 22:42:24 +00:00
file 227698cc98 Minor change so chan_h323 builds again.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89086 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-07 17:45:31 +00:00
tilghman 44d62ad360 Provide the ability to directly manipulate the TON/NPI bits in the dialstring.
Reported by: thetatag
Patch by: thetatag/stevens/tilghman
Closes issue #5331


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89078 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-07 02:14:40 +00:00
tilghman 4b2fc9d3e7 Commit some cleanups to the format type code.
- Remove the AST_FORMAT_MAX_* types, as these are consuming 3 out of our available 32 bits.
 - Add a native slin16 type, so that 16kHz codecs can translate without losing resolution.
   (This doesn't affect anything immediately, until another codec has wb support.)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89071 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 22:51:48 +00:00
mattf cec6b85091 Add some more locking as well as API update for libss7 for new transport types
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89067 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 22:01:10 +00:00
mmichelson 92ac6820ee "show application <foo>" changes for clarity.
(closes issue #11171, reported and patched by blitzrage)

Many thanks!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89044 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:04:45 +00:00
qwell f20cdcdc59 Allow gtalk and jingle to use TLS connections again.
Closes issue #9972


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89041 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 18:44:19 +00:00
file 487d264c99 Merged revisions 89032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89032 | file | 2007-11-06 13:08:05 -0400 (Tue, 06 Nov 2007) | 4 lines

Make it so that if a peer is determined to be unreachable using qualify their devicestate will report back unavailable.
(closes issue #11006)
Reported by: pj

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89034 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 17:10:03 +00:00
file 523fa9cb07 Merged revisions 88994 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88994 | file | 2007-11-06 12:24:56 -0400 (Tue, 06 Nov 2007) | 6 lines

Fix improbable but possible memory leaks in chan_zap.
(closes issue #11166)
Reported by: eliel
Patches:
      chan_zap.c.patch uploaded by eliel (license 64)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88995 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 16:29:16 +00:00
file 3f48783c29 Update chan_agent documentation. Change a | to , as that is now the required way.
(closes issue #11167)
Reported by: eliel
Patches:
      chan_agent.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88974 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 15:37:17 +00:00
tilghman f1e53779f1 Set up detection of IP_PKTINFO in autoconf for chan_unistim
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88973 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 15:01:56 +00:00
russell ce01581f86 convert uses of LOG_DEBUG to use ast_debug()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88937 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 14:17:33 +00:00
russell 73fdba4c4d Add jitterbuffer support to chan_unistim.
(closes issue #11168)
Reported by: IgorG
Patches: 
      unistimjb-88863-1.patch uploaded by IgorG (license 20)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88935 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 14:11:34 +00:00
russell f36c90c199 Merged revisions 88805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88805 | russell | 2007-11-05 16:07:54 -0600 (Mon, 05 Nov 2007) | 12 lines

After seeing crashes related to channel variables, I went looking around at the
ways that channel variables are handled.  In general, they were not handled in
a thread-safe way.  The channel _must_ be locked when reading or writing from/to
the channel variable list.

What I have done to improve this situation is to make pbx_builtin_setvar_helper()
and friends lock the channel when doing their thing.  Asterisk API calls almost 
all lock the channel for you as necessary, but this family of functions did not.

(closes issue #10923, reported by atis)
(closes issue #11159, reported by 850t)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88934 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 14:08:54 +00:00
rizzo b7f6951c5c explain that the host environment must be used to build gentone;
Remove unset variables, they would be misleading.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 08:17:42 +00:00
russell 11ad54a10b Merged revisions 88768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88768 | russell | 2007-11-05 15:33:56 -0600 (Mon, 05 Nov 2007) | 8 lines

When traversing the list of channel variables here in transmit_invite(), the 
asterisk channel must be locked, as this data may change at any time.

(I have seen numerous reports of crashes related to the handling of channel
variables.  There are a couple of issues on the bug tracker related to it,
but it has also been noted on IRC and mailing lists.  So, I am finding and
fixing some places where channel variables are handled improperly.) 

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 21:35:51 +00:00
russell d3d49dd21b Merged revisions 88765 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88765 | russell | 2007-11-05 15:21:39 -0600 (Mon, 05 Nov 2007) | 2 lines

Fix up some indentation.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88766 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 21:23:32 +00:00
file 7c3af6c368 Merged revisions 88671 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88671 | file | 2007-11-05 14:47:13 -0400 (Mon, 05 Nov 2007) | 7 lines

If a SIP channel is put on hold multiple times do not keep incrementing the onHold value.
(closes issue #11085)
Reported by: francesco_r
Tested by: blitzrage
(closes issue #10474)
Reported by: acennami

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88673 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 18:52:12 +00:00
qwell eb61f174cd Merged revisions 88585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11163)
........
r88585 | qwell | 2007-11-05 11:19:41 -0600 (Mon, 05 Nov 2007) | 4 lines

Make sure we destroy the config structure on configuration failure.

Issue 11163, patch by eliel.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88586 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 17:21:05 +00:00
file 19a74b8591 Fix memory leaks and deadlocks in chan_unistim.
(closes issue #11158)
Reported by: eliel
Patches:
      chan_unistim.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88510 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 13:11:37 +00:00
rizzo 5c6adf7951 Simplify the implementation and the API for stringfields;
details and examples are in include/asterisk/stringfields.h.

Not applicable to older branches except for 1.4 which will
receive a fix for the routines that free memory pools.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88454 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-04 19:44:31 +00:00
russell 4e9e2791c2 fix some issues with crashing on unload, when it didn't completely load cleanly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88409 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 22:36:30 +00:00
russell 3b700df38a Convert the CLI commands to the new format
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88408 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 22:08:15 +00:00
russell 5f0e53299f Merge the code from asterisk/team/group/chan_unistim:
This introduces a new channel driver, chan_unistim, that supports the Unistim
VoIP protocol for Nortel phones.  The following models have been confirmed 
to work: i2002, i2004 and i2050.

(closes issue #8864)
Reported by: c_hans
Patches: 
      chan_unistim.patch uploaded by c (license 304)
      ustm_no_conf.diff uploaded by junky (license 177)
Tested by: c_hans, dbowerman, math, junky, loloski


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88368 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 20:56:12 +00:00
file 5590a16c77 Merged revisions 88366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88366 | file | 2007-11-02 17:49:45 -0300 (Fri, 02 Nov 2007) | 4 lines

Make subscribecontext behave as advertised. It will now look for the presence of a hint in the given context (be it subscribecontext or context).
(closes issue #10702)
Reported by: slavon

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88367 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 20:51:53 +00:00
file 077383a065 Merged revisions 88328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88328 | file | 2007-11-02 17:20:21 -0300 (Fri, 02 Nov 2007) | 6 lines

If an INFO request within a dialog is received with a content length of 0 simply send back a 200 OK. It is valid to do this and the remote side is probably using it to make sure the signalling is still alive.
(closes issue #5747)
Reported by: chandi
Patches:
      infofix-81430-1.patch uploaded by IgorG (license 20)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88329 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-02 20:22:40 +00:00
qwell 8af80a59de Remove traces of gnutls, since we no longer use/need it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88184 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01 23:26:51 +00:00
qwell 29e524f0b8 Merged revisions 88078 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r88078 | qwell | 2007-11-01 11:21:22 -0500 (Thu, 01 Nov 2007) | 4 lines

Make sure we set the poll fds to NULL after free()ing it.

Part of issue 11017, patch by tzafrir.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88079 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01 16:22:09 +00:00
russell 54e5e5a73e Change some uses of free() to ast_free(). (No functional differences.)
(closes issue #11138)
Reported by: eliel
Patches: 
      pbx_dundi.c.patch uploaded by eliel (license 64)
	  chan_sip.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88077 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01 15:56:25 +00:00
tilghman 97e8364d35 Janitor: use ast_free to pair calls of ast_malloc and ast_calloc
Reported by: eliel
Patch by: eliel
Closes issue #11135


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88008 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01 06:07:18 +00:00
qwell da7f8a5b22 Merged revisions 87906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11130)
(closes issue #11132)

........
r87906 | qwell | 2007-10-31 16:16:20 -0500 (Wed, 31 Oct 2007) | 4 lines

Don't try to allocate memory that we're just going to re-allocate later anyways.

Issues 11130 and 11132, patch by eliel.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87907 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31 21:18:52 +00:00
russell caf1740be6 Merged revisions 87686 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r87686 | russell | 2007-10-30 16:19:09 -0500 (Tue, 30 Oct 2007) | 11 lines

Merge the changes from team/russell/iax2_poke_fix and iax2-poke-fix-trunk

There was a race condition related to the handling of POKEing peers.  Essentially, 
a reference to a peer is held by the scheduler when there are pending callbacks, 
but the reference count didn't reflect it.  So, it was possible for a peer to hit
a reference count of zero and have its destructor begin to be called at the same
time that the scheduler thread ran a POKE related callback.  If that happened,
a crash would likely occur.

(closes issue #11082, closes issue #11094)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87687 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-30 21:22:48 +00:00
qwell d62756326b Merged revisions 87650 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r87650 | qwell | 2007-10-30 15:29:41 -0500 (Tue, 30 Oct 2007) | 1 line

Only try to clean out h323/ if the h323/Makefile exists.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87651 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-30 20:30:35 +00:00
file aaac5d9829 Merged revisions 87342 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r87342 | file | 2007-10-29 14:20:28 -0300 (Mon, 29 Oct 2007) | 6 lines

Fix issue where if both sides of the dialog cancelled the dialog at the same time chan_sip could kepe retransmitting a response for no reason.
(closes issue #9566)
Reported by: atca_pres
Patches:
      bug9566.patch uploaded by oej

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87343 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29 17:22:16 +00:00
file cbbce6c578 Add autoconf checks for extra suppserv definitions that are not present in releases yet. chan_misdn should now build against the latest release.
(closes issue #11103)
Reported by: IgorG


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87325 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29 16:34:45 +00:00
mattf 39afbccd81 Add Circuit Group Queury message code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87232 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-27 00:48:12 +00:00
mattf 744b434989 Make sure we turn on the DSP when we answer the call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87231 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-27 00:43:59 +00:00
qwell ecd7ce6f49 Correctly use defined return values in (some) load_module functions.
(issue #11096)
Patches:
      chan_agent.c.patch uploaded by eliel (license 64)
      chan_local.c.patch uploaded by eliel (license 64)
      chan_features.c.patch uploaded by eliel (license 64)
      chan_zap.c.patch uploaded by eliel (license 64)
      res_monitor.c.patch uploaded by eliel (license 64)
      res_realtime.c.patch uploaded by eliel (license 64)
      res_crypto.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87202 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-26 21:37:02 +00:00
qwell 46cd8cbfc5 Merged revisions 86982 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11079)
........
r86982 | qwell | 2007-10-24 15:56:47 -0500 (Wed, 24 Oct 2007) | 5 lines

Correctly respect hidecalleridname configuration option.
Simplify code slightly in the process.

Issue 11079, reported by ddv2005

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86983 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-24 20:59:00 +00:00
qwell 7756b987a0 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 20:05:18 +00:00
file 8fc6314f5a Merged revisions 86756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86756 | file | 2007-10-22 13:35:22 -0300 (Mon, 22 Oct 2007) | 4 lines

After reading online I have confirmed that Record-Route headers should be copied to 1xx responses as well.
(closes issue #10113)
Reported by: makoto

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86757 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 16:36:56 +00:00
russell ed6b2d36eb There is a really fun game that you can play before committing code,
and it's called "make".  :)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86749 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 15:49:17 +00:00
kpfleming 5919109f85 resetinterval defaulting to something other than 'never' doesn't seem to accomplish any good and causes problems for plenty of people...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86697 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 14:59:27 +00:00
crichter 2520190806 Merged revisions 86598 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86598 | crichter | 2007-10-22 11:21:15 +0200 (Mo, 22 Okt 2007) | 1 line

we send DISCONNECT instead of RELEASE/RELEASE_COMPLETE if the dialplan does not match after an overlap call. Also added out_cause=1
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86617 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 10:18:43 +00:00
crichter 77240a70d7 started to add some basic support for supplementary services like CallForwarding and so forth
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86616 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 10:04:04 +00:00
mattf e65ccc18d2 Add better support for blocking and unblocking of CICs (#10965)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86549 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19 18:46:28 +00:00
qwell d542122e6a Convert NEW_CLI to AST_CLI.
Closes issue #11039, as suggested by seanbright.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86536 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19 18:29:40 +00:00
qwell 4723d35127 More changes to NEW_CLI.
Also fixes a few cli messages and some minor formatting.

(closes issue #11001)
Reported by: seanbright
Patches:
      newcli.1.patch uploaded by seanbright (license 71)
      newcli.2.patch uploaded by seanbright (license 71)
      newcli.4.patch uploaded by seanbright (license 71)
      newcli.5.patch uploaded by seanbright (license 71)
      newcli.6.patch uploaded by seanbright (license 71)
      newcli.7.patch uploaded by seanbright (license 71)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86534 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19 18:01:00 +00:00
file f2ce848206 Merged revisions 86471 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86471 | file | 2007-10-19 12:33:49 -0300 (Fri, 19 Oct 2007) | 6 lines

Fix two issues with domains and transfers. If a port was given in the hostname it was treated as part of the hostname. If domains were configured but external domains were not enabled all transfers would be considered remote.
(closes issue #11027)
Reported by: ramonpeek
Patches:
      11027-1.diff uploaded by ramonpeek (license 266)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86472 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19 15:36:27 +00:00
file 06cbc25bdc Merged revisions 86469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86469 | file | 2007-10-19 12:08:12 -0300 (Fri, 19 Oct 2007) | 4 lines

Set port number in received as information for registrations as well.
(closes issue #11028)
Reported by: brad-x

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86470 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19 15:10:24 +00:00
mmichelson 102b30a809 Fixing a segfault from tab-completing a "zap restart" CLI command.
(patch made by seanbright, pointed out in #asterisk-dev on IRC)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86350 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-18 18:40:48 +00:00
russell 9ad4e817cc Merged revisions 86149 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86149 | russell | 2007-10-17 12:57:45 -0500 (Wed, 17 Oct 2007) | 8 lines

If Asterisk is in the middle of shutting down, respond to OPTIONS
with 503 Unavailable.

(closes issue #10994)
Reported by: eserra
Patches:
      sip-options-503.patch uploaded by eserra (license 45)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86150 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-17 18:01:38 +00:00
file af258f8133 Merged revisions 86117 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86117 | file | 2007-10-17 13:58:03 -0300 (Wed, 17 Oct 2007) | 4 lines

Whoops, forgot to remove the original sip_scheddestroy.
(closes issue #11010)
Reported by: vadim

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86118 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-17 17:00:13 +00:00
qwell 1dd6cd6bc1 Allow chan_usbradio to compile again.
Closes issue #11014, patch by seanbright.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86104 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-17 16:09:01 +00:00
file 80829fa345 Change dependency for chan_usbradio to asound. Let's keep everything uniform.
(closes issue #11013)
Reported by: seanbright


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86067 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-17 15:30:55 +00:00
file 5d7b29619e Merged revisions 86063 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r86063 | file | 2007-10-17 12:06:36 -0300 (Wed, 17 Oct 2007) | 4 lines

Don't schedule dialog destruction if a MESSAGE is received using an existing dialog.
(closes issue #11010)
Reported by: vadim

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86064 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-17 15:09:36 +00:00
mattf 8e31333633 Don't hangup the call for SS7 if we get an alarm
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85957 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16 20:55:57 +00:00
russell 7cf32265a1 This fixes SIP subscriptions in trunk.
Don't improperly memset() over an ast_str.  This was leftover from before it
got changed to use ast_str.

(closes issue #11003, reported by pj)
(closes issue #10770, reported by yehavi)
(patched by me)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85944 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16 20:32:16 +00:00
phsultan 2ecfe1cbc9 Fix CLI help output
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85787 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16 10:38:57 +00:00
phsultan 443be026b4 Added two CLI functions, taken from chan_gtalk :
- jingle reload ;
- jingle show channels.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85778 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16 10:29:33 +00:00
phsultan de85c23b04 Make an audio path under the following call configuration :
SIP Phone 1 --- [chan_sip]Asterisk 1[chan_jingle] --- [chan_jingle]Asterisk 2[chan_sip] --- SIP Phone 2

Modifications :
- set bridge type to partial ;
- process media candidates from the remote peer properly.

Now we have Jingle audio, at least between two Asterisk Jingle
clients.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85777 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16 09:47:22 +00:00
qwell 1fa7b3672e Switch dundi to new tos config format.
Remove old unused defines for old style.

Closes issue 10860, patch by IgorG.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85764 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-15 23:20:40 +00:00
russell 37aa78847e Merged revisions 85604 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85604 | russell | 2007-10-15 11:54:57 -0500 (Mon, 15 Oct 2007) | 6 lines

Make the default for the srvlookup option to be yes.  It doesn't really make
sense for it to default to off.  The default configuration file has it on, and
proper RFC behavior, as indicated by a comment in the code, is for it to be on.
So, let's have it on by default to make lives easier.
(closes issue #10954, suggested by jtodd)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85605 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-15 16:59:53 +00:00
phsultan cccf110de3 Allow RTP structure registration
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85555 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-15 15:26:58 +00:00
mattf 59b3960536 Trying to finish the last of the charge_number patch up #10916
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85526 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-12 19:41:39 +00:00
mattf 4fa7f114d4 Add support for receive charge number in dialplan #10916
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85525 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-12 18:37:35 +00:00
mattf 263f210ff2 Make sure we set the ANI2 field for PRI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85497 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 22:27:32 +00:00
mattf e0a639d8d1 Add SS7 ANI2 support tx and rx. #10916
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85485 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 21:57:26 +00:00
mattf 345e796ca0 Add CCR test support #10916
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85474 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 20:49:04 +00:00
russell 13b9c5237c Merge a ton of NEW_CLI conversions. Thanks to everyone that helped out! :)
(closes issue #10724)
Reported by: eliel
Patches: 
      chan_skinny.c.patch uploaded by eliel (license 64)
      chan_oss.c.patch uploaded by eliel (license 64)
      chan_mgcp.c.patch2 uploaded by eliel (license 64)
      pbx_config.c.patch uploaded by seanbright (license 71)
      iax2-provision.c.patch uploaded by eliel (license 64)
      chan_gtalk.c.patch uploaded by eliel (license 64)
      pbx_ael.c.patch uploaded by seanbright (license 71)
      file.c.patch uploaded by seanbright (license 71)
      image.c.patch uploaded by seanbright (license 71)
      cli.c.patch uploaded by moy (license 222)
      astobj2.c.patch uploaded by moy (license 222)
      asterisk.c.patch uploaded by moy (license 222)
      res_limit.c.patch uploaded by seanbright (license 71)
      res_convert.c.patch uploaded by seanbright (license 71)
      res_crypto.c.patch uploaded by seanbright (license 71)
      app_osplookup.c.patch uploaded by seanbright (license 71)
      app_rpt.c.patch uploaded by seanbright (license 71)
      app_mixmonitor.c.patch uploaded by seanbright (license 71)
      channel.c.patch uploaded by seanbright (license 71)
      translate.c.patch uploaded by seanbright (license 71)
      udptl.c.patch uploaded by seanbright (license 71)
      threadstorage.c.patch uploaded by seanbright (license 71)
      db.c.patch uploaded by seanbright (license 71)
      cdr.c.patch uploaded by moy (license 222)
      pbd_dundi.c.patch uploaded by moy (license 222)
      app_osplookup-rev83558.patch uploaded by moy (license 222)
      res_clioriginate.c.patch uploaded by moy (license 222)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85460 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 19:03:06 +00:00
mattf a8506328be Let's hard code this until I fix it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 17:17:58 +00:00
mattf cc288beaba Make sure we are clean to build without libpri
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85431 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11 17:09:31 +00:00
file 6cb2e59df4 Merged revisions 85280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85280 | file | 2007-10-10 11:42:00 -0300 (Wed, 10 Oct 2007) | 4 lines

If devicestate is passed a port number strip it out.
(closes issue #10930)
Reported by: ibc

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85281 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-10 14:43:37 +00:00
file 25d97161b6 Merged revisions 85277 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85277 | file | 2007-10-10 11:28:18 -0300 (Wed, 10 Oct 2007) | 6 lines

Add support for handling a 182 Queued response.
(closes issue #10924)
Reported by: ramonpeek
Patches:
      queued-182.diff uploaded by ramonpeek (license 266)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-10 14:30:05 +00:00
tilghman 69a84d074b Remove redundant includes (patch by snuffy) (Closes issue #10922)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85140 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-09 16:04:41 +00:00
russell 4c29367323 Add jitterbuffer support for chan_local. To enable it, you use the 'j' option
in the Dial command.  The 'j' option _must_ be used in conjunction with the 'n'
option.

This feature will allow you to use the existing jitterbuffer implementation to
put a jitterbuffer on incoming SIP calls connecting to Asterisk applications by
putting a local channel in the middle.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85097 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-09 15:10:14 +00:00
file 72f4e11202 Merged revisions 85093 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85093 | file | 2007-10-09 11:30:16 -0300 (Tue, 09 Oct 2007) | 4 lines

Don't perform a reinvite if a transfer is in progress.
(issue #10915)
Reported by: ramonpeek

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85094 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-09 14:31:27 +00:00
russell f0db93aa78 Merged revisions 84783 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84783 | russell | 2007-10-05 11:44:21 -0500 (Fri, 05 Oct 2007) | 4 lines

Do deadlock avoidance in a couple more places.  You can't lock two channels
at the same time without doing extra work to make sure it succeeds.
(closes issue #10895, patch by me)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84784 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-05 16:49:16 +00:00
kpfleming 8a640eaf39 Merged revisions 84690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84690 | kpfleming | 2007-10-04 16:36:56 -0500 (Thu, 04 Oct 2007) | 2 lines

callers of sig2str already add the word 'signalling' in the appropriate place, so don't duplicate it

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84691 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-04 21:38:22 +00:00
russell a33286b7b0 Merged revisions 84370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84370 | russell | 2007-10-02 09:12:35 -0500 (Tue, 02 Oct 2007) | 6 lines

Use snprintf instead of sprintf in one place.  There is no vulnerability here
due to various buffer sizes around the code, but I still didn't like seeing a
non length-limited copy of data coming off of the wire into a stack buffer, as
this would be a problem in the future if buffer sizes elsewhere got changed or
size limitations removed ...

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84371 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-02 14:13:28 +00:00
qwell d8dcdb0740 Merged revisions 84291 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84291 | qwell | 2007-10-01 16:52:45 -0500 (Mon, 01 Oct 2007) | 6 lines

Add dist-clean support for subdirs.

Change h323 to only remove the Makefile on a dist-clean, rather than a clean.

This fixes a bug I found with trying to run make after a make clean

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84300 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 21:54:41 +00:00
dhubbard ca89337622 Merged revisions 84274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84274 | dhubbard | 2007-10-01 16:25:37 -0500 (Mon, 01 Oct 2007) | 1 line

moved get_base_channel() code from action_redirect to ast_channel_masquerade() for issue 7706 and BE-160
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84275 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 21:31:16 +00:00
file 9783d00623 Check to make sure a structure pointer is non-NULL before touching it... crashing is bad, mmmk?
(closes issue #10831)
Reported by: eliel
Patches:
      chan_sip.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84176 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 15:57:04 +00:00
russell dac373f539 Corydon posted this janitor project to the bug tracker and mvanbaak provided
a patch for it.  It replaces a bunch of simple calls to snprintf with ast_copy_string

(closes issue #10843)
Reported by: Corydon76
Patches: 
      2007092900_10843.diff uploaded by mvanbaak (license 7)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84173 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 15:23:19 +00:00
russell 08c7dd2cbd The trunk version of this patch also includes a couple more small clean fixes
from IgorG.

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

........
r84170 | russell | 2007-10-01 10:00:56 -0500 (Mon, 01 Oct 2007) | 3 lines

Remove another file in "make clean".
(closes issue #10814, paravoid)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84171 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 15:06:14 +00:00
file 079616aafe Add MP4 to part of the SDP code.
(closes issue #10820)
Reported by: ruikubo
Patches:
      chan_sip.patch uploaded by ruikubo (license 250)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84165 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 14:21:06 +00:00
dhubbard c2fe27f94a Merged revisions 84018 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84018 | dhubbard | 2007-09-27 18:12:25 -0500 (Thu, 27 Sep 2007) | 1 line

if an Agent is redirected, the base channel should actually be redirected.  This was causing multiple issues, especially issue 7706 and BE-160
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84019 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-27 23:18:09 +00:00
kpfleming 40b58d2a33 Merged revisions 83974 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83974 | kpfleming | 2007-09-26 16:53:03 -0700 (Wed, 26 Sep 2007) | 2 lines

avoid the weird usage of assert() in the ALSA header files that gcc 4.2 wants to complain about

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83986 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-27 00:08:47 +00:00
russell ab4d9025e5 Merged revisions 83943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83943 | russell | 2007-09-26 16:35:23 -0500 (Wed, 26 Sep 2007) | 2 lines

I changed my mind ... I think this should be a LOG_NOTICE.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83944 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-26 21:36:34 +00:00
russell 336ff3c04e Merged revisions 83941 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83941 | russell | 2007-09-26 16:15:15 -0500 (Wed, 26 Sep 2007) | 5 lines

Add a log message that was requested by the masses in the developer tutorial
session at Astricon.  chan_sip did not output any message when a call was
rejected because the extension was not found.  This adds a verbose message
(at verbose level 3) to note when this happens.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83942 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-26 21:17:41 +00:00
tilghman 922b7e80b7 Merged revisions 83879 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83879 | tilghman | 2007-09-26 13:35:56 -0500 (Wed, 26 Sep 2007) | 2 lines

Remove unused 4k of memory on the program stack (closes issue #10827)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83880 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-26 18:43:23 +00:00
phsultan 70c0a8fbbf Comply with latest XEP-0166, XEP-0167, XEP-0176.
No real Jingle implementation being available, testing was made using
two Asterisk servers relaying SIP calls over their Jingle channels:

SIP Phone 1 --- [chan_sip]Asterisk 1[chan_jingle] --- [chan_jingle]Asterisk 2[chan_sip] --- SIP Phone 2

Thus, it was possible to test the code in both ways, and make the
Jingle channel comply with the latest specifications. No sound available yet.

Main modifications include :
- modified the 'jingle_candidate' structure and the
  'jingle_create_candidates' function according to XEP-0176 ;
- modified the 'jingle_action' function in order to properly terminate
  a Jingle session, in conformance with XEP-0166 ;
- modified username format used in STUN requests ;
- actually make the bindaddr configuration field useable.

Todo :
- set audio paths up (no native bridging) ;
- make the CLI gtalk functions available to jingle ;
- clean up the storage space used in strings.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83743 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-25 09:07:30 +00:00
dhubbard 5c02cc5ae6 merged jcmoore's patch for configurable SDP origin-field username and session field, closes issue# 10795
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83671 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-24 17:10:14 +00:00
russell 74a4536abe Fix compilation errors in CLI command updates to SS7 CLI commands
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83500 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-21 19:55:03 +00:00
russell 16927b7f7a Merged revisions 83432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83432 | russell | 2007-09-21 09:37:20 -0500 (Fri, 21 Sep 2007) | 4 lines

gcc 4.2 has a new set of warnings dealing with cosnt pointers.  This set of
changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2.
(closes issue #10774, patch from qwell)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83433 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-21 14:40:10 +00:00
russell 9e532d0c5c fix spelling in a comment
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83294 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-20 19:17:16 +00:00
file 31040c1c41 Merged revisions 83232 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83232 | file | 2007-09-20 13:25:30 -0300 (Thu, 20 Sep 2007) | 7 lines

Make sure the minimum T1 timer value is obeyed in all cases.
(closes issue #10768)
Reported by: flefoll
Patches:
      chan_sip.c.trunk.83071.retrans-patch uploaded by flefoll (license 244)
      chan_sip.c.br14.83070.retrans-patch uploaded by flefoll (license 244)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83234 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-20 16:28:00 +00:00
file 16ccc6c2af Merged revisions 83230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83230 | file | 2007-09-20 13:17:24 -0300 (Thu, 20 Sep 2007) | 7 lines

Fix a minor spelling error.
(closes issue #10769)
Reported by: flefoll
Patches:
      chan_sip.c.trunk.83071.inita-patch uploaded by flefoll (license 244)
      chan_sip.c.br14.83070.inita-patch uploaded by flefoll (license 244)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83231 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-20 16:19:45 +00:00